@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent2: #f5a623;
  --light: #f8f6f2;
  --white: #ffffff;
  --gray: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--primary);
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  gap: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
}

.search-bar input::placeholder { color: rgba(255,255,255,0.5); }

.search-bar button {
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.search-bar button:hover { background: #c73652; }

.header-actions { display: flex; gap: 16px; align-items: center; }

.header-actions a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}

.header-actions a:hover { color: var(--accent); }
.header-actions a .icon { font-size: 20px; }

/* ── NAV ── */
nav {
  background: #16213e;
  padding: 0 5%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: 14px 22px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
  background: rgba(255,255,255,0.05);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 5%;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(233,69,96,0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245,166,35,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: #c73652; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233,69,96,0.4); }

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── CATEGORY CARDS ── */
.section { padding: 60px 5%; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--gray);
  margin-bottom: 36px;
  font-size: 15px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
  display: block;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(233,69,96,0.15);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.category-card p { font-size: 13px; color: var(--gray); }

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

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--primary);
  display: block;
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.product-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.badge.new { background: #10b981; }
.badge.hot { background: var(--accent); }

.product-info { padding: 16px; }

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .category-tag {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stars { color: var(--accent2); font-size: 13px; margin-bottom: 8px; }
.stars span { color: var(--gray); font-size: 12px; margin-left: 4px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.old-price {
  font-size: 13px;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 6px;
}

.add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-btn:hover { background: var(--accent); }

/* ── PRODUCT PAGE ── */
.product-page { padding: 40px 5%; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.product-detail-img {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 140px;
  min-height: 380px;
}

.product-detail-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.product-detail-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.product-detail-price .old {
  font-size: 18px;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 400;
}

.product-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.product-meta-row { display: flex; gap: 8px; font-size: 14px; }
.product-meta-row strong { min-width: 100px; color: var(--gray); }

.product-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--light);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.buy-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 12px;
}

.buy-btn:hover { background: #c73652; transform: translateY(-2px); }

.wishlist-btn {
  display: inline-block;
  padding: 16px 24px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.wishlist-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 5%;
  background: white;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon { font-size: 32px; flex-shrink: 0; }
.feature h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--gray); }

/* ── CATEGORY PAGE ── */
.category-header {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: white;
  padding: 48px 5%;
}

.category-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 8px;
}

.category-header p { color: rgba(255,255,255,0.7); font-size: 16px; }

.filters-bar {
  background: white;
  padding: 16px 5%;
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-select {
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { font-size: 24px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }

footer h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
footer ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ── INFO PAGES ── */
.info-page { padding: 60px 5%; max-width: 900px; margin: 0 auto; }
.info-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 8px;
}

.info-page .subtitle { color: var(--gray); margin-bottom: 40px; font-size: 16px; }
.info-page h2 { font-size: 22px; margin: 32px 0 12px; }
.info-page p { font-size: 15px; line-height: 1.9; color: #444; margin-bottom: 16px; }
.info-page ul { padding-left: 20px; margin-bottom: 16px; }
.info-page ul li { font-size: 15px; line-height: 1.9; color: #444; margin-bottom: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .header-top { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; }
  nav ul { overflow-x: auto; }
  nav ul li a { padding: 12px 14px; font-size: 13px; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
