/* style.css */
:root{
  --w-blue:#004B9B;
  --w-blue-dark:#01346b;
  --w-red:#E30613;
  --w-light:#F5F7FB;
  --w-bg:#F3F4F6;
  --w-text:#111827;
  --w-muted:#6B7280;
  --w-radius-lg:18px;
  --w-radius-md:12px;
  --w-shadow-soft:0 18px 40px rgba(15,23,42,0.12);
}

*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(227,6,19,0.08) 0, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0,75,155,0.10) 0, transparent 55%),
    var(--w-bg);
  color:var(--w-text);
  line-height:1.5;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

.page{
  max-width:1200px;
  margin:0 auto;
  padding:16px 16px 40px;
}

/* HEADER */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(16px);
  box-shadow:0 12px 30px rgba(15,23,42,0.10);
  margin-bottom:28px;
  position:sticky;
  top:10px;
  z-index:50;
}
.logo-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-mark{
  width:34px;height:34px;
  border-radius:10px;
  background:conic-gradient(from 200deg,var(--w-blue),var(--w-red),var(--w-blue));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:18px;
  box-shadow:0 8px 18px rgba(0,0,0,0.25);
}
.logo-text{
  display:flex;flex-direction:column;
  font-size:14px;
}
.logo-text span:first-child{
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-weight:800;
  font-size:13px;
}
.logo-text span:last-child{
  font-size:11px;
  color:var(--w-muted);
}

.nav{
  display:flex;
  gap:18px;
  font-size:14px;
  color:var(--w-muted);
}
.nav a{
  position:relative;
  padding-bottom:2px;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0;bottom:-3px;
  width:0;height:2px;
  background:linear-gradient(90deg,var(--w-red),var(--w-blue));
  transition:width .2s;
  border-radius:999px;
}
.nav a:hover{color:var(--w-text)}
.nav a:hover::after{width:100%}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
}
.pill{
  padding:7px 12px;
  border-radius:999px;
  background:rgba(15,23,42,0.04);
  color:var(--w-muted);
}
.btn-cart{
  padding:8px 14px;
  border-radius:999px;
  background:var(--w-red);
  color:#fff;
  font-weight:600;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  box-shadow:0 12px 25px rgba(227,6,19,0.45);
}
.btn-cart span.icon{
  font-size:16px;
}
.cart-count{
  background:#fff;
  color:var(--w-red);
  border-radius:999px;
  padding:0 6px;
  font-size:11px;
  font-weight:700;
  min-width:18px;
  text-align:center;
}

/* MOBILE HEADER */
.nav-toggle{display:none}

/* HERO */
.hero{
  margin-top:28px;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:32px;
  align-items:center;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.95);
  box-shadow:0 8px 20px rgba(15,23,42,0.10);
  margin-bottom:12px;
}
.hero-badge-dot{
  width:9px;height:9px;
  border-radius:999px;
  background:var(--w-red);
}
.hero-title{
  font-size:32px;
  line-height:1.15;
  margin-bottom:10px;
  font-weight:800;
  letter-spacing:-0.03em;
}
.hero-title span.highlight{
  background:linear-gradient(90deg,var(--w-blue),var(--w-red));
  -webkit-background-clip:text;
  color:transparent;
}
.hero-sub{
  font-size:14px;
  color:var(--w-muted);
  max-width:420px;
  margin-bottom:18px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}
