:root {
  color-scheme: dark;
  --bg: #070707;
  --bg-soft: #111111;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f7f7;
  --muted: #b5b5b5;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #f8f6f3;
  --accent-soft: #dcd8d0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --max-width: 1240px;
  --transition: 250ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.07), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.announcement-bar {
  width: 100%;
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.5rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.brand-footer {
  font-size: 1.45rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity var(--transition), transform var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem;
  border-radius: 16px;
  min-width: 48px;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.badge {
  display: inline-flex;
  min-width: 1.5rem;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: #f6f5ef;
  color: #111;
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

.hero-section {
  padding: 5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy .eyebrow,
.section-heading .eyebrow,
.badge-row {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-copy h1 {
  font-size: clamp(3rem, 3.7vw, 4.8rem);
  line-height: 0.95;
  max-width: 12ch;
  margin: 1rem 0 1.5rem;
}

.hero-copy p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button-primary {
  background: linear-gradient(135deg, #f5f2ea 0%, rgba(255, 255, 255, 0.18) 100%);
  color: #111;
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.05), rgba(7, 7, 7, 0.65));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(110%);
}

.hero-visual .hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(2.1rem, 2.4vw, 2.8rem);
}

.section-title p {
  color: var(--muted);
  max-width: 34rem;
}

.cards-grid,
.product-grid,
.highlight-grid,
.testimonial-grid,
.story-grid,
.product-info-grid,
.cart-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 40%);
  pointer-events: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-card-content {
  padding: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.product-card h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}

.badge {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.08);
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-stars span {
  font-size: 0.95rem;
  color: #f1c40f;
}

.product-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.swatch,
.size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition), border-color var(--transition);
}

.swatch {
  width: 32px;
  height: 32px;
}

.size-chip {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 0.75rem;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-actions button {
  flex: 1;
  min-width: 48px;
}

.product-actions .button-primary,
.product-actions .button-outline {
  width: 100%;
}

.limited-banner,
.featured-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 2rem;
}

.limited-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.countdown-timer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.countdown-item {
  min-width: 6rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.countdown-item span:first-child {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonial-card,
.highlight-card,
.value-card,
.cart-page,
.cart-summary,
.product-detail-section,
.product-info-grid article,
.contact-form-section,
.about-hero,
.brand-story,
.faq-section {
  padding: 2rem;
}

.testimonial-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.74);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.25rem;
}

.testimonial-meta strong {
  font-size: 0.98rem;
}

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

.instagram-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.instagram-card::after {
  content: 'Instagram';
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.8rem;
}

.site-footer {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer small {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: var(--text);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: rgba(7, 7, 7, 0.96);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 120;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header,
.drawer-summary,
.drawer-content {
  padding: 1.5rem;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
}

.drawer-content {
  flex: 1;
  overflow: auto;
}

.drawer-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.summary-row.total {
  font-weight: 700;
  color: var(--text);
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-item img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.cart-item-details {
  display: grid;
  gap: 0.5rem;
}

.cart-item-details h4 {
  font-size: 1rem;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.quantity-control {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-control button {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.quantity-control span {
  width: 2rem;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(50px);
  background: rgba(15, 15, 15, 0.95);
  color: #fff;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
  z-index: 130;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.newsletter-modal,
.quick-view-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 7, 0.85);
  padding: 1.5rem;
  z-index: 130;
}

.newsletter-modal[aria-hidden='true'],
.quick-view-modal[aria-hidden='true'] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.newsletter-modal .modal-panel,
.quick-view-modal .modal-panel {
  width: min(720px, 100%);
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.modal-close {
  justify-self: end;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
}

.modal-panel h2 {
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.modal-panel p {
  color: rgba(255, 255, 255, 0.75);
}

.modal-panel input,
.modal-panel textarea,
.modal-panel select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  color: var(--text);
}

.modal-panel label {
  font-size: 0.95rem;
  color: var(--muted);
}

.product-detail-section {
  display: grid;
  grid-template-columns: 1.1fr minmax(320px, 420px);
  gap: 2rem;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 1rem;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-gallery-thumbs button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  display: grid;
  gap: 1rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.product-price {
  font-size: clamp(2rem, 2.4vw, 3rem);
  font-weight: 700;
}

.product-old-price {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.product-description {
  color: rgba(255, 255, 255, 0.78);
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.option-pill {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.option-pill.selected {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.quantity-block {
  display: grid;
  gap: 0.75rem;
}

.action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.contact-form-section form,
.cart-summary .coupon-form,
.shipping-estimate {
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 7, 0.95);
}

.spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: #f5f2ea;
  animation: spin 1s linear infinite;
}

body.dark-mode {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.03), transparent 25%),
    #070707;
}

footer,
.site-footer,
.announcement-bar,
.site-header,
.hero-visual,
.glass-card,
.product-card,
.cart-drawer,
.modal-panel,
.quick-view-modal {
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #111;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
  transition: top 250ms ease;
}

.skip-link:focus {
  top: 0;
}

@media (max-width: 1024px) {
  .hero-grid,
  .product-detail-section,
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }
}

@media (max-width: 700px) {
  .section-title,
  .limited-banner,
  .hero-actions,
  .action-row,
  .field-grid,
  .product-gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
  }

  .site-header {
    padding: 1rem;
  }

  .site-header .container {
    justify-content: space-between;
  }

  .site-nav {
    display: none;
  }

  .site-footer {
    padding: 2rem 0;
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
