/*
Theme Name: KOKO Stores
Theme URI: https://kokointernet.com/
Description: Minimal, global retail child theme for the KOKO Digital Platform.
Author: KOKO Group
Template: koko-enterprise-core
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: koko-stores
*/

:root {
  --ks-bg: #ffffff;
  --ks-surface: #f6f6f3;
  --ks-text: #171717;
  --ks-muted: #6b6b68;
  --ks-border: #deded8;
  --ks-accent: #171717;
  --ks-max: 1440px;
  --ks-gutter: clamp(20px, 4vw, 64px);
  --ks-space: clamp(64px, 9vw, 144px);
}

html { scroll-behavior: smooth; }
body.koko-stores-site { margin: 0; color: var(--ks-text); background: var(--ks-bg); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.koko-stores-site * { box-sizing: border-box; }
body.koko-stores-site a { color: inherit; }
.ks-shell { width: min(calc(100% - (2 * var(--ks-gutter))), var(--ks-max)); margin-inline: auto; }
.ks-main { min-height: 60vh; }

.ks-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(23,23,23,.08); backdrop-filter: blur(16px); }
.ks-header__inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.ks-wordmark { text-decoration: none; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.ks-nav { justify-self: center; }
.ks-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.ks-nav a { text-decoration: none; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.ks-header__tools { display: flex; align-items: center; gap: 18px; }
.ks-header__tools a { text-decoration: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.ks-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding-inline: 5px; border-radius: 999px; background: var(--ks-text); color: #fff; font-size: .65rem; }
.ks-menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.ks-menu-toggle span { display: block; width: 22px; height: 1px; background: var(--ks-text); margin: 5px 0; }

.ks-hero { min-height: min(82vh, 900px); display: grid; align-items: end; position: relative; overflow: hidden; background: linear-gradient(125deg, #eeeee9 0%, #fafaf8 58%, #e4e2da 100%); }
.ks-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 78% 28%, rgba(255,255,255,.9), transparent 33%), linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.12)); }
.ks-hero__content { position: relative; z-index: 2; padding-block: clamp(110px, 14vw, 200px) clamp(70px, 8vw, 120px); max-width: 850px; }
.ks-kicker { margin: 0 0 24px; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ks-muted); }
.ks-hero h1 { margin: 0; max-width: 850px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(4.1rem, 9.6vw, 9rem); font-weight: 500; line-height: .86; letter-spacing: -.045em; }
.ks-hero__copy { max-width: 600px; margin: 34px 0 0; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; color: #4d4d49; }
.ks-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.ks-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border: 1px solid var(--ks-text) !important; border-radius: 0 !important; background: var(--ks-text) !important; color: #fff !important; text-decoration: none; font-size: .74rem !important; font-weight: 600 !important; letter-spacing: .13em; line-height: 1.1 !important; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.ks-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); background: #333 !important; }
.ks-button--ghost { background: transparent !important; color: var(--ks-text) !important; }
.ks-button--ghost:hover { background: var(--ks-text) !important; color: #fff !important; }

.ks-section { padding-block: var(--ks-space); }
.ks-section--soft { background: var(--ks-surface); }
.ks-section__head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: clamp(36px, 5vw, 72px); }
.ks-section__head h2 { margin: 0; max-width: 800px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.9rem, 6vw, 5.8rem); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
.ks-section__head p { max-width: 470px; margin: 0; color: var(--ks-muted); line-height: 1.75; }
.ks-text-link { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.ks-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ks-border); border: 1px solid var(--ks-border); }
.ks-category { min-height: 380px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; background: #fff; text-decoration: none; position: relative; overflow: hidden; }
.ks-category::before { content:""; position:absolute; inset:0; background: linear-gradient(145deg, #fafaf8, #e7e6df); transform: scale(1); transition: transform .5s ease; }
.ks-category:hover::before { transform: scale(1.035); }
.ks-category > * { position: relative; z-index: 1; }
.ks-category span { color: var(--ks-muted); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.ks-category h3 { margin: 10px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 500; }

.ks-product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: clamp(24px, 3vw, 44px) !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display:none !important; }
.woocommerce ul.products li.product, .ks-product-card { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display:block; }
.woocommerce ul.products li.product img, .ks-product-card__media img { width: 100% !important; aspect-ratio: 4/5; object-fit: cover; margin: 0 0 18px !important; background: var(--ks-surface); transition: transform .5s ease; }
.woocommerce ul.products li.product:hover img { transform: scale(1.015); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; margin: 0 0 7px !important; font-size: .96rem !important; font-weight: 500 !important; line-height: 1.45; }
.woocommerce ul.products li.product .price { color: var(--ks-muted) !important; font-size: .86rem !important; }
.woocommerce ul.products li.product .button { margin-top: 14px !important; width: 100%; }
.woocommerce span.onsale { min-height: auto !important; min-width: auto !important; padding: 7px 9px !important; border-radius: 0 !important; background: #fff !important; color: var(--ks-text) !important; border: 1px solid var(--ks-border); font-size: .65rem !important; line-height: 1 !important; letter-spacing: .1em; text-transform: uppercase; top: 12px !important; left: 12px !important; right: auto !important; }

.ks-editorial { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 650px; background: #151515; color: #fff; }
.ks-editorial__visual { background: linear-gradient(135deg,#deddd7,#8f8e89); min-height: 520px; }
.ks-editorial__copy { display:flex; flex-direction:column; justify-content:center; padding: clamp(46px, 7vw, 110px); }
.ks-editorial__copy h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.3rem, 6.5vw, 6.4rem); font-weight: 500; line-height:.93; }
.ks-editorial__copy p { max-width: 550px; margin: 30px 0 0; color: rgba(255,255,255,.74); line-height:1.8; }
.ks-editorial__copy .ks-button { border-color:#fff !important; background:#fff !important; color:#151515 !important; }

.ks-newsletter { padding-block: clamp(72px, 10vw, 150px); text-align:center; border-top:1px solid var(--ks-border); }
.ks-newsletter h2 { margin:0; font-family:"Cormorant Garamond", Georgia, serif; font-size:clamp(3rem, 7vw, 6.8rem); font-weight:500; line-height:.95; }
.ks-newsletter p { max-width:560px; margin:26px auto 0; color:var(--ks-muted); line-height:1.7; }
.ks-newsletter form { display:flex; max-width:560px; margin:34px auto 0; border-bottom:1px solid var(--ks-text); }
.ks-newsletter input[type=email] { flex:1; min-width:0; padding:15px 4px; border:0; background:transparent; color:var(--ks-text); font:inherit; }
.ks-newsletter button { border:0; background:transparent; padding:15px 0 15px 22px; font-size:.72rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }

.ks-page-hero { padding-block: clamp(110px, 14vw, 190px) clamp(60px, 8vw, 110px); background: var(--ks-surface); }
.ks-page-hero h1 { max-width: 1000px; margin:0; font-family:"Cormorant Garamond",Georgia,serif; font-size:clamp(4rem,9vw,8.5rem); font-weight:500; line-height:.88; letter-spacing:-.045em; }
.ks-content { padding-block: var(--ks-space); }
.ks-content__inner { max-width: 840px; font-size: 1.08rem; line-height: 1.85; }

.woocommerce .woocommerce-breadcrumb { margin: 0 0 36px !important; color: var(--ks-muted) !important; font-size: .72rem !important; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ks-muted) !important; }
.woocommerce-products-header { margin-bottom: 54px; }
.woocommerce-products-header__title.page-title { font-family:"Cormorant Garamond",Georgia,serif; font-size:clamp(3.6rem,7vw,7rem); font-weight:500; line-height:.9; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 38px !important; }
.woocommerce .woocommerce-ordering select { padding:10px 32px 10px 0; border:0; border-bottom:1px solid var(--ks-border); background:#fff; }
.woocommerce div.product { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr); gap:clamp(40px,7vw,110px); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width:auto !important; float:none !important; }
.woocommerce div.product .product_title { font-family:"Cormorant Garamond",Georgia,serif; font-size:clamp(3rem,5.5vw,5.5rem); font-weight:500; line-height:.95; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color:var(--ks-text) !important; font-size:1.15rem !important; }
.woocommerce div.product .woocommerce-product-details__short-description { color:var(--ks-muted); line-height:1.8; }
.woocommerce div.product form.cart { display:flex; gap:12px; margin-top:32px; }
.woocommerce .quantity .qty { min-height:48px; border:1px solid var(--ks-border); }
.woocommerce div.product .woocommerce-tabs { grid-column:1/-1; padding-top:70px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding:0 !important; border-bottom:1px solid var(--ks-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display:none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border:0 !important; background:transparent !important; padding:0 26px 12px 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display:none !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top:0 !important; border-left:3px solid var(--ks-text); background:var(--ks-surface); color:var(--ks-text); }

.ks-footer { padding-block: 70px 30px; background:#111; color:#fff; }
.ks-footer__top { display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:48px; padding-bottom:70px; }
.ks-footer h2 { margin:0; font-size:1.15rem; letter-spacing:.14em; }
.ks-footer h3 { margin:0 0 18px; font-size:.72rem; letter-spacing:.13em; text-transform:uppercase; color:rgba(255,255,255,.55); }
.ks-footer ul { list-style:none; margin:0; padding:0; }
.ks-footer li + li { margin-top:10px; }
.ks-footer a { text-decoration:none; color:rgba(255,255,255,.84); }
.ks-footer__bottom { display:flex; justify-content:space-between; gap:24px; padding-top:28px; border-top:1px solid rgba(255,255,255,.14); color:rgba(255,255,255,.5); font-size:.75rem; }

.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; }
.screen-reader-text:focus { position:fixed!important; left:12px; top:12px; z-index:9999; width:auto; height:auto; clip:auto; padding:12px 18px; background:#fff; color:#111; }
:focus-visible { outline:2px solid #111; outline-offset:4px; }

@media (max-width: 980px) {
  .ks-header__inner { grid-template-columns:auto auto; justify-content:space-between; }
  .ks-menu-toggle { display:block; }
  .ks-nav { display:none; grid-column:1/-1; justify-self:stretch; padding:0 0 24px; }
  .ks-nav.is-open { display:block; }
  .ks-nav ul { flex-direction:column; align-items:flex-start; gap:18px; }
  .ks-header__tools .ks-account-link { display:none; }
  .ks-category-grid { grid-template-columns:1fr; }
  .ks-category { min-height:260px; }
  .ks-product-grid, .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .ks-editorial { grid-template-columns:1fr; }
  .ks-footer__top { grid-template-columns:1fr 1fr; }
  .woocommerce div.product { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .ks-header__inner { min-height:66px; gap:14px; }
  .ks-wordmark { font-size:.95rem; }
  .ks-header__tools { gap:10px; }
  .ks-header__tools .ks-search-link { display:none; }
  .ks-hero { min-height:75vh; }
  .ks-hero h1 { font-size:clamp(3.5rem,18vw,5.8rem); }
  .ks-section__head { display:block; }
  .ks-section__head p, .ks-section__head .ks-text-link { display:block; margin-top:22px; }
  .ks-product-grid, .woocommerce ul.products { grid-template-columns:1fr 1fr !important; gap:24px 12px !important; }
  .woocommerce ul.products li.product .button { display:none !important; }
  .ks-footer__top { grid-template-columns:1fr; }
  .ks-footer__bottom { flex-direction:column; }
  .ks-newsletter form { display:block; border:0; }
  .ks-newsletter input[type=email] { width:100%; border-bottom:1px solid var(--ks-text); }
  .ks-newsletter button { margin-top:12px; padding:14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
