/* Pet House — store: mega menus, cart, shop sidebar, pet portals, product options, checkout, order + tracking, WhatsApp popup */

/* ---------- header nav + mega menus ---------- */
.nav { align-items: center; }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-pet { width: 18px; height: 18px; color: var(--orange); }
.nav-chev { width: 14px; height: 14px; transition: rotate .3s var(--ease); opacity: .6; }
.nav-dd.open .nav-chev { rotate: 180deg; }
.nav-dd-toggle { display: none; }
.mega {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; translate: 50% 8px; z-index: 60;
  width: min(760px, calc(100vw - 40px)); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s, translate .35s var(--ease), visibility .25s;
}
[dir="ltr"] .mega { translate: -50% 8px; }
.nav-dd.open .mega { opacity: 1; visibility: visible; pointer-events: auto; translate: 50% 0; }
[dir="ltr"] .nav-dd.open .mega { translate: -50% 0; }
.mega::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.mega-in {
  display: grid; grid-template-columns: 1fr 210px; gap: 14px 20px; padding: 20px; border-radius: 26px;
  background: var(--white); box-shadow: 0 30px 70px -24px rgba(74, 32, 6, .4); border: 1px solid var(--line);
}
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.mega-main { display: flex !important; align-items: center; gap: 10px; padding: 6px !important; border-radius: 14px !important; font-family: var(--head); font-weight: 700; color: var(--brown-deep) !important; }
.mega-main img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.mega-main:hover { background: var(--orange-soft) !important; }
.mega-col ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.mega-col li a {
  display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px !important;
  border-radius: 10px !important; font-size: .92rem !important; font-weight: 600 !important; color: var(--muted) !important;
}
.mega-col li a small { font: 700 .72rem 'Nunito', sans-serif; color: var(--orange); background: var(--sand); padding: 1px 7px; border-radius: 999px; }
.mega-col li a:hover { background: var(--sand) !important; color: var(--brown) !important; }
.mega-col li a::after, .mega-main::after, .mega-promo::after, .mega-all::after { display: none !important; }
.mega-promo {
  grid-row: span 2; position: relative; display: block !important; overflow: hidden; border-radius: 20px !important; padding: 0 !important;
  min-height: 220px; background: var(--orange);
}
.mega-promo.pet-dog { background: #E9B934; }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.mega-promo:hover img { scale: 1.06; }
.mp-txt { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(46, 20, 5, .85)); color: #fff; display: grid; gap: 2px; }
.mp-txt small { font-size: .74rem; opacity: .85; font-weight: 600; }
.mp-txt b { font-family: var(--head); font-size: 1.15rem; }
.mp-go { position: absolute; top: -16px; inset-inline-end: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--brown-deep); }
.mp-go svg { width: 16px; height: 16px; }
.mega-all {
  display: flex !important; align-items: center; gap: 10px; padding: 12px 14px !important; border-radius: 14px !important;
  background: var(--sand); color: var(--brown) !important; font-weight: 800 !important;
}
.mega-all svg { width: 20px; height: 20px; color: var(--orange); }
.mega-all svg:last-child { margin-inline-start: auto; width: 16px; }
.mega-all:hover { background: var(--orange-soft) !important; }

