/* Pet House — inner pages: page hero, shop, product detail, contact form */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-wa { --bg: var(--wa); --fg: #fff; box-shadow: 0 10px 24px -10px rgba(31, 175, 84, .7); }
.btn-wa:hover { --bg: #189947; }
.about-more { margin-top: 30px; }

/* page hero */
.page-hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 64px;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(255, 167, 51, .25), transparent 65%),
    radial-gradient(600px 300px at 0% 100%, rgba(138, 51, 7, .08), transparent 60%),
    var(--sand);
  border-radius: 0 0 clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px);
}
[dir="rtl"] .page-hero { background:
    radial-gradient(700px 360px at 15% 0%, rgba(255, 167, 51, .25), transparent 65%),
    radial-gradient(600px 300px at 100% 100%, rgba(138, 51, 7, .08), transparent 60%),
    var(--sand); }
.page-hero .hero-paw.p1 { top: 30%; inset-inline-start: auto; inset-inline-end: 6%; font-size: 110px; opacity: .07; }
.page-hero .hero-paw.p2 { bottom: -10px; inset-inline-start: 38%; font-size: 70px; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--brown-deep); margin-top: 14px; max-width: 18em; }
.page-sub { margin-top: 12px; color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--brown); transition: color .2s; }
.crumbs a:hover { color: var(--orange); }
.crumbs span:not([aria-current]) { opacity: .5; }

/* shop */
.shop { padding-top: 40px; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.shop-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 58px; padding-inline: 18px;
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow-sm); color: var(--muted); transition: box-shadow .25s;
}
.shop-search:focus-within { box-shadow: 0 0 0 2px var(--orange), var(--shadow-sm); }
.shop-search svg { font-size: 20px; }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.shop-sort select {
  min-height: 58px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--white); box-shadow: var(--shadow-sm);
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--brown); cursor: pointer;
}
.shop .chips { justify-content: flex-start; margin-bottom: 18px; }
.shop-count { color: var(--muted); font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.empty-box { text-align: center; padding: 60px 20px; display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.empty-box svg { font-size: 64px; color: var(--orange); opacity: .5; }

/* product card links */
.prod-media { display: block; }
.prod-body h3 a { transition: color .2s; }
.prod-body h3 a:hover { color: var(--orange); }
.prod-sale {
  position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: 999px;
  background: #D93B2B; color: #fff; font: 800 .78rem 'Nunito', sans-serif;
}

/* product detail */
.pd { padding: calc(var(--header-h) + 50px) 0 30px; }
.pd .crumbs { margin-bottom: 26px; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.pd-media {
  --zx: 50%; --zy: 50%;
  position: sticky; top: calc(var(--header-h) + 30px);
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow);
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); transform-origin: var(--zx) var(--zy); }
.pd-media.zoom img { transform: scale(1.6); cursor: zoom-in; }
.pd-media .prod-tag { top: 18px; inset-inline-start: 18px; font-size: .9rem; padding: 6px 14px; }
.pd-media .prod-sale { bottom: 18px; inset-inline-start: 18px; font-size: .9rem; padding: 5px 12px; }
.pd-info { padding-top: 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-cat, .pd-flag { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.pd-cat { background: var(--orange-soft); color: var(--brown); transition: background-color .2s; }
.pd-cat:hover { background: var(--orange); color: var(--brown-deep); }
.pd-flag { background: var(--brown); color: #fff; }
.pd-title { margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--brown-deep); }
.pd-price { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pd-price-v { font-weight: 800; font-size: 1.15rem; color: var(--brown); }
.pd-price-v.has { display: flex; align-items: baseline; gap: 12px; }
.pd-price-v.has b { font: 800 clamp(1.7rem, 3vw, 2.2rem) 'Nunito', 'Tajawal', sans-serif; color: var(--brown-deep); }
.pd-price-v.has s { font-size: 1.05rem; color: var(--muted); }
.pd-price small { color: var(--muted); font-size: .9rem; }
.pd-stock { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; }
.pd-stock i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(26, 138, 85, .15); }
.pd-stock.in { color: #1A8A55; }
.pd-stock.out { color: #B3261E; }
.pd-stock.out i { box-shadow: 0 0 0 4px rgba(179, 38, 30, .15); }
.pd-desc { margin-top: 18px; color: var(--muted); font-size: 1.1rem; line-height: 1.9; max-width: 36em; }
.pd-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pd-actions .btn { flex: 1 1 200px; }
.pd-qty { display: inline-flex; align-items: center; min-height: 56px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.pd-qty button { width: 50px; height: 56px; display: grid; place-items: center; font-size: 18px; color: var(--brown); border-radius: 999px; }
.pd-qty button:hover { background: var(--orange-soft); }
.pd-qty output { min-width: 30px; text-align: center; font: 800 1.15rem 'Nunito', sans-serif; }
.add-btn.big { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.pd-inlist {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #E3F6EE; color: #1A8A55; font-weight: 800; font-size: .92rem;
}
.pd-inlist[hidden] { display: none; }
.pd-points { list-style: none; padding: 22px 0 0; margin: 26px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.pd-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--brown); }
.pd-points svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--orange-soft); color: var(--brown); }
.pd-share { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); padding: 8px 0; transition: color .2s; }
.pd-share:hover { color: var(--orange); }
.related { padding-top: clamp(50px, 7vw, 90px); }
.sk-box, .sk-line { background: linear-gradient(90deg, var(--sand) 25%, #fff7ec 50%, var(--sand) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.sk-box { aspect-ratio: 1; border-radius: var(--r-lg); }
.sk-line { height: 18px; border-radius: 8px; margin-bottom: 16px; }
.sk-line.h { height: 44px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
@keyframes sk { to { background-position: -200% 0; } }

/* contact page form */
.msg-grid { margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.msg-logo { width: 150px; margin-top: 30px; padding: 16px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.msg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.msg-form label { display: grid; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--brown); }
.msg-form .full { grid-column: 1 / -1; }
.msg-form input, .msg-form select, .msg-form textarea {
  width: 100%; min-height: 50px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color .2s;
}
.msg-form textarea { resize: vertical; min-height: 130px; }
.msg-form input:focus, .msg-form select:focus, .msg-form textarea:focus { outline: none; border-color: var(--orange); }

@media (max-width: 960px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-media { position: relative; top: 0; max-width: 560px; width: 100%; }
  .msg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: calc(var(--header-h) + 46px) 0 44px; }
  .page-sub { font-size: 1rem; }
  .shop { padding-top: 26px; }
  .shop-bar { gap: 10px; }
  .shop-search { min-height: 52px; flex-basis: 100%; }
  .shop-bar .seg { width: 100%; }
  .shop-bar .seg button { flex: 1; }
  .shop-sort { width: 100%; }
  .shop-sort select { width: 100%; min-height: 50px; }
  .pd { padding-top: calc(var(--header-h) + 34px); }
  .pd-actions .btn { flex-basis: 100%; }
  .pd-qty { width: 100%; justify-content: space-between; }
  .msg-form { grid-template-columns: 1fr; }
  .prod-sale { bottom: 8px; inset-inline-start: 8px; font-size: .7rem; }
}
