/* ============== Base (default) ============== */
:root {
  --bg:#f7f4ef;
  --paper:#fffcf6;
  --ink:#222;
  --ink2:#2f2a24;
  --muted:#6a6258;
  --border:#e4dccc;
  --accent:#c08b00;
  --accent-ink:#fff;
  --tile:#f6e8c3;
  --tile-border:#e7dfd3;
  --radius:12px;
  --shadow:0 2px 14px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;display:block}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}
.container{width:min(1100px,92%);margin-inline:auto}

/* ============== Header ============== */
.site-header{background:linear-gradient(var(--paper),var(--bg));border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;gap:16px;padding:10px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink2)}
.brand img{width:60px;height:60px;border-radius:6px;background:#f6e8c3;object-fit:cover}
.brand span{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:20px;letter-spacing:.2px}
.nav{margin-left:auto;display:flex;gap:22px}
.nav a{text-decoration:none;color:var(--ink);padding:6px 0}
.nav a:hover{border-bottom:2px solid var(--accent)}
.actions{display:flex;align-items:center;gap:12px}
.actions select{
  padding:6px 10px;border:1px solid var(--border);border-radius:8px;
  background:var(--tile);color:var(--ink);font-size:14px;cursor:pointer;
}

/* ============== Buttons/Badges ============== */
.cart{text-decoration:none;position:relative;font-size:16px;border:1px solid var(--border);padding:8px 12px;border-radius:10px;background:#fff;color:var(--ink)}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:12px}
.btn{display:inline-block;border:1px solid var(--border);background:#fff;color:var(--ink);padding:8px 12px;border-radius:10px;text-decoration:none;cursor:pointer}
.btn-primary{background:var(--accent);color:var(--accent-ink);border-color:#a87400}

/* ============== Hero / Tiles ============== */
.hero{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:72px 20px;background:var(--paper);border-bottom:1px solid var(--border);margin-bottom:32px}
.hero h1{font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,4vw,2.8rem);margin:0 0 8px;color:var(--ink)}
.hero p{color:var(--ink2);margin:0 0 18px}
.hero-tiles{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin-top:18px}
.hero-tiles .tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 16px;background:var(--tile);border:1px solid var(--tile-border);border-radius:10px;color:var(--ink);text-decoration:none;transition:.2s}
.hero-tiles .tile:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.08)}

