/* ===== GOLD POP home — global base (ported from Claude Design spec) ===== */
:root{
  --gp-green:#0e4a44;
  --gp-green-deep:#2E3F22;
  --gp-gold:#C29A3E;
  --gp-gold-deep:#B0851F;
  --gp-cream:#FBFAF5;
  --gp-ink:#35492A;
  --gp-muted:#5A6A4C;
  --gp-soft:#8A9A6E;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.goldpop-home{
  margin:0;
  font-family:'Anuphan',system-ui,-apple-system,sans-serif;
  background:var(--gp-cream);
  color:var(--gp-ink);
  -webkit-font-smoothing:antialiased;
}
body.goldpop-home img{max-width:100%}
::selection{background:#EAD9A6}

@keyframes gpUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes gpFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes gpPop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}

/* in-view reveal */
.gp-reveal{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s ease}
.gp-reveal.gp-in{opacity:1;transform:none}

/* nav + button hovers */
/* nowrap: Chinese nav labels ("销售点") otherwise break mid-word onto two lines */
.gp-navlink{transition:background .15s ease,color .15s ease;white-space:nowrap}
.gp-navlink:hover{background:#EDF2E5;color:var(--gp-green)}
.gp-navlink-active{background:#EDF2E5;color:var(--gp-green)}
.gp-btn{transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.gp-btn:hover{transform:translateY(-2px)}
.gp-card{transition:transform .18s ease,box-shadow .18s ease}
.gp-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(53,73,42,.12)}
.gp-channel{transition:transform .15s ease}
.gp-channel:hover{transform:translateY(-5px)}
.gp-addbtn:hover{background:#DFE9CF}

/* SoyPop! band — the flavour artwork that replaced the stat cards */
.gp-soy-flavour{position:relative;transition:box-shadow .18s ease,transform .18s ease}
.gp-soy-flavour.gp-soy-on{box-shadow:0 0 0 2px #0e4a44,0 10px 22px rgba(53,73,42,.14)}
.gp-soy-flavour.gp-soy-on::after{
  content:'';position:absolute;top:9px;right:9px;width:18px;height:18px;border-radius:50%;
  background:#0e4a44 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.gp-soy-ad{margin:4px 0 26px}
.gp-soy-ad img{display:block;width:100%;max-width:470px;height:auto}
@media (max-width:900px){
  /* left column goes full width here, so keep the artwork from towering over the copy */
  .gp-soy-ad img{max-width:380px;margin:0 auto}
}

/* photo strip (trade-show photos on the home page) — swipe on touch, arrows on desktop */
.gp-strip{
  display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding-bottom:8px;
}
.gp-strip-item{margin:0;flex:none;scroll-snap-align:start;width:min(320px,78vw)}
.gp-strip-item img{
  width:100%;aspect-ratio:4/3;object-fit:cover;display:block;
  border-radius:18px;background:#EDECE4;
}
.gp-strip:focus-visible{outline:2px solid #0e4a44;outline-offset:4px}
/* `button.` prefix required: hello-elementor's reset.css styles `[type="button"]` — same
   specificity as a bare class but loaded later, so it would win (same trap as .gp-burger). */
button.gp-strip-prev,button.gp-strip-next{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(14,74,68,.25);
  background:#fff;color:#0e4a44;font-size:20px;line-height:1;cursor:pointer;
  display:none;align-items:center;justify-content:center;font-family:inherit;
}
button.gp-strip-prev:hover,button.gp-strip-next:hover{background:#EDF2E5;border-color:rgba(14,74,68,.45)}
button.gp-strip-prev:focus,button.gp-strip-next:focus{background:#EDF2E5;outline:none}
button.gp-strip-prev[hidden],button.gp-strip-next[hidden]{display:none !important}
@media (min-width:861px){
  /* touch devices swipe; only pointer screens get the arrows */
  button.gp-strip-prev,button.gp-strip-next{display:flex}
}
@media (prefers-reduced-motion:reduce){ .gp-strip{scroll-behavior:auto} }

/* legal/text pages (privacy policy) — the default template runs edge to edge, which is
   unreadable for long prose; cap the measure without touching the Woo pages. */
body.page-id-3 .site-main,
body.page-id-3 .entry-content{max-width:820px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px}
body.page-id-3 .entry-content h2{margin-top:34px}
body.page-id-3 .entry-content li{line-height:1.75}

/* shop filters */
.gp-filter{background:#fff;color:var(--gp-green);transition:background .15s ease,color .15s ease}
.gp-filter-on{background:var(--gp-green);color:#fff}
.gp-scroll::-webkit-scrollbar{height:6px}
.gp-scroll::-webkit-scrollbar-thumb{background:#C9DBB6;border-radius:99px}

/* ===== Header / footer (HFE Elementor templates + child-theme shortcodes) =====
   Structure lives in the Elementor templates "GOLD POP Header/Footer"; the chrome that
   Elementor can't express cleanly (sticky bar, blur, pill nav, mobile panel) lives here. */
.gp-header{
  position:sticky;top:0;z-index:60;
  background:rgba(251,250,245,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(53,73,42,.1);
}
.gp-header-inner{position:relative}
/* Elementor gives every .e-con `position:relative`, which would make the absolutely
   positioned mobile panel hang off the narrow actions cluster instead of the header bar. */
.gp-header-actions,
.gp-burger-widget{flex:none !important;position:static !important}
.gp-header-actions{width:auto !important}

/* logo (native WP Custom Logo, or the bundled PNG until one is set) */
.gp-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.gp-logo img{width:52px;height:52px;object-fit:contain;display:block}
.gp-logo .custom-logo-link{display:block;line-height:0}
.gp-logo-text{text-decoration:none;line-height:1;display:block}
.gp-logo-name{display:block;font-weight:700;font-size:17px;letter-spacing:.5px;color:var(--gp-ink)}
.gp-logo-tag{display:block;font-size:10px;font-weight:400;color:var(--gp-soft);letter-spacing:.3px}

/* desktop nav — real WP menu */
.gp-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px}
.gp-menu li{margin:0}
.gp-menu a{
  display:block;text-decoration:none;font-size:15px;font-weight:500;color:var(--gp-ink);
  padding:9px 13px;border-radius:99px;white-space:nowrap;
  transition:background .15s ease,color .15s ease;
}
.gp-menu a:hover,
.gp-menu .current-menu-item > a,
.gp-menu .current_page_item > a{background:#EDF2E5;color:var(--gp-green)}

/* language pills + LINE Shop button */
.gp-lang{display:flex;background:#EDF2E5;border-radius:99px;padding:3px}
.gp-cart{
  position:relative;background:var(--gp-green);width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;flex:none;
}
button.gp-burger{
  background:#EDF2E5;border:none;width:44px;height:44px;border-radius:14px;cursor:pointer;
  align-items:center;justify-content:center;flex:none;
}
/* hello-elementor paints `button:hover/:focus` its pink accent (#CC3366). The old header
   escaped it with an inline style; now that the burger is styled from CSS it must be reset. */
button.gp-burger:hover,
button.gp-burger:focus,
button.gp-burger:active{background:#DFE9CF;color:inherit;box-shadow:none;outline:none;border:none}

/* mobile panel — absolute so it drops under the sticky bar instead of pushing it taller */
.gp-mobile-nav{
  position:absolute;top:100%;left:0;right:0;
  border-top:1px solid rgba(53,73,42,.1);
  padding:8px 20px 14px;flex-direction:column;gap:2px;background:var(--gp-cream);
}
.gp-menu-mobile{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.gp-menu-mobile a{text-decoration:none;font-size:16px;font-weight:500;color:var(--gp-ink);padding:12px 6px;display:block}
.gp-lang-mobile{background:#EDF2E5;border-radius:99px;padding:3px;margin-top:10px;align-self:flex-start}

/* footer */
.gp-footer-brand .gp-logo{margin-bottom:14px}
.gp-footer-brand .gp-logo img{width:46px;height:46px;background:#fff;border-radius:10px;padding:3px}
.gp-footer-brand .gp-logo-name{font-size:18px;color:#fff}
.gp-footer-brand .gp-logo-text{text-decoration:none}
.gp-footer-brand .gp-logo-tag{display:none}
.gp-footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.gp-footer-menu a{text-decoration:none;font-size:14px;color:#A9BC94;font-weight:300}
.gp-footer-menu a:hover{color:#fff}
.gp-footer-channels{display:flex;flex-wrap:wrap;gap:8px}
.gp-footer-channels a{
  text-decoration:none;background:rgba(255,255,255,.1);color:#fff;font-size:13px;font-weight:400;
  padding:8px 13px;border-radius:99px;display:flex;align-items:center;gap:6px;
}
.gp-footer-bottom{border-top:1px solid rgba(255,255,255,.1)}
.gp-footer .elementor-widget:not(:last-child){margin-bottom:0}

/* mobile nav */
.gp-mobile-nav{display:none}
.gp-mobile-nav.gp-open{display:flex}
.gp-lang-mobile{display:none}

/* Must be `button.gp-burger`, not `.gp-burger`: hello-elementor's reset.css has
   `[type="button"]{display:inline-block}` — same specificity, loaded later, so a bare
   class selector loses the cascade and the burger shows up on desktop. */
button.gp-burger{display:none}

/* Display lives here, not in a style="" attribute — an inline display:flex would beat
   the mobile rule below and leave the desktop nav showing next to the burger. */
.gp-desktop-nav{display:flex}

@media (max-width:860px){
  .gp-desktop-nav{display:none}
  button.gp-burger{display:flex}
}

/* Below ~600px the logo + language pills + cart + burger no longer fit on one row,
   so the language switcher moves into the mobile menu panel instead. */
@media (max-width:600px){
  .gp-lang{display:none !important}
  .gp-mobile-nav.gp-open .gp-lang-mobile{display:flex}
}