/* ---------- product card extras ---------- */
.prod-media .pm-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease), scale .8s var(--ease); }
@media (hover: hover) { .prod-card:hover .prod-media .pm-alt { opacity: 1; } }
.prod-low {
  position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(46, 20, 5, .82); color: #FFD08A; font-weight: 800; font-size: .72rem;
}
.prod-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.prod-opts span { padding: 2px 9px; border-radius: 999px; background: var(--sand); color: var(--brown); font-size: .74rem; font-weight: 700; }
.prod-opts span.off { opacity: .45; text-decoration: line-through; }
.prod-price.has small { font-size: .68rem; color: var(--muted); font-weight: 700; }
.add-btn.choose { background: var(--brown); color: #fff; text-decoration: none; }
.add-btn.choose:hover { background: var(--brown-2); }

/* ---------- home main categories ---------- */
.cat-grid:has(.main-cat) { grid-template-columns: repeat(3, 1fr); }
.main-cat { display: flex; flex-direction: column; }
.mc-media { position: relative; display: block; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; }
.mc-media img { transition: scale .7s var(--ease); }
.main-cat:hover .mc-media img { scale: 1.06; }
.mc-media .cat-num { position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.main-cat .cat-body h3 a:hover { color: var(--orange); }
.mc-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mc-subs a { padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--brown); font-size: .82rem; font-weight: 700; transition: background-color .2s, color .2s; }
.mc-subs a:hover { background: var(--orange); color: var(--brown-deep); }

/* ---------- cart drawer ---------- */
.drawer-head h3 { display: flex; align-items: center; gap: 10px; }
.drawer-head h3 svg { width: 24px; height: 24px; color: var(--orange); }
.drawer-head h3 small { font: 700 .9rem 'Nunito', sans-serif; color: var(--muted); }
.ship-progress { padding: 12px 20px; background: var(--sand); border-bottom: 1px solid var(--line); }
.ship-progress p { font-size: .86rem; font-weight: 700; color: var(--brown); }
.ship-progress span { display: block; height: 7px; margin-top: 8px; border-radius: 7px; background: rgba(138, 51, 7, .1); overflow: hidden; }
.ship-progress i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width .5s var(--ease); }
.ship-progress.done i { background: #1FAF54; }
.line-item { align-items: flex-start; }
.line-info em { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--sand); color: var(--brown); font-style: normal; font-size: .76rem; font-weight: 700; }
.line-info small { display: block; }
.line-end { display: grid; justify-items: end; gap: 10px; align-self: stretch; align-content: space-between; }
.line-end b { font: 800 .92rem 'Nunito', 'Tajawal', sans-serif; color: var(--brown-deep); white-space: nowrap; }
.cart-sum { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--brown); }
.cart-sum b { font: 800 1.25rem 'Nunito', 'Tajawal', sans-serif; color: var(--brown-deep); }
.drawer-hint.warn { color: #B3261E; font-weight: 700; }
#goCheckout.disabled { opacity: .5; }
.or-line { position: relative; text-align: center; margin: 12px 0 8px; color: var(--muted); font-size: .8rem; }
.or-line::before { content: ''; position: absolute; inset: 50% 0 auto; border-top: 1px solid var(--line); }
.or-line span { position: relative; padding: 0 12px; background: var(--white); }
.wa-alt {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; color: #13803B; font-weight: 800; font-size: .9rem; box-shadow: inset 0 0 0 1.5px #BFE8CD; background: transparent;
  transition: background-color .2s, box-shadow .2s;
}
.wa-alt svg { width: 18px; height: 18px; }
.wa-alt:hover { background: #EAF8EF; box-shadow: inset 0 0 0 1.5px #1FAF54; }
.drawer-empty { gap: 10px; }
.de-ico { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); margin-bottom: 4px; }
.de-ico svg { width: 42px; height: 42px; opacity: 1 !important; font-size: inherit !important; }
.drawer-empty b { font-family: var(--head); font-size: 1.3rem; color: var(--brown-deep); }
.de-pets { display: flex; gap: 8px; margin-top: 8px; }
.de-pets .btn { min-height: 44px; padding: 0 16px; }
.de-pets svg { width: 18px; height: 18px; }

/* ---------- shop with sidebar ---------- */
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-side {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 6px; padding: 18px; border-radius: 26px;
  background: var(--white); box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.side-head b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.15rem; color: var(--brown-deep); }
.side-head svg { width: 20px; height: 20px; color: var(--orange); }
.side-x { display: none; }
.side-block { padding: 12px 0; border-top: 1px dashed var(--line); }
.side-block h3 { font-size: .95rem; color: var(--brown); margin-bottom: 10px; }
.side-pets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side-pets button {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-weight: 800; font-size: .85rem; transition: all .2s;
}
.side-pets svg { width: 24px; height: 24px; color: var(--orange); }
.side-pets button:hover { box-shadow: inset 0 0 0 1.5px var(--orange-2); }
.side-pets button.active { background: var(--orange); color: var(--brown-deep); box-shadow: none; }
.side-pets button.active svg { color: var(--brown-deep); }
.side-tree { display: grid; gap: 4px; }
.side-tree button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: start; border-radius: 12px; transition: background-color .2s, color .2s; }
.side-tree small { margin-inline-start: auto; font: 700 .72rem 'Nunito', sans-serif; color: var(--muted); background: var(--sand); padding: 1px 8px; border-radius: 999px; }
.ct-all, .ct-main { padding: 8px 10px; font-weight: 800; color: var(--brown-deep); }
.ct-all svg { width: 20px; height: 20px; color: var(--orange); }
.ct-main img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.ct-subs { display: none; padding-inline-start: 22px; margin: 2px 0 4px; border-inline-start: 2px solid var(--orange-soft); margin-inline-start: 22px; }
.ct-group.open .ct-subs { display: grid; gap: 2px; }
.ct-sub { padding: 7px 10px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.side-tree button:hover { background: var(--sand); }
.side-tree button.on { background: var(--orange-soft); color: var(--brown-deep); }
.side-tree button.on small { background: var(--orange); color: var(--brown-deep); }
.side-price { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.side-price input {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream);
  font: inherit; font-size: 16px; color: var(--ink);
}
.side-price input:focus { outline: none; border-color: var(--orange); }
.side-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: var(--brown); }
.side-switch input { position: absolute; opacity: 0; }
.sw-track { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--line); transition: background-color .25s; }
.sw-track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: inset-inline-start .25s var(--ease); }
.side-switch input:checked + .sw-track { background: var(--orange); }
.side-switch input:checked + .sw-track::after { inset-inline-start: 21px; }
.side-switch input:focus-visible + .sw-track { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn-block { width: 100%; }
.filter-btn { display: none; position: relative; min-height: 58px; }
.filter-btn svg { width: 20px; height: 20px; }
.fb-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brown); color: #fff; font: 800 .72rem/22px 'Nunito', sans-serif; text-align: center; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.active-chips:empty { display: none; }
.active-chips button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--brown); color: #fff;
  font-weight: 700; font-size: .85rem;
}
.active-chips svg { width: 13px; height: 13px; }
.sub-chips { justify-content: flex-start !important; margin-bottom: 14px; }
.sub-chips:empty { display: none; }
.shop .prod-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.side-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(46, 20, 5, .45); }