/* ============== Categories / Grid ============== */
.categories{margin:26px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.section-title{grid-column:1/-1;margin:0 0 8px;font-family:'Cormorant Garamond',serif;font-weight:700;font-size:22px;color:var(--ink2)}
.tile{display:block;padding:16px;border-radius:12px;background:var(--tile);border:1px solid var(--tile-border);text-decoration:none;color:var(--ink);box-shadow:var(--shadow);min-height:84px}
.tile h3{margin:0 0 6px;font-size:16px;font-weight:600;color:var(--ink2)}
.tile span{color:var(--muted);font-size:13px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px;box-shadow:var(--shadow)}
.card-thumb{display:block;border-radius:10px;overflow:hidden;background:#fafafa}
.card-thumb img{width:100%;height:160px;object-fit:cover;display:block}
.card-title{margin:10px 0 4px;font-size:16px;color:var(--ink2)}
.price{font-weight:600}
.card .btn{width:100%;margin-top:8px}

/* ============== Trust ============== */
.trust{background:var(--paper);margin:40px 0;padding:40px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.trust-grid{margin-top:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.trust-card{background:var(--tile);border:1px solid var(--tile-border);border-radius:12px;padding:20px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;min-height:120px}

/* ============== Footer ============== */
.site-footer{background:var(--paper);border-top:1px solid var(--border);padding:40px 0;margin-top:60px}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;text-align:center;flex-direction:column}
.footer-brand, .footer-links, .footer-bottom{ text-align:center; }
.footer-brand img{width:100px;height:auto;margin:0 auto 10px;display:block}
.footer-links h3{margin-bottom:8px;font-size:1rem;color:var(--ink)}
.footer-links ul{list-style:none;padding:0;margin:0}
.footer-links li{display:block;margin:6px 0}
.footer-links a{color:var(--ink2);text-decoration:none;transition:color .2s}
.footer-links a:hover{color:var(--accent)}
.footer-bottom{text-align:center;margin-top:30px;font-size:.9rem;color:var(--ink2);border-top:1px solid var(--border);padding-top:15px}

/* ============== Cart drawer ============== */
.cart-drawer{position:fixed;inset:0;display:none;z-index:1000}
.cart-drawer.open{display:block}
.cart-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.cart-panel{position:absolute;top:0;left:0;height:100%;width:min(420px,92%);background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border)}
.cart-items{padding:10px 12px;overflow:auto;flex:1}
.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}
.cart-item img{width:64px;height:48px;object-fit:cover;border-radius:6px;background:#000}
.cart-qty{display:flex;align-items:center;gap:6px}
.cart-qty button{width:26px;height:26px;border:1px solid var(--border);background:#fff;border-radius:6px;cursor:pointer}
.cart-footer{border-top:1px solid var(--border);padding:12px}
.totals{display:flex;justify-content:space-between;margin-bottom:10px}

/* ============== Seasonal Themes (apply to <html>) ============== */
html.fall {
  --bg:#f7efe3; --paper:#fff8ed; --ink:#1f1a14; --ink2:#1f1a14;
  --accent:#c77700; --accent-ink:#fff; --border:#e6d6b8; --tile:#f6e0b8; --tile-border:#ead9c3;
}
html.winter {
  --bg:#eef4f9; --paper:#ffffff; --ink:#111821; --ink2:#111821;
  --accent:#0f6abf; --accent-ink:#fff; --border:#d6e2ef; --tile:#e8f1fb; --tile-border:#d9e6f6;
}
/* Christmas */
html.christmas {
  --bg:#f8f6f3; --paper:#ffffff; --ink:#1c1b1b; --ink2:#5b5b5b; --border:#e7e2da;
  --accent:#c62828; --accent-ink:#fff; --tile:#e8f3ea; --tile-border:#cfe3d2;
}
html.christmas a{color:#1b5e20}
html.christmas a:hover{border-bottom-color:#1b5e20}
/* Optional: subtle header tint in Christmas */
html.christmas .site-header{background:linear-gradient(var(--paper),var(--bg))}
html.christmas .btn-primary{background:var(--accent);color:var(--accent-ink);border-color:#b71c1c}

/* ============== Snowflakes (Christmas only) ============== */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.snow::before,
.snow::after {
  content: "";
  position: absolute;
  inset: -10% 0 0 0;
  background-image:
    radial-gradient(#cfe9ff 55%, transparent 56%),
    radial-gradient(#d0f0ff 55%, transparent 56%),
    radial-gradient(#bde4ff 55%, transparent 56%),
    radial-gradient(#e3f6ff 55%, transparent 56%),
    radial-gradient(#d6eeff 55%, transparent 56%);
  background-size: 6px 6px, 8px 8px, 4px 4px, 7px 7px, 5px 5px;
  background-repeat: repeat;
  background-position: 10% -20px, 30% -60px, 55% -40px, 75% -80px, 90% -30px;
  opacity: 0.9;
  animation: snowFall 12s linear infinite;
}
.snow::after {
  opacity: 0.7;
  filter: blur(1px);
  background-size: 10px 10px, 7px 7px, 6px 6px, 8px 8px, 5px 5px;
  animation-duration: 18s;
}
@keyframes snowFall { to { transform: translateY(120%); } }
/* Hide snow unless Christmas is active */
html:not(.christmas) .snow { display: none; }

/* ============== Checkout ============== */
.checkout-wrap{width:min(900px,92%);margin:30px auto;background:var(--paper);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:20px}
.checkout-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.checkout-table{width:100%;border-collapse:collapse}
.checkout-table th, .checkout-table td{border-bottom:1px solid var(--border);padding:10px;text-align:left}
.checkout-table tfoot td{font-weight:700}
.right{text-align:right}
.block{display:block}
.qty{display:flex;align-items:center;gap:8px}
.qty-btn{width:28px;height:28px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}
.actions.stack-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-top:16px}
.paypal-container{margin-top:10px}
.msg{margin-top:10px;color:var(--muted)}

/* ===== Mobile Tweaks ===== */
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tiles { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .grid, .hero-tiles { grid-template-columns: 1fr; }
  .brand span { font-size: 18px; }
  .card-thumb img { height: 140px; }
}
/* Lightbox */
#lightbox { position: fixed; inset: 0; display: none; z-index: 1000; }
#lightbox.open { display: block; }
#lightbox .lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
#lightbox .lb-dialog {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 60px 1fr 60px; grid-template-rows: 60px 1fr 100px;
  gap: 12px; align-items: center; justify-items: center; padding: 24px;
}
#lightbox .lb-img {
  grid-column: 2; grid-row: 2; max-width: 100%; max-height: 100%;
  border-radius: 12px; background: #111;
}
#lightbox .lb-prev, #lightbox .lb-next, #lightbox .lb-x {
  background: rgba(255,255,255,0.9); border: none; border-radius: 999px; cursor: pointer;
  width: 44px; height: 44px; font-size: 22px; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#lightbox .lb-prev { grid-column: 1; grid-row: 2; }
#lightbox .lb-next { grid-column: 3; grid-row: 2; }
#lightbox .lb-x { grid-column: 3; grid-row: 1; }
#lightbox .lb-thumbs {
  grid-column: 1 / 4; grid-row: 3; display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px;
}
#lightbox .lb-thumb {
  width: 86px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; background:#222;
}
#lightbox .lb-thumb.active { border-color: #333; outline: 2px solid #ffcc66; }
.block{position:relative}
.remove-btn{
  position:absolute; top:6px; right:8px;
  background:#ff4d4d; color:#fff; border:none;
  border-radius:50%; width:22px; height:22px;
  font-size:14px; line-height:18px; cursor:pointer;
}