.btn-primary{
  padding:10px 18px;
  border-radius:999px;
  background:var(--w-blue);
  color:#fff;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:6px;
  box-shadow:0 14px 30px rgba(0,75,155,0.45);
}
.btn-secondary{
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  color:var(--w-blue-dark);
  border:1px solid rgba(148,163,184,0.5);
  cursor:pointer;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.hero-info-strip{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  font-size:12px;
  color:var(--w-muted);
  margin-top:8px;
}
.hero-info-item{
  display:flex;
  align-items:center;
  gap:6px;
}
.dot-small{
  width:5px;height:5px;border-radius:999px;
  background:var(--w-blue);
}

.hero-visual{
  position:relative;
  height:320px;
  border-radius:32px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.6) 0, transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(227,6,19,0.55) 0, transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0,75,155,0.75) 0, transparent 60%),
    #020617;
  overflow:hidden;
  box-shadow:var(--w-shadow-soft);
}
.hero-splash{
  position:absolute;
  inset:8%;
  border-radius:999px;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.35) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15,23,42,0.35) 0, transparent 55%);
  opacity:0.45;
  filter:blur(2px);
}
.hero-can{
  position:absolute;
  inset:auto;
  width:190px;
  height:230px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) rotate(-10deg);
  border-radius:26px;
  background:linear-gradient(145deg,#ffffff,#E5E7EB);
  box-shadow:0 30px 60px rgba(0,0,0,0.65);
  display:flex;
  flex-direction:column;
  padding:18px 16px;
}
.hero-can-top{
  height:16px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--w-blue-dark),var(--w-blue));
  margin-bottom:6px;
  position:relative;
}
.hero-can-top::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.6);
  opacity:0.8;
}
.hero-can-logo{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
}
.hero-can-logo-badge{
  width:22px;height:22px;
  border-radius:7px;
  background:conic-gradient(from 190deg,var(--w-blue),var(--w-red),var(--w-blue));
}
.hero-can-logo-text{
  font-size:13px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--w-blue-dark);
}
.hero-can-band{
  margin-top:auto;
  border-radius:16px;
  padding:8px 10px;
  background:linear-gradient(90deg,var(--w-blue),var(--w-red));
  color:#fff;
  font-size:11px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.hero-can-band span:first-child{
  font-weight:700;
}
.hero-fan{
  position:absolute;
  bottom:-50px;right:-40px;
  width:210px;height:210px;
  border-radius:50%;
  background:conic-gradient(
    from 160deg,
    #fffbeb,#fee2e2,#fee2e2,#dbeafe,#e0f2fe,#dcfce7,#fef9c3,#fee2e2
  );
  box-shadow:0 18px 36px rgba(0,0,0,0.5);
  filter:blur(0.4px);
}

.hero-tag-float{
  position:absolute;
  top:24px;right:22px;
  background:rgba(15,23,42,0.68);
  color:#E5E7EB;
  padding:8px 10px;
  border-radius:999px;
  font-size:11px;
  display:flex;
  align-items:center;
  gap:6px;
  backdrop-filter:blur(10px);
}
.hero-tag-float span.dot{
  width:7px;height:7px;border-radius:999px;
  background:#A7F3D0;
}

.hero-tag-bottom{
  position:absolute;
  left:18px;bottom:18px;
  background:rgba(15,23,42,0.75);
  color:#F9FAFB;
  padding:8px 12px;
  border-radius:14px;
  font-size:11px;
  max-width:160px;
  backdrop-filter:blur(10px);
}

/* CATEGORY STRIP */
.cat-strip{
  margin-top:32px;
  background:rgba(255,255,255,0.96);
  padding:12px 16px;
  border-radius:999px;
  box-shadow:0 16px 34px rgba(15,23,42,0.12);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.cat-strip-label{
  font-size:12px;
  color:var(--w-muted);
  margin-right:2px;
}
.cat-pill{
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  border:1px solid transparent;
  background:rgba(15,23,42,0.02);
  color:var(--w-text);
  display:flex;
  align-items:center;
  gap:6px;
  transition:background .18s, transform .18s, box-shadow .18s, border-color .18s;
}
.cat-pill span.dot{
  width:9px;height:9px;border-radius:999px;
}
.cat-pill.cat-int{background:rgba(59,130,246,0.05)}
.cat-pill.cat-int span.dot{background:#3B82F6}
.cat-pill.cat-ext span.dot{background:#F97316}
.cat-pill.cat-wood span.dot{background:#B45309}
.cat-pill.cat-metal span.dot{background:#4B5563}
.cat-pill.cat-primer span.dot{background:#10B981}
.cat-pill:hover{
  background:#fff;
  box-shadow:0 10px 20px rgba(15,23,42,0.12);
  transform:translateY(-1px);
}
.cat-pill.active{
  border-color:var(--w-blue);
  background:rgba(59,130,246,0.08);
}

/* SECTION TITLE */
.section{
  margin-top:32px;
}
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:14px;
}
.section-title{
  font-size:20px;
  font-weight:700;
  letter-spacing:-0.02em;
}
.section-sub{
  font-size:12px;
  color:var(--w-muted);
}
.section-link{
  font-size:12px;
  color:var(--w-blue);
  display:flex;
  align-items:center;
  gap:4px;
}

/* PRODUCTS GRID */
.products-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
@media (max-width:992px){
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:768px){
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .products-grid{grid-template-columns:repeat(1,minmax(0,1fr))}
}

.product-card{
  background:#fff;
  border-radius:var(--w-radius-lg);
  padding:12px 12px 13px;
  box-shadow:0 14px 30px rgba(15,23,42,0.08);
  display:flex;
  flex-direction:column;
  gap:9px;
  position:relative;
  overflow:hidden;
  transition:transform .18s, box-shadow .18s;
}
.product-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at 0 0, rgba(59,130,246,0.08) 0, transparent 55%),
             radial-gradient(circle at 100% 0, rgba(227,6,19,0.09) 0, transparent 55%);
  opacity:0;
  transition:opacity .25s;
  pointer-events:none;
}
.product-card:hover::before{opacity:1}
.product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 40px rgba(15,23,42,0.12);
}
.product-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:var(--w-muted);
}
.product-tag{
  padding:4px 8px;
  border-radius:999px;
  background:rgba(15,23,42,0.04);
}
.product-code{
  font-size:10px;
  color:var(--w-muted);
}

.product-image-wrap{
  margin-top:4px;
  margin-bottom:6px;
  background:linear-gradient(135deg,#EFF6FF,#FEE2E2);
  border-radius:16px;
  padding:14px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.product-image-placeholder{
  width:70px;height:90px;
  border-radius:18px;
  background:linear-gradient(160deg,#FFF,#E5E7EB);
  box-shadow:0 14px 25px rgba(15,23,42,0.35);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  font-size:10px;
  text-transform:uppercase;
  color:var(--w-blue-dark);
  font-weight:700;
  letter-spacing:0.12em;
}

.product-title{
  font-size:13px;
  font-weight:600;
  margin-bottom:2px;
}
.product-meta{
  font-size:11px;
  color:var(--w-muted);
  margin-bottom:4px;
}

.product-palette{
  display:flex;
  gap:6px;
  margin:3px 0 6px;
}
.chip{
  width:16px;height:16px;
  border-radius:6px;
  border:1px solid rgba(15,23,42,0.06);
}

.product-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:4px;
}
.price-wrap{
  display:flex;
  flex-direction:column;
}
.price-main{
  font-size:15px;
  font-weight:700;
  color:var(--w-blue-dark);
}
.price-note{
  font-size:10px;
  color:var(--w-muted);
}
.btn-add{
  font-size:11px;
  padding:7px 11px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:var(--w-red);
  color:#fff;
  display:flex;
  align-items:center;
  gap:5px;
  box-shadow:0 10px 22px rgba(227,6,19,0.55);
}

/* COLOR PALETTE SECTION */
.palette-wrap{
  margin-top:6px;
  background:linear-gradient(135deg,#0f172a,#111827);
  border-radius:24px;
  padding:18px;
  color:#E5E7EB;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:16px;
  box-shadow:0 18px 40px rgba(15,23,42,0.6);
}
.palette-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:6px;
}
.palette-sub{
  font-size:12px;
  color:#9CA3AF;
  margin-bottom:10px;
}
.palette-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-size:11px;
}
.palette-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:6px;
}
.palette-swatch{
  border-radius:9px;
  height:32px;
  border:1px solid rgba(15,23,42,0.25);
}
.palette-swatch span{
  display:block;
  font-size:9px;
  text-align:center;
  margin-top:18px;
  color:#f9fafb;
  text-shadow:0 1px 3px rgba(0,0,0,0.8);
}

.range-wrap{
  margin-top:4px;
}
.range-wrap label{
  display:block;
  font-size:11px;
  margin-bottom:4px;
}
.range-wrap input[type="range"]{
  width:100%;
  accent-color:var(--w-red);
}

.palette-preview{
  border-radius:18px;
  background:radial-gradient(circle at 0 0,rgba(255,255,255,0.18) 0,transparent 55%),
             radial-gradient(circle at 100% 100%,rgba(248,250,252,0.16) 0,transparent 55%),
             #020617;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.preview-wall{
  border-radius:15px;
  background:linear-gradient(135deg,#E5E7EB,#9CA3AF);
  height:90px;
  position:relative;
  overflow:hidden;
}
.preview-wall::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.4),transparent 40%,rgba(0,0,0,0.28));
  mix-blend-mode:soft-light;
}
.preview-floor{
  margin-top:4px;
  height:18px;
  border-radius:999px;
  background:radial-gradient(circle at 50% 0,rgba(0,0,0,0.35) 0,transparent 65%);
}
.preview-caption{
  font-size:11px;
  color:#9CA3AF;
}

