@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark:      #0e0404;
  --bg-mid:       #180808;
  --bg-card:      rgba(28, 8, 8, 0.85);
  --border:       rgba(185, 28, 28, 0.18);
  --border-hover: rgba(185, 28, 28, 0.6);
  --text-primary: #f9f0e8;
  --text-muted:   #8b6a5a;
  --text-dim:     #c4977e;
  --crimson:      #b91c1c;
  --crimson-light:#dc2626;
  --crimson-glow: rgba(185, 28, 28, 0.2);
  --gold:         #ca8a04;
  --gold-light:   #eab308;
  --gold-glow:    rgba(202, 138, 4, 0.2);
  --maroon:       #7f1d1d;
  --font-head:    'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;
  --font-elegant: 'Cormorant Garamond', serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Textile weave dot pattern background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(185,28,28,0.07) 1px, transparent 1px),
    radial-gradient(rgba(202,138,4,0.04) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px;
  background-position: 0 0, 14px 14px;
  pointer-events: none; z-index: 0;
}

/* Ambient glows */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(130px); z-index: 0; pointer-events: none; animation: floatGlow 10s ease-in-out infinite alternate; }
.glow-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(127,29,29,0.35), transparent 70%); top: -300px; left: -200px; }
.glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(202,138,4,0.15), transparent 70%); bottom: -200px; right: -100px; animation-delay: -5s; }
@keyframes floatGlow { 0%{transform:translate(0,0);} 100%{transform:translate(25px,-25px);} }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; width: 100%; position: relative; z-index: 1; }

/* ─── Header ─── */
header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 4, 4, 0.9);
  backdrop-filter: blur(20px);
  padding: 0;
}
header .container { display: flex; justify-content: space-between; align-items: center; height: 72px; }

.logo-link { text-decoration: none; display: flex; align-items: center; gap: 14px; }
.logo-emblem { width: 46px; height: 46px; }
.logo-name { display: flex; flex-direction: column; gap: 0; }
.logo-text { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--crimson-light); line-height: 1.1; }
.logo-sub { font-family: var(--font-elegant); font-size: 12px; color: var(--gold); letter-spacing: 2px; font-style: italic; }

nav { display: flex; gap: 8px; align-items: center; }
nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 4px; transition: all 0.25s var(--ease); border: 1px solid transparent; letter-spacing: 0.5px; }
nav a:hover { color: var(--text-primary); background: rgba(185,28,28,0.08); }
nav a.active { color: var(--gold); border-color: rgba(202,138,4,0.3); background: rgba(202,138,4,0.07); }

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px; text-align: center; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(185,28,28,0.1); border: 1px solid rgba(185,28,28,0.3);
  border-radius: 4px; padding: 7px 20px; margin-bottom: 28px;
  font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(38px, 5vw, 64px); font-weight: 900;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px;
  background: linear-gradient(135deg, #f9f0e8 20%, #eab308 60%, #dc2626 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); font-family: var(--font-elegant); font-size: 18px; font-style: italic; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }

/* Hero SVG textile mandala */
.hero-mandala { display: block; margin: 0 auto 40px; width: 200px; height: 200px; animation: rotateMandala 40s linear infinite; }
@keyframes rotateMandala { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* ─── Search ─── */
.search-container { max-width: 580px; margin: 0 auto; position: relative; }
.search-input {
  width: 100%; padding: 15px 52px;
  background: rgba(28,8,8,0.85); border: 1.5px solid var(--border);
  border-radius: 4px; color: var(--text-primary); font-size: 14px; font-family: var(--font-body);
  outline: none; transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-glow); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-clear { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; text-decoration: none; transition: color 0.2s; }
.search-clear:hover { color: var(--crimson-light); }

/* Ornament divider */
.ornament-divider { display: flex; align-items: center; gap: 20px; margin: 40px 0 0; }
.ornament-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }

/* ─── Main ─── */
.main-content { flex: 1; padding-bottom: 80px; position: relative; z-index: 1; }

.section-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
  color: var(--text-primary);
}
.section-title::before { content: '◆'; color: var(--gold); font-size: 12px; }
.section-title.crimson::before { color: var(--crimson-light); }

/* ─── Store Layout ─── */
.store-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; margin-top: 40px; }
@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; } }

