/*
  Lace & Allure — Modern & Elegant theme
  - Typography: Playfair Display (headings), Inter (body)
  - Palette: charcoal, ivory, soft gold accents
*/

:root {
  --bg: #0E0D0B;           /* deep charcoal */
  --paper: #FFFCF7;        /* warm ivory */
  --ink: #1C1A16;          /* rich ink */
  --muted-ink: #5b554e;
  --gold: #B69053;         /* soft gold */
  --gold-2: #CFB07C;       /* lighter gold */
  --accent: #EDE1CF;       /* blush ivory */
  --ring: rgba(182, 144, 83, 0.35);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

/* CSS reset (minimal) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 500ms ease, visibility 500ms ease;
}
body.loaded #preloader { opacity: 0; visibility: hidden; }

.preloader-inner {
  position: relative;
  width: 120px;
  height: 120px;
}
.preloader-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.08));
  animation: logo-pop 1100ms ease both;
}
.ring {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  border: 3px solid var(--ring);
  border-top-color: var(--gold);
  animation: spin 1.2s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .preloader-logo, .ring { animation: none !important; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logo-pop {
  0% { transform: scale(.92); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* Hero / Landscape header */
.hero {
  position: relative;
  min-height: 70vh;
  color: var(--paper);
  display: grid;
  align-items: stretch;
  background: linear-gradient(180deg, #14120F 0%, #1D1A16 100%);
}
.hero-media { /* Placeholder background; replace via CSS if adding an image */
  position: absolute; inset: 0; z-index: 0; opacity: 0.35;
  background:
    linear-gradient(180deg, rgba(14,13,11,.55), rgba(29,26,22,.85)),
    url("../images/hero.jpg") center/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 600; }
.brand-logo { width: 56px; height: 56px; }
.brand-name { font-family: "Playfair Display", Georgia, serif; letter-spacing: .5px; font-size: 18px; }

.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.36); border-radius: 10px; padding: 8px 12px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: .2px; cursor: pointer; transition: all 180ms ease;
}
.btn-primary { background: var(--gold); color: #211c14; box-shadow: 0 6px 18px rgba(182,144,83,.25); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.36); color: var(--paper); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }

.hero-content { padding: 80px 0 100px; max-width: 720px; }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(32px, 6vw, 56px); margin: 0 0 12px; }
.hero p { margin: 0 0 24px; color: #F1E8D8; opacity: .9; font-size: clamp(16px, 2.8vw, 18px); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 0; }
.section-subtitle { color: var(--muted-ink); margin: -6px 0 28px; }

.section-shops h2, .section-about h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 8px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* Mobile nav behavior */
@media (max-width: 840px) {
  .nav { align-items: center; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { position: absolute; right: 24px; top: 64px; background: rgba(20,18,15,.96); border: 1px solid rgba(255,255,255,.14); padding: 10px; border-radius: 12px; display: none; flex-direction: column; gap: 8px; z-index: 10; min-width: 160px; }
  .nav-actions a { border-color: rgba(255,255,255,.18); }
  .nav-actions.open { display: flex; }
  .brand-logo { width: 44px; height: 44px; }
}

.shop-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #EEE6D7;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.08); }
.shop-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 700; font-size: 22px; color: #fff;
}
.shop-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-label { font-weight: 600; letter-spacing: .3px; }

/* Brand tinting */
.shop-card.tiktok .shop-icon { background: linear-gradient(135deg, #25F4EE, #000, #FE2C55); }
.shop-card.shopee .shop-icon { background: #EE4D2D; }
.shop-card.lazada .shop-icon { background: linear-gradient(135deg, #1A53F0, #FF9A00); }

/* About card */
.about-card {
  background: linear-gradient(180deg, #FFFFFF, #FFFBF3);
  border: 1px solid #EEE6D7; border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

/* Testimonials / Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid #EEE6D7;
  border-radius: var(--radius-sm);
  padding: 20px 20px 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { display: inline-flex; gap: 4px; font-size: 16px; color: var(--gold); }
.review-stars .star { filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.review-author { font-weight: 600; letter-spacing: .3px; }
.review-text { font-size: 14px; color: var(--muted-ink); line-height: 1.5; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #211c14; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }

/* Details section */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.detail-card {
  background: linear-gradient(180deg, #FFFFFF, #FFFBF9);
  border: 1px solid #EEE6D7;
  border-radius: var(--radius-sm);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}
.detail-card h3 { margin: 0; font-size: 18px; font-family: "Playfair Display", Georgia, serif; }
.detail-card p { margin: 0; font-size: 14px; color: var(--muted-ink); }
.detail-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 18px; color: var(--gold); box-shadow: 0 4px 10px rgba(0,0,0,.08); }

.detail-card:hover { transform: translateY(-3px); transition: transform 180ms ease; }

/* Clickable detail cards */
.detail-card-clickable {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 180ms ease;
}
.detail-card-clickable:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.1); }
.detail-card-clickable:active { transform: translateY(-2px); }

/* Detail Modals */
.detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}
.detail-modal-overlay[aria-hidden="false"] { display: flex; }
.detail-modal {
  background: #fff;
  width: min(800px, 100%);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  position: relative;
  display: flex;
  flex-direction: column;
}
.detail-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.95);
  border: 1px solid #EEE6D7;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  z-index: 1;
  transition: all 150ms ease;
}
.detail-modal-close:hover { background: #fff; transform: scale(1.08); }
.detail-modal-content { overflow-y: auto; }
.detail-modal-header {
  background: linear-gradient(180deg, #FFFBF3, #FFFAF0);
  padding: 28px 24px 20px;
  border-bottom: 1px solid #EEE6D7;
  display: flex;
  align-items: center;
  gap: 16px;
}
.detail-modal-header h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 26px; }
.detail-icon.large { width: 56px; height: 56px; font-size: 24px; }
.detail-modal-body { padding: 24px; }
.detail-modal-image-placeholder {
  background: #F9F6F0;
  border: 2px dashed #D4C5A8;
  border-radius: 12px;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.detail-modal-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-text { color: var(--muted-ink); text-align: center; font-size: 14px; line-height: 1.6; }
.detail-modal-text h3 { font-family: "Playfair Display", Georgia, serif; font-size: 20px; margin: 18px 0 10px; }
.detail-modal-text h3:first-child { margin-top: 0; }
.detail-modal-text p { margin: 0 0 12px; line-height: 1.6; }
.detail-modal-text .note { background: #FFFBF3; border-left: 3px solid var(--gold); padding: 10px 12px; margin-top: 16px; font-size: 14px; }
.sizing-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.sizing-table th, .sizing-table td { border: 1px solid #EEE6D7; padding: 10px; text-align: center; }
.sizing-table th { background: #FFFBF3; font-weight: 600; }
.sizing-table tr:hover { background: #FFFCF7; }

/* Footer */
.site-footer { padding: 32px 0 60px; color: var(--muted-ink); background: #FFFBF3; border-top: 1px solid #EEE6D7; }
.footer-inner { display: flex; align-items: center; justify-content: center; }
.footer-logo { width: 48px; height: 48px; margin-right: 10px; vertical-align: middle; display: inline-block; }

.footer-expanded { display: grid; gap: 22px; }
.footer-brand { display: grid; gap: 6px; justify-items: start; }
.footer-title { margin: 0; font-size: 18px; font-family: "Playfair Display", Georgia, serif; color: var(--ink); }
.footer-tagline { margin: 0; color: var(--muted-ink); font-size: 14px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.footer-col h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .3px; color: var(--ink); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #EEE6D7; padding-top: 14px; text-align: center; font-size: 14px; }

@media (max-width: 900px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-logo { width: 40px; height: 40px; }
}

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); border: 0; }
