@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #8f00fc;
  --primary-dark: #702dfa;
  --primary-light: rgba(143, 0, 252, 0.11);
  --text: #000000;
  --text-secondary: #505050;
  --text-muted: #737b97;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --border: #dbe0e6;
  --success: #00c853;
  --max-width: 1200px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── Top Bar ── */
.top-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── Header ── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo img { height: 48px; width: auto; }

nav { display: flex; gap: 24px; align-items: center; }
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--primary); }

.header-icons { display: flex; gap: 16px; align-items: center; }
.header-icons a { font-size: 20px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero img { width: 100%; display: block; }
.hero-mobile { display: none; }

/* ── Section ── */
.section {
  padding: 60px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 600;
}
.section-header a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

/* ── Collections Grid ── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.collection-card {
  text-align: center;
  transition: transform 0.2s;
}
.collection-card:hover { transform: translateY(-4px); }
.collection-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}
.collection-card span {
  font-size: 14px;
  font-weight: 500;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
}
.product-info { padding: 12px 16px; }
.product-info h3 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}
.product-installment {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.badge-free-shipping {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* ── Clothing Grid ── */
.clothing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Trust Badges ── */
.trust-section {
  background: var(--bg-alt);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item .trust-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.trust-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Newsletter ── */
.newsletter {
  background: var(--primary);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.newsletter h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.newsletter p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-form button {
  padding: 10px 24px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ── Footer ── */
footer {
  background: #111;
  color: #ccc;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.footer-text {
  font-size: 13px;
  line-height: 1.7;
  color: #999;
}
footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
footer ul li { margin-bottom: 8px; }
footer ul li a {
  font-size: 13px;
  color: #999;
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--primary); }
.footer-contact p {
  font-size: 13px;
  margin-bottom: 6px;
}
.footer-contact a { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.footer-legal {
  font-size: 11px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 16px;
  text-align: center;
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 16px; opacity: 0.9; }

/* ── Page Content ── */
.page-content {
  padding: 48px 0;
}
.page-content .container { max-width: 800px; }
.page-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.page-content ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.page-content ul li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
}
.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  padding: 60px 20px 20px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .close-btn {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .clothing-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: block; }
  .hero-desktop { display: none; }
  .hero-mobile { display: block; }
  .collections-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .clothing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid, .clothing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-header h2 { font-size: 18px; }
  .newsletter-form { flex-direction: column; }
}

/* ── Product Detail ── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.product-detail-image img {
  width: 100%;
  border-radius: 8px;
  background: var(--bg-alt);
}
.product-detail-info h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

.product-card { display: block; text-decoration: none; color: inherit; }

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
