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

:root {
  --bg-light:      #fff5f7;
  --bg-card:       rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border:        rgba(225, 29, 72, 0.14);
  --border-hover:  rgba(225, 29, 72, 0.4);
  --text-primary:  #1a0a12;
  --text-muted:    #9b6b7e;
  --text-dim:      #6b3a52;
  --rose:          #e11d48;
  --rose-light:    #f43f5e;
  --rose-glow:     rgba(225, 29, 72, 0.15);
  --pink:          #ec4899;
  --pink-glow:     rgba(236, 72, 153, 0.15);
  --purple:        #9333ea;
  --purple-light:  #a855f7;
  --purple-glow:   rgba(147, 51, 234, 0.12);
  --cream:         #ffeef3;
  --font-head:     'Cormorant Garamond', serif;
  --font-body:     'Nunito', sans-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-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Soft petal background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(236,72,153,0.06) 1px, transparent 1px),
    radial-gradient(rgba(147,51,234,0.04) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 16px;
  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: 600px; height: 600px; background: radial-gradient(circle, rgba(236,72,153,0.2), transparent 70%); top: -200px; right: -150px; }
.glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(147,51,234,0.15), transparent 70%); bottom: -150px; left: -100px; animation-delay: -5s; }
.glow-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(225,29,72,0.1), transparent 70%); top: 40%; right: 40%; animation-delay: -2s; }
@keyframes floatGlow { 0%{transform:translate(0,0);} 100%{transform:translate(-20px,-20px);} }

.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 rgba(225,29,72,0.1);
  background: rgba(255, 245, 247, 0.9);
  backdrop-filter: blur(20px);
  padding: 0;
}
header .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-emblem { width: 44px; height: 44px; }
.logo-name { display: flex; flex-direction: column; }
.logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--rose); line-height: 1.1; letter-spacing: 0.5px; }
.logo-sub { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 2.5px; text-transform: uppercase; }

nav { display: flex; gap: 6px; align-items: center; }
nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 99px; transition: all 0.25s var(--ease); border: 1.5px solid transparent; }
nav a:hover { color: var(--rose); background: var(--rose-glow); }
nav a.active { color: var(--rose); background: var(--rose-glow); border-color: rgba(225,29,72,0.25); }

