/*
Theme Name: KLAR & GLO
Theme URI: https://example.com/klar-glo
Author: Three Springs
Author URI: https://example.com
Description: Official storefront theme for KLAR & GLO — Korean-inspired skincare (Niacinamide, Centella, Ginseng Exosome formulations). Minimalist black/white/sage palette, sticky announcement bar, mega-menu, product grid and "shop by concern" tiles. WooCommerce ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: skincare-clean
Tags: e-commerce, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root{
  --sc-black:#111111;
  --sc-white:#ffffff;
  --sc-ink:#1a1a1a;
  --sc-grey-900:#2b2b2b;
  --sc-grey-600:#6f6f6f;
  --sc-grey-300:#d8d8d8;
  --sc-grey-100:#f4f3f1;
  --sc-cream:#f6f4ef;
  --sc-line:#e4e2dd;
  --sc-accent:#5c7a5e; /* KLAR & GLO sage-green accent, used sparingly for badges/links */

  --sc-font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sc-font-head: "Helvetica Neue", Arial, sans-serif;

  --sc-maxw: 1320px;
  --sc-gutter: 24px;
  --sc-radius: 2px;
  --sc-speed: .2s;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sc-font-body);
  color:var(--sc-ink);
  background:var(--sc-white);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
body{ overflow-x:hidden; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button, input, select{ font-family:inherit; font-size:inherit; }
h1,h2,h3,h4{ font-family:var(--sc-font-head); font-weight:500; letter-spacing:.2px; margin:0 0 .5em; }
h1{ font-size:clamp(28px,4vw,44px); }
h2{ font-size:clamp(22px,3vw,30px); }
h3{ font-size:18px; }
p{ margin:0 0 1em; color:var(--sc-grey-900); }
.container{ max-width:var(--sc-maxw); margin:0 auto; padding:0 var(--sc-gutter); }
.sc-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 30px; background:var(--sc-black); color:var(--sc-white);
  border:1px solid var(--sc-black); border-radius:var(--sc-radius);
  font-size:13px; letter-spacing:1.2px; text-transform:uppercase;
  cursor:pointer; transition:background var(--sc-speed), color var(--sc-speed);
}
.sc-btn:hover{ background:var(--sc-white); color:var(--sc-black); }
.sc-btn.outline{ background:transparent; color:var(--sc-black); }
.sc-btn.outline:hover{ background:var(--sc-black); color:var(--sc-white); }
.sc-eyebrow{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--sc-grey-600); }
.sc-section{ padding-top:64px; padding-bottom:64px; } /* top/bottom only: keeps .container side gutters when both classes are on one element */
.sc-section.alt{ background:var(--sc-cream); }
.sc-section-head{ text-align:center; max-width:640px; margin:0 auto 36px; }
.sc-center{ text-align:center; }

/* =========================================================
   2. TOP ANNOUNCEMENT BAR
   ========================================================= */
.sc-announce{
  background:var(--sc-black); color:var(--sc-white);
  font-size:12px; letter-spacing:.5px; text-align:center;
  padding:9px var(--sc-gutter); position:relative; overflow:hidden;
}
.sc-announce .sc-announce-track span{ display:none; }
.sc-announce .sc-announce-track span.is-active{ display:inline-block; }

/* =========================================================
   2b. UTILITY BAR
   ========================================================= */
.sc-utility-bar{
  background:var(--sc-cream); border-bottom:1px solid var(--sc-line);
  font-size:11px; letter-spacing:.3px;
}
.sc-utility-bar .container{ display:flex; justify-content:flex-end; gap:22px; padding-top:6px; padding-bottom:6px; }
.sc-utility-bar a{ color:var(--sc-grey-600); text-transform:uppercase; }
.sc-utility-bar a:hover{ color:var(--sc-black); }
@media (max-width: 768px){ .sc-utility-bar{ display:none; } }

/* =========================================================
   3. HEADER
   ========================================================= */
