:root {
  --bg: #fdfdff;
  --card: #ffffff;
  --text: #0b0b13;
  --muted: #6e6f7a;
  --accent: #f264a4;
  --accent-strong: #ff6f91;
  --shadow-soft: 0 20px 45px rgba(12, 9, 35, 0.08);
  --border-soft: rgba(15, 14, 36, 0.09);
  --gradient-hero: linear-gradient(135deg, rgba(255, 222, 235, 0.9), rgba(255, 255, 255, 0));
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

body {
  background: #f7f4ff;
  color: var(--text);
  font-family: inherit;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding: 0 0 80px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
}

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

.brand {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
}

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

nav li a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

nav li a:hover {
  color: var(--accent);
}

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

.icon-button {
  border: 1px solid var(--border-soft);
  background: white;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.icon-button:hover {
  transform: scale(1.05);
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 2px 6px;
  position: absolute;
  top: -4px;
  right: -4px;
}

.icon-stack {
  position: relative;
}

.hamburger {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  background: var(--text);
  height: 2px;
  width: 24px;
  border-radius: 999px;
  transition: transform 0.3s ease;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
}

.hamburger span::before {
  transform: translateY(-8px);
}

.hamburger span::after {
  transform: translateY(6px);
}

.mobile-drawer,
.filter-drawer,
.search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 150;
}

.mobile-drawer.active,
.filter-drawer.active,
.search-overlay.active {
  display: block;
}

.drawer-backdrop,
.filter-backdrop,
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 7, 23, 0.55);
}

.drawer-content,
.filter-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 85vw);
  height: 100vh;
  background: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.filter-content {
  width: min(420px, 90vw);
}

.drawer-close,
.filter-close,
.search-close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-drawer nav ul,
.filter-content nav ul {
  flex-direction: column;
  gap: 12px;
}

.search-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 32px;
  border-radius: 16px;
  width: min(480px, 90vw);
  box-shadow: var(--shadow-soft);
}

.search-window input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.search-window ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-window li {
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
}

.quick-view-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.quick-view-overlay.active {
  display: block;
}

.quick-view-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.quick-view-window img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.quick-view-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero {
  width: 100%;
  min-height: clamp(520px, 70vh, 760px);
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 8, 22, 0.8), rgba(10, 8, 22, 0.1));
}

.hero__inner {
  position: relative;
  padding: clamp(60px, 6vw, 120px) 16px;
  max-width: 700px;
  z-index: 1;
  text-align: center;
  backdrop-filter: blur(8px);
  background: rgba(5, 3, 10, 0.35);
  border-radius: 32px;
  box-shadow: 0 25px 45px rgba(5, 3, 15, 0.45);
}

.hero__inner h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 16px;
}

.hero__inner .hero-subtext {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.hero__inner .cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-button {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cta-button.primary {
  background: var(--accent-strong);
  color: white;
  box-shadow: var(--shadow-soft);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-button:hover {
  transform: translateY(-2px);
}

.trust-strip {
  background: var(--card);
  border: 1px solid var(--border-soft);
  margin: 24px 0;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  text-align: center;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.category-grid,
.featured-grid,
.trending-grid,
.collections-grid,
.related-grid,
.shop-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.category-card .visual {
  flex: 1;
  background-size: cover;
  background-position: center;
  height: 170px;
}

.category-card .details {
  padding: 16px;
}

.category-card .details p {
  color: var(--muted);
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-card .product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-actions button {
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.tag {
  background: rgba(246, 100, 164, 0.15);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.deal-banner {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 32px;
  overflow: hidden;
  margin: 40px 0;
  background-size: cover;
  background-position: center;
}

.deal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 111, 145, 0.85), rgba(255, 255, 255, 0));
}

.deal-banner .deal-content {
  position: relative;
  padding: 40px;
  color: white;
}

.trending-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.trending-card {
  border-radius: 16px;
  overflow: hidden;
  min-height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
  position: relative;
}

.trending-card:hover {
  transform: scale(1.05);
}

.trending-card__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.newsletter {
  margin: 60px 0;
  padding: 40px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.newsletter button {
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  cursor: pointer;
}

.newsletter textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 14px 18px;
  resize: vertical;
  font-family: inherit;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111;
  color: white;
  padding: 14px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  z-index: 200;
}

footer {
  padding: 40px 16px;
  background: #05030a;
  color: #e5e0ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.footer-grid h4 {
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filters {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-soft);
}

.filters h3 {
  margin-bottom: 16px;
}

.filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.filters .filter-group label {
  font-size: 0.9rem;
}

.filters input[type='range'] {
  width: 100%;
}

.shop-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.filter-toggle {
  display: none;
  border: 1px solid var(--border-soft);
  background: white;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}

.shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.pagination button {
  border: 1px solid var(--border-soft);
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.collection-section {
  margin-bottom: 40px;
}

.collection-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.collection-card {
  min-width: 240px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  background: var(--card);
  flex: 0 0 auto;
}

.collection-card .visual {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.collection-card .details {
  padding: 16px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-gallery .thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-gallery img {
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.product-info {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-soft);
}

.product-info h1 {
  margin-bottom: 12px;
}

.variant-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.qty-control button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: transparent;
  cursor: pointer;
}

.accordion {
  border-top: 1px solid var(--border-soft);
}

.accordion button {
  width: 100%;
  border: none;
  background: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion p {
  padding-bottom: 16px;
  color: var(--muted);
}

.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-summary {
  background: var(--card);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary button {
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  font-weight: 600;
}

.link-button {
  border: none;
  background: none;
  color: var(--accent-strong);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .filters {
    display: none;
  }

  .filter-toggle {
    display: inline-flex;
  }
  .filter-drawer.active .filters {
    display: block;
  }
}

@media (min-width: 1100px) {
  .filter-toggle {
    display: none;
  }
}

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  header nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero__inner {
    max-width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .featured-grid,
  .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .deal-banner .deal-content {
    padding: 24px;
  }

  .trending-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .newsletter form {
    flex-direction: column;
  }

  main {
    padding-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