/* ─── Sidebar ─── */
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 22px; backdrop-filter: blur(16px); margin-bottom: 16px; }
.filter-group-title { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 14px; }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-item a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 4px; color: var(--text-muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; letter-spacing: 0.3px; }
.filter-item a:hover { color: var(--text-primary); background: rgba(185,28,28,0.07); }
.filter-item.active a { color: var(--crimson-light); background: var(--crimson-glow); border-color: rgba(185,28,28,0.25); }
.filter-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ─── Product Grid ─── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* ─── Product Card ─── */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; transition: all 0.35s var(--ease);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  backdrop-filter: blur(12px); position: relative;
  animation: cardIn 0.5s var(--ease) both;
}
@keyframes cardIn { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
.product-card:hover { transform: translateY(-5px); border-color: var(--crimson); box-shadow: 0 12px 40px var(--crimson-glow), 0 0 0 1px var(--crimson); }
.product-card.featured:hover { border-color: var(--gold); box-shadow: 0 12px 40px var(--gold-glow), 0 0 0 1px var(--gold); }

.product-card-badge { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, var(--gold), var(--crimson)); color: #fff; font-size: 9px; font-weight: 800; padding: 4px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: 1px; z-index: 10; }

.product-img-wrapper { aspect-ratio: 3/4; overflow: hidden; background: var(--maroon); position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-img { transform: scale(1.06); }
.product-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.product-info { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }
.product-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.8px; text-transform: uppercase; background: var(--crimson-glow); color: var(--crimson-light); border: 1px solid rgba(185,28,28,0.2); margin-bottom: 10px; }
.product-card.featured .product-tag { background: var(--gold-glow); color: var(--gold-light); border-color: rgba(202,138,4,0.2); }
.product-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.product-price { font-family: var(--font-head); font-size: 18px; font-weight: 800; background: linear-gradient(135deg, var(--gold-light), var(--crimson-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.product-btn { font-size: 11px; font-weight: 700; padding: 7px 14px; background: transparent; border-radius: 3px; color: var(--text-muted); border: 1px solid var(--border); transition: all 0.25s var(--ease); letter-spacing: 0.5px; }
.product-card:hover .product-btn { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.product-card.featured:hover .product-btn { background: var(--gold); border-color: var(--gold); }

/* ─── Pagination ─── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination-btn { padding: 8px 16px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.pagination-btn:hover:not(.disabled) { border-color: var(--crimson); color: var(--crimson-light); }
.pagination-btn.active { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.pagination-btn.disabled { opacity: 0.3; pointer-events: none; }
.pagination-info { font-size: 13px; color: var(--text-muted); padding: 0 8px; }

/* ─── Detail Page ─── */
.detail-crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg-card); transition: all 0.25s; margin-bottom: 32px; }
.detail-crumb:hover { color: var(--text-primary); border-color: var(--crimson); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery-container { display: flex; flex-direction: column; gap: 14px; }
.main-img-wrapper { aspect-ratio: 3/4; width: 100%; background: var(--maroon); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.main-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-item { width: 72px; aspect-ratio: 3/4; background: var(--maroon); border: 2px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.25s; }
.thumb-item.active, .thumb-item:hover { border-color: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 84px; }
.detail-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); background: var(--gold-glow); border: 1px solid rgba(202,138,4,0.25); padding: 4px 12px; border-radius: 3px; display: inline-block; }
.detail-title { font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.2; }
.detail-price { font-family: var(--font-head); font-size: 30px; font-weight: 900; background: linear-gradient(135deg, var(--gold-light), var(--crimson-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.detail-desc-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 22px; }
.detail-desc-title { font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.detail-desc { font-size: 15px; color: var(--text-dim); line-height: 1.8; }
.buy-btn {
  width: 100%; padding: 17px; border-radius: 5px;
  background: linear-gradient(135deg, var(--crimson) 0%, #991b1b 50%, #7f1d1d 100%);
  color: #fff; border: none; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: all 0.3s var(--ease);
  box-shadow: 0 6px 24px var(--crimson-glow);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; letter-spacing: 0.5px; font-family: var(--font-body);
}
.buy-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(185,28,28,0.45); background: linear-gradient(135deg, var(--crimson-light), var(--crimson)); }

/* ─── About ─── */
.about-hero { text-align: center; padding: 60px 0 40px; }
.about-hero h1 { font-family: var(--font-head); font-size: 38px; font-weight: 900; margin-bottom: 14px; }
.about-hero p { color: var(--text-dim); font-family: var(--font-elegant); font-style: italic; font-size: 17px; max-width: 600px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 28px; transition: all 0.3s; }
.about-card:hover { border-color: var(--crimson); transform: translateY(-4px); box-shadow: 0 10px 30px var(--crimson-glow); }
.about-card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--gold-light); }
.about-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── Empty state ─── */
.empty-state { text-align: center; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--border); background: rgba(14,4,4,0.8); backdrop-filter: blur(12px); margin-top: auto; padding: 28px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
footer p { font-size: 12px; color: var(--text-muted); }
footer a { color: var(--gold); text-decoration: none; font-weight: 700; transition: color 0.2s; }
footer a:hover { color: var(--crimson-light); }

/* ─── Error ─── */
.error-page { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px; }
.error-page h1 { font-family: var(--font-head); font-size: 80px; font-weight: 900; color: var(--crimson); }
.error-page h2 { font-size: 22px; font-weight: 700; margin: 14px 0 8px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }
.error-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--crimson); color: #fff; padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.25s; }
.error-btn:hover { background: var(--crimson-light); transform: translateY(-2px); }

@media (max-width: 640px) { .hero { padding: 50px 0 40px; } .detail-info { position: static; } }
