/* ——— Fonts ——— */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;700&display=swap');

:root{
  /* Palette: clean luxury */
  --bg: #ffffff;
  --ink: #111111;
  --muted: #70757a;
  --line: #e9eaee;
  --panel: #f7f7f9;         /* light “shading” */
  --accent: #0D3B2E;        /* your dark green if you want it */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* ——— Global ——— */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif; line-height:1.45;}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto;border-radius:12px}

/* ——— Header (sticky) ——— */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#fff; border-bottom:1px solid var(--line);
  backdrop-filter:saturate(180%) blur(4px);
}
.nav-wrap{
  max-width:1200px; margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{
  font-family:'Playfair Display', serif;
  font-size:28px; letter-spacing:.5px;
}
.main-nav a{
  margin:0 14px; padding:8px 0; font-weight:500; color:#222;
  border-bottom:2px solid transparent;
}
.main-nav a:hover{border-bottom-color:#222}
.main-nav a.active{border-bottom-color:#222}

/* ——— Hero (light shading) ——— */
.category-hero{
  background:var(--panel);
  border-bottom:1px solid var(--line);
}
.hero-inner{
  max-width:1200px; margin:0 auto; padding:64px 24px; text-align:center;
}
.category-hero h1{
  font-family:'Playfair Display', serif;
  font-size:42px; margin:0 0 10px;
}
.category-hero p{color:var(--muted); margin:0}

/* ——— Layout: Sidebar + Grid ——— */
.page{
  max-width:1200px; margin:0 auto; padding:32px 24px;
  display:grid; grid-template-columns:260px 1fr; gap:32px;
}
.sidebar{
  position:sticky; top:80px;
  padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:#fff;
  height:max-content;
}
.sidebar h3{
  font-family:'Playfair Display', serif; font-size:20px; margin:0 0 12px;
}
.sidebar a{
  display:block; padding:10px 6px; color:#222; border-radius:10px;
}
.sidebar a:hover{background:var(--panel)}
.sidebar a.current{font-weight:600; border-left:3px solid #222; padding-left:10px}

/* ——— Product grid ——— */
#product-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:28px;
}
.product-card{
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff;
  box-shadow:var(--shadow); transition:transform .18s ease;
}
.product-card:hover{transform:translateY(-3px)}
.product-card .info{padding:14px 16px}
.product-card h3{margin:0 0 6px; font-size:18px}
.product-card .price{margin:0; color:var(--muted)}
.product-card .btn{
  display:inline-block; margin-top:10px; padding:10px 14px; border:1px solid #111; border-radius:10px;
}
.product-card .btn:hover{background:#111; color:#fff}

/* ——— Footer ——— */
.site-footer{border-top:1px solid var(--line); margin-top:40px}
.site-footer .inner{max-width:1200px; margin:0 auto; padding:22px 24px; color:var(--muted);}

/* ——— Responsive ——— */
@media (max-width: 900px){
  .page{grid-template-columns:1fr}
  .sidebar{position:static}
}
/* Shared container */
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ===== Home Tiles ===== */
.home-tiles{padding:40px 0 56px}
.tiles-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.tile{
  position:relative; display:block; overflow:hidden;
  border-radius:18px; box-shadow:var(--shadow); background:#000;
  isolation:isolate; /* for overlay blending */
}
.tile-media{
  position:relative; width:100%;
  aspect-ratio: 3 / 2;              /* consistent height */
  overflow:hidden;
}
.tile-media img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.02); transition:transform .35s ease, opacity .35s ease;
}
.tile::after{
  /* subtle vignette for readability */
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
  mix-blend-mode: multiply; pointer-events:none;
}
.tile-overlay{
  position:absolute; left:18px; bottom:16px; right:18px;
  color:#fff; text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.tile-overlay h3{
  margin:0 0 4px; font-family:'Playfair Display', serif; font-size:22px; letter-spacing:.2px;
}
.tile-overlay p{margin:0; opacity:.9}

/* Hover effect */
.tile:hover .tile-media img{transform:scale(1.08)}
.tile:hover .tile-overlay h3{text-decoration:underline}

/* Shared container used on all pages */
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* Intro band (light shaded) */
.intro-band{
  background:var(--panel);
  border-bottom:1px solid var(--line);
}
.intro-inner{
  text-align:center;
  padding:56px 0;
}
.intro-inner h1{
  font-family:'Playfair Display', serif;
  font-size:40px;
  margin:0 0 8px;
}
.intro-inner p{
  margin:0 auto 18px;
  max-width:720px;
  color:var(--muted);
}
.intro-cta .btn{margin:6px}

/* Buttons */
.btn{
  display:inline-block;
  padding:10px 16px;
  border:1px solid #111;
  border-radius:10px;
  text-decoration:none;
}
.btn:hover{background:#111;color:#fff}
.btn-dark{background:#111;color:#fff;border-color:#111}
.btn-dark:hover{opacity:.9}

/* Featured section */
.home-featured{padding:36px 0 56px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px}
.section-head h2{
  font-family:'Playfair Display', serif;
  font-size:28px; margin:0;
}
.section-head .muted{color:var(--muted);margin:0}

/* Grid (reuse product card look) */
#featured-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:24px;
}
.feature-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.feature-card .pic{
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
}
.feature-card .pic img{
  width:100%; height:100%; object-fit:cover;
}
.feature-card .info{padding:14px 16px}
.feature-card h3{margin:0 0 6px; font-size:18px}
.feature-card .price{margin:0; color:var(--muted)}
.feature-card .actions{margin-top:10px}
.feature-card .actions a{margin-right:8px}

@media (max-width:900px){
  .intro-inner{padding:40px 0}
  .intro-inner h1{font-size:32px}
}
/* ===== Quick View Modal ===== */
.pg-modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center; z-index:1000;
}
.pg-modal{
  width:min(940px, 92vw); background:#fff; border-radius:16px;
  overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.30);
  display:grid; grid-template-columns:1.2fr 1fr;
}
.pg-modal .left{background:#f6f6f8}
.pg-modal .left .img-wrap{aspect-ratio:1/1; display:flex; align-items:center; justify-content:center}
.pg-modal .left img{max-width:100%; max-height:100%; object-fit:contain}
.pg-modal .right{padding:22px 24px}
.pg-modal .title{font-family:'Playfair Display', serif; font-size:24px; margin:0 0 6px}
.pg-modal .price{color:#222; font-weight:600; margin:0 0 14px}
.pg-modal .desc{color:#555; margin:0 0 12px}
.pg-modal .specs{margin:10px 0 18px; padding-left:18px; color:#333}
.pg-modal .qty{display:flex; align-items:center; gap:10px; margin:6px 0 16px}
.pg-modal .qty input{width:64px; padding:8px 10px; border:1px solid var(--line); border-radius:10px}
.pg-modal .actions{display:flex; gap:10px}
.pg-modal .btn-primary{background:#111; color:#fff; border:1px solid #111; padding:12px 16px; border-radius:10px}
.pg-modal .btn-primary:hover{opacity:.92}
.pg-modal .btn-secondary{border:1px solid #111; padding:12px 16px; border-radius:10px}
.pg-close{
  position:absolute; top:12px; right:14px; background:#fff;
  border:1px solid var(--line); border-radius:999px; width:36px; height:36px; cursor:pointer;
}

/* Responsive modal */
@media (max-width: 880px){
  .pg-modal{grid-template-columns:1fr}
  .pg-modal .left .img-wrap{aspect-ratio:auto}
}

/* ===== Cart badge in header ===== */
.cart-link{position:relative; margin-left:14px}
.cart-badge{
  position:absolute; top:-8px; right:-10px; background:#111; color:#fff;
  font-size:12px; line-height:1; padding:4px 6px; border-radius:999px; min-width:20px; text-align:center;
}

