/* Accessories – matches Closet Drawers page styling */
:root{
  --card-radius: 8px;
  --shadow: 0 6px 22px rgba(0,0,0,.08);
  --border: 1px solid #e6e6e6;
  --text: #222;
  --muted: #666;
  --brand: #2e7d6b; /* subtle green you’ve used */
}

*{box-sizing:border-box;}
img{display:block;max-width:100%;height:auto;}
body{color:var(--text);font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;}

.accessories-wrap{
  max-width:1400px; /* aligns with legacy assets (2 × ~495px) */
  margin:0 auto;
  padding:12px;
}

.card{
  background:#fff;
  border:var(--border);
  border-radius:8px;
  box-shadow:var(--shadow);
}

.pad-s{padding:10px 14px;}
.pad-m{padding:18px 20px;}
.center{text-align:center;}
.note{color:var(--muted);margin:10px 0 18px;}

/* Top row */
.row-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.btn-link img{border-radius:8px;}
.accessories-inline-links{display:flex;gap:10px;flex-wrap:wrap;}
.btn-chip{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #d6d6d6;
  text-decoration:none;
  color:#0f0f0f;
  background:#fafafa;
  font-size: larger;
}
.btn-chip:hover{border-color:#111111;}

/* Rules */
.rule{
  border:none;
  height:1px;
  background:linear-gradient(to right, transparent, #dcdcdc, transparent);
  margin:18px 0;
}

/* Grids */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
}
.gap-m{gap:18px;}

.img-auto{height:auto;width:auto;max-width:100%;}
.img-fixed-height{width:auto;max-width:100%;/* height set inline per asset */}

/* Product area */
.product-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap:18px;
  align-items:start;
}
.product-col{display:flex;flex-direction:column;gap:10px;}

.spec-row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:10px;
  padding:10px 12px;
  border:1px solid #ececec;
  border-radius:10px;
  background:#fcfcfc;
}
.spec-label{font-weight:600;color:#333;}
.spec-value{color:#111;}

.product-form{
  align-self:stretch;
  border:1px solid #eaeaea;
  border-radius:12px;
  padding:14px;
  background:#f9faf9;
}
.form-label{display:block;font-size:14px;color:#222;margin:4px 0 6px;}
.input{
  width:100%;
  min-height:38px;
  border:1px solid #d5d5d5;
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
  margin-bottom:10px;
}
.qty{max-width:120px;}
.btn-primary{
  display:inline-block;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  background:var(--brand);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(46,125,107,.25);
}
.btn-primary:hover{filter:brightness(0.95);}

.product-thumb img{
  border-radius:10px;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

/* Finishes */
.finishes-grid{
  display:grid;
  grid-template-columns: repeat(9, 1fr);
  gap:10px;
  align-items:center;
  justify-items:center;
}
.finish-link img{
  border-radius:8px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  background:#fff;
  padding:4px;
  border:1px solid #eee;
}

/* Responsive */
@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr;}
  .product-grid{grid-template-columns:1fr;}
  .finishes-grid{grid-template-columns: repeat(3, 1fr);}
  .row-between{flex-direction:column;align-items:flex-start;}
}
@media (max-width: 520px){
  .finishes-grid{grid-template-columns: repeat(2, 1fr);}
  .pad-m{padding:14px;}
  .pad-s{padding:8px 12px;}
}


/* Active chip state—very light, still no dark backgrounds */
.btn-chip[aria-current="page"]{
  background:#fff;
  border-color:#111;
  box-shadow:0 1px 0 rgba(0,0,0,.05), inset 0 0 0 1px rgba(0,0,0,.03);
}

