:root {
  --ink: #263238;
  --muted: #68757a;
  --yellow: #ffd64d;
  --gold: #f6a800;
  --sky: #bfefff;
  --teal: #2aa7a0;
  --coral: #ff8066;
  --blue: #4979e8;
  --cream: #fff9df;
  --white: #fffef8;
  --shadow: 0 18px 45px rgba(38, 50, 56, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 106px; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf1 0%, #e9fbff 44%, #fff8db 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 254, 248, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(38, 50, 56, .08);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; }
.logo-duck {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 62% 37%, #263238 0 4px, transparent 5px), radial-gradient(circle at 54% 58%, #ff8f2b 0 10px, transparent 11px), var(--yellow);
  box-shadow: inset -6px -8px 0 rgba(246,168,0,.45), 0 8px 15px rgba(246,168,0,.25);
}
.main-nav { justify-self: center; display: flex; gap: clamp(12px, 3vw, 34px); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.main-nav a { padding: 10px 4px; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-color: var(--gold); }
.toolbar-actions { display: flex; justify-content: end; align-items: center; gap: 10px; }
.search-box {
  width: 0; min-height: 42px; padding: 0; opacity: 0; pointer-events: none;
  border-radius: 999px; transition: width .24s ease, opacity .2s ease, padding .24s ease;
}
.toolbar-actions.search-open .search-box {
  width: min(220px, 32vw); padding: 10px 16px; opacity: 1; pointer-events: auto;
}
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: white; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(38,50,56,.18);
}
.cart-toggle { position: relative; }
#cartCount {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--coral); color: white; font-size: 12px; display: grid; place-items: center;
}
.side-panel {
  position: fixed; top: 82px; left: 16px; z-index: 10; display: grid; gap: 8px;
  transition: transform .24s ease, opacity .24s ease;
}
.side-panel.closed {
  transform: translateX(-82px);
  opacity: .35;
}
.side-panel a {
  width: 46px; height: 46px; overflow: hidden; white-space: nowrap; border-radius: 999px;
  background: white; box-shadow: var(--shadow); display: flex; align-items: center; padding-left: 16px; font-weight: 800; transition: width .25s ease;
}
.side-panel a:hover { width: 170px; }
.section { padding: clamp(56px, 8vw, 104px) clamp(20px, 7vw, 110px); }
.eyebrow { color: var(--teal); font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
h1, h2, h3 { margin: 0 0 18px; line-height: .95; letter-spacing: 0; }
h1 { font-size: clamp(52px, 10vw, 132px); }
h2 { font-size: clamp(34px, 5vw, 72px); }
h3 { font-size: 24px; }
p { color: var(--muted); line-height: 1.7; }
.hero {
  min-height: calc(100vh - 74px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 38px; align-items: center;
}
.seo-copy { max-width: 650px; font-size: 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 2px solid var(--ink); font-weight: 900; cursor: pointer;
}
.primary { background: var(--ink); color: white; }
.ghost { background: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  position: relative; min-height: 520px; border-radius: 44px;
  background: linear-gradient(#aeeaff 0 58%, #53b7c5 58% 66%, #78d370 66% 100%);
  overflow: hidden; box-shadow: var(--shadow);
}
.sun { position: absolute; width: 96px; height: 96px; border-radius: 50%; right: 52px; top: 48px; background: #fff172; box-shadow: 0 0 50px #fff172; }
.flying-duck, .pond-duck, .feature-image:before, .story-image:before, .bundle-art:before, .coin:before, .detail-art:before {
  content: ""; position: absolute; width: 150px; height: 112px; border-radius: 52% 48% 45% 55%;
  background: radial-gradient(circle at 68% 28%, #263238 0 5px, transparent 6px), radial-gradient(ellipse at 87% 48%, #ff8b2b 0 16px, transparent 17px), var(--yellow);
  box-shadow: inset -18px -18px 0 rgba(246,168,0,.35);
}
.flying-duck:after, .pond-duck:after, .feature-image:after, .story-image:after, .bundle-art:after, .coin:after, .detail-art:after {
  content: ""; position: absolute; width: 62px; height: 42px; left: 22px; top: 45px; border-radius: 50%;
  background: rgba(255,255,255,.34); transform: rotate(-18deg);
}
.duck-one { left: 58px; top: 150px; animation: bob 3.4s ease-in-out infinite; }
.duck-two { right: 62px; bottom: 112px; transform: scale(.82); animation: bob 4.2s ease-in-out infinite reverse; }
.sticker-burst {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-10deg);
  width: 150px; height: 150px; border-radius: 50%; background: white; display: grid; place-items: center; text-align: center;
  font-size: 44px; font-weight: 900; box-shadow: var(--shadow); color: var(--coral);
}
.sticker-burst span { display: block; font-size: 14px; color: var(--ink); text-transform: uppercase; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -22px; } }
.section-head { max-width: 760px; }
.model-scroll { display: flex; gap: 22px; overflow-x: auto; padding: 20px 4px 34px; scroll-snap-type: x mandatory; }
.model-card {
  flex: 0 0 260px; scroll-snap-align: start; background: var(--white); border: 1px solid rgba(38,50,56,.08);
  border-radius: 8px; padding: 22px; box-shadow: 0 12px 26px rgba(38,50,56,.09);
}
.coin, .detail-art {
  position: relative; width: 190px; height: 190px; margin: 0 auto 22px; border-radius: 50%;
  background: radial-gradient(circle at 38% 25%, #fff 0 9%, transparent 10%), linear-gradient(135deg, #fff7a7, #f8bd22);
  box-shadow: inset -14px -18px 0 rgba(38,50,56,.12), 0 18px 30px rgba(246,168,0,.28);
  animation: spinTilt 6s ease-in-out infinite;
}
.coin:before { left: 25px; top: 42px; transform: scale(.68); }
.coin.angry { background: linear-gradient(135deg, #ffd64d, #ff8066); }
.coin.sad { background: linear-gradient(135deg, #cce7ff, #4979e8); }
.coin.moody { background: linear-gradient(135deg, #e7ddff, #8a6ee8); }
.coin.party { background: linear-gradient(135deg, #ffeb8a, #2aa7a0); }
@keyframes spinTilt { 0%,100% { transform: rotateY(-15deg) rotateZ(-2deg); } 50% { transform: rotateY(18deg) rotateZ(2deg); } }
.feature, .story, .bundle, .about, .cart-checkout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 42px; align-items: center;
}
.feature.flip { grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr); }
.feature-image, .story-image, .bundle-art {
  position: relative; min-height: 360px; border-radius: 8px; background: linear-gradient(135deg, #f6fbff, #fff2ad); box-shadow: var(--shadow); overflow: hidden;
}
.feature-image:before, .story-image:before, .bundle-art:before { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.25); }
.water { background: radial-gradient(circle at 25% 20%, #fff 0 10%, transparent 11%), linear-gradient(160deg, #aeeaff, #2aa7a0); }
.vinyl { background: radial-gradient(circle at 75% 28%, #fff 0 9%, transparent 10%), linear-gradient(160deg, #fff7a7, #ff8066); }
.peel { background: linear-gradient(135deg, #fffef8 0 45%, #ffd64d 46% 70%, #4979e8 71%); }
.pond-scene { position: relative; min-height: 360px; border-radius: 8px; overflow: hidden; background: linear-gradient(#9be8ff 0 40%, #35aeca 40% 100%); box-shadow: var(--shadow); }
.waterline { position: absolute; inset: 44% 0 auto; height: 40px; background: repeating-radial-gradient(ellipse at center, rgba(255,255,255,.7) 0 3px, transparent 4px 28px); opacity: .55; }
.pond-duck { top: 170px; animation: swim 9s linear infinite; }
.duck-a { left: 10%; }
.duck-b { left: 58%; transform: scale(.7); animation-duration: 12s; animation-delay: -4s; }
@keyframes swim { 0% { translate: -40px 0; } 50% { translate: 45px -12px; } 100% { translate: -40px 0; } }
.lily { position: absolute; width: 90px; height: 42px; border-radius: 50%; background: #72d66b; bottom: 70px; }
.lily-one { left: 20%; } .lily-two { right: 18%; bottom: 120px; }
.story-image { background: linear-gradient(150deg, #fff2ad, #aeeaff); }
.bundle-art { min-height: 460px; background: radial-gradient(circle at 26% 28%, #fff 0 6%, transparent 7%), radial-gradient(circle at 70% 72%, #fff 0 8%, transparent 9%), linear-gradient(140deg, #ffd64d, #2aa7a0); }
.price { color: var(--coral); font-size: 34px; font-weight: 900; margin: 12px 0 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.chip { border: 0; border-radius: 999px; padding: 11px 18px; background: white; box-shadow: 0 8px 18px rgba(38,50,56,.1); cursor: pointer; font-weight: 900; }
.chip.active { background: var(--ink); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  border: 0; text-align: left; background: white; border-radius: 8px; padding: 18px; cursor: pointer; box-shadow: 0 12px 26px rgba(38,50,56,.09);
}
.product-card .coin { width: 138px; height: 138px; }
.product-card .coin:before { transform: scale(.5); left: 8px; top: 22px; }
.product-detail {
  margin-top: 30px; display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center;
  background: #fff; border-radius: 8px; padding: 28px; box-shadow: var(--shadow);
}
.detail-art:before { left: 62px; top: 66px; transform: scale(.85); }
details { background: white; border-radius: 8px; margin: 14px 0; box-shadow: 0 10px 24px rgba(38,50,56,.08); overflow: hidden; }
summary { padding: 22px; cursor: pointer; font-weight: 900; }
details p { margin: 0; padding: 0 22px 22px; animation: slideDown .25s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.contact-form, .checkout-panel, .cart-panel { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%; min-height: 48px; border: 1px solid rgba(38,50,56,.16); border-radius: 8px; padding: 12px 14px; background: white;
}
textarea { min-height: 116px; resize: vertical; }
.map-card {
  min-height: 380px; border-radius: 8px; display: grid; place-content: center; gap: 12px; text-align: center;
  background: linear-gradient(90deg, rgba(38,50,56,.06) 1px, transparent 1px), linear-gradient(rgba(38,50,56,.06) 1px, transparent 1px), #dff9ff;
  background-size: 42px 42px; box-shadow: var(--shadow);
}
.map-card strong { font-size: 34px; }
.cart-checkout { align-items: start; }
.cart-panel, .checkout-panel { background: white; border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
#cartItems { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.total { font-size: 24px; color: var(--ink); font-weight: 900; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 30px clamp(20px, 7vw, 110px); background: var(--ink); color: white; }
footer span { color: rgba(255,255,255,.74); }


@media (max-width: 960px) {
  .hero, .feature, .feature.flip, .story, .bundle, .about, .cart-checkout { grid-template-columns: 1fr; }
  .feature.flip .feature-image { order: 2; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .hero-art { min-height: 390px; border-radius: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 12px; }
  .brand span:last-child { display: none; }
  .toolbar-actions.search-open .search-box { width: 138px; }
  footer { display: grid; }
}

/* Mobile-first storefront polish */
body {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 214, 77, .55) 0 90px, transparent 92px),
    radial-gradient(circle at 92% 18%, rgba(255, 128, 102, .22) 0 120px, transparent 122px),
    radial-gradient(circle at 70% 86%, rgba(42, 167, 160, .22) 0 180px, transparent 182px),
    linear-gradient(180deg, #fff9cf 0%, #e7fbff 44%, #fff4bc 100%);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
}

.brand span:last-child {
  font-size: clamp(14px, 4vw, 18px);
  overflow-wrap: anywhere;
}

.main-nav {
  order: 3;
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 18px rgba(38, 50, 56, .08);
}

.toolbar-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.round {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

#cartCount,
#wishlistCount {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 12px;
  display: grid;
  place-items: center;
  border: 2px solid white;
}

.search-box {
  flex: 1 1 100%;
  order: 4;
}

.toolbar-actions.search-open {
  flex: 1 1 100%;
}

.toolbar-actions.search-open .search-box {
  width: 100%;
  min-width: 0;
}

.section {
  padding: clamp(34px, 9vw, 104px) clamp(16px, 5vw, 110px);
}

h1 {
  font-size: clamp(42px, 15vw, 118px);
}

h2 {
  font-size: clamp(30px, 10vw, 70px);
}

.hero {
  min-height: auto;
  grid-template-columns: 1fr;
  padding-top: 38px;
}

.hero-art,
.feature-image,
.story-image,
.bundle-art,
.pond-scene {
  border-radius: 18px;
}

/* Hero image */
.hero-art{
    min-height: auto;
    background: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero-image{
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    display: block;
}
.duck-crew {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.character-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 246, 169, .9));
  box-shadow: var(--shadow);
}

.character-card.captain {
  background: linear-gradient(135deg, #fff6a9, #aeeaff);
}

.character-card.artist {
  background: linear-gradient(135deg, #ffdede, #fff9df);
}

.character-card.mail {
  background: linear-gradient(135deg, #d8fff8, #fff0a7);
}

.mini-duck {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 108px;
  height: 82px;
  border-radius: 52% 48% 45% 55%;
  background: radial-gradient(circle at 68% 28%, #263238 0 4px, transparent 5px), radial-gradient(ellipse at 88% 48%, #ff8b2b 0 12px, transparent 13px), var(--yellow);
  box-shadow: inset -14px -14px 0 rgba(246,168,0,.35), 0 14px 22px rgba(38,50,56,.12);
  animation: bob 3.6s ease-in-out infinite;
}

.product-grid {
  grid-template-columns: 1fr;
}

.product-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(38, 50, 56, .08);
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 214, 77, .38) 0 48px, transparent 50px),
    white;
  transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(38, 50, 56, .18);
}

.product-card:hover .coin,
.product-card:focus-within .coin {
  animation: stickerPop .7s ease both;
}

@keyframes stickerPop {
  0% { transform: scale(1) rotateY(-15deg); }
  45% { transform: scale(1.12) rotateY(24deg) rotateZ(4deg); }
  100% { transform: scale(1.04) rotateY(0deg); }
}

.product-link {
  display: grid;
  gap: 8px;
}

.product-actions,
.product-actions.wide {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.heart-button {
  min-width: 48px;
  min-height: 48px;
  border: 2px solid rgba(38, 50, 56, .12);
  border-radius: 999px;
  background: #fff7f5;
  color: var(--coral);
  cursor: pointer;
  font-weight: 900;
}

.heart-button.saved,
.wishlist-product.saved {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}

.product-detail,
.cart-panel,
.checkout-panel,
.login-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(38, 50, 56, .08);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr 76px auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(38, 50, 56, .08);
}

.qty-input {
  min-height: 42px;
  text-align: center;
}

.remove-cart {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff0ec;
  color: var(--coral);
  font-weight: 900;
  cursor: pointer;
}

.payment-options,
.payment-fields,
.order-breakdown {
  display: grid;
  gap: 10px;
}

.payment-options label,
.order-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8d5;
}

.checkout-status,
.login-status,
.empty-state {
  color: var(--teal);
  font-weight: 800;
}

.login-page,
.product-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.product-page-art {
  min-height: 330px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff0a7, #aeeaff);
  box-shadow: var(--shadow);
}
@keyframes floatDuck {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0px);
  }
}

.duck-float {
  display: inline-block;
  animation: floatDuck 3s ease-in-out infinite;
  will-change: transform;
}.duck-float {
  display: inline-block;
  animation: floatDuck 3s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.25));
}

.duck-float::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60%;
  height: 18px;
  background: rgba(0,0,0,0.18);
  border-radius: 50%;
  filter: blur(6px);
  animation: shadowMove 3s ease-in-out infinite;
}

/* =========================
   1. POND SCENE BASE FIX
   ========================= */

.pond-scene {
    position: relative !important;
    display: block;
    overflow: hidden;

    background: #bfefff !important;  /* water fallback */
    box-shadow: none !important;
}

/* Optional water gradient layer */
.pond-scene::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background: linear-gradient(to bottom, #bfefff, #7fd3ff) !important;
}

/* =========================
   2. BACKGROUND DUCKS + LEAVES (FIX ALIGNMENT)
   ========================= */

.pond-scene .bg-duck,
.pond-scene .bg-leaf,
.pond-scene .background-duck,
.pond-scene .background-leaf {
    position: absolute !important;
    z-index: 1;

    /* IMPORTANT: keeps alignment stable */
    transform-origin: center;
    will-change: transform;

    pointer-events: none;
}

/* Keep background layer locked inside pond */
.pond-scene .decor-layer,
.pond-scene .bg-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

/* =========================
   3. SWIMMING DUCKS (FRONT LAYER)
   ========================= */

.pond-scene .pond-duck {
    position: absolute;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep ALL pond content above background */
.pond-scene > * {
    position: relative;
}

/* =========================
   4. REMOVE DECORATIVE NON-POND DUCKS
   ========================= */

.flying-duck,
.mini-duck,
.sticker-burst {
    display: none !important;
}

/* Remove decorative UI pseudo elements */
.hero-art::before,
.hero-art::after,
.feature-image::before,
.feature-image::after,
.story-image::before,
.story-image::after,
.bundle-art::before,
.bundle-art::after,
.coin::before,
.coin::after,
.detail-art::before,
.detail-art::after {
    content: none !important;
}

/* =========================
   5. CLEAN UI BACKGROUNDS
   ========================= */

.hero-art,
.feature-image,
.story-image,
.bundle-art,
.coin,
.detail-art {
    background: transparent !important;
    box-shadow: none !important;
}

/* =========================
   6. LOGO
   ========================= */

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;

}
.logo-img {
  width: 32px;   /* adjust this */
  height: 32px;
  object-fit: contain;
  display: block;
}
@keyframes shadowMove {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.25; }
  50% { transform: translateX(-50%) scale(0.7); opacity: 0.12; }
}

@media (min-width: 700px) {
  .topbar {
    padding: 14px clamp(20px, 4vw, 48px);
  }

  .main-nav {
    order: 0;
    flex: 1 1 auto;
    width: auto;
    justify-content: center;
  }

  .toolbar-actions.search-open {
    flex: 0 1 360px;
  }

  .hero,
  .feature,
  .feature.flip,
  .story,
  .bundle,
  .about,
  .cart-checkout,
  .login-page,
  .product-page {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
  }

  .duck-crew {
    grid-template-columns: 1.2fr .9fr .9fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    min-height: calc(100vh - 80px);
  }
}

@media (max-width: 480px) {
  .toolbar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .round {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .product-detail {
    padding: 18px;
  }
}

@media (max-width: 699px) {
  .topbar {
    display: grid;
    grid-template-columns: 40px 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    display: contents;
  }

  .brand .logo-duck {
    grid-column: 2;
    width: 40px;
    height: 40px;
  }

  .brand span:last-child {
    display: none;
  }

  .menu-button {
    grid-column: 1;
  }

  .toolbar-actions {
    grid-column: 4;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .round {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 15px;
  }

  #cartCount,
  #wishlistCount {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .main-nav {
    display: none;
  }

  .toolbar-actions.search-open {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .side-panel {
    display: grid;
    top: 64px;
    left: 10px;
    z-index: 30;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 254, 248, .96);
    box-shadow: var(--shadow);
    transform: translateX(-130%);
    opacity: 0;
    pointer-events: none;
  }

  .side-panel:not(.closed) {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .side-panel.closed {
    transform: translateX(-130%);
    opacity: 0;
  }

  .side-panel a {
    width: 170px;
    height: 42px;
    border-radius: 12px;
    padding-left: 14px;
  }
}

@media (max-width: 560px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr) minmax(118px, .82fr);
    gap: 14px;
    align-items: center;
  }

  .feature.flip {
    grid-template-columns: minmax(118px, .82fr) minmax(0, 1fr);
  }

  .feature.flip .feature-image {
    order: 0;
  }

  .feature h2 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1;
    margin-bottom: 10px;
  }

  .feature p {
    font-size: 14px;
    line-height: 1.55;
  }

  .feature .eyebrow {
    font-size: 12px;
  }

  .feature-image {
    min-height: 190px;
  }

  .feature-image:before {
    transform: translate(-50%, -50%) scale(.68);
  }
  /* ===== HARD FIX FOR MOBILE OVERFLOW ===== */

.duck-crew {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 10px;
  overflow-x: hidden;
}

.character-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

/* IMPORTANT: kills layout breaking float/absolute issues */
.duck-float {
  position: relative !important;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flock-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* MOBILE */
@media (max-width: 768px) {
  .character-card {
    max-width: 90%;
  }

  .duck-crew {
    flex-direction: column;
    align-items: center;
  }
}
.flock-image {
  width: 180px;   /* change this value if you want smaller/larger */
  height: auto;
  display: block;
  margin: 0 auto;
}

}
/* =========================
   FINAL FORCE LAYOUT FIX
   text wraps LEFT | image RIGHT
========================= */

.duck-crew {
  display: block !important;
}

/* each card becomes a clean flex row */
.character-card {
  display: flex !important;
  flex-wrap: wrap;              /* THIS allows text wrapping */
  align-items: center;
  justify-content: space-between;

  gap: 12px;
  max-width: 700px;
  margin: 0 auto 16px auto;

  padding: 18px;
  box-sizing: border-box;
}

/* TEXT BLOCK (forces wrapping properly) */
.character-card h2,
.character-card p {
  flex: 1 1 55%;
  min-width: 180px;
  text-align: left;
  margin: 0;
}

/* IMAGE BLOCK (RIGHT SIDE) */
.duck-float {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

/* IMAGE SIZE */
.flock-image {
  width: 200px !important;
  max-width: 40vw;
  height: auto;
  display: block;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .character-card {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .flock-image {
    width: 130px !important;
  }

  .character-card h2 {
    font-size: 18px;
    flex: 1 1 100%;
  }

  .character-card p {
    font-size: 14px;
    flex: 1 1 100%;
  }

  .duck-float {
    margin-left: auto;
  }
  
/* =========================
   MOBILE ONLY FIX
   text LEFT + image RIGHT
========================= */

@media (max-width: 768px) {

  .character-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 12px;
  }

  /* text stays left but wraps inside */
  .character-card h2,
  .character-card p {
    flex: 1 1 auto !important;
    min-width: 0;
    text-align: left;
  }

  /* image stays right */
  .duck-float {
    flex: 0 0 120px !important;
    margin-left: auto !important;
    display: flex;
    justify-content: flex-end;
  }

  .flock-image {
    width: 120px !important;
    max-width: 120px !important;
    height: auto;
  }

  /* prevent global grid overrides on mobile */
  .duck-crew {
    display: block !important;
  }
}
}