/* ---------- pet portal ---------- */
.pet-hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 50px) 0 70px;
  background: radial-gradient(800px 420px at 85% 10%, rgba(255, 167, 51, .28), transparent 65%), var(--sand);
  border-radius: 0 0 clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px);
}
[dir="rtl"] .pet-hero { background: radial-gradient(800px 420px at 15% 10%, rgba(255, 167, 51, .28), transparent 65%), var(--sand); }
.pet-hero.dog { background-color: #FFF4D6; }
.pet-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.pet-hero-copy .eyebrow { margin-top: 16px; }
.pet-hero-copy .page-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.pet-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pet-stats span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--brown); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.pet-stats svg { width: 18px; height: 18px; color: var(--orange); }
.pet-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pet-hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.pet-ring { position: absolute; inset: 6% -6% -2% 6%; border-radius: 240px 240px 40px 40px; background: var(--orange); rotate: 5deg; }
.pet-hero.dog .pet-ring { background: #E9B934; }
.pet-arch { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 240px 240px 40px 40px; border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.pet-arch img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 20%; }
.pet-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow); font-family: var(--head); font-weight: 700; color: var(--brown-deep);
}
.pet-float svg { width: 20px; height: 20px; color: var(--orange); }
.pet-float.f1 { top: 14%; inset-inline-start: -8%; }
.pet-float.f1 svg { color: #E5484D; }
.pet-float.f2 { bottom: 10%; inset-inline-end: -6%; }
.pet-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pcat { border-radius: 30px; background: var(--white); box-shadow: var(--shadow-sm); padding: 12px; display: grid; gap: 10px; align-content: start; }
.pcat-head { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; }
.pcat-head img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.pcat-head:hover img { scale: 1.06; }
.pcat-head > span:not(.pcat-go) { position: absolute; inset: auto 0 0; display: grid; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(46, 20, 5, .8)); color: #fff; }
.pcat-head b { font-family: var(--head); font-size: 1.4rem; }
.pcat-head small { font-weight: 700; opacity: .85; }
.pcat-go { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--brown-deep); transition: rotate .4s var(--ease); }
.pcat-go svg { width: 18px; height: 18px; }
.pcat-head:hover .pcat-go { rotate: -20deg; }
.pcat-subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pcat-subs a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; transition: background-color .2s; }
.pcat-subs a:hover { background: var(--sand); }
.pcat-subs img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.pcat-subs span { display: grid; flex: 1; line-height: 1.3; }
.pcat-subs b { color: var(--brown-deep); font-family: var(--head); font-size: 1.05rem; }
.pcat-subs small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.pcs-chev { width: 18px; height: 18px; color: var(--orange); rotate: 90deg; }
[dir="ltr"] .pcs-chev { rotate: -90deg; }
.pet-tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ptip { position: relative; padding: 26px 24px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.ptip-n { position: absolute; top: 14px; inset-inline-end: 18px; font: 800 2.6rem 'Nunito', sans-serif; color: var(--orange-soft); }
.ptip-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--orange); color: var(--brown-deep); }
.ptip-ico svg { width: 26px; height: 26px; }
.ptip h3 { margin-top: 16px; font-size: 1.3rem; color: var(--brown-deep); }
.ptip p { margin-top: 6px; color: var(--muted); }
.pet-switch-sec { padding-top: 10px; }
.pet-switch-card {
  position: relative; display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(120deg, #FFD45C, #E9B934); color: var(--brown-deep); transition: translate .4s var(--ease), box-shadow .4s;
}
.pet-switch-card.to-cat { background: linear-gradient(120deg, var(--orange-2), var(--orange)); }
.pet-switch-card:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.pet-switch-card img { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; border: 4px solid rgba(255, 255, 255, .7); flex: none; }
.pet-switch-card div { display: grid; gap: 2px; flex: 1; }
.pet-switch-card small { font-weight: 700; opacity: .75; }
.pet-switch-card b { font-family: var(--head); font-size: clamp(1.4rem, 3vw, 2rem); }
.pet-switch-card span { font-weight: 600; opacity: .85; }
.psc-go { width: 56px; height: 56px; flex: none !important; display: grid !important; place-items: center; border-radius: 50%; background: var(--brown-deep); color: #fff; opacity: 1 !important; }
.psc-go svg { width: 22px; height: 22px; }

/* ---------- product page: gallery + options ---------- */
.pd-left { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--header-h) + 30px); }
.pd-left .pd-stage { position: relative; top: auto; }
.pd-thumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pd-thumb { width: 74px; height: 74px; border-radius: 18px; overflow: hidden; border: 3px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; background: var(--white); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.on, .pd-thumb:hover { opacity: 1; border-color: var(--orange); }
.pd-save { padding: 4px 10px; border-radius: 999px; background: #D93B2B; color: #fff; font: 800 .82rem 'Nunito', sans-serif; }
.pd-opts { margin-top: 20px; }
.pd-opts-l { display: block; font-weight: 800; color: var(--brown); margin-bottom: 8px; }
.pd-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-opt {
  display: grid; justify-items: center; gap: 0; min-width: 88px; padding: 10px 14px; border-radius: 16px; background: var(--white);
  box-shadow: inset 0 0 0 2px var(--line); color: var(--brown-deep); font-weight: 800; transition: box-shadow .2s, background-color .2s, translate .25s var(--ease);
}
.pd-opt small { font: 700 .76rem 'Nunito', 'Tajawal', sans-serif; color: var(--muted); }
.pd-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--orange-2); translate: 0 -2px; }
.pd-opt.on { background: var(--orange-soft); box-shadow: inset 0 0 0 2px var(--orange); }
.pd-opt.on small { color: var(--brown); }
.pd-opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pd-actions .btn:disabled { opacity: .5; cursor: not-allowed; }
.pd-wa { margin-top: 12px; max-width: 420px; }

