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

:root {
  --bg: #fff8fa;
  --surface: #ffffff;
  --text: #1f0d14;
  --muted: #7d5666;
  --accent: #e11d48;
  --accent-light: #ffe4ea;
  --border: #f5d5de;
  --hero-bg: radial-gradient(circle at top right, #ffe3ec 0%, #fff5f7 55%, #ffffff 100%);
  --glow: 0 18px 40px -15px rgba(225, 29, 72, 0.16);
}

/* THEME 2: COZY ROOM */
body.theme-room {
  --bg: #fcf8f3;
  --surface: #ffffff;
  --text: #241911;
  --muted: #7a6454;
  --accent: #c25934;
  --accent-light: #faebe3;
  --border: #eddccf;
  --hero-bg: radial-gradient(circle at top right, #f7e3d4 0%, #fcf5ee 55%, #ffffff 100%);
  --glow: 0 18px 40px -15px rgba(194, 89, 52, 0.16);
}

/* THEME 3: AESTHETIC EDIT */
body.theme-aesthetic {
  --bg: #f9f7f4;
  --surface: #ffffff;
  --text: #1c1815;
  --muted: #6e665d;
  --accent: #8c6a3f;
  --accent-light: #f3ede2;
  --border: #e6dfd3;
  --hero-bg: radial-gradient(circle at top right, #ede3d3 0%, #f8f5ef 55%, #ffffff 100%);
  --glow: 0 18px 40px -15px rgba(140, 106, 63, 0.16);
}

/* THEME 4: PURE PILATES */
body.theme-pilates {
  --bg: #f5faf7;
  --surface: #ffffff;
  --text: #11241a;
  --muted: #4f6e5d;
  --accent: #247a52;
  --accent-light: #dff2e8;
  --border: #cfe8da;
  --hero-bg: radial-gradient(circle at top right, #d5efe1 0%, #f0f9f4 55%, #ffffff 100%);
  --glow: 0 18px 40px -15px rgba(36, 122, 82, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }

/* Luxury Top Marquee */
.marquee-bar {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: scrollText 22s linear infinite;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; width: 100%; flex-grow: 1; }

/* Editorial Hero Section */
.hero {
  background: var(--hero-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 20px;
  text-align: center;
  margin: 20px 0 26px;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
  margin: 10px auto 0;
  line-height: 1.5;
}

/* Search & Filter Pills */
.controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; }
.search-box {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
  transition: 0.25s ease;
}
.search-box input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.search-box span { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: 0.6; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tab {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.2);
}

/* Product Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 22px; }
}

.card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--glow); }

.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--accent-light);
  overflow: hidden;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .img-wrap img { transform: scale(1.06); }

.badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-row { display: flex; gap: 6px; }
.btn {
  text-decoration: none;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}
.btn-shop {
  flex: 2.2;
  background: var(--accent);
  color: #fff;
}
.btn-shop:hover { opacity: 0.9; transform: scale(1.02); }
.btn-pin {
  flex: 1;
  background: var(--accent-light);
  color: var(--accent);
}
.btn-pin:hover { filter: brightness(0.95); }

/* Empty / Loading State */
.status-box {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Ultra-Tiny Micro Footer Disclosure */
footer {
  margin-top: 60px;
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.micro-disclosure {
  font-size: 9px;
  color: var(--muted);
  opacity: 0.45;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}
