/* Home top: offers & discounts slider, then the cat and dog worlds side by side. Header social links. */

/* ---------- offers slider ---------- */
.promo { padding: calc(var(--header-h) + 26px) 0 0; }
.promo[hidden] { display: none !important; }
/* the 1px clip hides the neighbouring slide's edge that sub-pixel widths can leave visible */
.promo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; clip-path: inset(0 1px round var(--r-lg)); box-shadow: 0 30px 60px -30px rgba(74, 32, 6, .45); isolation: isolate; outline: none; }
.promo-track { display: flex; transition: transform .8s var(--ease); will-change: transform; }

.promo-slide {
  flex: 0 0 100%; min-height: clamp(420px, 36vw, 540px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: clamp(16px, 3vw, 48px); padding: clamp(22px, 2.4vw, 34px) clamp(28px, 5vw, 76px) clamp(30px, 3vw, 44px); position: relative; overflow: hidden;
  --t: var(--brown-deep); --s: rgba(46, 20, 5, .74); --k: var(--brown); --cta-bg: var(--brown-deep); --cta-fg: #fff;
  --blob: rgba(255, 255, 255, .3); --dot: rgba(255, 255, 255, .6); --st-bg: var(--brown-deep); --st-fg: #FFC069;
  background: var(--bg);
}
.promo-slide.theme-orange { --bg: radial-gradient(700px 480px at 12% 0%, rgba(255, 236, 200, .5), transparent 60%), linear-gradient(118deg, #FFB547 0%, #F7930F 55%, #EE7D00 100%); }
.promo-slide.theme-brown {
  --bg: radial-gradient(700px 480px at 12% 0%, rgba(245, 138, 7, .28), transparent 60%), linear-gradient(118deg, #3B1603 0%, #6E2806 55%, #8A3307 100%);
  --t: #FFF6EA; --s: rgba(255, 236, 210, .8); --k: #FFB547; --cta-bg: var(--orange); --cta-fg: var(--brown-deep);
  --blob: rgba(245, 138, 7, .3); --dot: rgba(255, 181, 71, .45); --st-bg: var(--orange); --st-fg: var(--brown-deep);
}
.promo-slide.theme-cream {
  --bg: radial-gradient(700px 480px at 12% 0%, #fff, transparent 60%), linear-gradient(118deg, #FFF7EC 0%, #FFE9C9 60%, #FFD9A3 100%);
  --cta-bg: var(--orange); --cta-fg: var(--brown-deep); --blob: rgba(245, 138, 7, .2); --dot: rgba(245, 138, 7, .38); --st-bg: var(--brown); --st-fg: #fff;
}
.promo-slide.theme-green {
  --bg: radial-gradient(700px 480px at 12% 0%, rgba(255, 255, 255, .6), transparent 60%), linear-gradient(118deg, #EEF7E6 0%, #CFE8B8 60%, #AED68E 100%);
  --k: #2F6B1B; --cta-bg: #2F6B1B; --blob: rgba(255, 255, 255, .5); --dot: rgba(47, 107, 27, .3); --st-bg: #2F6B1B; --st-fg: #fff;
}
/* a soft giant paw in the background corner */
.promo-slide::before {
  content: ''; position: absolute; width: 420px; height: 420px; inset-inline-start: -120px; bottom: -170px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); pointer-events: none;
}

/* copy */
.ps-copy { position: relative; z-index: 2; color: var(--t); }
.ps-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: .95rem; color: var(--k); letter-spacing: .01em; }
.ps-kicker svg { width: 20px; height: 20px; }
.ps-title { margin: 12px 0 14px; font-family: 'Baloo Bhaijaan 2', sans-serif; font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.12; color: var(--t); text-wrap: balance; }
.ps-sub { margin: 0 0 28px; max-width: 32em; font-size: clamp(1rem, 1.25vw, 1.16rem); color: var(--s); line-height: 1.75; }
.ps-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.ps-cta { --bg: var(--cta-bg); --fg: var(--cta-fg); box-shadow: 0 16px 30px -14px rgba(46, 20, 5, .75); }
.ps-cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
.ps-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--t); opacity: .85; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: opacity .2s, border-color .2s; }
.ps-more:hover { opacity: 1; border-color: currentColor; }
.ps-more svg { width: 18px; height: 18px; }

/* picture side: arch photo on a slowly morphing blob, dotted pattern, sale sticker and two floating info chips */
/* desktop: the picture column spans the banner's full height and the arch photo rises from the bottom edge,
   so the photo can be large without making the banner taller */
.ps-visual {
  position: relative; z-index: 1; justify-self: center; align-self: stretch; width: min(560px, 100%); display: block;
  margin-block: calc(-1 * clamp(22px, 2.4vw, 34px)) calc(-1 * clamp(30px, 3vw, 44px));
}
.ps-blob { position: absolute; inset: 12% 0 -6% 4%; background: var(--blob); border-radius: 58% 42% 50% 50% / 52% 46% 54% 48%; animation: psMorph 14s ease-in-out infinite alternate; }
.ps-dots { position: absolute; top: 0; inset-inline-end: 2%; width: 150px; height: 150px; background-image: radial-gradient(var(--dot) 2.2px, transparent 2.6px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.ps-photo {
  position: absolute; width: 86%; inset-inline-start: 7%; top: 6%; bottom: 0; border-radius: 999px 999px 0 0; overflow: hidden; border-bottom: 0 !important;
  border: 8px solid #fff; background: #fff; box-shadow: 0 36px 60px -28px rgba(46, 20, 5, .65); rotate: 0deg; display: grid; place-items: center;
}
.ps-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-noimg { width: 40%; height: 40%; color: var(--orange); }
.ps-sticker {
  position: absolute; top: 3%; inset-inline-end: 6%; z-index: 3; width: clamp(96px, 9vw, 124px); aspect-ratio: 1; display: grid; place-items: center; padding: 14px;
  background: var(--st-bg); color: var(--st-fg); text-align: center; rotate: 12deg; filter: drop-shadow(0 12px 18px rgba(46, 20, 5, .35));
  clip-path: polygon(50.0% 0.0%, 55.8% 5.9%, 62.9% 1.7%, 67.0% 8.9%, 75.0% 6.7%, 77.1% 14.7%, 85.4% 14.6%, 85.3% 22.9%, 93.3% 25.0%, 91.1% 33.0%, 98.3% 37.1%, 94.1% 44.2%, 100.0% 50.0%, 94.1% 55.8%, 98.3% 62.9%, 91.1% 67.0%, 93.3% 75.0%, 85.3% 77.1%, 85.4% 85.4%, 77.1% 85.3%, 75.0% 93.3%, 67.0% 91.1%, 62.9% 98.3%, 55.8% 94.1%, 50.0% 100.0%, 44.2% 94.1%, 37.1% 98.3%, 33.0% 91.1%, 25.0% 93.3%, 22.9% 85.3%, 14.6% 85.4%, 14.7% 77.1%, 6.7% 75.0%, 8.9% 67.0%, 1.7% 62.9%, 5.9% 55.8%, 0.0% 50.0%, 5.9% 44.2%, 1.7% 37.1%, 8.9% 33.0%, 6.7% 25.0%, 14.7% 22.9%, 14.6% 14.6%, 22.9% 14.7%, 25.0% 6.7%, 33.0% 8.9%, 37.1% 1.7%, 44.2% 5.9%);
}
.ps-sticker b { font-family: 'Baloo Bhaijaan 2', sans-serif; font-weight: 800; font-size: clamp(.9rem, 1.15vw, 1.08rem); line-height: 1.15; }
.ps-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 12px; background: rgba(255, 255, 255, .96);
  color: var(--brown-deep); font-weight: 800; font-size: .72rem; white-space: nowrap; box-shadow: 0 12px 24px -14px rgba(46, 20, 5, .5); animation: psFloat 5s ease-in-out infinite;
}
.ps-chip svg { width: 24px; height: 24px; padding: 5px; border-radius: 8px; background: var(--orange-soft); color: var(--brown); }
.ps-chip.c1 { bottom: 9%; inset-inline-end: 2%; }
.ps-chip.c2 { top: 46%; inset-inline-start: 2%; animation-delay: -2.5s; }
.ps-paw { position: absolute; z-index: 2; color: var(--dot); width: 40px; height: 40px; }
.ps-paw.a { top: 34%; inset-inline-end: -2%; rotate: -24deg; }
.ps-paw.b { top: 18%; inset-inline-start: 4%; width: 28px; height: 28px; rotate: 20deg; }

/* entrance each time a slide becomes the current one */
.promo-slide.is-active .ps-copy > * { animation: psIn .75s var(--ease) both; }
.promo-slide.is-active .ps-copy > :nth-child(2) { animation-delay: .08s; }
.promo-slide.is-active .ps-copy > :nth-child(3) { animation-delay: .16s; }
.promo-slide.is-active .ps-copy > :nth-child(4) { animation-delay: .24s; }
.promo-slide.is-active .ps-photo img { animation: psZoom 7s ease-out both; }
.promo-slide.is-active .ps-sticker { animation: psPop .7s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes psIn { from { opacity: 0; transform: translateY(22px); } }
@keyframes psZoom { from { transform: scale(1.14); } }
@keyframes psPop { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
@keyframes psFloat { 50% { transform: translateY(-8px); } }
@keyframes psMorph { 50% { border-radius: 44% 56% 46% 54% / 56% 42% 58% 44%; } 100% { border-radius: 52% 48% 60% 40% / 44% 58% 42% 56%; } }

/* arrows */
.promo-nav {
  position: absolute; top: 50%; z-index: 4; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .94); color: var(--brown-deep); box-shadow: 0 10px 22px -10px rgba(46, 20, 5, .45); transition: transform .25s var(--ease), background-color .2s;
}
.promo-nav:hover { background: #fff; transform: scale(1.08); }
.promo-nav svg { width: 22px; height: 22px; }
.promo-nav.prev { inset-inline-start: 14px; }
.promo-nav.next { inset-inline-end: 14px; }
/* the chevron points down; turn it toward the reading direction */
[dir="rtl"] .promo-nav.prev svg { rotate: -90deg; }
[dir="rtl"] .promo-nav.next svg { rotate: 90deg; }
[dir="ltr"] .promo-nav.prev svg { rotate: 90deg; }
[dir="ltr"] .promo-nav.next svg { rotate: -90deg; }
.promo-nav[hidden] { display: none; }

/* dots: the current one fills up like a timer until the next offer */
.promo-dots { position: absolute; bottom: 18px; inset-inline: 0; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.promo-dots button { position: relative; width: 10px; height: 10px; padding: 0; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .62); box-shadow: 0 0 0 1px rgba(46, 20, 5, .12); transition: width .4s var(--ease); }
.promo-dots button.on { width: 40px; background: rgba(255, 255, 255, .5); }
.promo-dots button.on::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: right; animation: psTimer 6s linear both; }
[dir="ltr"] .promo-dots button.on::after { transform-origin: left; }
.is-paused .promo-dots button.on::after { animation-play-state: paused; }
@keyframes psTimer { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .ps-blob, .ps-chip, .promo-slide.is-active .ps-copy > *, .promo-slide.is-active .ps-photo img, .promo-slide.is-active .ps-sticker, .promo-dots button.on::after { animation: none; }
}

/* ---------- cat & dog worlds, side by side ---------- */
/* bottom room so the tilted marquee band below never covers the cards */
.worlds-row { padding: 22px 0 46px; }
.worlds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.world-card {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 22px; padding: 18px 22px 18px 18px;
  border-radius: var(--r-lg); background: #FFE6C7; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.world-card.dog { background: #FFF0C2; }
.world-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wc-media { display: block; aspect-ratio: 1; border-radius: 26px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 16px 30px -18px rgba(46, 20, 5, .6); }
.wc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.world-card:hover .wc-media img { transform: scale(1.06); }
.wc-body { min-width: 0; }
.wc-body h2 { margin: 0; font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.wc-body h2 a { display: inline-flex; align-items: center; gap: 10px; color: var(--brown-deep); }
.wc-body h2 svg { width: 28px; height: 28px; color: var(--orange); }
.world-card.dog h2 svg { color: #C98A00; }
.wc-desc { margin: 4px 0 12px; color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wc-subs a { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--brown); font-size: .82rem; font-weight: 700; transition: background-color .2s, color .2s; }
.wc-subs a:hover { background: var(--orange); color: var(--brown-deep); }
.wc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brown-deep); }
.wc-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.wc-go:hover svg { transform: translateX(-4px); }
[dir="ltr"] .wc-go:hover svg { transform: translateX(4px); }
.world-card > * { position: relative; z-index: 1; }
.world-card::after { content: ''; position: absolute; width: 150px; height: 150px; inset-inline-end: -40px; bottom: -50px; border-radius: 50%; background: rgba(255, 255, 255, .35); pointer-events: none; }

/* ---------- header social links ---------- */
.social-btn { display: none; }
.social-btn svg { width: 20px; height: 20px; }
.social-btn.fb { color: #1877F2; }
.social-btn.ig { color: #D62976; }
@media (min-width: 1240px) { .social-btn { display: inline-grid; } }
.nav-social { display: none; }

@media (max-width: 1100px) {
  .ps-chip.c2 { display: none; }
}
/* short laptop screens (e.g. 1366×768): a slimmer banner so the cat and dog cards stay on the first screen */
@media (min-width: 961px) and (max-height: 820px) {
  .promo { padding-top: calc(var(--header-h) + 16px); }
  .promo-slide { min-height: 400px; padding-block: 24px 40px; }
  .ps-visual { width: min(470px, 100%); }
  .ps-title { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 8px 0 10px; }
  .ps-sub { margin-bottom: 20px; }
  .worlds-row { padding-top: 16px; }
  .world-card { grid-template-columns: 120px minmax(0, 1fr); padding-block: 14px; }
}
@media (max-width: 960px) {
  .nav-social { display: grid; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-social a { display: flex; align-items: center; gap: 10px; }
  .nav-social svg { width: 20px; height: 20px; }
  .nav-social a:first-child svg { color: #1877F2; }
  .nav-social a:last-child svg { color: #D62976; }
  /* tablets: picture on top, text centred under it */
  .promo-slide { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 26px 50px; gap: 8px; min-height: 0; }
  .ps-visual { order: -1; width: min(330px, 70%); align-self: auto; aspect-ratio: 1 / .92; margin-block: 0; }
  .ps-blob { inset: 6% 4% 2% 8%; }
  .ps-photo { width: 74%; aspect-ratio: .86; inset-inline-start: 13%; top: 2%; bottom: auto; border-radius: 999px 999px 30px 30px; border-bottom: 8px solid #fff !important; rotate: -3deg; }
  .ps-paw.a { top: auto; bottom: 2%; inset-inline-end: auto; inset-inline-start: 26%; }
  .ps-actions { justify-content: center; }
  .ps-sub { margin-inline: auto; margin-bottom: 20px; }
  .ps-title { margin: 10px 0 8px; }
  .promo-nav { display: none; }
  .world-card { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .wc-desc { display: none; }
  .wc-subs a { white-space: nowrap; font-size: .76rem; padding: 4px 10px; }
}
@media (max-width: 760px) {
  .promo { padding-top: calc(var(--header-h) + 14px); }
  .promo-frame { border-radius: 24px; clip-path: inset(0 1px round 24px); }
  /* phones: text beside a small arch picture, so the cat and dog cards still show on the first screen */
  .promo-slide { grid-template-columns: minmax(0, 1fr) 146px; text-align: start; justify-items: start; align-items: center; padding: 20px 14px 36px 18px; gap: 10px; }
  .ps-visual { order: 0; width: 146px; aspect-ratio: .86; justify-self: center; }
  .ps-blob { inset: 4% 0 0 4%; }
  .ps-photo { width: 84%; inset-inline-start: 8%; top: 8%; border-width: 4px; border-bottom-width: 4px !important; border-radius: 999px 999px 20px 20px; rotate: -2deg; }
  .ps-sticker { width: 58px; top: 0; inset-inline-end: -4px; padding: 7px; }
  .ps-sticker b { font-size: .6rem; }
  .ps-kicker, .ps-dots, .ps-chip, .ps-paw, .ps-more { display: none; }
  .ps-title { margin: 0 0 6px; font-size: 1.3rem; }
  .ps-sub { margin: 0 0 12px; font-size: .84rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ps-actions { justify-content: flex-start; }
  .ps-cta { min-height: 42px; padding: 0 18px; font-size: .9rem; }
  .promo-dots { bottom: 12px; }
  .promo-dots button.on { width: 30px; }
  .worlds-row { padding: 12px 0 34px; }
  .worlds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .world-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; text-align: center; justify-items: center; border-radius: 22px; }
  .wc-media { width: 86px; border-radius: 20px; border-width: 4px; }
  .wc-body h2 { font-size: 1.12rem; }
  .wc-body h2 svg { width: 22px; height: 22px; }
  .wc-desc, .wc-subs { display: none; }
  .wc-go { font-size: .85rem; }
}

/* banner price (from the linked product) and the automatic discount sticker */
.ps-price { display: flex; align-items: baseline; gap: 12px; margin: -10px 0 24px; color: var(--t); }
.ps-price b { font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; }
.ps-price s { font-weight: 700; opacity: .6; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.ps-sticker.deal { gap: 0; align-content: center; }
.ps-sticker.deal b { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1; }
.ps-sticker.deal small { font-weight: 800; font-size: .66rem; line-height: 1.2; opacity: .95; }

/* product page: details list written in /admin */
.pd-details { margin: 18px 0 4px; padding: 16px 18px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.pd-details h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; color: var(--brown-deep); }
.pd-details h2 svg { width: 20px; height: 20px; color: var(--orange); }
.pd-details dl { margin: 0; display: grid; }
.pd-details dl > div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.pd-details dl > div:first-child { border-top: 0; }
.pd-details dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
.pd-details dd { margin: 0; color: var(--brown-deep); font-weight: 700; font-size: .92rem; }

/* shortcut back to the dashboard, only for a signed-in admin (opposite corner to WhatsApp) */
.admin-fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px;
  border-radius: 999px; background: var(--brown-deep); color: #fff; font-weight: 800; font-size: .86rem; box-shadow: 0 14px 30px -12px rgba(46, 20, 5, .6);
  transition: transform .25s var(--ease), background-color .2s;
}
.admin-fab:hover { transform: translateY(-2px); background: var(--brown); }
.admin-fab svg { width: 18px; height: 18px; color: var(--orange-2); }
@media (max-width: 760px) {
  .ps-price { margin: -4px 0 10px; }
  .ps-price b { font-size: 1.2rem; }
  .ps-sticker.deal b { font-size: .95rem; }
  .ps-sticker.deal small { display: none; }
  .admin-fab { bottom: 84px; inset-inline-end: 12px; padding: 9px 12px; }
  .admin-fab span { display: none; }
}

/* ---------- third pet world: birds (fresh green, like a budgie) ---------- */
.world-card.bird { background: #E6F4DA; }
.world-card.bird h2 svg { color: #4F9A2E; }
.pet-bird .prod-media { background: #E6F4DA; }
.pet-bird .prod-tag svg { background: #4F9A2E; }
.pd-stage.pet-bird .pd-blob { background: linear-gradient(140deg, #B8E08F, #6DB443); }
.mega-promo.pet-bird { background: #8CC665; }
.pet-hero.bird { background-color: #EEF7E6; }
.pet-hero.bird .pet-ring { background: #8CC665; }
/* three or more worlds: compact cards, up to four per row (more wrap to a new row) */
.worlds-grid[data-compact] { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.worlds-grid[data-compact] .world-card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px; }
.worlds-grid[data-compact] .wc-body h2 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.worlds-grid[data-compact] .wc-subs a { white-space: nowrap; font-size: .76rem; padding: 4px 10px; }
.worlds-grid[data-compact] .wc-desc { display: none; }
.worlds-grid[data-compact] .wc-body h2 { margin-bottom: 10px; }
/* breathing room between the world cards and the categories band */
.worlds-row { padding-bottom: clamp(48px, 6vw, 88px); }

/* pet portal: products · sections · shipping in one bar */
.pet-stats { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0; max-width: 100%; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); }
.pet-stats span { background: none; padding: 6px 14px; white-space: nowrap; border-radius: 0; }
.pet-stats span + span { border-inline-start: 1.5px solid var(--line); }

@media (max-width: 1100px) {
  .worlds-grid[data-compact] .world-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .worlds-grid[data-compact] .wc-media { width: 110px; }
  .worlds-grid[data-compact] .wc-desc { display: none; }
  .worlds-grid[data-compact] .wc-subs { justify-content: center; }
}
@media (max-width: 760px) {
  .worlds-grid[data-compact] { gap: 8px; grid-template-columns: repeat(min(var(--n, 3), 3), minmax(0, 1fr)); }
  .worlds-grid[data-compact] .world-card { padding: 10px 6px; gap: 6px; border-radius: 18px; }
  .worlds-grid[data-compact] .wc-media { width: 74px; border-radius: 16px; border-width: 3px; }
  .worlds-grid[data-compact] .wc-body h2 { font-size: .98rem; }
  .worlds-grid[data-compact] .wc-body h2 svg { width: 18px; height: 18px; }
  .worlds-grid[data-compact] .wc-body h2 a { gap: 5px; }
  .worlds-grid[data-compact] .wc-subs { display: none; }
  .worlds-grid[data-compact] .wc-go { font-size: .76rem; gap: 4px; }
  .pet-stats { display: inline-flex; padding: 4px; }
  .pet-stats span { padding: 6px 9px; font-size: .78rem; gap: 5px; }
  .pet-stats svg { width: 15px; height: 15px; }
}

/* header with three pet worlds: keep every menu label on one line (links inside the dropdowns may wrap) */
.nav a { white-space: nowrap; }
.nav .mega a { white-space: normal; }
@media (min-width: 961px) {
  .nav a { padding: 10px 10px; font-size: .95rem; }
  .header-actions .btn[data-wa] { padding-inline: 12px; }
  .header-actions .btn[data-wa] span { display: none; } /* icon only; the floating WhatsApp button stays */
}
@media (min-width: 961px) and (max-width: 1199px) {
  .brand-word { display: none; }
  .nav a { padding: 9px 8px; font-size: .9rem; }
  .nav-dd-btn { gap: 4px; }
}

/* banner price never breaks inside a number or its currency */
.ps-price b, .ps-price s { white-space: nowrap; }
@media (max-width: 760px) {
  .ps-price { flex-wrap: wrap; gap: 2px 8px; }
  .ps-price b { font-size: 1.05rem; }
  .ps-price s { font-size: .8rem; }
}

/* four or more worlds share one «الحيوانات» menu: a tile per world */
.mega-worlds .mega-in { display: block; }
.mw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.mw-tile { padding: 12px; border-radius: 18px; background: var(--cream); }
.mw-head { display: flex; align-items: center; gap: 12px; color: var(--brown-deep); }
.mw-head img { width: 56px; height: 56px; flex: none; border-radius: 16px; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.mw-head b { display: block; font-size: 1rem; }
.mw-head small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.mw-head:hover b { color: var(--orange); }
.mw-tile ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mw-tile li a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--brown); font-size: .78rem; font-weight: 700; }
.mw-tile li a:hover { background: var(--orange); color: var(--brown-deep); }
/* the shared menu is centred on the page (not under its button) so it never runs off the edge */
@media (min-width: 961px) {
  .nav-dd-all .mega { position: fixed; top: calc(var(--header-h) + 22px); left: 50%; right: auto; inset-inline-start: auto; width: min(980px, calc(100vw - 48px)); translate: -50% 8px; }
  [dir="ltr"] .nav-dd-all .mega, .nav-dd-all.open .mega, [dir="ltr"] .nav-dd-all.open .mega { translate: -50% 0; }
  .nav-dd-all:not(.open) .mega { translate: -50% 8px; }
}
@media (max-width: 960px) { .mw-grid { grid-template-columns: 1fr; } }

/* four or more worlds on the home page: stacked cards (picture on top) so names and chips fit */
.worlds-grid[data-many] .world-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.worlds-grid[data-many] .wc-media { width: 104px; }
.worlds-grid[data-many] .wc-subs { justify-content: center; }
.worlds-grid[data-many] .wc-body h2 a { justify-content: center; }

/* wholesale: traders' prices (only after /wholesale sign-in) */
.ws-chip { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--brown-deep); color: #fff; font-weight: 800; font-size: .82rem; white-space: nowrap; }
.ws-chip svg { width: 16px; height: 16px; color: var(--orange-2); }
.ws-chip:hover { background: var(--orange); }
.ws-chip:hover svg { color: #fff; }
.ws-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 10px; border-radius: 12px; background: var(--brown-deep); color: #fff; font-size: .8rem; font-weight: 700; }
.ws-line svg { width: 15px; height: 15px; flex: none; color: var(--orange-2); }
.ws-box { padding: 14px; border-radius: 20px; background: var(--sand); }
.ws-box .pd-opts-l { display: flex; align-items: center; gap: 6px; }
.ws-box .pd-opts-l svg { width: 18px; height: 18px; color: var(--orange); }
.ws-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.ws-unit { display: grid; gap: 2px; justify-items: center; padding: 10px 8px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line, #eadfd2); color: var(--brown); text-align: center; cursor: pointer; transition: box-shadow .2s, translate .2s; }
.ws-unit span { font-weight: 800; font-size: .86rem; }
.ws-unit b { font: 800 1rem 'Nunito', 'Tajawal', sans-serif; color: var(--brown-deep); white-space: nowrap; }
.ws-unit small { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ws-unit:hover { box-shadow: inset 0 0 0 2px var(--orange-2); translate: 0 -2px; }
.ws-unit.on { background: var(--orange-soft); box-shadow: inset 0 0 0 2px var(--orange); }
.ws-per { align-self: center; padding: 3px 10px; border-radius: 999px; background: var(--brown-deep); color: #fff; font-size: .78rem; font-weight: 800; }
.ws-tag { color: var(--orange) !important; font-weight: 800 !important; }
.line-info em.ws-tag { background: var(--brown-deep); color: #fff !important; }
.ws-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.ws-tabs button { padding: 10px 8px; border-radius: 999px; font-weight: 800; font-size: .86rem; color: var(--brown); }
.ws-tabs button.on { background: var(--white); box-shadow: var(--shadow-sm); color: var(--brown-deep); }
.ws-hint { margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }
.ws-done { text-align: center; justify-items: center; }
.ws-done h2 { font-family: var(--head, inherit); color: var(--brown-deep); font-size: 1.5rem; }
.ws-done p { color: var(--muted); }
.ws-done .btn { width: 100%; }
@media (max-width: 760px) {
  .ws-chip { height: 34px; padding: 0 9px; font-size: .74rem; }
  .ws-chip svg { display: none; }
  .ws-units { grid-template-columns: 1fr 1fr; }
}
