:root{
  --brand:#2a4e51;
  --brand-contrast:#ffffff;
  --bg:#f6f8f9;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif;color:var(--text);background:var(--bg)}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1080px;margin:0 auto;padding:1rem}
.site-topbar{background:var(--brand);color:var(--brand-contrast);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.site-topbar .container{display:flex;align-items:center;justify-content:space-between}
.site-topbar .brand-link{display:inline-flex;align-items:center;gap:.5rem;color:var(--brand-contrast)}
.site-topbar .brand-logo{width:36px;height:36px;border-radius:.5rem;background:#ffffff;border:1px solid rgba(255,255,255,.25);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.site-topbar .brand-name{font-weight:800;font-size:1.1rem;letter-spacing:.2px}
.site-topbar .nav{display:flex;gap:.5rem;align-items:center}
.site-topbar .nav a{color:var(--brand-contrast);padding:.45rem .65rem;border-radius:.5rem;transition:background .2s ease, filter .2s ease}
.site-topbar .nav a:hover{text-decoration:none;background:rgba(255,255,255,.1)}
.site-topbar .nav a.active{background:rgba(255,255,255,.15)}

.main{padding-top:1rem;padding-bottom:2rem}
.hero{background:linear-gradient(160deg,#ffffff 0%,#f3f7f8 45%,#eef5f6 100%);border:1px solid var(--border);border-radius:1rem;padding:2.25rem;display:grid;gap:.75rem;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.hero-title{margin:0;font-weight:800;letter-spacing:-0.01em;font-size:clamp(1.8rem,3.2vw,2.4rem);color:#0f172a}
.hero-tagline{margin:.15rem 0 0;font-weight:600;color:#1f2937;font-size:clamp(1.05rem,1.6vw,1.25rem)}
.hero-sub{margin:.35rem 0 0;color:var(--muted);font-size:1rem;line-height:1.6}
.hero-actions{display:flex;gap:.5rem;align-items:center;margin-top:.75rem}
.btn-secondary{background:#e5e7eb;color:#111827}
.btn-secondary:hover{background:#d1d5db}
.btn{display:inline-flex;align-items:center;gap:.5rem;border:1px solid transparent;border-radius:.5rem;padding:.6rem 1rem;cursor:pointer;font-weight:600}
.btn-primary{background:var(--brand);color:var(--brand-contrast)}
.btn-primary:hover{filter:brightness(0.95)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.card{background:var(--card);border:1px solid var(--border);border-radius:.75rem;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card .body{padding:.75rem}
.product-img{width:100%;height:180px;object-fit:cover;background:#f0f2f3}
.price{font-weight:700}
.muted{color:var(--muted)}

.site-footer{border-top:1px solid var(--border);padding:1rem 0;margin-top:2rem;color:var(--muted)}

.product-view{display:grid;grid-template-columns:1fr 1.6fr;gap:1rem}
.product-gallery{background:var(--card);border:1px solid var(--border);border-radius:.75rem;padding:1rem}
.product-details{background:var(--card);border:1px solid var(--border);border-radius:.75rem;padding:1rem}
.product-main{width:100%;aspect-ratio:1/1;border-radius:.5rem;border:1px solid var(--border);background:#f0f2f3;overflow:hidden}
.product-main img{width:100%;height:100%;object-fit:cover;display:block}
.thumbs{display:flex;gap:.5rem;margin-top:.5rem;overflow-x:auto;padding-bottom:.25rem}
.thumbs img{width:60px;min-width:60px;height:60px;object-fit:cover;border-radius:.375rem;border:2px solid var(--border);cursor:pointer}
.thumbs img.active{border-color:var(--brand)}
.thumbs img:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.table{width:100%;border-collapse:collapse;margin-top:.5rem}
.table th,.table td{border:1px solid var(--border);padding:.5rem;text-align:left}

@media (max-width: 800px){
  .product-view{grid-template-columns:1fr}
}

/* Lightbox */
.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1000}
.lightbox.open{display:flex}
.lightbox-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.7)}
.lightbox-content{position:relative;max-width:min(92vw,1080px);max-height:92vh;margin:0;padding:0}
.lightbox-content img{max-width:100%;max-height:92vh;display:block;border-radius:.5rem}
.lightbox-close{position:absolute;top:12px;right:12px;background:#ffffff;border:1px solid var(--border);border-radius:999px;width:36px;height:36px;font-size:20px;line-height:20px;cursor:pointer}

/* Checkout */
.alert{padding:.6rem .75rem;border-radius:.5rem}
.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.form-grid{display:grid;grid-template-columns:1fr;gap:.75rem}
.field{display:flex;flex-direction:column;gap:.35rem;font-weight:600}
.field input,.field textarea,.field select{font-weight:400;padding:.65rem .75rem;border:1px solid var(--border);border-radius:.5rem;font-size:1rem}
.card-section{margin:.5rem 0}
.card-element{padding:.65rem .75rem;border:1px solid var(--border);border-radius:.5rem;background:#fff}
.meta{color:var(--muted);font-size:.9rem}

/* Product detail (Dawn-like) */
.product-title{margin:0 0 .25rem;font-weight:700;font-size:clamp(1.5rem,2.5vw,2rem)}
.product-price{font-weight:700;font-size:1.25rem;margin:.25rem 0 .75rem}
.qty-row{display:flex;gap:.5rem;align-items:center;margin:.5rem 0 .75rem}
.qty-label{font-weight:600;color:var(--muted)}
.qty-select,.qty-custom{padding:.6rem .75rem;border:1px solid var(--border);border-radius:.5rem;font-size:1rem}
.qty-custom{width:120px}
.product-meta{margin:.5rem 0 1rem}
.section-title{font-size:1.125rem;margin:1rem 0 .5rem}
.product-description{line-height:1.6}
.packlist{margin:1rem 0}
.packlist__title{margin-bottom:.25rem}
.packlist__items{list-style:none;padding:0;margin:0;border:1px solid var(--border);border-radius:.5rem;overflow:hidden}
.packlist__items li{display:flex;justify-content:space-between;gap:.75rem;padding:.5rem .75rem;border-top:1px solid var(--border)}
.packlist__items li:first-child{border-top:none}

/* Minimal product grid (Dawn-like) */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem}
.product-grid--3{grid-template-columns:repeat(3,1fr)}
.product-card{display:block;text-decoration:none;color:inherit}
.product-card__image-wrapper{aspect-ratio:1/1;background:#f4f5f6;border:1px solid var(--border);border-radius:.5rem;overflow:hidden}
.product-card__image{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.product-card:hover .product-card__image{transform:scale(1.03)}
.product-card__info{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-top:.5rem}
.product-card__title{margin:0;font-size:1rem;font-weight:200;color:var(--text)}
.product-card__price{font-weight:700;white-space:nowrap}
.product-card__desc{grid-column:1 / -1;margin:.25rem 0 0;color:var(--muted);font-weight:200;font-size:.95rem;line-height:1.4}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:2rem 0;margin-top:2rem;color:var(--muted);background:#ffffff}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}
.footer-col h4{margin:.25rem 0 .5rem;color:var(--text);font-size:1rem}
.footer-col ul{list-style:none;padding:0;margin:0;display:grid;gap:.35rem}
.footer-col a{color:inherit}
.footer-meta{margin-top:1rem;display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;color:var(--muted);font-size:.9rem}

/* Responsive overrides for 3-col grid */
@media (max-width: 900px){
  .product-grid--3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 600px){
  .product-grid--3{grid-template-columns:1fr}
}

/* Pagination */
.pagination{display:flex;justify-content:center;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.page-btn{display:inline-block;padding:.5rem .8rem;border:1px solid var(--border);border-radius:.5rem;background:#fff;color:var(--text)}
.page-btn:hover{text-decoration:none;filter:brightness(0.98)}
.page-btn.active{background:var(--brand);color:var(--brand-contrast);border-color:var(--brand)}
.page-btn.disabled{opacity:.5;pointer-events:none}

/* Retailers */
.retailers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.retailer-card{display:flex;align-items:center;gap:1rem;border:1px solid var(--border);border-radius:.75rem;padding:.75rem;background:#fff}
.retailer-logo{width:150px;height:150px;border-radius:.5rem;display:grid;place-items:center;background:#fff;color:#0f172a;border:1px solid var(--border);padding:10px}
.retailer-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.retailer-name{font-weight:700}
@media (max-width: 700px){
  .retailers-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 480px){
  .retailers-grid{grid-template-columns:1fr}
}
