/*
Theme Name: Tinkytotss
Theme URI: https://tinkytotss.pk
Author: Tinkytotss
Author URI: https://tinkytotss.pk
Description: Custom WooCommerce-ready theme for Tinkytotss — cheerful essentials for babies and kids aged 0-8. Built from the site's original "scrapbook sticker" design system (cream/ink/papaya/bubblegum/sunshine/sky palette, Baloo 2 / Poppins / Fredoka type).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Requires Plugins: woocommerce
Text Domain: tinkytotss
*/

/* ======================================================
   All rules below are the SAME design system used on the
   static homepage demo — copied as-is so the two stay in
   sync. Only a small WooCommerce-specific override block
   has been appended at the very end of this file.
====================================================== */


  /* ===== Design tokens ===== */
  :root {
    --cream: #FFF8EF;
    --cream-deep: #FFEFE2;
    --ink: #2B2640;
    --ink-soft: rgba(43,38,64,.65);
    --ink-faint: rgba(43,38,64,.4);
    --ink-tint: #ECEAF5;
    --papaya: #FF7A45;
    --papaya-tint: #FFE3D6;
    --bubblegum: #FF6FA8;
    --bubblegum-tint: #FFE0EC;
    --sunshine: #FFC857;
    --sunshine-tint: #FFF3D6;
    --sky: #4FC4D9;
    --sky-tint: #DFF6FA;
    --white: #FFFFFF;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 12px 30px rgba(43,38,64,.08);
    --shadow-pop: 0 20px 44px rgba(43,38,64,.16);
    --section-pad: 88px;
    --container: 1240px;
    --font-display: 'Baloo 2', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-utility: 'Fredoka', sans-serif;
  }

  /* ===== Reset ===== */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  button { font-family: inherit; cursor: pointer; }
  .container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
  }
  :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

  /* ===== Shared — Buttons ===== */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-utility); font-weight: 600; font-size: .97rem;
    padding: 14px 28px; border-radius: 999px; border: 2px solid var(--ink);
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap; cursor: pointer;
  }
  .btn--primary { background: var(--papaya); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
  .btn--primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
  .btn--outline { background: transparent; color: var(--ink); }
  .btn--outline:hover { background: var(--white); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
  .btn--dark { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--papaya); }
  .btn--dark:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--papaya); }

  /* ===== Shared — Sticker eyebrow ===== */
  .sticker--eyebrow {
    display: inline-block; font-family: var(--font-utility); font-weight: 600; font-size: .82rem;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink);
    transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); margin-bottom: 16px;
  }
  .sticker--eyebrow.sticker--light {
    background: var(--ink); color: var(--cream); border-color: var(--cream);
    box-shadow: 3px 3px 0 var(--papaya);
  }

  /* ===== Shared — Section ===== */
  .section { padding: var(--section-pad) 0; }
  .section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 40px; flex-wrap: wrap;
  }
  .section-title {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,3.5vw,2.6rem);
    color: var(--ink); line-height: 1.15;
  }
  .link-arrow {
    font-family: var(--font-utility); font-weight: 600; text-decoration: none; color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px;
    padding-bottom: 3px; border-bottom: 2px solid var(--ink);
    transition: gap .2s ease, color .2s ease; flex-shrink: 0; font-size: .9rem;
  }
  .link-arrow:hover { gap: 12px; color: var(--papaya); }

  /* ===== Reveal animation ===== */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }

  /* ===== Top marquee bar ===== */
  .topbar { background: var(--ink); color: var(--cream); overflow: hidden; padding: 9px 0; }
  .topbar__track {
    display: flex; gap: 56px; white-space: nowrap; width: max-content;
    font-family: var(--font-utility); font-weight: 500; font-size: .8rem; letter-spacing: .02em;
    animation: marquee 32s linear infinite;
  }
  .topbar__track span { display: inline-flex; align-items: center; gap: 7px; }
  .topbar__track strong { color: var(--sunshine); }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ===== Header ===== */
  .site-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--cream); border-bottom: 3px solid var(--ink);
  }
  .header__inner {
    display: flex; align-items: center; gap: 20px; padding: 14px 24px; overflow: visible;
  }
  .logo {
    font-family: var(--font-display); font-weight: 800; font-size: 1.85rem;
    color: var(--ink); text-decoration: none; flex-shrink: 0; line-height: 1;
  }
  .logo__dot { color: var(--papaya); }
  .menu-toggle { display: none; }

  /* Desktop nav */
  .nav { flex: 1; }
  .nav__list { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
  .nav__item { position: relative; }
  .nav__link {
    display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: .92rem;
    text-decoration: none; color: var(--ink); padding: 10px 0; position: relative;
  }
  .nav__link::after {
    content: ''; position: absolute; left: 0; bottom: 4px; width: 0; height: 3px;
    background: var(--papaya); transition: width .2s ease; border-radius: 2px;
  }
  .nav__link:hover::after { width: 100%; }
  .nav__link--sale { color: var(--bubblegum); }
  .nav__link--sale::after { background: var(--bubblegum); }
  .nav__link i { font-size: .68rem; transition: transform .2s ease; }

  /* Dropdown */
  .dropdown {
    position: absolute; top: calc(100% + 8px); left: -14px; min-width: 200px;
    background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-sm);
    padding: 8px; box-shadow: var(--shadow-soft);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 50;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-dropdown:hover .nav__link i,
  .has-dropdown.is-open .nav__link i { transform: rotate(180deg); }
  .dropdown li a {
    display: block; padding: 8px 12px; border-radius: 8px;
    text-decoration: none; color: var(--ink); font-size: .88rem; transition: background .15s ease;
  }
  .dropdown li a:hover { background: var(--cream-deep); }

  /* Baby Girls subcategory group inside the Shop dropdown: collapsed by default, expands on click */
  .dropdown__sublist { display: none; }
  .dropdown__subgroup.open .dropdown__sublist { display: block; }
  .dropdown__subitem a { padding-left: 24px; }

  /* Header actions */
  .header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; overflow: visible; }
  .icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white);
    display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: .95rem;
    transition: background .2s ease, transform .2s ease; position: relative; flex-shrink: 0; cursor: pointer;
  }
  .icon-btn:hover { background: var(--sunshine-tint); transform: translateY(-2px); }
  .cart-count {
    position: absolute; top: -6px; right: -6px; background: var(--papaya); color: var(--white);
    font-family: var(--font-utility); font-size: .62rem; font-weight: 700;
    width: 19px; height: 19px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--cream); pointer-events: none;
  }
  .search { position: relative; display: flex; align-items: center; }
  .search__input {
    width: 0; opacity: 0; padding: 0; border: 2px solid var(--ink); border-radius: 999px; height: 40px;
    font-family: var(--font-body); font-size: .88rem; background: var(--white); color: var(--ink);
    position: absolute; right: 48px;
    transition: width .3s ease, opacity .3s ease, padding .3s ease;
  }
  .search.is-active .search__input { width: 220px; opacity: 1; padding: 0 16px; }
  .search__input::placeholder { color: var(--ink-faint); }

  /* ===== Hero ===== */
  .hero {
    padding: 60px 0 96px; background: var(--cream);
    position: relative; overflow-x: clip;
  }
  .hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
  .hero__content { animation: fadeUp .7s ease both; }
  .hero__title {
    font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,5vw,3.5rem);
    line-height: 1.12; margin: 6px 0 16px; color: var(--ink); min-height: 2.3em;
  }
  .hero__text { font-size: 1rem; color: var(--ink-soft); max-width: 480px; margin-bottom: 28px; min-height: 3.2em; }
  .hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
  .hero__dots { display: flex; gap: 10px; }
  .hero__dot {
    width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink);
    background: transparent; padding: 0; transition: background .2s ease; cursor: pointer;
  }
  .hero__dot.is-active { background: var(--papaya); }

  /* Hero visual */
  .hero__visual {
    position: relative; height: 520px; animation: fadeUp .8s ease .15s both;
    border-radius: var(--radius-lg); overflow: hidden;
  }
  .blob {
    position: absolute; inset: 0; background: var(--sunshine-tint); z-index: 0;
    border-radius: 48% 52% 45% 55% / 55% 45% 58% 42%;
    transform: scale(1.06) rotate(6deg);
  }
  .collage { position: relative; z-index: 1; height: 100%; }
  .collage__item {
    position: absolute; border-radius: var(--radius-md); border: 3px solid var(--white);
    box-shadow: 0 8px 24px rgba(43,38,64,.14); object-fit: cover;
  }
  .collage__item--1 { width: 56%; height: 82%; top: 2%; left: 8%; }
  .collage__item--2 { width: 42%; height: 44%; bottom: 2%; right: 0; }
  .collage__item--3 { width: 36%; height: 34%; top: 6%; right: 4%; transform: rotate(-6deg); }

  /* Floating stickers — desktop only, clipped inside visual */
  .sticker--float {
    position: absolute; font-family: var(--font-utility); font-weight: 600; font-size: .78rem;
    background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
    padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink); z-index: 10; white-space: nowrap;
  }
  .sticker--1 { top: 8%; left: 3%; transform: rotate(-6deg); }
  .sticker--2 { bottom: 22%; left: 3%; transform: rotate(4deg); background: var(--sunshine); }
  .sticker--3 { bottom: 6%; right: 4%; transform: rotate(-3deg); background: var(--bubblegum); color: var(--white); }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

  /* ===== Trust bar (below hero) ===== */
  .trust-bar {
    background: var(--white);
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    padding: 18px 0;
  }
  .trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .trust-bar__item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    transition: background .2s ease;
  }
  .trust-bar__item:hover { background: var(--cream-deep); }
  .trust-bar__emoji { font-size: 1.65rem; flex-shrink: 0; line-height: 1; }
  .trust-bar__info { display: flex; flex-direction: column; }
  .trust-bar__info strong {
    font-family: var(--font-utility); font-weight: 600; font-size: .88rem;
    color: var(--ink); line-height: 1.3;
  }
  .trust-bar__info span { font-size: .73rem; color: var(--ink-soft); }

  /* ===== Scallop divider ===== */
  .divider { position: relative; height: 44px; overflow: hidden; }
  .divider svg { display: block; width: 100%; height: 100%; }
  .divider path { fill: var(--cream-deep); }

  /* ===== Categories ===== */
  .categories { background: var(--cream-deep); padding-top: 48px; }
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
  }
  .cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    text-decoration: none; padding: 18px 12px 20px;
    background: var(--tile, var(--white));
    border: 2.5px solid var(--ink); border-radius: var(--radius-lg);
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .cat-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); }
  .cat-card img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius-md); border: 2.5px solid var(--ink);
  }
  .cat-card__label { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); }

  /* ===== Product grid ===== */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
  }

  /* ===== Product card (premium) ===== */
  .product-card {
    background: var(--white); border-radius: var(--radius-md);
    border: 2.5px solid var(--ink); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 3px 4px 0 var(--ink);
  }
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 5px 8px 0 var(--papaya), 0 18px 36px rgba(43,38,64,.12);
  }
  .product-card__media {
    position: relative; aspect-ratio: 4/4.5; overflow: hidden; background: var(--cream-deep);
  }
  .product-card__media img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
  }
  .product-card:hover .product-card__media img { transform: scale(1.05); }

  .badge {
    position: absolute; top: 12px; left: 12px;
    font-family: var(--font-utility); font-weight: 600; font-size: .7rem;
    letter-spacing: .03em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink);
    transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--ink);
    background: var(--white); z-index: 2;
  }
  .badge--new  { background: var(--sunshine); }
  .badge--best { background: var(--sky); }
  .badge--sale { background: var(--bubblegum); color: var(--white); }

  .product-card__body {
    padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1;
  }
  .product-card__title {
    font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
    color: var(--ink); line-height: 1.3;
  }
  .product-card__meta { font-size: .8rem; color: var(--ink-faint); }
  .stars { color: var(--sunshine); font-size: .78rem; display: flex; align-items: center; gap: 2px; }
  .stars__count { color: var(--ink-faint); margin-left: 4px; font-family: var(--font-body); font-size: .78rem; }
  .product-card__footer {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; gap: 10px;
  }
  .price--new   { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--papaya); flex: 1; min-width: 0; }
  .price-group  { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
  .price--old   { text-decoration: line-through; color: var(--ink-faint); font-size: .82rem; }
  .price--sale  { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--bubblegum); }
  .btn-add {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink);
    background: var(--ink); color: var(--cream); font-size: .88rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease, transform .25s ease;
  }
  .btn-add:hover { background: var(--papaya); border-color: var(--papaya); transform: scale(1.1) rotate(90deg); }

  /* ===== Promo banner ===== */
  .promo-banner { background: var(--sunshine); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
  .promo-banner__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: 48px 0; flex-wrap: wrap;
  }
  .promo-banner__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,3.2vw,2.2rem); margin-bottom: 8px; }
  .promo-banner__text { color: var(--ink-soft); max-width: 460px; font-size: .95rem; }

  /* ===== Sale section ===== */
  .sale__banner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    flex-wrap: wrap; margin-bottom: 40px;
  }
  .sale__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,3.5vw,2.5rem); max-width: 520px; }
  .countdown { display: flex; gap: 12px; }
  .countdown__item {
    background: var(--ink); color: var(--cream); border-radius: var(--radius-sm);
    padding: 11px 16px; text-align: center; min-width: 70px; box-shadow: 3px 3px 0 var(--bubblegum);
  }
  .countdown__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
  .countdown__label { display: block; font-family: var(--font-utility); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sunshine); }

  /* ===== Story / brand ===== */
  #story { background: var(--cream-deep); }
  .story__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .story__visual { position: relative; }
  .story__visual img {
    border-radius: var(--radius-lg); border: 3px solid var(--white);
    box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 5/5.2; object-fit: cover;
  }
  .sticker--story { position: absolute; bottom: 14px; right: 14px; transform: rotate(-4deg); z-index: 2; }
  .story__text { color: var(--ink-soft); margin: 16px 0 24px; max-width: 520px; font-size: .95rem; }
  .trust-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
  .trust-list li {
    display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .88rem;
    background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 9px 14px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .trust-list i { color: var(--papaya); flex-shrink: 0; }

  /* ===== Newsletter ===== */
  .newsletter { background: var(--ink); color: var(--cream); text-align: center; padding: var(--section-pad) 0; }
  .newsletter__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,4vw,2.7rem); margin-bottom: 12px; }
  .newsletter__text { color: rgba(255,248,239,.75); max-width: 460px; margin: 0 auto 28px; font-size: .95rem; }
  .newsletter__form {
    display: flex; gap: 12px; justify-content: center; max-width: 480px;
    margin: 0 auto; flex-wrap: wrap;
  }
  .newsletter__form input {
    flex: 1; min-width: 200px; padding: 13px 20px; border-radius: 999px; border: 2px solid var(--cream);
    background: transparent; color: var(--cream); font-family: var(--font-body); font-size: .92rem;
  }
  .newsletter__form input::placeholder { color: rgba(255,248,239,.5); }
  .newsletter__note { margin-top: 16px; font-size: .82rem; color: rgba(255,248,239,.6); transition: color .2s ease; }
  .newsletter__note.is-success { color: var(--sunshine); font-weight: 600; }

  /* ===== Footer ===== */
  .footer { background: var(--ink); color: var(--cream); padding-top: 60px; }
  .footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
    padding-bottom: 44px; border-bottom: 1px solid rgba(255,248,239,.15);
  }
  .footer__col h3 {
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    margin-bottom: 16px; color: var(--sunshine);
  }
  .footer__col p { color: rgba(255,248,239,.7); font-size: .88rem; margin: 12px 0 16px; max-width: 300px; }
  .footer__col ul li { margin-bottom: 10px; }
  .footer__col ul a { text-decoration: none; color: rgba(255,248,239,.8); font-size: .88rem; transition: color .2s ease; }
  .footer__col ul a:hover { color: var(--sunshine); }

  /* NEW: Baby Girls subcategory group inside footer Shop list, matching navbar dropdown treatment */
  .footer__label {
    font-family: var(--font-utility); font-weight: 600; font-size: .7rem;
    text-transform: uppercase; letter-spacing: .04em; color: rgba(255,248,239,.5);
    margin-bottom: 8px;
  }
  .footer__subitem a { padding-left: 14px; display: inline-block; }
  .logo--footer { font-size: 1.6rem; }
  .footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
  .footer__social a {
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,248,239,.3);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--cream); transition: background .2s ease, border-color .2s ease;
  }
  .footer__social a:hover { background: var(--papaya); border-color: var(--papaya); }
  .footer__contact li {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,248,239,.8); font-size: .88rem; margin-bottom: 10px;
  }
  .footer__contact i { color: var(--sunshine); margin-top: 3px; width: 14px; flex-shrink: 0; }

  .payment-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0;
    border-bottom: 1px solid rgba(255,248,239,.15); font-size: .85rem; color: rgba(255,248,239,.65);
  }
  .payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
  .payment-chip {
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,248,239,.25);
    border-radius: 8px; padding: 5px 12px; font-size: .82rem; font-weight: 600;
  }
  .footer__bottom-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    padding: 20px 0; font-size: .82rem; color: rgba(255,248,239,.55);
  }
  .footer__legal { display: flex; gap: 20px; }
  .footer__legal a { text-decoration: none; color: rgba(255,248,239,.55); transition: color .2s ease; }
  .footer__legal a:hover { color: var(--sunshine); }

  /* ===== Toast ===== */
  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,120%);
    background: var(--ink); color: var(--cream); font-family: var(--font-utility); font-weight: 600;
    padding: 12px 26px; border-radius: 999px; box-shadow: 4px 4px 0 var(--sunshine);
    border: 2px solid var(--sunshine); transition: transform .35s ease; z-index: 999;
    white-space: nowrap; max-width: calc(100vw - 32px); text-align: center;
  }
  .toast.is-visible { transform: translate(-50%,0); }

  /* ===== NEW FEATURE: prevents background scroll while cart drawer is open ===== */
  body.no-scroll { overflow: hidden; }

  /* ===== NEW FEATURE: Cart drawer ===== */
  .cart-overlay {
    position: fixed; inset: 0; background: rgba(43,38,64,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
    z-index: 300;
  }
  .cart-overlay.is-open { opacity: 1; visibility: visible; }

  .cart-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
    background: var(--white); border-left: 3px solid var(--ink);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .35s ease;
    z-index: 301;
  }
  .cart-drawer.is-open { transform: translateX(0); }

  .cart-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 16px; border-bottom: 2px solid var(--cream-deep); flex-shrink: 0;
  }
  .cart-drawer__header h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
  .cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; }
  .cart-drawer__footer {
    padding: 16px 20px 20px; border-top: 2px solid var(--cream-deep); flex-shrink: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .cart-drawer__subtotal {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px;
  }
  .cart-drawer__checkout, .cart-drawer__view-cart, .cart-page__checkout, .checkout__place-order { width: 100%; }

  /* Shared cart item row (used in both the drawer and the full cart page) */
  .cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-deep); }
  .cart-item:last-child { border-bottom: none; }
  .cart-item__img {
    width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm);
    border: 2px solid var(--ink); flex-shrink: 0;
  }
  .cart-item__info { flex: 1; min-width: 0; }
  .cart-item__name { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink); }
  .cart-item__price { font-size: .82rem; color: var(--ink-soft); margin: 2px 0 8px; }
  .cart-item__qty { display: flex; align-items: center; gap: 10px; }
  .qty-btn {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white);
    display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1;
    transition: background .2s ease;
  }
  .qty-btn:hover { background: var(--sunshine-tint); }
  .qty-num { font-family: var(--font-utility); font-weight: 600; font-size: .9rem; min-width: 16px; text-align: center; }
  .cart-item__remove {
    background: none; border: none; color: var(--ink-faint); font-size: .95rem; flex-shrink: 0;
    padding: 6px; transition: color .2s ease;
  }
  .cart-item__remove:hover { color: var(--bubblegum); }

  .cart-empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); }
  .cart-empty i { font-size: 2.2rem; color: var(--ink-faint); margin-bottom: 12px; }
  .cart-empty p { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
  .cart-empty span { font-size: .88rem; }

  /* ===== NEW FEATURE: Cart page & Checkout page views ===== */
  .page-view { background: var(--cream); }
  .page-view__inner { padding: var(--section-pad) 24px; }

  .cart-page { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
  .cart-page__items {
    background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-md);
    padding: 8px 20px; box-shadow: 3px 4px 0 var(--ink);
  }
  .cart-page__summary {
    background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-md);
    padding: 22px; box-shadow: 3px 4px 0 var(--ink); position: sticky; top: 100px;
  }
  .cart-page__summary h3, .checkout__summary h3, .checkout__fields h3 {
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 14px;
  }
  .cart-page__row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .92rem; padding: 8px 0; border-top: 1px solid var(--cream-deep);
  }
  .cart-page__row--total { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--papaya); }
  .cart-page__note { font-size: .78rem; color: var(--ink-faint); margin: 10px 0 16px; }

  /* Checkout form */
  .checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
  .checkout__fields, .checkout__summary {
    background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-md);
    padding: 22px; box-shadow: 3px 4px 0 var(--ink);
  }
  .checkout__fields h3:not(:first-child) { margin-top: 22px; }
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .85rem; font-weight: 600; }
  .field input, .field textarea {
    font-family: var(--font-body); font-size: .92rem; padding: 11px 14px;
    border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--cream); color: var(--ink);
    resize: vertical;
  }
  .payment-option {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 10px;
    border: 2px solid var(--ink); border-radius: var(--radius-sm); cursor: pointer; font-size: .9rem; font-weight: 600;
  }
  .payment-option input { accent-color: var(--papaya); }
  .payment-panel { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
  .checkout-summary__list { margin-bottom: 8px; }
  .checkout-summary__row { display: flex; justify-content: space-between; font-size: .85rem; padding: 6px 0; color: var(--ink-soft); }

  .checkout-success { text-align: center; padding: 60px 20px; }
  .checkout-success i { font-size: 3rem; color: var(--papaya); margin-bottom: 14px; }
  .checkout-success h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; }
  .checkout-success p { color: var(--ink-soft); margin-bottom: 22px; }

  /* ======================================================
     RESPONSIVE BREAKPOINTS
  ====================================================== */

  /* ── Large desktop cap ── */
  @media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* ── Tablet / mobile nav (≤1024px) ── */
  @media (max-width: 1024px) {
    :root { --section-pad: 64px; }

    /* Mobile nav drawer */
    .nav {
      position: absolute; top: 100%; left: 0; right: 0;
      background: var(--cream); border-bottom: 3px solid var(--ink);
      max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 100;
    }
    .nav.is-open { max-height: 540px; overflow-y: auto; }
    .nav__list { flex-direction: column; gap: 0; padding: 8px 20px 20px; align-items: stretch; }
    .nav__item { border-bottom: 1px solid rgba(43,38,64,.1); }
    .nav__link { padding: 13px 0; justify-content: space-between; }
    .nav__link::after { display: none; }
    .dropdown {
      position: static; opacity: 1; visibility: visible; transform: none;
      border: none; box-shadow: none; background: transparent;
      max-height: 0; padding: 0 0 0 12px; overflow: hidden; transition: max-height .25s ease;
    }
    .has-dropdown.is-open .dropdown { max-height: 300px; padding: 0 0 10px 12px; }

    /* Hamburger */
    .menu-toggle {
      display: flex; width: 40px; height: 40px; border-radius: 50%;
      border: 2px solid var(--ink); background: var(--white);
      align-items: center; justify-content: center; font-size: 1rem;
      flex-shrink: 0; cursor: pointer; order: -1;
    }

    /* Logo stretches to fill middle space */
    .logo { flex: 1; }
    .header__inner { gap: 12px; padding: 12px 18px; }
    .header__actions { gap: 8px; }
    .icon-btn { width: 38px; height: 38px; font-size: .9rem; }

    /* Hero: single column */
    .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero__text { margin: 0 auto 28px; }
    .hero__ctas, .hero__dots { justify-content: center; }
    .hero__visual { height: 400px; max-width: 500px; margin: 0 auto; }
    .hero__title { min-height: unset; }
    .hero__text  { min-height: unset; }

    /* Trust bar: 2 columns */
    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }

    /* Story: single column */
    .story__inner { grid-template-columns: 1fr; gap: 36px; }

    /* Footer: 2-column */
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__col--brand { grid-column: 1 / -1; }

    /* Search */
    .search.is-active .search__input { width: 200px; }
    .search__input { right: 46px; }
  }

  /* ── Wide mobile / small tablet (≤768px) ── */
  @media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cat-grid     { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hero__visual { height: 360px; }
    .section-head { margin-bottom: 28px; }
    .divider      { display: none; }
    .hero { padding: 48px 0 72px; }

    /* NEW: Cart page & checkout collapse to a single column on tablets */
    .cart-page, .checkout { grid-template-columns: 1fr; }
    .cart-page__summary { position: static; }
  }

  /* ── Mobile (≤640px) ── */
  @media (max-width: 640px) {
    :root { --section-pad: 52px; }

    .container { padding: 0 16px; }

    /* Header */
    .header__inner { padding: 10px 14px; gap: 10px; }
    .icon-btn { width: 36px; height: 36px; font-size: .85rem; }
    .logo { font-size: 1.5rem; }
    .header__actions { gap: 7px; }
    .menu-toggle { width: 36px; height: 36px; }

    /* Hero */
    .hero { padding: 36px 0 52px; }
    .hero__visual { height: 300px; max-width: 100%; }
    .hero__ctas { gap: 10px; }
    .sticker--float { display: none; }

    /* Search */
    .search__input { right: 44px; }
    .search.is-active .search__input { width: min(170px, calc(100vw - 200px)); }

    /* Sections */
    .section-head { margin-bottom: 22px; }

    /* Categories */
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-card { padding: 14px 10px 16px; gap: 10px; }

    /* Products */
    .product-grid { gap: 12px; }
    .product-card__body { padding: 13px 13px 15px; }

    /* Sale */
    .sale__banner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .countdown { gap: 8px; }
    .countdown__item { min-width: 62px; padding: 9px 11px; }
    .countdown__num { font-size: 1.2rem; }
    .countdown__label { font-size: .6rem; }

    /* Story */
    .trust-list { grid-template-columns: 1fr; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; }
    .footer__col--brand { grid-column: auto; }

    /* Newsletter */
    .newsletter__form { flex-direction: column; align-items: stretch; }
    .newsletter__form input { min-width: unset; width: 100%; }
    .newsletter__form .btn { width: 100%; }

    /* Promo */
    .promo-banner__inner { flex-direction: column; text-align: center; align-items: center; padding: 36px 0; gap: 20px; }
    .promo-banner__inner .btn { min-width: 200px; }

    /* Trust bar */
    .trust-bar { padding: 14px 0; }
    .trust-bar__item { padding: 8px 10px; gap: 8px; }
    .trust-bar__emoji { font-size: 1.3rem; }
    .trust-bar__info strong { font-size: .82rem; }
    .trust-bar__info span { display: none; }

    /* NEW: Cart drawer takes the full screen width on phones */
    .cart-drawer { width: 100%; }

    /* NEW: Cart page & checkout page spacing on phones */
    .page-view__inner { padding: 36px 16px; }
    .cart-page { gap: 20px; }
    .cart-page__items, .cart-page__summary,
    .checkout__fields, .checkout__summary { padding: 16px; }
    .checkout { gap: 20px; }
    .cart-item__img { width: 54px; height: 54px; }
  }

  /* ── iPhone SE + very small (≤380px) ── */
  @media (max-width: 380px) {
    :root { --section-pad: 44px; }

    .container { padding: 0 12px; }

    /* Header */
    .header__inner { padding: 10px 12px; gap: 8px; }
    .icon-btn { width: 34px; height: 34px; font-size: .82rem; }
    .logo { font-size: 1.3rem; }
    .header__actions { gap: 6px; }
    .menu-toggle { width: 34px; height: 34px; }

    /* Hero */
    .hero { padding: 28px 0 44px; }
    .hero__visual { height: 250px; }
    .hero__ctas .btn { padding: 12px 20px; font-size: .88rem; }

    /* Products */
    .product-grid { gap: 10px; }
    .product-card__body { padding: 11px 11px 13px; }
    .product-card__title { font-size: .92rem; }
    .price--new, .price--sale { font-size: .98rem; }
    .price--old { font-size: .75rem; }
    .btn-add { width: 36px; height: 36px; font-size: .8rem; }

    /* Categories */
    .cat-grid { gap: 9px; }
    .cat-card { padding: 12px 8px 14px; gap: 8px; }
    .cat-card__label { font-size: .8rem; }

    /* Trust bar */
    .trust-bar__grid { gap: 4px; }
    .trust-bar__item { padding: 6px 8px; gap: 6px; }
    .trust-bar__emoji { font-size: 1.15rem; }
    .trust-bar__info strong { font-size: .76rem; }

    /* Countdown */
    .countdown__item { min-width: 54px; padding: 8px 9px; }
    .countdown__num { font-size: 1rem; }

    /* Section head */
    .section-head { flex-direction: column; align-items: flex-start; }

    /* NEW: Cart drawer header/body/items tightened for very small screens */
    .cart-drawer__header { padding: 16px 16px 12px; }
    .cart-drawer__body { padding: 8px 16px; }
    .cart-drawer__footer { padding: 12px 16px 16px; }
    .cart-item { gap: 10px; }
    .cart-item__img { width: 48px; height: 48px; }
    .cart-item__name { font-size: .86rem; }

    /* NEW: Checkout payment options stack tighter */
    .payment-option { padding: 10px 12px; font-size: .85rem; }
  }

  /* ── Reduced motion ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      scroll-behavior: auto !important;
    }
  }

/* ======================================================
   NEW: WooCommerce native Cart & Checkout page styling
   These target WooCommerce's own markup (produced by the
   [woocommerce_cart] / [woocommerce_checkout] shortcodes,
   which the Cart and Checkout pages use automatically) so
   they inherit the same look as the rest of the site,
   instead of introducing a second design language.
====================================================== */
.woocommerce {
  font-family: var(--font-body);
  color: var(--ink);
}
.woocommerce table.shop_table {
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.woocommerce table.shop_table th {
  font-family: var(--font-display);
  background: var(--cream-deep);
}
.woocommerce-cart-form .quantity input.qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  background: var(--cream);
  padding: 10px 14px;
}
.woocommerce #payment div.payment_box {
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  font-family: var(--font-utility);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--papaya);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 24px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.woocommerce ul.wc_payment_methods li.wc_payment_method {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  list-style: none;
}
.woocommerce ul.wc_payment_methods li.wc_payment_method label {
  font-weight: 600;
  font-size: .9rem;
}
.woocommerce .woocommerce-checkout-payment .payment_box {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--ink-soft);
}