.sc-header{
  position:sticky; top:0; z-index:60; background:var(--sc-white);
  border-bottom:1px solid var(--sc-line);
}
.sc-header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px var(--sc-gutter); max-width:var(--sc-maxw); margin:0 auto; gap:20px;
}
.sc-logo{ font-size:34px; font-weight:700; letter-spacing:2px; text-transform:uppercase; }
.sc-logo img{ max-height:40px; }
.sc-nav{ display:flex; gap:28px; }
.sc-nav > ul{ display:flex; gap:28px; }
.sc-nav > ul > li{ position:relative; }
.sc-nav > ul > li > a{
  font-size:13px; letter-spacing:.6px; text-transform:uppercase;
  padding:10px 0; display:inline-block; border-bottom:1px solid transparent;
}
.sc-nav > ul > li:hover > a{ border-color:var(--sc-black); }
.sc-nav .sub-menu{
  display:none; position:absolute; top:100%; left:0; background:var(--sc-white);
  min-width:230px; box-shadow:0 12px 24px rgba(0,0,0,.08); border:1px solid var(--sc-line);
  padding:14px 0; z-index:80;
}
.sc-nav li:hover > .sub-menu{ display:block; }
.sc-nav .sub-menu li a{ display:block; padding:8px 20px; font-size:13px; }
.sc-nav .sub-menu li a:hover{ background:var(--sc-grey-100); }
.sc-nav .sub-menu li.sc-mega-featured{
  position:absolute; top:-1px; left:100%; width:160px; height:calc(100% + 2px);
  background:var(--sc-white); border:1px solid var(--sc-line); border-left:none;
  padding:16px 18px; box-shadow:0 12px 24px rgba(0,0,0,.08);
}
.sc-nav .sub-menu li.sc-mega-featured a{ padding:0; display:block; }
.sc-nav .sub-menu li.sc-mega-featured a:hover{ background:none; }
.sc-mega-featured-img{ display:block; aspect-ratio:3/4; background:var(--sc-grey-100); overflow:hidden; margin-bottom:10px; }
.sc-mega-featured-img img{ width:100%; height:100%; object-fit:cover; }
.sc-mega-featured-title{ display:block; font-size:12px; line-height:1.4; }
.sc-header-icons{ display:flex; align-items:center; gap:18px; }
.sc-header-icons a{ font-size:12px; letter-spacing:.5px; text-transform:uppercase; display:flex; align-items:center; gap:6px; color:var(--sc-black); }
.sc-header-icons .sc-icon{ flex-shrink:0; }
.sc-header-icons .screen-reader-text{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.sc-cart-link{ position:relative; }
.sc-cart-count{
  background:var(--sc-black); color:#fff; border-radius:50%;
  width:16px; height:16px; font-size:10px; display:inline-flex;
  align-items:center; justify-content:center;
}
.sc-menu-toggle{ display:none; background:none; border:0; cursor:pointer; }
.sc-menu-toggle span{ display:block; width:22px; height:2px; background:var(--sc-black); margin:5px 0; }

/* =========================================================
   4. HERO SLIDER
   ========================================================= */
.sc-hero-slider{
  position:relative; min-height:70vh; overflow:hidden;
}
.sc-hero-track{ position:relative; width:100%; height:100%; min-height:70vh; }
.sc-hero-slide{
  position:absolute; inset:0; display:none; align-items:flex-end;
  background:var(--sc-grey-100) center/cover no-repeat;
  z-index:1;
}
.sc-hero-slide.is-active{ display:flex; z-index:2; }
.sc-hero-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
.sc-hero-grad-1{ background-image:linear-gradient(120deg,#eef1ec,#f6f4ef); }
.sc-hero-grad-2{ background-image:linear-gradient(120deg,#f4f0e8,#f6f4ef); }
.sc-hero-grad-3{ background-image:linear-gradient(120deg,#111111,#3a3a3a); }
.sc-hero-grad-3 .sc-hero-content{ background:rgba(0,0,0,.55); color:#fff; }
.sc-hero-grad-3 .sc-hero-content p{ color:#eaeaea; }
.sc-hero-grad-3 .sc-eyebrow{ color:#cfcfcf; }
.sc-hero-content{
  padding:48px var(--sc-gutter); max-width:520px; background:rgba(255,255,255,.88);
}
.sc-hero-content h1{ margin-bottom:14px; }
.sc-hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:42px; height:42px; border-radius:50%; border:1px solid var(--sc-line);
  background:rgba(255,255,255,.85); font-size:20px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.sc-hero-arrow.prev{ left:18px; }
.sc-hero-arrow.next{ right:18px; }
.sc-hero-arrow:hover{ background:#fff; }
.sc-hero-dots{
  position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  z-index:5; display:flex; gap:8px;
}
.sc-hero-dots button{
  width:8px; height:8px; border-radius:50%; border:0; background:rgba(255,255,255,.6);
  cursor:pointer; padding:0;
}
.sc-hero-dots button.is-active{ background:var(--sc-black); }

/* =========================================================
   4b. LEGACY SINGLE HERO (kept for backward compatibility)
   ========================================================= */
.sc-hero{
  position:relative; min-height:70vh; display:flex; align-items:flex-end;
  background:var(--sc-grey-100) center/cover no-repeat;
}
.sc-hero-content{
  padding:48px var(--sc-gutter); max-width:520px; background:rgba(255,255,255,.88);
}
.sc-hero-content h1{ margin-bottom:14px; }

.sc-promo-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--sc-line); }
.sc-promo-tile{
  background:var(--sc-white); padding:28px; min-height:280px;
  display:flex; flex-direction:column; gap:8px;
}
.sc-promo-img{
  aspect-ratio:4/3; background:var(--sc-grey-100); display:flex; align-items:center; justify-content:center;
  overflow:hidden; margin-bottom:14px;
}
.sc-promo-img img{ width:100%; height:100%; object-fit:cover; }
.sc-promo-img .sc-illustration{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.sc-promo-img .sc-illustration svg{ width:60%; height:auto; }
.sc-promo-tile h3{ margin-bottom:4px; }
.sc-promo-tile a.sc-link{ font-size:12px; text-transform:uppercase; letter-spacing:1px; border-bottom:1px solid var(--sc-black); align-self:flex-start; padding-bottom:2px; margin-top:auto; }

/* =========================================================
   5. PRODUCT GRID
   ========================================================= */
.sc-grid-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:24px; }
.sc-grid-head a{ font-size:12px; text-transform:uppercase; letter-spacing:1px; border-bottom:1px solid var(--sc-black); }

/* Morning/evening routine icons next to product names */
.sc-routine-icons{ display:inline-flex; align-items:center; gap:6px; margin-left:8px; vertical-align:middle; }
.sc-routine-icon{ flex-shrink:0; }
.sc-routine-icon-sun{ color:#E8A93A; }
.sc-routine-icon-moon{ color:#3E4C7A; }
.sc-carousel{ position:relative; }
.sc-carousel-arrow{
  position:absolute; top:calc(50% - 12px); transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%; background:var(--sc-white);
  border:1px solid var(--sc-line); display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:5; color:var(--sc-black); box-shadow:0 4px 12px rgba(0,0,0,.08);
  transition:background .2s, color .2s;
}
.sc-carousel-arrow:hover{ background:var(--sc-black); color:var(--sc-white); }
.sc-carousel-arrow:disabled{ opacity:.35; cursor:default; }
.sc-carousel-arrow:disabled:hover{ background:var(--sc-white); color:var(--sc-black); }
.sc-carousel-prev{ left:-14px; }
.sc-carousel-next{ right:-14px; }
@media (max-width: 640px){
  .sc-carousel-arrow{ width:34px; height:34px; }
  .sc-carousel-prev{ left:-8px; }
  .sc-carousel-next{ right:-8px; }
}
.sc-product-grid{
  display:flex; gap:22px; overflow-x:hidden; scroll-snap-type:x proximity;
  scroll-behavior:smooth; padding-bottom:12px; touch-action:pan-y;
}
.sc-product-card{ position:relative; flex:0 0 260px; scroll-snap-align:start; min-width:0; }
.sc-product-badge{
  position:absolute; top:10px; left:10px; background:var(--sc-accent); color:#fff;
  font-size:10px; letter-spacing:.5px; text-transform:uppercase; padding:4px 8px; z-index:2;
}
.sc-product-thumb{
  background:var(--sc-grey-100); aspect-ratio:3/4; display:flex; align-items:center; justify-content:center;
  overflow:hidden; margin-bottom:14px;
}
.sc-product-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.sc-product-thumb svg{ opacity:.7; }
.sc-product-thumb .sc-illustration{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.sc-product-thumb .sc-illustration svg{ opacity:1; width:70%; height:auto; }
.sc-product-card:hover .sc-product-thumb img{ transform:scale(1.04); }
.sc-product-title{ font-size:14px; font-weight:600; margin-bottom:4px; overflow-wrap:break-word; word-break:break-word; }
.sc-product-sub{ font-size:12px; color:var(--sc-grey-600); margin-bottom:8px; }
.sc-product-price{ font-size:14px; font-weight:600; margin-bottom:10px; }
.sc-product-card .sc-btn{ width:100%; padding:11px; font-size:11px; }

/* =========================================================
   5b. KNOW YOUR INGREDIENTS
   ========================================================= */
.sc-formula{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.1fr);
  gap:48px; align-items:center;
}
.sc-formula-copy h2{ font-size:clamp(28px,3.4vw,42px); font-weight:400; line-height:1.15; margin:14px 0 18px; }
.sc-formula-copy p{ font-size:14px; line-height:1.7; color:var(--sc-grey-600); max-width:340px; margin-bottom:26px; }
.sc-formula-copy .sc-btn{ padding:13px 26px; font-size:12px; }

.sc-formula-visual{ position:relative; aspect-ratio:1/1; background:var(--sc-grey-100); overflow:hidden; }
.sc-formula-slide{ position:absolute; inset:0; opacity:0; transition:opacity .45s ease; pointer-events:none; }
.sc-formula-slide.is-active{ opacity:1; }
.sc-formula-slide img{ width:100%; height:100%; object-fit:cover; }
.sc-formula-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
}
.sc-formula-placeholder svg{ width:96px; height:96px; opacity:.8; }
.sc-formula-placeholder span{ font-size:12px; letter-spacing:3px; text-transform:uppercase; color:var(--sc-grey-600); }

.sc-formula-list{ display:flex; flex-direction:column; }
.sc-formula-list li{ border-bottom:1px solid var(--sc-line); }
.sc-formula-list li:last-child{ border-bottom:0; }
.sc-formula-item{
  display:flex; align-items:flex-start; gap:18px; width:100%; text-align:left;
  padding:20px 0; background:none; border:0; cursor:pointer; color:inherit;
}
.sc-formula-radio{
  flex:0 0 26px; width:26px; height:26px; margin-top:2px; border-radius:50%;
  border:1px solid var(--sc-grey-300); position:relative; transition:border-color var(--sc-speed);
}
.sc-formula-radio::after{
  content:""; position:absolute; inset:6px; border-radius:50%;
  background:var(--sc-accent); transform:scale(0); transition:transform var(--sc-speed);
}
.sc-formula-name{ display:block; font-size:16px; letter-spacing:.3px; color:var(--sc-grey-600); transition:color var(--sc-speed); }
.sc-formula-desc{
  display:block; font-size:13px; line-height:1.65; color:var(--sc-grey-600);
  max-height:0; opacity:0; overflow:hidden; transition:max-height .35s ease, opacity .35s ease, margin .35s ease;
}
.sc-formula-item:hover .sc-formula-name,
.sc-formula-item.is-active .sc-formula-name{ color:var(--sc-ink); }
.sc-formula-item:hover .sc-formula-radio,
.sc-formula-item.is-active .sc-formula-radio{ border-color:var(--sc-accent); }
.sc-formula-item.is-active .sc-formula-radio::after{ transform:scale(1); }
.sc-formula-item.is-active .sc-formula-desc{ max-height:120px; opacity:1; margin-top:6px; }
.sc-formula-item:focus-visible{ outline:2px solid var(--sc-accent); outline-offset:2px; }

/* =========================================================
   6. CONCERNS / CATEGORY TILES
   ========================================================= */
.sc-concern-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.sc-concern-tile{ text-align:center; }
.sc-concern-tile .sc-concern-img{
  border-radius:50%; aspect-ratio:1/1; background:var(--sc-grey-100); margin-bottom:10px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.sc-concern-tile .sc-concern-img svg{ width:42%; height:42%; }
.sc-concern-tile .sc-concern-img img{ width:100%; height:100%; object-fit:cover; }
.sc-concern-tile span{ font-size:13px; }

/* =========================================================
   6a. SHOP BY CONCERNS — HORIZONTAL SCROLL (3 visible at a time)
   ========================================================= */
.sc-concern-scroll-wrap{ position:relative; }
.sc-concern-grid-big{
  display:flex; gap:18px; overflow-x:hidden; scroll-snap-type:x mandatory;
  padding-bottom:12px; scroll-behavior:smooth; touch-action:pan-y;
}
.sc-concern-photo{ text-align:center; flex:0 0 calc((100% - 68px) / 3.4); scroll-snap-align:start; }
.sc-concern-photo-visual{
  aspect-ratio:4/3; width:100%; background-size:cover; background-position:center;
  border-radius:2px;
}
.sc-concern-photo span{ display:block; margin-top:14px; font-size:17px; font-weight:600; }
.sc-concern-scroll-arrow{
  position:absolute; top:38%; transform:translateY(-50%); z-index:5;
  width:40px; height:40px; border-radius:50%; border:1px solid var(--sc-line);
  background:rgba(255,255,255,.92); font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.sc-concern-scroll-arrow:hover{ background:#fff; }
.sc-concern-scroll-arrow.prev{ left:-8px; }
.sc-concern-scroll-arrow.next{ right:-8px; }
@media (max-width: 900px){
  .sc-concern-photo{ flex:0 0 calc((100% - 18px) / 2.3); }
}
@media (max-width: 560px){
  .sc-concern-photo{ flex:0 0 68%; }
  .sc-concern-scroll-arrow{ width:34px; height:34px; }
}

/* =========================================================
   6b. JUST FOR YOU BANNER
   ========================================================= */
.sc-justforyou{
  background:var(--sc-cream); padding:64px 0; border-top:1px solid var(--sc-line); border-bottom:1px solid var(--sc-line);
}
.sc-justforyou p{ max-width:520px; margin:0 auto 20px; }

/* =========================================================
   6c. TEAM GRID
   ========================================================= */
.sc-team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.sc-team-card{
  text-align:center; border:1px solid var(--sc-line); padding:28px 16px; border-radius:var(--sc-radius);
}
.sc-team-avatar{
  width:64px; height:64px; border-radius:50%; background:var(--sc-grey-100); margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
}
.sc-team-card span{ display:block; font-size:14px; font-weight:600; margin-bottom:4px; }
.sc-team-card small{ display:block; font-size:12px; color:var(--sc-grey-600); }

/* =========================================================
   6d. MORNING / EVENING ROUTINE
   ========================================================= */
.sc-routine-block{ margin-bottom:56px; }
.sc-routine-block:last-child{ margin-bottom:0; }
.sc-routine-subhead{ text-align:center; font-size:18px; margin-bottom:24px; }
.sc-routine-row{
  display:flex; align-items:flex-start; justify-content:center; flex-wrap:wrap;
  gap:6px; margin-top:8px;
}
.sc-routine-step{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  width:150px; position:relative;
}
.sc-routine-num{
  width:24px; height:24px; border-radius:50%; background:var(--sc-black); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600;
  margin-bottom:10px;
}
.sc-routine-thumb{
  width:120px; height:120px; border-radius:50%; background:var(--sc-white); overflow:hidden;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}
.sc-routine-thumb img{ width:100%; height:100%; object-fit:cover; }
.sc-routine-thumb svg{ width:55%; height:55%; }
.sc-routine-step-label{ font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--sc-grey-600); margin-bottom:4px; }
.sc-routine-title{ font-size:13px; font-weight:600; line-height:1.4; }
.sc-routine-title:hover{ text-decoration:underline; }
.sc-routine-arrow{
  align-self:center; margin-top:50px; font-size:22px; color:var(--sc-grey-300); flex-shrink:0;
}
@media (max-width: 900px){
  .sc-routine-row{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding-bottom:10px; -webkit-overflow-scrolling:touch; }
  .sc-routine-step{ flex-shrink:0; }
}

/* =========================================================
   7. MEMBERSHIP / BENEFITS BAND
   ========================================================= */
.sc-benefits{
  background:var(--sc-black); color:var(--sc-white); padding:64px 0; text-align:center;
}
.sc-benefits h2{ color:var(--sc-white); }
.sc-benefits-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin:36px 0; text-align:left; }
.sc-benefits-grid div{ border-top:1px solid rgba(255,255,255,.25); padding-top:16px; font-size:14px; }

/* =========================================================
   8. NEWSLETTER
   ========================================================= */
.sc-newsletter{ background:var(--sc-cream); padding:64px 0; text-align:center; }
.sc-newsletter-form{ display:flex; max-width:420px; margin:20px auto 0; border:1px solid var(--sc-black); }
.sc-newsletter-form input[type=email]{
  flex:1; border:0; background:transparent; padding:14px 16px; outline:none;
}
.sc-newsletter-form button{ border:0; background:var(--sc-black); color:#fff; padding:0 22px; letter-spacing:1px; text-transform:uppercase; font-size:12px; cursor:pointer; }
.sc-newsletter small{ display:block; max-width:520px; margin:14px auto 0; color:var(--sc-grey-600); font-size:11px; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.sc-footer{ background:var(--sc-white); border-top:1px solid var(--sc-line); padding:56px 0 24px; }
.sc-footer-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin-bottom:40px; }
.sc-footer-col h4{ font-size:12px; text-transform:uppercase; letter-spacing:1px; margin-bottom:16px; }
.sc-footer-col ul li{ margin-bottom:10px; }
.sc-footer-col ul li a{ font-size:13px; color:var(--sc-grey-900); }
.sc-footer-col ul li a:hover{ color:var(--sc-black); text-decoration:underline; }
.sc-footer-bottom{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:14px;
  border-top:1px solid var(--sc-line); padding-top:20px; font-size:12px; color:var(--sc-grey-600);
}
.sc-social{ display:flex; gap:12px; margin-top:16px; }
.sc-social a{
  width:34px; height:34px; border:1px solid var(--sc-line); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--sc-black);
  transition:background .2s, color .2s, border-color .2s;
}
.sc-social a:hover{ background:var(--sc-black); border-color:var(--sc-black); color:#fff; }

/* =========================================================
   10. BLOG / PAGE / SINGLE
   ========================================================= */
.sc-page-header{ padding:48px 0 16px; border-bottom:1px solid var(--sc-line); margin-bottom:36px; text-align:center; }
.sc-post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.sc-post-card .sc-thumb{ aspect-ratio:4/3; background:var(--sc-grey-100); overflow:hidden; margin-bottom:14px; }
.sc-post-card .sc-thumb img{ width:100%; height:100%; object-fit:cover; }
.sc-post-card h3{ margin-bottom:6px; }
.sc-post-card .sc-meta{ font-size:12px; color:var(--sc-grey-600); margin-bottom:8px; }
article.single-content{ max-width:760px; margin:0 auto; }
article.single-content > h1{ text-align:center; }
article.single-content img{ margin:24px 0; }
.sc-pagination{ display:flex; justify-content:center; gap:10px; margin-top:40px; }
.sc-pagination a, .sc-pagination span{ padding:8px 14px; border:1px solid var(--sc-line); font-size:13px; }

/* comments */
.comment-list{ margin:0 0 30px; }
.comment-list li{ padding:16px 0; border-bottom:1px solid var(--sc-line); }
.comment-form input, .comment-form textarea{ width:100%; padding:12px; border:1px solid var(--sc-line); margin-bottom:14px; }

/* =========================================================
   11. WOOCOMMERCE OVERRIDES
   ========================================================= */
.woocommerce ul.products,
body.woocommerce ul.products,
ul.products{
  display:grid !important; grid-template-columns:repeat(4,1fr) !important; gap:28px 22px !important;
  list-style:none !important; margin:0 !important; padding:0 !important; max-width:100% !important;
}
.woocommerce ul.products li.product{
  text-align:left !important; float:none !important; width:auto !important; margin:0 !important; clear:none !important;
  min-width:0 !important; max-width:100% !important;
}
.woocommerce ul.products li.product a{ text-decoration:none !important; color:inherit !important; }
.woocommerce ul.products li.product img{
  aspect-ratio:3/4 !important; object-fit:cover !important; margin-bottom:14px !important;
  width:100% !important; height:auto !important; max-width:100% !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:14px !important; font-weight:600 !important; color:var(--sc-ink) !important; margin:0 0 4px !important;
  overflow-wrap:break-word !important; word-break:break-word !important;
}
.woocommerce ul.products li.product .price{ font-weight:600 !important; color:var(--sc-ink) !important; font-size:14px !important; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.add_to_cart_button,
.woocommerce a.ajax_add_to_cart,
.woocommerce button.single_add_to_cart_button,
.woocommerce button[name="add-to-cart"],
.woocommerce .cart .button,
.woocommerce ul.products li.product a.button{
  background:var(--sc-black) !important; color:#fff !important; border-radius:2px !important; padding:12px 20px !important;
  font-size:12px !important; letter-spacing:1px !important; text-transform:uppercase !important; border:1px solid var(--sc-black) !important;
  box-shadow:none !important; text-shadow:none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce .cart .button:hover{ background:#fff !important; color:var(--sc-black) !important; }
.woocommerce ul.products li.product a.button{
  display:block !important; width:100% !important; text-align:center !important;
  box-sizing:border-box !important; margin-top:4px !important;
}
.woocommerce div.product p.price{ font-size:20px; }
.woocommerce nav.woocommerce-pagination ul{ border:0; }

/* =========================================================
   11b. SINGLE PRODUCT PAGE
   ========================================================= */
.sc-single-product .product{
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:flex-start;
}
.sc-single-product .woocommerce-product-gallery{ background:var(--sc-grey-100); }
.sc-single-product .woocommerce-product-gallery img{ width:100%; height:auto; display:block; aspect-ratio:3/4; object-fit:cover; }
.sc-single-product .summary.entry-summary{ padding-top:4px; }
.sc-single-product .product_title{ font-size:clamp(24px,3vw,34px); margin-bottom:10px; }
.sc-single-product .woocommerce-product-details__short-description{ margin:16px 0; color:var(--sc-grey-900); }
.sc-single-product p.price{ font-size:22px; font-weight:600; color:#000000; margin-bottom:18px; }
.sc-single-product p.price ins,
.sc-single-product p.price .amount,
.sc-single-product p.price bdi{ color:#000000; }
.sc-single-product p.price ins{ text-decoration:none; }
.sc-single-product p.price del{ opacity:.5; margin-right:8px; }
.sc-single-product form.cart{ display:flex; flex-direction:column; align-items:stretch; gap:20px; margin:20px 0; }
.sc-single-product .quantity input{ width:64px; padding:12px; border:1px solid var(--sc-line); text-align:center; }

/* Size variant pills */
table.variations,
.sc-variations-wrap{ width:100%; border:0; margin:0 0 4px; }
.sc-variation-row{ margin-bottom:4px; }
.sc-variation-label{ display:block; font-size:13px; font-weight:600; margin-bottom:10px; }
.sc-variation-selected{ font-weight:400; color:var(--sc-grey-600); }
.sc-variation-pills{ display:flex; flex-wrap:wrap; gap:12px; }
.sc-variation-pill{
  padding:14px 20px; border:1px solid var(--sc-line); border-radius:2px; background:var(--sc-white);
  font-size:14px; color:var(--sc-ink); cursor:pointer; transition:border-color .2s;
}
.sc-variation-pill:hover{ border-color:var(--sc-grey-600); }
.sc-variation-pill.is-active{ border:2px solid var(--sc-black); font-weight:600; }
.sc-visually-hidden-select{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Quantity */
.sc-qty-label{ display:block; font-size:13px; font-weight:600; margin-bottom:10px; }
.sc-qty-stepper{ display:flex; align-items:stretch; border:1px solid var(--sc-line); width:fit-content; }
.sc-qty-stepper .qty{ border:0 !important; width:56px !important; padding:12px 0 !important; }
.sc-qty-btn{
  width:44px; background:var(--sc-white); border:0; font-size:16px; cursor:pointer;
  color:var(--sc-black); line-height:1;
}
.sc-qty-btn:hover{ background:var(--sc-grey-100); }
.sc-qty-minus{ border-right:1px solid var(--sc-line) !important; }
.sc-qty-plus{ border-left:1px solid var(--sc-line) !important; }

/* Add to Cart / Buy It Now buttons */
.sc-cart-buttons{ display:flex; flex-direction:column; gap:12px; }
.woocommerce .sc-cart-buttons button.single_add_to_cart_button{ width:100% !important; padding:16px 20px !important; font-size:13px !important; }
.woocommerce button.sc-buy-now-button[name="add-to-cart"]{
  width:100%; padding:16px 20px; background:var(--sc-white) !important; color:var(--sc-black) !important;
  border:1px solid var(--sc-black) !important; border-radius:2px; font-size:13px; letter-spacing:1px;
  text-transform:uppercase; cursor:pointer; transition:background .2s, color .2s; box-shadow:none !important; text-shadow:none !important;
}
.woocommerce button.sc-buy-now-button[name="add-to-cart"]:hover{ background:var(--sc-black) !important; color:#fff !important; }
.sc-single-product .stock{ font-size:13px; color:var(--sc-grey-600); margin:10px 0; }
.sc-single-product .product_meta{ font-size:12px; color:var(--sc-grey-600); margin-top:20px; padding-top:16px; border-top:1px solid var(--sc-line); }

/* Subtitle + feature checkmarks (right column, above price) */
.sc-product-subtitle{ font-size:15px; font-weight:600; color:var(--sc-ink); margin:2px 0 14px; }
.sc-feature-checks{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-wrap:wrap; gap:10px 20px; }
.sc-feature-checks li{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--sc-grey-900); }
.sc-feature-checks svg{ flex-shrink:0; }

/* Accordion (Key Actives & Benefits / How to Use / Full Ingredients) */
.sc-accordion{ margin-top:24px; border-top:1px solid var(--sc-line); }
.sc-accordion-cart{ margin-top:20px; }
.sc-accordion-fullwidth{ grid-column:1 / -1; max-width:900px; margin-top:40px; padding-top:8px; }
.sc-accordion-item{ border-bottom:1px solid var(--sc-line); }
.sc-accordion-item summary{
  cursor:pointer; list-style:none; padding:16px 0; font-size:14px; font-weight:600;
  display:flex; align-items:center; justify-content:space-between;
}
.sc-accordion-item summary::-webkit-details-marker{ display:none; }
.sc-accordion-item summary::after{ content:"+"; font-size:18px; font-weight:400; color:var(--sc-grey-600); }
.sc-accordion-item[open] summary::after{ content:"\2212"; }
.sc-accordion-item-lg summary{ font-size:18px; padding:20px 0; }
.sc-nested-accordion{ border-top:1px solid var(--sc-line); }
.sc-nested-accordion .sc-accordion-item{ border-bottom:1px solid var(--sc-line); }
.sc-nested-accordion .sc-accordion-item:last-child{ border-bottom:0; }
.sc-accordion-item-sm summary{ font-size:13px; font-weight:600; padding:14px 0; }
.sc-accordion-item-sm summary::after{ font-size:15px; }
.sc-accordion-item-sm .sc-accordion-body{ padding:0 0 14px; font-size:13px; }
.sc-accordion-body{ padding:0 0 20px; font-size:13.5px; color:var(--sc-grey-900); line-height:1.7; }
.sc-accordion-label{ font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--sc-grey-600); margin:14px 0 8px; }
.sc-accordion-label:first-child{ margin-top:0; }
.sc-plain-list{ list-style:none; margin:0 0 4px; padding:0; }
.sc-plain-list li{ padding:4px 0 4px 14px; position:relative; }
.sc-plain-list li::before{ content:"•"; position:absolute; left:0; color:var(--sc-accent, #5c7a5e); }
.sc-ingredients-list{ font-size:12.5px; color:var(--sc-grey-600); line-height:1.8; }
.sc-single-product .woocommerce-tabs{ grid-column:1 / -1; margin-top:48px; border-top:1px solid var(--sc-line); padding-top:32px; }
.sc-single-product .woocommerce-tabs ul.tabs{ display:flex; gap:24px; list-style:none; padding:0; margin:0 0 24px; border-bottom:1px solid var(--sc-line); }
.sc-single-product .woocommerce-tabs ul.tabs li{ padding-bottom:12px; }
.sc-single-product .woocommerce-tabs ul.tabs li a{ font-size:12px; text-transform:uppercase; letter-spacing:1px; }
.sc-single-product .woocommerce-tabs ul.tabs li.active a{ border-bottom:2px solid var(--sc-black); padding-bottom:12px; }
.sc-single-product .woocommerce-tabs .panel{ max-width:760px; }
.sc-single-product .related.products{ grid-column:1 / -1; margin-top:56px; border-top:1px solid var(--sc-line); padding-top:40px; }
.sc-single-product .related.products > h2{ margin-bottom:24px; font-size:22px; }

/* Force the same card grid/layout used on the Shop page — related products
   sometimes fall back to WooCommerce's bare default (floated thumbnail etc.)
   if this isn't explicitly re-applied inside .related.products. */
.related.products ul.products,
.related.products ul.products.columns-4{
  display:grid !important; grid-template-columns:repeat(4,1fr) !important; gap:28px 22px !important;
  list-style:none !important; margin:0 !important; padding:0 !important;
}
.related.products ul.products li.product{
  float:none !important; width:auto !important; min-width:0 !important; margin:0 !important; text-align:left !important;
}
.related.products ul.products li.product a{ text-decoration:none !important; color:inherit !important; }
.related.products ul.products li.product img{
  float:none !important; aspect-ratio:3/4 !important; object-fit:cover !important;
  width:100% !important; height:auto !important; max-width:100% !important; margin:0 0 14px !important;
}
@media (max-width: 1024px){
  .related.products ul.products{ grid-template-columns:repeat(3,1fr) !important; }
}
@media (max-width: 768px){
  .related.products ul.products{ grid-template-columns:repeat(2,1fr) !important; }
}
@media (max-width: 600px){
  .related.products ul.products{ grid-template-columns:1fr !important; }
}

/* Product description block — works wherever you hook sc_render_product_description() */
.sc-product-description{ max-width:760px; }
.sc-single-product > .product > .sc-product-description{ grid-column:1 / -1; margin-top:40px; border-top:1px solid var(--sc-line); padding-top:32px; }
.sc-product-description p{ margin-bottom:14px; line-height:1.7; }
@media (max-width: 768px){
  .sc-single-product .product{ grid-template-columns:1fr; }
}

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px){
  .woocommerce ul.products{ grid-template-columns:repeat(3,1fr) !important; }
  .sc-concern-grid{ grid-template-columns:repeat(4,1fr); }
  .sc-formula{ grid-template-columns:1fr 1fr; gap:32px; }
  .sc-formula-copy{ grid-column:1 / -1; }
  .sc-formula-copy p{ max-width:520px; }
  .sc-footer-grid{ grid-template-columns:repeat(2,1fr); }
  .sc-post-grid{ grid-template-columns:repeat(2,1fr); }
  .sc-team-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 768px){
  .sc-nav{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--sc-line); flex-direction:column; padding:10px 0; }
  .sc-nav.is-open{ display:flex; }
  .sc-nav > ul{ flex-direction:column; gap:0; }
  .sc-nav > ul > li > a{ padding:12px var(--sc-gutter); width:100%; }
  .sc-nav .sub-menu{ position:static; box-shadow:none; border:0; padding-left:14px; }
  .sc-nav .sub-menu li.sc-mega-featured{ position:static; width:auto; height:auto; border:1px solid var(--sc-line); margin:10px 14px; box-shadow:none; }
  .sc-menu-toggle{ display:block; }
  .sc-promo-grid, .sc-benefits-grid{ grid-template-columns:1fr; }
  .woocommerce ul.products{ grid-template-columns:repeat(2,1fr) !important; }
  .sc-concern-grid{ grid-template-columns:repeat(3,1fr); }
  .sc-formula{ grid-template-columns:1fr; gap:24px; }
  .sc-formula-visual{ aspect-ratio:1/1; max-width:520px; width:100%; margin:0 auto; }
  .sc-footer-grid{ grid-template-columns:1fr 1fr; }
  .sc-post-grid{ grid-template-columns:1fr; }
  .sc-team-grid{ grid-template-columns:1fr; }
}

@media (max-width: 600px){
  :root{ --sc-gutter:16px; }
  .woocommerce ul.products{ grid-template-columns:1fr !important; gap:24px !important; }
  .sc-product-card{ flex:0 0 220px; }
  .sc-product-card .sc-btn{ padding:10px; font-size:10px; }
  .sc-product-title{ font-size:13px; }
  .sc-hero-content{ padding:32px 16px; max-width:100%; }
  .sc-hero-content h1{ font-size:26px; }
  .sc-hero-slider, .sc-hero-track{ min-height:60vh; }
  .sc-promo-tile{ padding:20px; min-height:auto; }
  .sc-concern-grid{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .sc-section{ padding-top:40px; padding-bottom:40px; }
  .sc-hero-arrow{ width:34px; height:34px; font-size:16px; }
}


/* =========================================================
   13. LAYOUT FIXES + FULL RESPONSIVE PASS
   ========================================================= */

/* ---- Single product: WooCommerce's own float/48% widths were shrinking the gallery ---- */
.sc-single-product .product{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.sc-single-product .product > *{ min-width:0; }
.sc-single-product div.images,
.sc-single-product .woocommerce-product-gallery,
.sc-single-product div.summary,
.sc-single-product .summary.entry-summary{
  width:100% !important; float:none !important; margin:0 !important;
}
.sc-single-product .woocommerce-breadcrumb{ font-size:13px; color:var(--sc-grey-600); margin:0 0 24px; }
.sc-single-product .woocommerce-breadcrumb a:hover{ color:var(--sc-black); }
.sc-single-product .woocommerce-tabs ul.tabs{ overflow-x:auto; white-space:nowrap; }

/* ---- Hero: the active slide now sets the height, so text is never clipped on small screens ---- */
.sc-hero-track{ height:auto; }
.sc-hero-slide.is-active{ position:relative; min-height:max(70vh, 480px); }

/* ---- Tablet & down: hamburger menu from 900px (desktop nav no longer fits below that) ---- */
@media (max-width: 900px){
  .sc-header-inner{ padding:14px var(--sc-gutter); gap:14px; }
  .sc-menu-toggle{ display:block; padding:4px; }
  .sc-logo{ font-size:26px; letter-spacing:1.5px; margin-right:auto; }
  .sc-nav{
    display:none; position:absolute; top:100%; left:0; right:0; background:#fff;
    border-bottom:1px solid var(--sc-line); flex-direction:column; padding:10px 0;
    max-height:calc(100vh - 70px); overflow-y:auto; box-shadow:0 12px 24px rgba(0,0,0,.06);
  }
  .sc-nav.is-open{ display:flex; }
  .sc-nav > ul{ flex-direction:column; gap:0; }
  .sc-nav > ul > li > a{ padding:13px var(--sc-gutter); width:100%; }
  .sc-nav .sub-menu{ display:block; position:static; box-shadow:none; border:0; padding:0 0 6px 14px; min-width:0; }
  .sc-nav .sub-menu li a{ padding:8px var(--sc-gutter); }
  .sc-nav .sub-menu li.sc-mega-featured{ display:none; }

  /* swipe-able carousels on touch screens (arrows still work) */
  .sc-product-grid, .sc-concern-grid-big{
    overflow-x:auto; touch-action:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .sc-product-grid::-webkit-scrollbar, .sc-concern-grid-big::-webkit-scrollbar{ display:none; }

  .sc-grid-head{ flex-wrap:wrap; gap:8px; }
  .sc-hero-content{ max-width:100%; width:100%; padding:32px var(--sc-gutter) 56px; }
  .sc-routine-arrow{ display:none; }
  .sc-single-product .product{ gap:32px; }
}

@media (max-width: 768px){
  .sc-single-product .product{ grid-template-columns:minmax(0,1fr); gap:24px; }
  .sc-single-product .woocommerce-tabs{ margin-top:32px; }
  .sc-accordion-fullwidth{ max-width:100%; margin-top:24px; }
  .sc-section-head{ margin-bottom:28px; }
  .sc-justforyou, .sc-benefits, .sc-newsletter{ padding:44px 0; }
  .sc-footer{ padding:40px 0 20px; }
  .sc-footer-bottom{ justify-content:center; text-align:center; }
  .sc-announce{ font-size:11px; }
}

@media (max-width: 480px){
  .sc-logo{ font-size:21px; letter-spacing:1px; }
  .sc-header-inner{ padding:12px var(--sc-gutter); gap:10px; }
  .sc-header-icons{ gap:14px; }
  .sc-hero-slide.is-active{ min-height:70vh; }
  .sc-hero-content h1{ font-size:24px; }
  .sc-hero-content p{ font-size:14px; }
  .sc-hero-content .sc-btn{ width:100%; }
  .sc-hero-arrow{ display:none; }
  .sc-hero-dots{ bottom:20px; }
  .sc-footer-grid{ grid-template-columns:1fr; gap:24px; }
  .sc-benefits-grid{ gap:20px; }
  .sc-newsletter-form{ flex-direction:column; border:0; gap:10px; }
  .sc-newsletter-form input[type=email]{ border:1px solid var(--sc-black); }
  .sc-newsletter-form button{ padding:14px 22px; }
  .sc-formula-copy .sc-btn{ width:100%; }
  .sc-formula-item{ padding:16px 0; }
  .sc-single-product p.price{ font-size:20px; }
  .sc-variation-pill{ padding:12px 16px; }
  .sc-feature-checks{ gap:8px 16px; }
}