/* INFO STRIP */
.info-strip{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.info-card{
  background:#fff;
  border-radius:18px;
  padding:12px 13px;
  box-shadow:0 14px 30px rgba(15,23,42,0.08);
  font-size:12px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.info-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--w-muted);
}
.info-title{
  font-weight:600;
}
.info-text{
  font-size:11px;
  color:var(--w-muted);
}

/* FOOTER */
.footer{
  margin-top:30px;
  padding-top:16px;
  border-top:1px solid rgba(148,163,184,0.5);
  font-size:11px;
  color:var(--w-muted);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

/* TOAST */
.toast{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%) translateY(120%);
  background:#16a34a;
  color:#f9fafb;
  padding:10px 16px;
  border-radius:999px;
  font-size:13px;
  box-shadow:0 16px 30px rgba(22,163,74,0.5);
  display:flex;
  align-items:center;
  gap:8px;
  z-index:100;
  opacity:0;
  transition:transform .2s ease-out, opacity .2s ease-out;
}
.toast.show{
  transform:translateX(-50%) translateY(0);
  opacity:1;
}

/* RESPONSIVE */
@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
  }
  .hero-visual{
    order:-1;
  }
  .palette-wrap{
    grid-template-columns:1fr;
  }
  .header{
    border-radius:18px;
  }
}

@media (max-width:768px){
  .nav{
    display:none;
  }
  .nav-toggle{
    display:inline-flex;
    width:32px;height:32px;
    border-radius:999px;
    border:1px solid rgba(148,163,184,0.6);
    align-items:center;justify-content:center;
    background:#fff;
    cursor:pointer;
    margin-right:6px;
  }
  .header{
    padding:8px 12px;
  }
  .hero-title{
    font-size:26px;
  }
  .cat-strip{
    border-radius:18px;
  }
  .info-strip{
    grid-template-columns:1fr;
  }
}
/* Product image when real URL exists */
.product-thumb{
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 14px;
}
.btn-details{
  font-size:11px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.6);
  cursor:pointer;
  background:#fff;
  color:#01346b;
  display:inline-flex;
  align-items:center;
}

