:root{
  --navy:#f7f1e3; --navy-deep:#ffffff; --orange:#f7f1e3; --orange-deep:#1c1712;
  --yellow:#f7f1e3; --green:#1c1712; --red:#1c1712; --grey-bg:#faf7f0; --border:#e2dbc9; --ink:#1c1712; --sub:#6b6357;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:Arial,Helvetica,sans-serif;background:var(--grey-bg);color:var(--ink);}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:1280px;margin:0 auto;padding:0 20px;}
button,input,select{font-family:inherit;}

.img-slot{background:repeating-linear-gradient(45deg,#e9e4d8,#e9e4d8 10px,#f2eee2 10px,#f2eee2 20px);border:2px dashed #b3a892;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#6b6357;font-size:12px;text-align:center;line-height:1.5;padding:8px;width:100%;height:100%;}
.img-slot b{font-size:12.5px;color:#4a4438;display:block;margin-bottom:2px;}
.img-slot span{font-size:10.5px;opacity:.8;}
.slot-fill{width:100%;height:100%;object-fit:cover;}

/* flash messages */
.flash-wrap{max-width:1280px;margin:12px auto 0;padding:0 20px;}
.flash{padding:10px 16px;margin-bottom:10px;border-radius:4px;font-size:13.5px;}
.flash.success{background:#f2efe6;color:var(--ink);border:1px solid var(--border);}
.flash.error{background:#f2efe6;color:var(--ink);border:1px solid var(--ink);}

/* utility bar + header */
.util-bar{background:var(--navy-deep);color:var(--sub);font-size:12px;border-bottom:1px solid var(--border);}
.util-bar .wrap{display:flex;justify-content:space-between;align-items:center;padding:6px 20px;flex-wrap:wrap;gap:8px;}
.util-bar a{margin-left:16px;}

/* festival decorative strip */
.festival-strip{
  height:14px;width:100%;
}
.festival-motif-ribbon{
  overflow:hidden;white-space:nowrap;font-size:20px;padding:8px 0;text-align:center;
  letter-spacing:10px;
}
header{background:var(--navy);color:var(--header-text);border-bottom:1px solid var(--border);}
.header-main{display:flex;align-items:center;gap:20px;padding:14px 20px;max-width:1280px;margin:0 auto;flex-wrap:wrap;}
.logo{font-size:26px;font-weight:800;letter-spacing:-0.5px;color:var(--header-text);flex-shrink:0;}
.logo span{color:var(--header-text);font-style:italic;}
.search-bar{flex:1;display:flex;min-width:240px;border:1px solid var(--border);}
.search-bar select{background:#f2efe6;border:none;padding:0 10px;font-size:12px;border-right:1px solid var(--border);color:var(--ink);}
.search-bar input{flex:1;border:none;padding:10px 14px;font-size:14px;outline:none;color:var(--ink);}
.search-bar button{background:var(--ink);border:none;padding:0 18px;cursor:pointer;font-size:16px;color:#fff;}
.header-icons{display:flex;align-items:center;gap:22px;font-size:12px;flex-shrink:0;}
.header-icons .icon-item{display:flex;flex-direction:column;align-items:center;cursor:pointer;}
.header-icons .icon-item b{font-size:13px;font-weight:600;}
.cart-count{background:var(--ink);color:#fff;border-radius:50%;width:16px;height:16px;font-size:10px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;margin-left:3px;}
.cat-nav{background:var(--navy-deep);color:var(--header-text);font-size:13px;border-bottom:1px solid var(--border);}
.cat-nav .wrap{display:flex;align-items:center;gap:22px;padding:9px 20px;overflow-x:auto;}
.cat-nav a{white-space:nowrap;opacity:.8;}
.cat-nav a.active{opacity:1;text-decoration:underline;font-weight:700;}

/* hero + categories */
.hero-carousel{padding:20px 0 4px;}
.hero-slide-wrap{position:relative;height:440px;border-radius:16px;overflow:hidden;box-shadow:0 16px 40px rgba(28,23,18,0.2);}
.hero-slide-item{position:absolute;inset:0;opacity:0;transition:opacity 1.1s ease;}
.hero-slide-item.active{opacity:1;}
.hero-slide-item img{width:100%;height:100%;object-fit:cover;}
.hero-slide-wrap .img-slot{border-radius:16px;}
.hero-dots{position:absolute;bottom:18px;left:0;right:0;display:flex;justify-content:center;gap:8px;z-index:3;}
.hero-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 1px 3px rgba(0,0,0,.3);}
.hero-dot.active{background:#fff;}
.cat-icons{background:#fff;padding:22px 0;border-bottom:8px solid var(--grey-bg);}
.cat-icons-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;justify-items:center;}
.cat-icon-item{text-align:center;cursor:pointer;}
.cat-icon-item .circle{width:250px;aspect-ratio:1;border-radius:14px;overflow:hidden;margin:0 auto 8px;background:#f2eee2;border:1px solid var(--border);}
.cat-icon-item p{font-size:14px;font-weight:600;color:var(--ink);}

/* section + product cards */
.section-card{background:#fff;margin-bottom:10px;padding:18px 20px 22px;}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;flex-wrap:wrap;gap:8px;}
.section-head h2{font-size:19px;font-weight:700;}
.section-head .see-all{color:var(--ink);font-size:13px;font-weight:600;text-decoration:underline;}
.prod-scroll{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.prod-card{border:1px solid var(--border);border-radius:8px;padding:12px;position:relative;background:#fff;box-shadow:0 2px 6px rgba(28,23,18,.06);transition:transform .22s ease,box-shadow .22s ease;will-change:transform;}
.prod-card:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 20px 34px rgba(28,23,18,.18);}
.prod-thumb{border-radius:6px;overflow:hidden;}
.prod-thumb{height:150px;margin-bottom:10px;background:#f2eee2;}
.prod-thumb img{width:100%;height:100%;object-fit:cover;}
.prod-badge{position:absolute;top:8px;left:8px;background:var(--orange);color:var(--header-text);font-size:10.5px;font-weight:700;padding:2px 6px;border-radius:2px;z-index:2;}
.prod-badge.out{background:#fff;color:var(--ink);border:1px solid var(--ink);}
.prod-title{font-size:13px;line-height:1.4;color:var(--ink);margin-bottom:6px;min-height:36px;}
.prod-title a{display:block;}
.prod-title a:hover{text-decoration:underline;}
.prod-rating{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--ink);margin-bottom:6px;}
.prod-rating .count{color:var(--sub);font-size:12px;}
.prod-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;}
.prod-price .now{font-size:18px;font-weight:700;color:var(--ink);}
.prod-price .was{font-size:12px;color:var(--sub);text-decoration:line-through;}
.prod-price .off{font-size:12px;color:var(--sub);font-weight:700;text-decoration:underline;}
.prod-assured{font-size:10.5px;color:var(--sub);margin-top:4px;}

/* promo strips */
.promo-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px;}
.promo-strip .img-slot,.promo-strip .slot-fill{height:220px;}
.full-banner{margin-bottom:10px;}
.full-banner .img-slot,.full-banner .slot-fill{height:200px;}

/* trust strip */
.trust-strip{background:#fff;padding:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:10px;text-align:center;border-top:1px solid var(--border);}
.trust-item b{display:block;font-size:13.5px;margin-bottom:4px;}
.trust-item p{font-size:11.5px;color:var(--sub);}

/* shop page */
.shop-layout{display:grid;grid-template-columns:220px 1fr;gap:16px;margin-top:14px;}
.shop-filters{background:#fff;padding:16px;height:fit-content;}
.shop-filters h4{font-size:13px;margin-bottom:10px;text-transform:uppercase;color:var(--sub);}
.shop-filters a{display:block;padding:6px 0;font-size:13.5px;border-bottom:1px solid #f0f0f0;color:var(--ink);}
.shop-filters a.active{font-weight:700;text-decoration:underline;}
.shop-toolbar{background:#fff;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;flex-wrap:wrap;gap:10px;}
.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}

/* product detail */
.pd-layout{display:grid;grid-template-columns:420px 1fr;gap:36px;background:#fff;padding:28px;margin-top:14px;}
.pd-gallery .main-img{height:420px;background:#f2eee2;margin-bottom:10px;border-radius:8px;overflow:hidden;}
.pd-gallery .main-img img{width:100%;height:100%;object-fit:cover;}
.pd-thumbs{display:flex;gap:8px;flex-wrap:wrap;}
.pd-thumb-btn{width:64px;height:64px;border-radius:6px;overflow:hidden;border:2px solid var(--border);cursor:pointer;opacity:.75;transition:opacity .15s,border-color .15s;}
.pd-thumb-btn img{width:100%;height:100%;object-fit:cover;}
.pd-thumb-btn:hover{opacity:1;}
.pd-thumb-btn.selected{opacity:1;border-color:var(--orange-deep);}
.pd-title{font-size:22px;font-weight:700;margin-bottom:8px;}
.pd-meta{font-size:13px;color:var(--sub);margin-bottom:12px;}
.pd-gi{display:inline-block;background:#f2efe6;color:var(--ink);border:1px solid var(--border);font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:3px;margin-bottom:14px;}
.pd-price-row{display:flex;align-items:baseline;gap:12px;margin-bottom:16px;}
.pd-price-row .now{font-size:28px;font-weight:800;color:var(--ink);}
.pd-price-row .was{font-size:16px;color:var(--sub);text-decoration:line-through;}
.pd-price-row .off{font-size:14px;color:var(--sub);font-weight:700;text-decoration:underline;}
.pd-variants{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;}
.pd-variant-btn{border:1.5px solid var(--border);padding:10px 16px;font-size:13px;cursor:pointer;background:#fff;border-radius:3px;color:var(--ink);}
.pd-variant-btn.selected{border-color:var(--ink);background:#f2efe6;font-weight:700;}
.pd-variant-btn.disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through;}
.pd-actions{display:flex;gap:12px;margin-bottom:24px;}
.pd-desc{font-size:14px;line-height:1.7;color:#444;margin-bottom:18px;}
.pd-stock{font-size:12.5px;margin-bottom:14px;color:var(--sub);}
.pd-stock.low{color:var(--ink);font-weight:700;}
.pd-stock.out{color:var(--ink);font-weight:700;text-decoration:underline;}

/* buttons */
.btn{display:inline-block;border:none;padding:12px 26px;font-size:14px;font-weight:700;border-radius:3px;cursor:pointer;text-align:center;}
.btn-cart{background:#fff;color:var(--ink);border:1.5px solid var(--ink);}
.btn-buy{background:var(--ink);color:#fff;}
.btn-outline{background:#fff;border:1.5px solid var(--ink);color:var(--ink);}
.btn-sm{padding:7px 14px;font-size:12.5px;}

/* cart page */
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:16px;margin-top:14px;}
.cart-item{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid var(--border);align-items:center;}
.cart-item .thumb{width:80px;height:80px;background:#f2eee2;flex-shrink:0;}
.cart-item .thumb img{width:100%;height:100%;object-fit:cover;}
.cart-item .info{flex:1;}
.cart-item .qty-box{display:flex;align-items:center;gap:8px;}
.cart-item .qty-box input{width:50px;padding:6px;border:1px solid var(--border);text-align:center;}
.cart-summary{background:#fff;padding:18px;height:fit-content;}
.cart-summary h3{font-size:15px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border);}
.cart-summary-row{display:flex;justify-content:space-between;font-size:13.5px;margin-bottom:10px;}
.cart-summary-row.total{font-size:16px;font-weight:700;border-top:1px solid var(--border);padding-top:10px;margin-top:10px;}
.discount-form{display:flex;gap:8px;margin:14px 0;}
.discount-form input{flex:1;padding:8px 10px;border:1px solid var(--border);font-size:13px;}

/* checkout */
.checkout-layout{display:grid;grid-template-columns:1fr 340px;gap:16px;margin-top:14px;}
.checkout-form{background:#fff;padding:24px;}
.checkout-form label{font-size:12.5px;font-weight:700;display:block;margin-top:14px;margin-bottom:4px;}
.checkout-form input,.checkout-form textarea{width:100%;padding:9px 12px;border:1px solid var(--border);font-size:13.5px;}
.checkout-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}

/* auth pages */
.auth-box{max-width:400px;margin:50px auto;background:#fff;padding:32px;}
.auth-box h2{font-size:20px;margin-bottom:20px;}
.auth-box label{font-size:12.5px;font-weight:700;display:block;margin-top:14px;margin-bottom:4px;}
.auth-box input{width:100%;padding:10px 12px;border:1px solid var(--border);font-size:13.5px;}
.auth-box .btn{width:100%;margin-top:20px;}
.auth-box p.switch{margin-top:16px;font-size:13px;text-align:center;color:var(--sub);}

/* account / orders */
.order-card{background:#fff;padding:18px;margin-bottom:12px;}
.order-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;flex-wrap:wrap;gap:8px;}
.status-badge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:3px;text-transform:uppercase;background:#f2efe6;color:var(--ink);border:1px solid var(--border);}

/* footer */
footer{background:var(--navy-deep);color:var(--sub);padding-top:40px;font-size:13px;margin-top:20px;border-top:1px solid var(--border);}
.foot-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;max-width:1280px;margin:0 auto;padding:0 20px 30px;}
.foot-col h6{color:var(--ink);font-size:12px;text-transform:uppercase;margin-bottom:14px;letter-spacing:.03em;}
.foot-col a{display:block;margin-bottom:10px;color:var(--sub);}
.foot-bottom{border-top:1px solid var(--border);padding:18px 20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;max-width:1280px;margin:0 auto;font-size:12px;color:var(--sub);}

@media(max-width:900px){
  .cat-icon-item .circle{width:100%;} .prod-scroll{grid-template-columns:repeat(2,1fr);}
  .promo-strip{grid-template-columns:1fr;} .trust-strip{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:repeat(2,1fr);} .hero-slide-wrap{height:220px;}
  .shop-layout,.pd-layout,.cart-layout,.checkout-layout{grid-template-columns:1fr;}
  .shop-grid{grid-template-columns:repeat(2,1fr);}
}

/* subtle soil/kraft-paper grain texture — page bg + white card surfaces (neutral ink/tan tint only) */
body{
  background-image:
    radial-gradient(rgba(28,23,18,0.045) 1px, transparent 1px),
    radial-gradient(rgba(107,99,87,0.03) 1px, transparent 1px);
  background-size:16px 16px, 16px 16px;
  background-position:0 0, 8px 8px;
}
.section-card,.cart-summary,.checkout-form,.auth-box,.order-card,
.shop-filters,.shop-toolbar,.pd-layout,.hero-carousel,.cat-icons,.trust-strip,.prod-card{
  background-color:#fffdf8;
  background-image:
    radial-gradient(rgba(28,23,18,0.03) 1px, transparent 1px),
    radial-gradient(rgba(107,99,87,0.02) 1px, transparent 1px);
  background-size:18px 18px, 18px 18px;
  background-position:0 0, 9px 9px;
}