/* ---------- checkout ---------- */
.co-head { padding: calc(var(--header-h) + 50px) 0 30px; background: var(--sand); border-radius: 0 0 clamp(32px, 5vw, 56px) clamp(32px, 5vw, 56px); }
.co-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; }
.co-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.co-steps li span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font: 800 .85rem 'Nunito', sans-serif; box-shadow: inset 0 0 0 2px var(--line); }
.co-steps li span svg { width: 16px; height: 16px; }
.co-steps li.done span { background: #1FAF54; color: #fff; box-shadow: none; }
.co-steps li.on span { background: var(--orange); color: var(--brown-deep); box-shadow: none; }
.co-steps li.on b, .co-steps li.done b { color: var(--brown-deep); }
.co-body { padding: 36px 0 20px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.co-form { display: grid; gap: 18px; }
.co-card { padding: clamp(20px, 3vw, 28px); border-radius: 28px; background: var(--white); box-shadow: var(--shadow-sm); }
.co-card h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; color: var(--brown-deep); margin-bottom: 18px; }
.co-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); color: var(--brown-deep); font: 800 1rem 'Nunito', sans-serif; flex: none; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-f { display: grid; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--brown); min-width: 0; }
.co-f.full { grid-column: 1 / -1; }
.co-f input, .co-f select, .co-f textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; 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, box-shadow .2s;
}
.co-f textarea { min-height: 96px; resize: vertical; }
.co-f input:focus, .co-f select:focus, .co-f textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 138, 7, .14); }
.co-f .bad { border-color: #D93B2B; background: #FFF6F4; }
.co-err { color: #B3261E; font-weight: 700; font-size: .8rem; min-height: 0; }
.co-err:empty { display: none; }
.co-hint { color: var(--muted); font-weight: 500; font-size: .8rem; }
.co-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.co-opt { position: relative; cursor: pointer; }
.co-opt input { position: absolute; opacity: 0; }
.co-opt > span {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  box-shadow: inset 0 0 0 2px var(--line); background: var(--cream); transition: box-shadow .2s, background-color .2s;
}
.co-opt svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--white); color: var(--orange); }
.co-opt b { color: var(--brown-deep); font-weight: 800; }
.co-opt small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.co-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--orange); background: #FFF4E3; }
.co-opt input:checked + span svg { background: var(--orange); color: var(--brown-deep); }
.co-opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.co-eta, .co-pickup { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #EAF8EF; color: #13803B; font-weight: 700; font-size: .9rem; }
.co-eta svg, .co-pickup svg { width: 22px; height: 22px; flex: none; }
.co-pickup { background: var(--sand); color: var(--brown); }
.co-transfer { margin-top: 6px; padding: 16px; border-radius: 18px; background: var(--sand); display: grid; gap: 12px; }
.co-tr-desc { color: var(--brown); font-weight: 600; }
.co-tr-acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1.5px dashed #F3C98F; }
.co-tr-acc span { display: grid; }
.co-tr-acc small { color: var(--muted); font-weight: 700; font-size: .76rem; }
.co-tr-acc b { font: 800 1.15rem 'Nunito', sans-serif; color: var(--brown-deep); letter-spacing: .03em; }
.co-tr-acc em { font-style: normal; color: var(--muted); font-size: .85rem; }
.co-copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--orange-soft); color: var(--brown); font-weight: 800; font-size: .85rem; flex: none; }
.co-copy svg { width: 16px; height: 16px; }
.co-sum { position: sticky; top: calc(var(--header-h) + 24px); }
.co-sum-card { padding: 22px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); display: grid; gap: 14px; }
.co-sum-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--brown-deep); }
.co-sum-card h2 svg { width: 24px; height: 24px; color: var(--orange); }
.co-lines { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; padding-inline-end: 4px; }
.co-line { display: flex; align-items: center; gap: 12px; }
.col-img { position: relative; flex: none; }
.col-img img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.col-img b { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brown); color: #fff; font: 800 .72rem/22px 'Nunito', sans-serif; text-align: center; }
.col-txt { flex: 1; display: grid; min-width: 0; line-height: 1.35; }
.col-txt b { font-size: .95rem; color: var(--brown-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-txt small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.col-price { font: 800 .92rem 'Nunito', 'Tajawal', sans-serif; color: var(--brown-deep); white-space: nowrap; }
.co-edit { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 800; font-size: .85rem; padding: 4px 0; }
.co-edit svg { width: 16px; height: 16px; }
.co-coupon-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--cream); border: 1.5px dashed #F3C98F; }
[dir="rtl"] .co-coupon-row { padding: 6px 14px 6px 6px; }
.co-coupon-row svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.co-coupon-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 1rem 'Nunito', sans-serif; text-transform: uppercase; color: var(--ink); }
.co-coupon-row .btn { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.co-ok { display: block; margin-top: 6px; color: #13803B; font-weight: 700; font-size: .82rem; }
.co-totals { margin: 0; display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.co-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.co-totals dt { color: var(--muted); font-weight: 700; }
.co-totals dd { margin: 0; font: 800 1rem 'Nunito', 'Tajawal', sans-serif; color: var(--brown-deep); }
.co-totals dd.muted { color: var(--muted); font-size: .85rem; font-weight: 700; }
.co-disc dd, .co-disc dt { color: #13803B !important; }
.co-disc em { font-style: normal; font-size: .76rem; padding: 1px 6px; border-radius: 6px; background: #EAF8EF; }
.co-total { padding-top: 10px; border-top: 1.5px solid var(--line); }
.co-total dt { color: var(--brown-deep) !important; font-family: var(--head); font-size: 1.15rem; }
.co-total dd { font-size: 1.4rem !important; }
.co-form-err { padding: 10px 14px; border-radius: 14px; background: #FDECEC; color: #B3261E; font-weight: 700; font-size: .88rem; }
.co-place:disabled { opacity: .6; cursor: not-allowed; }
.co-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.co-trust li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .86rem; }
.co-trust svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- order page ---------- */
.ord-sec { padding: calc(var(--header-h) + 40px) 0 20px; }
.ord-loading { display: grid; justify-items: center; gap: 10px; padding: 80px 0; color: var(--muted); }
.ord-loading .de-ico { animation: hop 1s var(--ease) infinite; }
.ord-head {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 26px; border-radius: 32px;
  background: linear-gradient(120deg, #FFB347, var(--orange)); color: var(--brown-deep); box-shadow: 0 26px 50px -26px rgba(245, 138, 7, .8); overflow: hidden;
}
.ord-head:not(.is-new) { background: var(--white); box-shadow: var(--shadow-sm); }
.ord-badge { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--brown-deep); color: #fff; }
.ord-head.is-new .ord-badge { background: #1FAF54; animation: pop .6s var(--ease) both .2s; }
.ord-badge svg { width: 32px; height: 32px; }
@keyframes pop { from { scale: .3; rotate: -20deg; opacity: 0; } }
.ord-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.ord-head p { margin-top: 4px; font-weight: 600; opacity: .85; }
.ord-code { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 6px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .75); }
[dir="rtl"] .ord-code { padding: 10px 16px 10px 10px; }
.ord-code small { grid-column: 1; font-weight: 700; font-size: .76rem; opacity: .75; }
.ord-code b { grid-column: 1; font: 800 1.2rem 'Nunito', sans-serif; letter-spacing: .03em; }
.ord-code .icon-btn { grid-row: 1 / 3; grid-column: 2; }
.ord-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 20px; align-items: start; }
.ord-main, .ord-side { display: grid; gap: 16px; }
.ord-card { padding: 22px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-sm); }
.ord-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; color: var(--brown-deep); margin-bottom: 16px; }
.ord-card h2 svg { width: 22px; height: 22px; color: var(--orange); }
.ord-card h2 small { margin-inline-start: auto; font: 700 .85rem 'Nunito', 'Tajawal', sans-serif; color: var(--muted); }
.ord-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.ord-flow::before { content: ''; position: absolute; top: 18px; inset-inline: 10%; border-top: 3px dotted var(--line); }
.ord-flow li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; color: var(--muted); }
.of-dot { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--line); z-index: 1; }
.of-dot svg { width: 18px; height: 18px; }
.ord-flow li.done .of-dot { background: #1FAF54; color: #fff; box-shadow: none; }
.ord-flow li.now .of-dot { background: var(--orange); color: var(--brown-deep); box-shadow: 0 0 0 6px rgba(245, 138, 7, .2); animation: nowpulse 2s ease-in-out infinite; }
@keyframes nowpulse { 50% { box-shadow: 0 0 0 10px rgba(245, 138, 7, .08); } }
.ord-flow b { font-size: .85rem; line-height: 1.3; }
.ord-flow li.done b, .ord-flow li.now b { color: var(--brown-deep); }
.ord-flow small { font-size: .74rem; font-weight: 700; }
.ord-cancel { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: #FDECEC; color: #B3261E; font-weight: 800; }
.ord-cancel svg { width: 20px; height: 20px; }
.ord-lines { display: grid; gap: 12px; margin-bottom: 16px; }
.ord-addr { display: grid; gap: 4px; color: var(--muted); }
.ord-addr b { color: var(--brown-deep); }
.ord-addr span[dir="ltr"] { text-align: start; }
.ord-pay { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ord-pay b { color: var(--brown-deep); }
.pay-badge { padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; background: var(--sand); color: var(--brown); }
.pay-badge.paid { background: #E3F6EE; color: #1A8A55; }
.pay-badge.review { background: #E4EFFB; color: #2563A8; }
.pay-badge.refunded { background: #F1EBE5; color: #8A7A6E; }
.ord-transfer { margin-top: 14px; display: grid; gap: 10px; font-size: .9rem; color: var(--brown); font-weight: 600; }
.ord-date { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; }
.ord-side .btn { margin: 0; }
.paw-confetti { position: fixed; top: -30px; z-index: 95; pointer-events: none; animation: fall 2.8s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); opacity: .2; } }

/* ---------- track ---------- */
.track-sec { padding-top: 40px; }
.track-card { width: min(520px, 100%); margin-inline: auto; padding: 30px; border-radius: 32px; background: var(--white); box-shadow: var(--shadow); display: grid; gap: 16px; }
.track-ico { justify-self: center; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--orange); color: var(--brown-deep); }
.track-ico svg { width: 36px; height: 36px; }
.track-help { text-align: center; color: var(--muted); font-size: .9rem; }
.track-help a { color: #13803B; font-weight: 800; }
.track-recent { width: min(520px, 100%); margin: 20px auto 0; padding: 20px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; gap: 8px; }
.track-recent h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--brown-deep); margin-bottom: 4px; }
.track-recent h3 svg { width: 20px; height: 20px; color: var(--orange); }
.track-recent a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--cream); transition: background-color .2s; }
.track-recent a:hover { background: var(--orange-soft); }
.track-recent a b { font-family: 'Nunito', sans-serif; color: var(--brown-deep); }
.track-recent a span { margin-inline-start: auto; color: var(--muted); font-weight: 700; font-size: .88rem; }
.track-recent a svg { width: 16px; height: 16px; color: var(--orange); }

/* ---------- WhatsApp popup in the site style ---------- */
.wa-float { background: linear-gradient(135deg, var(--orange-2), var(--orange) 60%, #E97A00); box-shadow: 0 14px 30px -10px rgba(245, 138, 7, .8), inset 0 1px 0 rgba(255, 255, 255, .35); color: var(--brown-deep); }
.wa-float::before { animation-name: waring2; }
@keyframes waring2 { 0% { box-shadow: 0 0 0 0 rgba(245, 138, 7, .45); } 75%, 100% { box-shadow: 0 0 0 16px rgba(245, 138, 7, 0); } }
.wa-ico { background: #fff; color: #1FAF54; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .25); }
.wa-dot { background: var(--brown-deep); color: var(--orange-2); }
.wa-tip {
  width: min(310px, calc(100vw - 44px)); padding: 0; display: block; border-radius: 26px; overflow: visible;
  background: var(--cream); border: 2px solid var(--orange-soft); box-shadow: 0 26px 50px -18px rgba(74, 32, 6, .45);
}
[dir="rtl"] .wa-tip { padding: 0; }
.wa-tip::after { background: var(--cream); border-inline-end: 2px solid var(--orange-soft); border-bottom: 2px solid var(--orange-soft); bottom: -9px; }
[dir="ltr"] .wa-tip::after { border-inline-end: 0; border-inline-start: 2px solid var(--orange-soft); }
.wa-tip-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-radius: 24px 24px 0 0; background: linear-gradient(120deg, var(--orange-2), var(--orange)); color: var(--brown-deep); }
.wa-tip-pets { display: flex; flex: none; }
.wa-tip-pets img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid #FFF6EA; }
.wa-tip-pets img + img { margin-inline-start: -14px; }
.wa-tip-top b { display: block; font-family: var(--head); font-size: 1.02rem; line-height: 1.25; }
.wa-tip-top small { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .76rem; opacity: .85; }
.wa-tip-top small i { width: 7px; height: 7px; border-radius: 50%; background: #1FAF54; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.wa-tip > p { padding: 14px 16px 4px; color: var(--brown); font-size: .92rem; line-height: 1.65; font-weight: 600; }
.wa-tip-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 14px 14px; min-height: 44px; border-radius: 999px;
  background: #1FAF54; color: #fff; font-family: var(--head); font-weight: 700; transition: background-color .2s, translate .25s var(--ease);
}
.wa-tip-go svg { width: 18px; height: 18px; }
.wa-tip-go:hover { background: #189947; translate: 0 -2px; }
.wa-tip-x { top: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(255, 255, 255, .55); color: var(--brown-deep); width: 28px; height: 28px; }
.wa-tip-x:hover { background: #fff; color: var(--brown-deep); }
.wa-tip-paws { position: absolute; top: -26px; inset-inline-start: 18px; display: flex; gap: 6px; color: var(--orange); pointer-events: none; }
.wa-tip-paws svg { width: 16px; height: 16px; opacity: 0; }
.wa-tip.show .wa-tip-paws svg { animation: tippaw .5s var(--ease) forwards; }
.wa-tip.show .wa-tip-paws svg:nth-child(1) { animation-delay: .25s; rotate: -20deg; }
.wa-tip.show .wa-tip-paws svg:nth-child(2) { animation-delay: .4s; translate: 0 -8px; }
.wa-tip.show .wa-tip-paws svg:nth-child(3) { animation-delay: .55s; rotate: 20deg; }
@keyframes tippaw { from { opacity: 0; scale: .3; } to { opacity: .9; scale: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  .nav-dd { flex-wrap: wrap; width: 100%; }
  .nav-dd-btn { flex: 1; }
  .nav-chev { display: none; }
  .nav-dd-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--brown); }
  .nav-dd-toggle svg { width: 18px; height: 18px; transition: rotate .3s var(--ease); }
  .nav-dd.open .nav-dd-toggle svg { rotate: 180deg; }
  .mega { position: static; translate: none !important; width: 100%; display: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-dd.open .mega { display: block; }
  .mega-in { grid-template-columns: 1fr; padding: 8px 4px; box-shadow: none; border: 0; border-radius: 0; background: transparent; }
  .mega-promo { display: none !important; }
  .mega-cols { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
  .cat-grid:has(.main-cat) { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side {
    position: fixed; z-index: 75; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); max-height: none; border-radius: 0;
    transform: translateX(100%); transition: transform .4s var(--ease); align-content: start;
  }
  [dir="ltr"] .shop-side { transform: translateX(-100%); }
  .shop-side.open { transform: none !important; }
  .side-x { display: grid; }
  .filter-btn { display: inline-flex; }
  .pet-hero-grid { grid-template-columns: 1fr; }
  .pet-hero-visual { width: min(100%, 380px); }
  .pet-tip-grid { grid-template-columns: 1fr; }
  .pd-left { position: relative; top: 0; }
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; }
  .ord-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid:has(.main-cat) { grid-template-columns: 1fr; }
  .mc-subs a { font-size: .78rem; padding: 4px 10px; }
  .shop-bar .shop-search { order: 2; flex-basis: 100%; }
  .filter-btn { order: 1; flex: 1; min-height: 50px; }
  .shop-bar .shop-sort { order: 1; flex: 1; width: auto; }
  .shop .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .pet-float.f1 { inset-inline-start: -2%; }
  .pet-float.f2 { inset-inline-end: -2%; }
  .pet-ctas .btn { flex: 1 1 100%; }
  .pet-cat-grid { grid-template-columns: 1fr; }
  .pet-switch-card img { width: 76px; height: 76px; border-radius: 18px; }
  .psc-go { width: 44px; height: 44px; }
  .pd-opt { min-width: 74px; padding: 8px 10px; }
  .co-fields { grid-template-columns: 1fr; }
  .co-options { grid-template-columns: 1fr; }
  .co-steps { gap: 6px 12px; }
  .co-steps li b { font-size: .8rem; }
  .ord-head { grid-template-columns: auto 1fr; padding: 20px; }
  .ord-code { grid-column: 1 / -1; }
  .ord-flow { grid-template-columns: 1fr; gap: 14px; }
  .ord-flow::before { top: 10px; bottom: 10px; inset-inline: auto; inset-inline-start: 18px; border-top: 0; border-inline-start: 3px dotted var(--line); }
  .ord-flow li { grid-template-columns: auto 1fr auto; justify-items: start; text-align: start; align-items: center; gap: 12px; }
  .mega-cols { grid-template-columns: 1fr; }
}
.ord-date { margin-top: 6px; }
.ord-side .btn + .btn { margin-top: 0; }
/* category worlds: cats and dogs have their own trees */
.ct-world { display: flex; align-items: center; gap: 8px; margin: 12px 4px 4px; font-size: .78rem; font-weight: 800; color: var(--orange-2, #C96A00); letter-spacing: .02em; }
.ct-world:first-of-type { margin-top: 8px; }
.ct-world svg { width: 18px; height: 18px; }
.mc-pet { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .8rem; color: var(--brown-deep); }
.mc-pet svg { width: 16px; height: 16px; color: var(--orange); }
