/* css/jewelry.css */
:root{
  --brand-brown: #2f2b28;
  --accent: #6b3e26;
  --muted: #6c6c6c;
  --bg-soft: #fbfbfb;
  --card-radius: 12px;
  --max-width: 1200px;
  --transition: 180ms;
  --shadow-soft: 0 12px 36px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { height:100%; margin:0; font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background:var(--bg-soft); color:#222; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.container { max-width:var(--max-width); margin:0 auto; padding:0 1rem; }

.text-brown { color:var(--accent) !important; }
.text-muted { color:var(--muted) !important; }
.small { font-size:.9rem; }

/* Navbar */
.navbar { background:#fff; border-bottom:1px solid rgba(0,0,0,0.04); padding:.6rem 0; }
.brand-wrap { display:flex; align-items:center; gap:12px; }
.logo { height:44px; width:auto; border-radius:6px; object-fit:contain; box-shadow:0 6px 18px rgba(0,0,0,0.06); }

/* Hero */
.hero-banner { background:linear-gradient(180deg,#fff 0%, #fcfbf9 100%); padding:3rem 0; text-align:center; border-bottom:1px solid rgba(0,0,0,0.03); }
.hero-banner h1 { font-size:clamp(1.6rem,2.8vw,2.4rem); margin-bottom:.4rem; color:var(--brand-brown); }
.hero-banner .lead { color:#6b6b6b; margin-bottom:1rem; }

/* Filter bar */
.filter-bar { background:#fff; border-bottom:1px solid rgba(0,0,0,0.03); padding:.75rem 0; }
.filter-bar .btn { border-radius:8px; padding:8px 12px; font-weight:700; transition: transform var(--transition) ease, background var(--transition) ease; color:var(--brand-brown); border:1px solid rgba(47,43,40,0.08); background:transparent; }
.filter-bar .btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }

/* Section headings */
.section-title { font-size:1.25rem; color:var(--brand-brown); font-weight:700; margin:0; }
.section-subtle { color:var(--muted); font-size:.95rem; }

/* Grid */
.row.g-4 { gap:1.25rem; }

/* Product card */
.card.product-card { border:0; border-radius:var(--card-radius); overflow:hidden; transition: transform .22s ease, box-shadow .22s ease; background:#fff; display:flex; flex-direction:column; height:100%; box-shadow:var(--shadow-soft); border:1px solid rgba(0,0,0,0.03); }
.card.product-card .card-img-top { width:100%; height:220px; object-fit:cover; display:block; transition: transform .22s ease, filter .22s ease; background:linear-gradient(180deg,#fff7f9 0%,#fff0f4 100%); }
.card.product-card .card-body { padding:1rem; display:flex; flex-direction:column; gap:.5rem; }
.card.product-card .card-title { font-size:1rem; font-weight:800; color:#111; margin:0; }
.card.product-card .price { color:var(--muted); font-weight:800; margin-top:.25rem; }
.card.product-card .card-text { color:var(--muted); font-size:.95rem; margin:0.25rem 0 0.5rem 0; }

/* Size selector */
.size-select { max-width:180px; border-radius:8px; padding:.35rem .5rem; border:1px solid #eee; align-self:center; }

/* Buttons */
.d-grid.gap-2 { gap:.5rem; }
.btn-brown { background:var(--accent); color:#fff; border:0; padding:10px 12px; border-radius:8px; font-weight:700; }
.btn-outline-brown { color:var(--accent); border:2px solid var(--accent); background:transparent; border-radius:8px; padding:8px 12px; font-weight:700; }
.btn-outline-secondary { border-radius:8px; }

/* Hover */
.card.product-card:hover { transform:translateY(-6px); box-shadow:0 22px 60px rgba(0,0,0,0.08); }
.card.product-card:hover .card-img-top { transform:scale(1.02); }

/* Preview overlay */
.preview-overlay { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:1200; padding:20px; }
.preview-panel { width:100%; max-width:920px; background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,0.18); position:relative; }
.preview-panel img { width:100%; height:420px; object-fit:cover; display:block; }
.preview-body { padding:16px; }
.preview-body h3 { margin:0 0 8px 0; color:#222; font-weight:800; }
.preview-body p { margin:0; color:var(--muted); }

/* Lazy placeholder */
img.lazy { filter: blur(6px); transform: scale(1.01); transition: filter .4s ease, transform .4s ease; }
img.lazy-loaded { filter:none; transform:none; }

/* Load more */
#load-more { border-radius:8px; padding:.6rem 1rem; border:1px solid rgba(47,43,40,0.08); background:transparent; color:var(--brand-brown); }

/* Focus */
a:focus, button:focus, .btn:focus, .form-select:focus { outline:3px solid rgba(107,62,38,0.12); outline-offset:2px; }

/* Footer */
.footer { background:var(--accent); color:#fff; padding:1.25rem 0; text-align:center; }
.footer p { margin:.25rem 0; color:rgba(255,255,255,0.95); }

/* Responsive */
@media (max-width:991px) { .card.product-card .card-img-top { height:200px; } .hero-banner { padding:2.25rem 0; } .logo { height:40px; } }
@media (max-width:575px) { .card.product-card .card-img-top { height:160px; } .filter-bar .btn { padding:6px 8px; font-size:.9rem; } .preview-panel img { height:260px; } }