/* ─── Hero ─── */
.hero { padding: 80px 0 50px; text-align: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--pink-glow); border: 1px solid rgba(236,72,153,0.3); border-radius: 99px; padding: 7px 20px; margin-bottom: 24px; font-size: 11px; font-weight: 800; color: var(--pink); letter-spacing: 1.5px; text-transform: uppercase; }
.hero-eyebrow-dot { width: 7px; height: 7px; background: var(--pink); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.4;transform:scale(0.6);} }
.hero h1 { font-family: var(--font-head); font-size: clamp(38px, 5.5vw, 68px); font-weight: 700; font-style: italic; line-height: 1.05; letter-spacing: -1px; margin-bottom: 18px; background: linear-gradient(135deg, #be185d 10%, #e11d48 40%, #ec4899 65%, #9333ea 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 auto 36px; line-height: 1.75; }

/* Lipstick / brush SVG hero */
.hero-illustration { display: block; margin: 0 auto 40px; width: 280px; }

/* ─── Search ─── */
.search-container { max-width: 560px; margin: 0 auto; position: relative; }
.search-input { width: 100%; padding: 15px 52px; background: white; border: 1.5px solid var(--border); border-radius: 99px; color: var(--text-primary); font-size: 14px; font-family: var(--font-body); outline: none; transition: all 0.3s var(--ease); box-shadow: 0 4px 20px rgba(225,29,72,0.1); }
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-glow), 0 6px 24px rgba(225,29,72,0.12); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-clear { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; text-decoration: none; }
.search-clear:hover { color: var(--rose); }

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

.section-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; font-style: italic; margin-bottom: 28px; display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.section-title-dot { width: 10px; height: 10px; background: linear-gradient(135deg, var(--rose), var(--pink)); border-radius: 50%; }
.section-title-badge { font-family: var(--font-body); font-size: 10px; font-weight: 800; padding: 3px 8px; background: var(--rose-glow); color: var(--rose); border: 1px solid rgba(225,29,72,0.25); border-radius: 99px; letter-spacing: 0.5px; font-style: normal; }

/* ─── Layout ─── */
.store-layout { display: grid; grid-template-columns: 210px 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: 18px; padding: 22px; backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(225,29,72,0.07); margin-bottom: 16px; }
.filter-group-title { font-size: 10px; font-weight: 800; 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: 12px; color: var(--text-dim); font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; }
.filter-item a:hover { color: var(--rose); background: var(--rose-glow); }
.filter-item.active a { color: var(--rose); background: var(--rose-glow); border-color: rgba(225,29,72,0.2); }
.filter-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

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

/* ─── Product Card ─── */
.product-card {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: all 0.35s var(--ease); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; position: relative; animation: cardIn 0.5s var(--ease) both;
  box-shadow: 0 4px 20px rgba(225,29,72,0.06);
}
@keyframes cardIn { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
.product-card:hover { transform: translateY(-6px); border-color: var(--rose-light); box-shadow: 0 16px 48px var(--rose-glow); }
.product-card.featured:hover { border-color: var(--purple); box-shadow: 0 16px 48px var(--purple-glow); }

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

.product-img-wrapper { aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(135deg, #ffe4ee, #f3e8ff); 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.08); }
.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: 800; padding: 3px 10px; border-radius: 99px; letter-spacing: 0.5px; text-transform: uppercase; background: var(--pink-glow); color: var(--pink); border: 1px solid rgba(236,72,153,0.2); margin-bottom: 10px; }
.product-card.featured .product-tag { background: var(--purple-glow); color: var(--purple-light); border-color: rgba(147,51,234,0.2); }
.product-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; 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: 12.5px; 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: 19px; font-weight: 700; background: linear-gradient(135deg, var(--rose), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.product-btn { font-size: 11px; font-weight: 800; padding: 7px 14px; background: transparent; border-radius: 99px; color: var(--text-muted); border: 1.5px solid var(--border); transition: all 0.25s; }
.product-card:hover .product-btn { background: var(--rose); color: #fff; border-color: var(--rose); }
.product-card.featured:hover .product-btn { background: var(--purple); border-color: var(--purple); }

/* ─── Pagination ─── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination-btn { padding: 9px 18px; border-radius: 99px; border: 1.5px solid var(--border); background: white; color: var(--text-muted); font-size: 13px; font-weight: 800; text-decoration: none; transition: all 0.2s; box-shadow: 0 2px 10px rgba(225,29,72,0.07); }
.pagination-btn:hover:not(.disabled) { border-color: var(--rose); color: var(--rose); background: var(--rose-glow); }
.pagination-btn.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.pagination-btn.disabled { opacity: 0.3; pointer-events: none; }

/* ─── 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: 99px; border: 1.5px solid var(--border); background: white; transition: all 0.25s; margin-bottom: 32px; }
.detail-crumb:hover { color: var(--rose); border-color: var(--rose); }
.detail-grid { display: grid; grid-template-columns: 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: 1/1; background: linear-gradient(135deg, #ffe4ee, #f3e8ff); border: 1.5px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 8px 40px var(--rose-glow); }
.main-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-item { width: 72px; aspect-ratio: 1/1; background: var(--cream); border: 2px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: all 0.25s; }
.thumb-item.active, .thumb-item:hover { border-color: var(--rose); box-shadow: 0 0 12px var(--rose-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(--pink); background: var(--pink-glow); border: 1px solid rgba(236,72,153,0.25); padding: 4px 14px; border-radius: 99px; display: inline-block; }
.detail-title { font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); font-weight: 700; font-style: italic; line-height: 1.2; }
.detail-price { font-family: var(--font-head); font-size: 30px; font-weight: 700; background: linear-gradient(135deg, var(--rose), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.detail-desc-box { background: white; border: 1.5px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 4px 16px rgba(225,29,72,0.06); }
.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: 14px;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--rose) 40%, #be185d 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(--rose-glow);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-family: var(--font-body);
  letter-spacing: 0.3px;
}
.buy-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(225,29,72,0.4); }

/* ─── About ─── */
.about-hero { text-align: center; padding: 60px 0 40px; }
.about-hero h1 { font-family: var(--font-head); font-size: 40px; font-weight: 700; font-style: italic; margin-bottom: 14px; background: linear-gradient(135deg, var(--rose), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-hero p { color: var(--text-dim); font-size: 16px; max-width: 580px; margin: 0 auto; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.about-card { background: white; border: 1.5px solid var(--border); border-radius: 20px; padding: 28px; transition: all 0.3s; box-shadow: 0 4px 20px rgba(225,29,72,0.06); }
.about-card:hover { border-color: var(--rose); transform: translateY(-4px); box-shadow: 0 12px 36px var(--rose-glow); }
.about-card-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--rose-glow), var(--pink-glow)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.about-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--rose); }
.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: 14px; }
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ─── Footer ─── */
footer { border-top: 1px solid rgba(225,29,72,0.1); background: rgba(255,245,247,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(--rose); text-decoration: none; font-weight: 700; transition: color 0.2s; }
footer a:hover { color: var(--purple); }

/* ─── 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: 700; font-style: italic; background: linear-gradient(135deg, var(--rose), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.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(--rose); color: #fff; padding: 12px 24px; border-radius: 99px; text-decoration: none; font-weight: 800; font-size: 14px; transition: all 0.25s; }
.error-btn:hover { background: var(--rose-light); transform: translateY(-2px); }

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