/* ──────────────────────────────────────────
   Dylan Boutique – style.css
   Minimalist, editorial fashion aesthetic
   ────────────────────────────────────────── */

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

/* ─── CSS Custom Properties ─── */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-off-white: #f7f7f5;
  --color-light-grey: #f0f0ee;
  --color-mid-grey: #e5e5e3;
  --color-dark-grey: #6b6b6b;
  --color-text: #1a1a1a;
  --color-text-muted: #737373;
  --color-border: #e0e0de;
  --color-sale: #b44b4b;

  --font-serif: 'EB Garamond', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --header-height: 64px;
  --announcement-height: 36px;
  --max-width: 1400px;
  --content-padding: 24px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ─── Utility ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

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

/* ─── Announcement Bar ─── */
.announcement-bar {
  background: var(--color-text);
  color: var(--color-white);
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: background var(--transition-normal),
              box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition-fast),
              opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition-normal);
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a:hover::after {
  width: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-transform: lowercase;
  white-space: nowrap;
}

.logo a:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.header-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 9px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* ─── Mobile Nav Overlay ─── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal),
              visibility var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  padding: 8px;
  margin-bottom: 32px;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.5;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--content-padding) 80px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 48px;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #333;
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-text);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-white);
  opacity: 1;
}

.btn-full {
  width: 100%;
}

/* ─── Section Titles ─── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

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

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-light-grey);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: var(--color-white);
  text-align: center;
  padding: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  cursor: pointer;
}

.product-card:hover .quick-add {
  transform: translateY(0);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-card-info {
  padding: 14px 0 0;
  text-align: center;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--color-text);
}

.product-card-price {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.product-card-price .was-price {
  text-decoration: line-through;
  margin-right: 8px;
  color: var(--color-dark-grey);
}

.product-card-price .sale-price {
  color: var(--color-sale);
}

/* ─── Featured Sections ─── */
.section {
  padding: 80px 0;
}

.section--grey {
  background: var(--color-off-white);
}

/* Split Banner */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.split-banner-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.split-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.split-banner-item:hover img {
  transform: scale(1.03);
}

.split-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.3));
}

.split-banner-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-white);
  margin-bottom: 16px;
}

/* ─── Promise / USP Bar ─── */
.usp-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 48px 0;
}

.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.usp-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.2;
}

.usp-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* ─── Newsletter ─── */
.newsletter {
  background: var(--color-off-white);
  text-align: center;
  padding: 72px var(--content-padding);
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-right: none;
  background: var(--color-white);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-text);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: #333;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col li a:hover {
  color: var(--color-text);
  opacity: 1;
}

.footer-col p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-col .social-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-col .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.footer-col .social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-muted);
  transition: fill var(--transition-fast);
}

.footer-col .social-links a:hover svg {
  fill: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-payments {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-payments span {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 4px 8px;
  border-radius: 3px;
}

/* ─── Collection Page ─── */
.collection-header {
  text-align: center;
  padding: 48px 0 32px;
}

.collection-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
}

.collection-header p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.collection-toolbar-left {
  font-size: 13px;
  color: var(--color-text-muted);
}

.collection-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-btn,
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-btn:hover,
.sort-btn:hover {
  border-color: var(--color-text);
}

.filter-btn svg,
.sort-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.5;
}

/* Filter Sidebar */
.filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.filter-sidebar.active {
  transform: translateX(0);
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.filter-sidebar-header h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-sidebar-close {
  padding: 4px;
}

.filter-sidebar-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.5;
}

.filter-group {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.filter-group-title {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group-title svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 2;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-text);
}

.filter-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch-filter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  padding: 2px;
}

.color-swatch-filter:hover,
.color-swatch-filter.active {
  border-color: var(--color-text);
}

.color-swatch-filter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.filter-sidebar-footer {
  padding: 20px 24px;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 12px;
}

.filter-sidebar-footer .btn {
  flex: 1;
  padding: 12px;
}

/* ─── Product Page ─── */
.product-page {
  padding-top: 24px;
  padding-bottom: 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

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

.product-gallery-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-light-grey);
  overflow: hidden;
}

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

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

.product-gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  background: var(--color-light-grey);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--color-text);
}

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

.product-info {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.product-breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-breadcrumb a {
  color: var(--color-text-muted);
}

.product-breadcrumb a:hover {
  color: var(--color-text);
  opacity: 1;
}

.product-breadcrumb .sep {
  font-size: 10px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--color-text);
}

.product-price .was-price {
  text-decoration: line-through;
  color: var(--color-dark-grey);
  margin-right: 12px;
  font-size: 16px;
}

