/* KENDU SUPERMARKET design system — brand palette per approved identity */
:root{
  --red:#B91F32; --red-dark:#8E1626; --red-tint:#F9E4E7;
  --green:#1F5B43; --green-dark:#143F2F; --green-tint:#E4F0EA;
  --gold:#D6A747; --gold-dark:#B8892F; --gold-tint:#F7EDD8;
  --white:#FFF9F2; --stone:#F0EDE6; --ink:#252525; --grey:#6B6B6B;
  --line:#E4DED2; --radius:12px;
  --pad:clamp(1rem,3.2vw,3rem);
  --font:Poppins,Montserrat,"Segoe UI",Arial,sans-serif;
  --shadow:0 2px 10px rgba(37,37,37,.08);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--white);color:var(--ink);line-height:1.55;font-size:16px;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--red);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:var(--ink)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:4px}
.row{width:100%;padding-inline:var(--pad)}
h1,h2,h3{line-height:1.15;font-weight:800}
.wrap{max-width:1200px;margin:0 auto}
.muted{color:var(--grey);font-size:.85rem}
.center{text-align:center}
.mt{margin-top:1.2rem}.mt2{margin-top:2rem}
.hidden{display:none!important}
.badge{display:inline-block;font-size:.72rem;font-weight:700;border-radius:4px;padding:.15rem .55rem;vertical-align:middle}
.badge-offer{background:var(--red);color:#fff}
.badge-fresh{background:var(--green);color:#fff}
.badge-out{background:#8a8a8a;color:#fff}
.badge-sample{background:var(--gold-tint);color:var(--gold-dark);border:1px solid var(--gold)}

/* ---------- utility bar ---------- */
.util{background:var(--ink);color:#fff;font-size:.8rem}
.util-row{display:flex;justify-content:space-between;gap:.4rem 1.5rem;flex-wrap:wrap;align-items:center;padding-block:.45rem}
.util select{background:transparent;color:#fff;border:1px solid #666;border-radius:6px;padding:.2rem .5rem;font-size:.8rem;max-width:220px}
.util select option{color:#000}
.util-contact a{color:#fff}
.wa-btn{display:inline-block;background:var(--green);color:#fff;border-radius:999px;padding:.15rem .7rem;font-weight:700}
.wa-btn:hover{background:var(--green-dark);text-decoration:none}

/* ---------- header ---------- */
header.site{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.site-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:1.5rem;align-items:center;padding-block:.8rem}
.brand{display:inline-flex;align-items:center;gap:.7rem}
.brand img{width:46px;height:46px}
.brand-txt{display:flex;flex-direction:column;line-height:1}
.brand-txt b{font-weight:800;font-size:1.45rem;color:var(--red);letter-spacing:.5px}
.brand-txt i{font-style:normal;font-weight:800;font-size:.68rem;letter-spacing:.22em;color:var(--green);margin-top:3px}
.search{display:flex;max-width:720px;width:100%}
.search input{flex:1;min-width:0;border:2px solid var(--line);border-right:0;border-radius:8px 0 0 8px;padding:.7rem 1rem;background:var(--white)}
.search button{background:var(--red);color:#fff;border:0;border-radius:0 8px 8px 0;padding:0 1.4rem;font-weight:700}
.search button:hover{background:var(--red-dark)}
.tools{display:flex;gap:.6rem;align-items:center}
.pill{display:inline-flex;gap:.45rem;align-items:center;border:2px solid var(--line);background:#fff;border-radius:999px;padding:.5rem 1rem;font-weight:700;font-size:.9rem;color:var(--ink);text-decoration:none}
.pill:hover{border-color:var(--red);text-decoration:none}
.pill.cart{background:var(--green);color:#fff;border-color:var(--green)}
.pill.cart:hover{background:var(--green-dark);border-color:var(--green-dark)}
.pill.cart i{font-style:normal;background:var(--gold);color:var(--ink);border-radius:999px;min-width:1.5rem;text-align:center;padding:0 .35rem;font-size:.8rem}

/* ---------- category nav ---------- */
.cats{background:var(--red);color:#fff}
.cats-row ul{list-style:none;display:flex;gap:.25rem 1.6rem;overflow-x:auto;white-space:nowrap;align-items:center;scrollbar-width:none}
.cats a{display:block;text-decoration:none;font-weight:500;font-size:.92rem;padding:.8rem 0;border-bottom:3px solid transparent;color:#fff}
.cats a:hover{border-bottom-color:var(--gold);text-decoration:none}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:var(--ink)}
.track{display:flex;transition:transform .6s ease}
.slide{flex:0 0 100%;min-height:clamp(300px,36vw,520px);display:flex;align-items:center;border-bottom:10px solid var(--gold)}
.slide .row{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;align-items:center;padding-block:2.4rem}
.slide h1,.slide h2{font-weight:800;font-size:clamp(1.9rem,5vw,4.2rem);line-height:1.05;max-width:16ch;color:#fff}
.s3 h1,.s3 h2{color:var(--ink)}
.slide p{margin:1rem 0 1.7rem;font-size:clamp(1rem,1.4vw,1.25rem);max-width:36rem;color:rgba(255,255,255,.92)}
.slide .art{justify-self:end;width:min(360px,100%)}
.slide .art img{border:6px solid #fff;border-radius:26%;background:#fff}
.s1{background:var(--red)} .s2{background:var(--green)} .s3{background:var(--gold)}
.s3 h1,.s3 h2,.s3 p{color:var(--ink)}
.s3 p{color:rgba(37,37,37,.85)}
.btn{display:inline-block;text-decoration:none;font-weight:700;border-radius:8px;padding:.85rem 1.6rem;border:2px solid transparent}
.btn-main{background:var(--gold);color:var(--ink)}
.btn-main:hover{background:#fff;text-decoration:none}
.s3 .btn-main{background:var(--red);color:#fff}
.s3 .btn-main:hover{background:var(--red-dark)}
.dots{position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);display:flex;gap:.5rem}
.dots button{width:12px;height:12px;border-radius:50%;border:2px solid #fff;background:transparent;padding:0}
.dots button[aria-current="true"]{background:#fff}
.arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.92);font-size:1.4rem;font-weight:800;color:var(--ink)}
.arrow.prev{left:1rem}.arrow.next{right:1rem}
.arrow:hover{background:var(--gold)}

/* ---------- sections ---------- */
section.sec{padding-block:2.6rem}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.3rem;flex-wrap:wrap}
.sec-h h2{font-size:clamp(1.35rem,2.4vw,1.9rem)}
.sec-h a{font-weight:700;white-space:nowrap}
.sec-alt{background:#fff}

.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem}
.tile{display:block;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem .8rem;text-align:center;font-weight:700;color:var(--ink)}
.tile:hover{border-color:var(--red);transform:translateY(-3px);text-decoration:none}
.tile .ic{width:60px;height:60px;border-radius:50%;margin:0 auto .7rem;display:grid;place-items:center;font-size:1.4rem;font-weight:800;color:#fff;background:var(--red)}
.tile:nth-child(3n+2) .ic{background:var(--green)}
.tile:nth-child(3n) .ic{background:var(--gold);color:var(--ink)}

/* ---------- product cards ---------- */
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.prod{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:.85rem;display:flex;flex-direction:column;transition:box-shadow .15s}
.prod:hover{box-shadow:var(--shadow)}
.prod .ph{aspect-ratio:1/.85;border-radius:8px;display:grid;place-items:center;font-size:2.6rem;font-weight:800;color:rgba(255,255,255,.95);background:var(--green);overflow:hidden;position:relative}
.prod .ph img{width:100%;height:100%;object-fit:cover}
.prod .ph .initial{position:absolute}
.prod .badges{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.6rem;min-height:1.2rem}
.prod h3{font-size:.98rem;font-weight:600;line-height:1.3;margin-top:.45rem}
.prod .meta{font-size:.8rem;color:var(--grey)}
.prod .price-row{margin-top:auto;padding-top:.7rem;display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.prod .price{font-weight:800;font-size:1.12rem}
.prod .was{font-size:.8rem;color:var(--grey);text-decoration:line-through;font-weight:400}
.prod .add{background:var(--red);color:#fff;border:0;border-radius:8px;padding:.5rem .9rem;font-weight:700;font-size:.85rem}
.prod .add:hover{background:var(--red-dark)}
.prod .add[disabled]{background:#b9b9b9;cursor:not-allowed}
.note{margin-top:1rem;font-size:.82rem;color:var(--grey)}

/* ---------- promos / why / branches ---------- */
.promos{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1.1rem}
.promo{border-radius:14px;padding:2rem;min-height:210px;display:flex;flex-direction:column;justify-content:flex-end;text-decoration:none;color:#fff}
.promo:hover{text-decoration:none}
.promo h3{font-size:1.5rem}
.promo p{margin-top:.4rem;opacity:.9}
.p1{background:var(--green)} .p2{background:var(--gold);color:var(--ink)} .p2 p{color:rgba(37,37,37,.85)} .p3{background:var(--ink)} .p3 h3{color:var(--gold)}
.why{background:var(--stone)}
.why ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1.4rem}
.why li{display:flex;gap:.9rem;align-items:flex-start}
.why .dot{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;background:var(--red)}
.why li:nth-child(2) .dot{background:var(--green)}
.why li:nth-child(3) .dot{background:var(--gold);color:var(--ink)}
.why li:nth-child(4) .dot{background:var(--green-dark)}
.why h3{font-size:1rem}.why p{font-size:.88rem;color:var(--grey)}

.branches{background:var(--green);color:#fff}
.branches .sec-h h2{color:#fff}
.bgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.4rem}
.branch{background:var(--white);color:var(--ink);border-radius:14px;padding:1.7rem;border-top:10px solid var(--gold)}
.branch h3{font-size:1.4rem;color:var(--red)}
.branch dl{display:grid;grid-template-columns:5.5rem 1fr;gap:.6rem 1rem;margin:1rem 0 1.3rem}
.branch dt{font-weight:700;color:var(--gold-dark)}
.branch .btn-main{background:var(--red);color:#fff}
.branch .btn-main:hover{background:var(--red-dark)}
.tbd{color:var(--grey);font-style:italic}

/* ---------- newsletter ---------- */
.newsletter{background:var(--gold-tint)}
.news-form{display:flex;gap:.6rem;max-width:520px;margin-top:1rem;flex-wrap:wrap}
.news-form input[type=email]{flex:1;min-width:200px;border:2px solid var(--line);border-radius:8px;padding:.7rem 1rem;background:#fff}
.news-form button{background:var(--red);color:#fff;border:0;border-radius:8px;padding:.7rem 1.4rem;font-weight:700}
.news-form button:hover{background:var(--red-dark)}
.consent{font-size:.78rem;color:var(--grey);margin-top:.6rem;max-width:520px}

/* ---------- footer ---------- */
footer{background:var(--ink);color:#e8e8e8;font-size:.9rem;margin-top:0}
.fgrid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:2rem;padding-block:2.6rem}
footer h4{color:var(--gold);font-size:.95rem;margin-bottom:.7rem}
footer ul{list-style:none}
footer li{margin:.35rem 0}
footer a{color:#e8e8e8}
footer a:hover{color:var(--gold)}
.f-about{margin-top:1rem;max-width:26rem;color:#bbb}
.copy{border-top:1px solid #444;padding-block:1.1rem;color:#bbb;font-size:.82rem}

/* ---------- shop / catalogue ---------- */
.page-hero{background:var(--red);color:#fff;padding-block:2.2rem}
.page-hero h1{font-size:clamp(1.7rem,4vw,2.6rem)}
.page-hero p{margin-top:.4rem;opacity:.92}
.toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:.8rem;margin:1.4rem 0;align-items:end}
.field label{display:block;font-size:.82rem;font-weight:700;margin-bottom:.3rem;color:var(--grey)}
.field input,.field select{width:100%;border:2px solid var(--line);border-radius:8px;padding:.65rem .8rem;background:#fff}
.field input:focus,.field select:focus{border-color:var(--red);outline:none}
.catalog-note{background:var(--gold-tint);border:1px solid var(--gold);border-radius:var(--radius);padding:.9rem 1.1rem;font-size:.85rem;margin-bottom:1rem}
.pager{display:flex;gap:.5rem;justify-content:center;margin-top:1.6rem;flex-wrap:wrap}
.pager button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:.5rem .9rem;font-weight:700}
.pager button[aria-current]{background:var(--red);color:#fff;border-color:var(--red)}
.empty{padding:3rem 1rem;text-align:center;color:var(--grey)}

/* ---------- product detail ---------- */
.pd{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:2.2rem;padding-block:2rem}
.pd-img{border-radius:var(--radius);overflow:hidden;background:var(--stone);display:grid;place-items:center;min-height:320px}
.pd-img img{width:100%;height:100%;object-fit:cover}
.pd-img .initial{font-size:5rem;font-weight:800;color:var(--green)}
.pd h1{font-size:clamp(1.4rem,3vw,2rem)}
.pd .sku{font-size:.82rem;color:var(--grey);margin-top:.3rem}
.pd .price{font-size:1.9rem;font-weight:800;margin:.8rem 0 .2rem}
.pd .was{color:var(--grey)}
.stock-line{margin:.8rem 0;font-weight:700}
.stock-line.in{color:var(--green)} .stock-line.out{color:var(--red)}
.qty-row{display:flex;gap:.8rem;align-items:center;margin:1.2rem 0;flex-wrap:wrap}
.qty{display:flex;align-items:center;border:2px solid var(--line);border-radius:8px;overflow:hidden}
.qty button{width:42px;height:44px;border:0;background:var(--stone);font-size:1.3rem;font-weight:800}
.qty button:hover{background:var(--gold-tint)}
.qty input{width:64px;text-align:center;border:0;padding:.6rem 0;font-weight:700}
.btn-block{width:100%;text-align:center}
.add-cart{background:var(--red);color:#fff;border:0;border-radius:8px;padding:.9rem 1.4rem;font-weight:700;font-size:1rem;width:100%}
.add-cart:hover{background:var(--red-dark);text-decoration:none}
.add-cart[disabled]{background:#b9b9b9;cursor:not-allowed}
.desc{margin-top:1.4rem;color:#333}

/* ---------- cart ---------- */
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:2rem;padding-block:2rem;align-items:start}
.cart-item{display:grid;grid-template-columns:72px 1fr auto;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;margin-bottom:.8rem;align-items:center}
.cart-item .thumb{width:72px;height:72px;border-radius:8px;display:grid;place-items:center;background:var(--stone);font-weight:800;color:var(--green);overflow:hidden}
.cart-item .thumb img{width:100%;height:100%;object-fit:cover}
.cart-item h3{font-size:1rem}
.cart-item .unit{font-size:.8rem;color:var(--grey)}
.qty-sm .qty button{width:34px;height:38px;font-size:1.1rem}
.qty-sm .qty input{width:48px}
.line-total{font-weight:800;white-space:nowrap}
.remove{background:none;border:0;color:var(--red);font-size:.82rem;font-weight:700;padding:.4rem 0}
.summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;position:sticky;top:90px}
.summary h2{font-size:1.2rem;margin-bottom:1rem}
.sum-row{display:flex;justify-content:space-between;padding:.4rem 0;font-size:.95rem}
.sum-row.total{font-weight:800;font-size:1.15rem;border-top:1px solid var(--line);margin-top:.5rem;padding-top:.8rem}
.branch-note{background:var(--green-tint);border-radius:8px;padding:.7rem .9rem;font-size:.83rem;margin-bottom:1rem}

/* ---------- checkout ---------- */
.co-steps{display:flex;gap:.5rem;list-style:none;margin:1.2rem 0;flex-wrap:wrap}
.co-steps li{flex:1;min-width:120px;background:var(--stone);border-radius:8px;padding:.6rem .8rem;font-size:.82rem;font-weight:700;text-align:center}
.co-steps li.active{background:var(--red);color:#fff}
.co-steps li.done{background:var(--green);color:#fff}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
.form-grid .full{grid-column:1/-1}
label.f{display:block;font-size:.85rem;font-weight:700;margin-bottom:.3rem}
input.f,select.f,textarea.f{width:100%;border:2px solid var(--line);border-radius:8px;padding:.7rem .85rem;background:#fff}
input.f:focus,select.f:focus,textarea.f:focus{border-color:var(--red);outline:none}
.err{color:var(--red);font-size:.8rem;margin-top:.25rem;display:none}
.err.show{display:block}
.pay-opt{display:flex;gap:.8rem;align-items:flex-start;border:2px solid var(--line);border-radius:var(--radius);padding:1rem;margin-bottom:.7rem;cursor:pointer}
.pay-opt.sel{border-color:var(--red);background:var(--red-tint)}
.pay-opt input{margin-top:.3rem}
.pay-opt .t{font-weight:700}.pay-opt .d{font-size:.83rem;color:var(--grey)}
.pay-opt.disabled{opacity:.55;cursor:not-allowed}
.confirm{max-width:640px;margin:2rem auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:2rem;text-align:center}
.confirm .tick{width:70px;height:70px;border-radius:50%;background:var(--green);color:#fff;font-size:2rem;display:grid;place-items:center;margin:0 auto 1rem}
.order-ref{font-size:1.3rem;font-weight:800;color:var(--red);letter-spacing:.5px}

/* ---------- account ---------- */
.auth-card{max-width:460px;margin:2.5rem auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:2rem}
.auth-card h1{font-size:1.5rem;margin-bottom:1.2rem}
.auth-card .btn-main{width:100%;text-align:center;border:0}
.acct-grid{display:grid;grid-template-columns:240px 1fr;gap:2rem;padding-block:2rem;align-items:start}
.acct-nav{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;position:sticky;top:90px}
.acct-nav a{display:block;padding:.6rem .7rem;border-radius:8px;color:var(--ink);font-weight:600}
.acct-nav a:hover{background:var(--stone);text-decoration:none}
.acct-nav a.active{background:var(--red);color:#fff}
.acct-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem}
.acct-panel h2{font-size:1.2rem;margin-bottom:1rem}
table.orders{width:100%;border-collapse:collapse;font-size:.9rem}
table.orders th,table.orders td{border-bottom:1px solid var(--line);padding:.6rem .5rem;text-align:left}
table.orders th{color:var(--grey);font-size:.78rem;text-transform:uppercase;letter-spacing:.4px}
.st{font-weight:700;font-size:.8rem;border-radius:999px;padding:.15rem .7rem;display:inline-block}
.st-pending{background:var(--gold-tint);color:var(--gold-dark)}
.st-confirmed{background:var(--green-tint);color:var(--green-dark)}
.st-paid{background:var(--green);color:#fff}
.st-cancelled{background:#eee;color:#666}

/* ---------- legal ---------- */
.legal-wrap{max-width:760px;margin:0 auto;padding:2.5rem var(--pad)}
.legal-wrap h1{font-size:2rem;margin-bottom:.3rem}
.legal-wrap h2{font-size:1.2rem;margin:1.8rem 0 .6rem;color:var(--red)}
.legal-wrap p,.legal-wrap li{margin:.5rem 0;color:#333}
.legal-wrap ul{padding-left:1.3rem}
.legal-meta{color:var(--grey);font-size:.85rem;margin-bottom:1.5rem}

/* ---------- responsive ---------- */
@media (max-width:960px){
  .fgrid{grid-template-columns:1fr 1fr}
  .pd{grid-template-columns:1fr}
  .cart-layout{grid-template-columns:1fr}
  .summary{position:static}
  .acct-grid{grid-template-columns:1fr}
  .acct-nav{position:static;display:flex;flex-wrap:wrap;gap:.3rem}
  .toolbar{grid-template-columns:1fr}
}
@media (max-width:900px){
  .site-row{grid-template-columns:auto auto;grid-template-areas:"b t" "s s"}
  .brand{grid-area:b}.tools{grid-area:t;justify-self:end}.search{grid-area:s;max-width:none}
  .slide .row{grid-template-columns:1fr}
  .slide .art{display:none}
  .tools .pill:not(.cart){display:none}
  .form-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .fgrid{grid-template-columns:1fr}
  .arrow{display:none}
  .branch dl{grid-template-columns:1fr;gap:.1rem}
  .branch dd{margin-bottom:.6rem}
  .cart-item{grid-template-columns:56px 1fr;grid-template-rows:auto auto}
  .cart-item .line-total{grid-column:2;text-align:left}
  .cart-item .thumb{width:56px;height:56px}
}
@media (prefers-reduced-motion:reduce){.track{transition:none}.tile:hover,.prod{transform:none;transition:none}}
