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

:root {
  --bg: #0d0a14;
  --bg2: #13101e;
  --bg3: #1c1728;
  --bg4: #241e34;
  --accent: #9b59d0;
  --accent2: #c084fc;
  --accent3: #e9d5ff;
  --text: #f5f0ff;
  --muted: #9585b0;
  --border: #2d2442;
  --red: #ef4444;
  --glow: rgba(155,89,208,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  background: rgba(13,10,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(155,89,208,0.15);
  transition: all 0.3s;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo span {
  background: linear-gradient(135deg, #9b59d0, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cart-btn {
  background: linear-gradient(135deg, #9b59d0, #7c3aed);
  border: none; color: white;
  padding: 10px 24px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: all 0.3s; box-shadow: 0 4px 20px var(--glow);
}
.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}
.cart-count {
  background: white; color: var(--accent);
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--bg);
  padding: 100px 40px 60px;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192,132,252,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(155,89,208,0.1) 0%, transparent 40%);
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(155,89,208,0.15) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(155,89,208,0.15);
  border: 1px solid rgba(155,89,208,0.3);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; color: var(--accent2);
  letter-spacing: 0.08em; margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .line1 { color: var(--text); display: block; }
.hero h1 .line2 {
  display: block; font-style: italic;
  background: linear-gradient(135deg, #9b59d0, #c084fc, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted); font-size: 1.05rem; line-height: 1.7;
  margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, #9b59d0, #7c3aed);
  border: none; color: white; padding: 14px 32px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.3s; box-shadow: 0 4px 20px var(--glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 35px var(--glow); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(155,89,208,0.4); color: var(--accent2);
  padding: 14px 32px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 400;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--accent2); background: rgba(155,89,208,0.08); }

.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(155,89,208,0.15);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, #9b59d0, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.06em; }

/* ── Features bar ── */
.features-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.feature-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--muted);
}
.feature-item span:first-child { font-size: 1.1rem; }

/* ── Catalog section ── */
.catalog-section { padding: 60px 40px; }

.section-header {
  text-align: center; margin-bottom: 40px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 600; margin-bottom: 10px;
}
.section-title span {
  background: linear-gradient(135deg, #9b59d0, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub { color: var(--muted); font-size: 0.9rem; }

/* ── Categories ── */
.categories {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.cat-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); padding: 9px 20px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 400;
  cursor: pointer; white-space: nowrap;
  transition: all 0.25s; text-decoration: none; display: inline-block;
}
.cat-btn:hover {
  border-color: var(--accent); color: var(--accent2);
  background: rgba(155,89,208,0.1);
}
.cat-btn.active {
  background: linear-gradient(135deg, #9b59d0, #7c3aed);
  border-color: transparent; color: white;
  box-shadow: 0 4px 15px var(--glow);
}

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

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: rgba(155,89,208,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(155,89,208,0.2);
}

.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #9b59d0, #c084fc);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }

.product-img {
  aspect-ratio: 1; overflow: hidden;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-img .placeholder {
  font-size: 3.5rem; opacity: 0.25;
  transition: transform 0.3s, opacity 0.3s;
}
.product-card:hover .placeholder { transform: scale(1.1); opacity: 0.35; }

.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.product-cat {
  font-size: 0.68rem; letter-spacing: 0.1em; color: var(--accent2);
  text-transform: uppercase; font-weight: 500;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600; line-height: 1.4; flex: 1;
}
.product-desc { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 18px; gap: 12px;
}
.product-price {
  font-size: 1.15rem; font-weight: 600;
  background: linear-gradient(135deg, #c084fc, #e9d5ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.add-to-cart {
  background: linear-gradient(135deg, #9b59d0, #7c3aed);
  border: none; color: white; padding: 9px 18px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s; white-space: nowrap;
  box-shadow: 0 3px 12px var(--glow);
}
.add-to-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--glow);
}

/* ── Cart Drawer ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(500px, 100vw);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 300; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--bg2); z-index: 1;
}
.cart-header h2 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600;
}
.close-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { border-color: var(--red); color: var(--red); }

.cart-items { flex: 1; padding: 20px 28px; }

.cart-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 68px; height: 68px; background: var(--bg3); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.88rem; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.cart-item-size { color: var(--muted); font-size: 0.74rem; margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent2); }
.qty-num { font-size: 0.88rem; min-width: 20px; text-align: center; font-weight: 500; }
.cart-item-price {
  color: var(--accent2); font-size: 0.95rem; align-self: center; font-weight: 600;
}
.remove-item {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1rem; padding: 4px;
  transition: color 0.2s;
}
.remove-item:hover { color: var(--red); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 0.9rem; }
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }

.cart-footer { padding: 20px 28px; border-top: 1px solid var(--border); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 600; margin-bottom: 20px;
}
.cart-total-val {
  background: linear-gradient(135deg, #c084fc, #e9d5ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 1.3rem;
}

/* ── Order Form ── */
.order-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label {
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; font-weight: 500;
}
.form-row input, .form-row textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155,89,208,0.15);
}
.form-row textarea { resize: vertical; min-height: 64px; }

.delivery-box {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg3); font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}

.checkout-btn {
  background: linear-gradient(135deg, #9b59d0, #7c3aed);
  color: white; border: none; padding: 14px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; width: 100%; transition: all 0.3s;
  box-shadow: 0 4px 20px var(--glow); margin-top: 4px;
  letter-spacing: 0.04em;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Size Modal ── */
.size-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.size-modal.open { opacity: 1; pointer-events: all; }
.size-modal-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; width: min(380px, 90vw);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.size-modal-box h3 {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 20px;
}
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.size-chip {
  border: 1px solid var(--border); background: var(--bg3); border-radius: 8px;
  color: var(--text); padding: 8px 18px;
  cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.85rem;
  transition: all 0.2s;
}
.size-chip:hover, .size-chip.selected {
  border-color: var(--accent); color: var(--accent2);
  background: rgba(155,89,208,0.15);
  box-shadow: 0 0 0 3px rgba(155,89,208,0.1);
}
.size-confirm {
  background: linear-gradient(135deg, #9b59d0, #7c3aed);
  color: white; border: none; border-radius: 50px;
  padding: 12px 24px; width: 100%;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; box-shadow: 0 4px 15px var(--glow);
}
.size-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Success ── */
.success-msg { display: none; text-align: center; padding: 40px 20px; }
.success-msg.show { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-msg h3 {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  background: linear-gradient(135deg, #9b59d0, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.success-msg p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 50px 40px 30px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  padding-bottom: 30px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
}
.footer-logo span {
  background: linear-gradient(135deg, #9b59d0, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 0.78rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  .hero { padding: 90px 20px 50px; }
  .hero-stats { gap: 24px; }
  .features-bar { padding: 14px 20px; gap: 20px; }
  .catalog-section { padding: 40px 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  footer { padding: 40px 20px 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