.product-price .sale-price {
  color: var(--color-sale);
}

/* Colour Swatches */
.variant-section {
  margin-bottom: 24px;
}

.variant-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-text);
}

.variant-label span {
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}

.color-swatches {
  display: flex;
  gap: 10px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 3px;
  transition: border-color var(--transition-fast);
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--color-text);
}

.color-swatch-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Size Selector */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  min-width: 48px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 14px;
  transition: all var(--transition-fast);
  background: var(--color-white);
}

.size-option:hover {
  border-color: var(--color-text);
}

.size-option.active {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}

.size-option.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Add to Cart */
.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
  margin-bottom: 16px;
}

.add-to-cart-btn:hover {
  background: #333;
}

.add-to-cart-btn:active {
  transform: scale(0.99);
}

/* Product Tabs */
.product-tabs {
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.tab-header {
  padding: 14px 0;
  margin-right: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-header:hover {
  color: var(--color-text);
}

.tab-header.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.tab-content {
  display: none;
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 20px;
  list-style: disc;
}

.tab-content ul li {
  margin-bottom: 6px;
}

/* Reviews */
.reviews-section {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.reviews-stars {
  display: flex;
  gap: 2px;
  color: #e0b040;
  font-size: 18px;
}

.reviews-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

.review-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 500;
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #e0b040;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ─── Cart Page ─── */
.cart-page {
  padding: 48px 0 80px;
}

.cart-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  text-align: center;
  margin-bottom: 48px;
}

.cart-empty {
  text-align: center;
  padding: 64px 0;
}

.cart-empty p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 0 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.cart-table thead th:last-child {
  text-align: right;
}

.cart-table tbody td {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-image {
  width: 80px;
  height: 100px;
  background: var(--color-light-grey);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
}

.cart-item-details p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.cart-item-remove {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: underline;
  margin-top: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.cart-item-remove:hover {
  color: var(--color-text);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--color-light-grey);
}

.qty-value {
  width: 40px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  height: 36px;
  line-height: 36px;
}

.cart-item-total {
  text-align: right;
  font-weight: 500;
  font-size: 14px;
}

/* Cart Summary */
.cart-summary {
  background: var(--color-off-white);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.cart-summary h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-summary-row.total {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 16px;
}

.cart-summary .btn {
  margin-top: 20px;
}

.cart-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
}

/* ─── Checkout Page ─── */
.checkout-page {
  padding: 48px 0 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

.checkout-form h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 24px;
}

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

.checkout-section h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group label .optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-text);
}

.form-group input::placeholder {
  color: var(--color-dark-grey);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Delivery Options */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.delivery-option:hover {
  border-color: var(--color-text);
}

.delivery-option.selected {
  border-color: var(--color-text);
  background: var(--color-off-white);
}

.delivery-option input[type="radio"] {
  accent-color: var(--color-text);
  width: 16px;
  height: 16px;
}

.delivery-option-info {
  flex: 1;
}

.delivery-option-name {
  font-size: 14px;
  font-weight: 500;
}

.delivery-option-time {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.delivery-option-price {
  font-weight: 500;
  font-size: 14px;
}

/* Order Summary Sidebar */
.order-summary {
  background: var(--color-off-white);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.order-summary h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.order-summary-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.order-summary-item-image {
  width: 60px;
  height: 75px;
  background: var(--color-light-grey);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.order-summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-summary-item-details {
  flex: 1;
}

.order-summary-item-details h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
}

.order-summary-item-details p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.order-summary-item-price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.order-summary-row.total {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 18px;
}

.contact-info-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.contact-info-box h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-info-box p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-text);
  color: var(--color-white);
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Page transition ─── */
.page-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .product-layout {
    grid-template-columns: 1fr 360px;
    gap: 32px;
  }

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

  .checkout-layout {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --content-padding: 16px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .logo {
    font-size: 22px;
  }

  .hero {
    height: 60vh;
    min-height: 360px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-info {
    position: static;
  }

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

  .cart-summary {
    position: static;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .split-banner {
    grid-template-columns: 1fr;
  }

  .usp-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .collection-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody td {
    display: block;
    padding: 8px 0;
    border: none;
    text-align: left !important;
  }

  .cart-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    display: block;
  }

  .cart-item-total {
    text-align: left;
  }

  .quick-add {
    transform: translateY(0);
    position: static;
    background: var(--color-text);
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 300px;
  }

  .hero-overlay {
    padding-bottom: 48px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 11px;
  }

  .usp-bar {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    border-right: 1px solid var(--color-border);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
