@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream: #f5f0e8;
  --black: #0a0a0a;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gray: #6b6b6b;
  --light-gray: #e8e4dc;
  --white: #faf8f4;
  --accent: #8b1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--black);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}


/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}

nav.scrolled {
  border-color: var(--light-gray);
  padding: 14px 48px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--black);
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

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

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 32px;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: var(--black);
  position: relative;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-icon-btn:hover {
  opacity: 0.6;
}

/* SVG icon sizes */
.nav-svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* Search icon slightly bigger */
.nav-svg-search {
  width: 22px;
  height: 22px;
}

.cart-count {
  background: var(--gold);
  color: var(--black);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 80px 80px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--gray);
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--gray);
  max-width: 380px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--black);
  color: var(--cream);
  padding: 14px 36px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.btn-primary:hover::after {
  transform: translateX(0);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: none;
  color: var(--black);
  padding: 14px 36px;
  border: 1px solid var(--black);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--cream);
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transform: scale(1.05);
  transition: transform 6s ease;
  filter: sepia(15%);
}

.hero-image:hover img {
  transform: scale(1);
}

.hero-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: spin 20s linear infinite;
}

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

/* ─── MARQUEE ─── */
.marquee-bar {
  background: var(--black);
  color: var(--gold);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 25s linear infinite;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  white-space: nowrap;
}

.marquee-dot {
  color: var(--gold);
  margin: 0 10px;
}

/* ─── SECTIONS ─── */
section {
  padding: 100px 80px;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 48px;
}

.section-title em {
  font-style: italic;
}

/* ─── PRODUCTS GRID ─── */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--white);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.product-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--cream);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.product-badge.new {
  background: var(--black);
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.btn-add-cart {
  background: var(--cream);
  color: var(--black);
  border: none;
  padding: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: 100%;
  transition: background 0.2s;
}

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

.product-info {
  padding: 20px 16px 24px;
}

.product-brand {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.product-price {
  font-size: 0.85rem;
  color: var(--gray);
}

.product-price .original {
  text-decoration: line-through;
  margin-right: 8px;
}

.product-price .sale {
  color: var(--accent);
  font-weight: 500;
}

/* ─── CATEGORIES STRIP ─── */
.categories {
  background: var(--black);
  color: var(--cream);
  padding: 80px;
}

.categories .section-title {
  color: var(--cream);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.cat-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #1a1a1a;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.6s;
}

.cat-card:hover img {
  opacity: 0.4;
  transform: scale(1.05);
}

.cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 28px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.cat-label h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 8px;
}

.cat-label a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  background: var(--gold);
  color: var(--black);
  text-align: center;
  padding: 80px;
}

.newsletter .section-title {
  color: var(--black);
  margin-bottom: 16px;
}

.newsletter p {
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-right: none;
  background: rgba(0, 0, 0, 0.1);
  color: var(--black);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--black);
  color: var(--cream);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  color: var(--cream);
  padding: 80px;
  border-top: 1px solid #1a1a1a;
}

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

.footer-brand .nav-logo {
  display: block;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.8;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #555;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--gold);
}

/* ─── CART SIDEBAR ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: var(--cream);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 28px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-gray);
}

.cart-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  padding: 4px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: var(--light-gray);
}

.cart-item-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-info p {
  font-size: 0.75rem;
  color: var(--gray);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: var(--light-gray);
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.1rem;
  align-self: start;
}

.cart-footer {
  padding: 20px 28px 32px;
  border-top: 1px solid var(--light-gray);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cart-subtotal span:last-child {
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.btn-checkout {
  width: 100%;
  background: var(--black);
  color: var(--cream);
  padding: 16px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-checkout::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.3s;
}

.btn-checkout:hover::after {
  transform: translateX(0);
}

.btn-checkout span {
  position: relative;
  z-index: 1;
}

/* ─── SHOP PAGE ─── */
.shop-hero {
  background: var(--black);
  color: var(--cream);
  padding: 160px 80px 80px;
  text-align: center;
}

.shop-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.shop-hero p {
  font-size: 0.85rem;
  color: #888;
  margin-top: 16px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 60vh;
}

.shop-filters {
  background: var(--white);
  padding: 48px 32px;
  border-right: 1px solid var(--light-gray);
  position: sticky;
  top: 80px;
  height: fit-content;
}

.filter-group {
  margin-bottom: 36px;
}

.filter-group h4 {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

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

.filter-option label {
  font-size: 0.8rem;
  color: var(--gray);
}

.price-range {
  display: flex;
  gap: 8px;
}

.price-range input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--light-gray);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  outline: none;
}

.price-range input:focus {
  border-color: var(--gold);
}

.shop-main {
  padding: 48px;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.results-count {
  font-size: 0.8rem;
  color: var(--gray);
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--light-gray);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  outline: none;
}

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  padding: 120px 80px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.product-gallery .main-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-gray);
  margin-bottom: 12px;
}

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

.product-thumbnails {
  display: flex;
  gap: 8px;
}

.product-thumbnails img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: var(--light-gray);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.product-thumbnails img.active,
.product-thumbnails img:hover {
  opacity: 1;
  outline: 1px solid var(--gold);
}

.product-detail-info {
  padding-top: 20px;
}

.product-detail-brand {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
}

.product-detail-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 28px;
  color: var(--black);
}

.size-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gray);
}

.size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.size-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--light-gray);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.size-btn:hover,
.size-btn.active {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

.size-btn.unavailable {
  opacity: 0.3;
  text-decoration: line-through;
}

.product-actions-main {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-add-main {
  flex: 1;
  padding: 16px;
  background: var(--black);
  color: var(--cream);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-add-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.3s;
}

.btn-add-main:hover::after {
  transform: translateX(0);
}

.btn-add-main span {
  position: relative;
  z-index: 1;
}

.btn-wishlist {
  width: 52px;
  height: 52px;
  border: 1px solid var(--light-gray);
  background: transparent;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.btn-wishlist:hover {
  background: var(--black);
  color: var(--cream);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.8;
  border-top: 1px solid var(--light-gray);
  padding-top: 28px;
}

.product-specs {
  margin-top: 20px;
}

.spec-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.8rem;
}

.spec-row span:first-child {
  width: 120px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

/* ─── CHECKOUT PAGE ─── */
.checkout-page {
  padding: 120px 80px 80px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
}

.checkout-form h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 36px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.checkout-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 36px 0 20px;
}

.order-summary {
  background: var(--white);
  padding: 36px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 24px;
}

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

.summary-item img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: var(--light-gray);
}

.summary-item-info {
  flex: 1;
}

.summary-item-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.summary-item-info p {
  font-size: 0.75rem;
  color: var(--gray);
}

.summary-totals {
  padding-top: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--gray);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

.summary-total span:first-child {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.summary-total span:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}

/* ─── PAGE TRANSITIONS ─── */
.page-enter {
  animation: pageEnter 0.5s ease both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--cream);
  padding: 14px 28px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.4s ease;
  z-index: 9000;
  pointer-events: none;
}

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

/* ─── RESPONSIVE ─── */

/* ────── SMALL PHONES (320px - 479px) ────── */
@media (max-width: 479px) {

  /* Typography */
  html {
    font-size: 14px;
  }

  body {
    line-height: 1.5;
  }

  /* Layout */
  section {
    padding: clamp(24px, 5vw, 32px) clamp(12px, 4vw, 20px);
  }

  /* Navigation */
  nav {
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  nav.scrolled {
    padding: 8px 8px;
  }

  .nav-logo {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    letter-spacing: 0.03em;
    margin-right: 4px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex: 1;
    justify-content: flex-end;
  }

  /* Search Bar */
  #nav-search-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
    order: 2;
  }

  #nav-search-input {
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
    max-width: 100px;
    transition: width 0.3s ease;
  }

  #nav-search-input.expanded {
    width: 120px !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid var(--gold) !important;
  }

  /* Nav Icon Buttons - Cart & Account */
  .nav-icon-btn {
    padding: 6px 4px;
    font-size: 0.5rem;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-icon-btn .btn-label {
    display: none !important;
  }

  .nav-svg-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .nav-svg-search {
    width: 20px;
    height: 20px;
  }

  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 0.4rem;
    position: absolute;
    top: -2px;
    right: -2px;
  }

  /* Account Button - Icon Only */
  #nav-account-btn {
    padding: 6px 4px;
  }

  #nav-account-btn .btn-label {
    display: none !important;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    order: 3;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Hero */
  .hero {
    padding-top: 60px;
    min-height: 90vh;
  }

  .hero-text {
    padding: clamp(24px, 4vw, 32px);
  }

  .hero-eyebrow {
    font-size: 0.6rem;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.8rem;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-cta {
    gap: 8px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.65rem;
  }

  .hero-image {
    min-height: 300px;
  }

  .hero-badge {
    width: 70px;
    height: 70px;
    font-size: 0.5rem;
    top: 20px;
    right: 20px;
  }

  /* Shop */
  .shop-hero {
    padding: 80px 20px 40px;
  }

  .shop-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .shop-layout {
    display: block;
  }

  .shop-filters {
    padding: clamp(24px, 4vw, 32px) 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--light-gray);
  }

  .filter-group {
    margin-bottom: 24px;
  }

  .filter-option label {
    font-size: 0.75rem;
  }

  .shop-main {
    padding: clamp(20px, 4vw, 32px);
  }

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

  .sort-select {
    width: 100%;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 8px !important;
  }

  .product-info {
    padding: 12px 12px 16px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  /* Categories */
  .categories {
    padding: clamp(30px, 6vw, 40px);
  }

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

  .cat-label h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  /* Product Detail */
  .product-detail {
    padding: 60px 16px 40px;
    gap: 24px;
  }

  .product-detail-name {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .product-detail-price {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 16px;
  }

  .size-grid {
    gap: 6px;
    margin-bottom: 16px;
  }

  .size-btn {
    width: 40px;
    height: 40px;
    font-size: 0.7rem;
  }

  .product-thumbnails {
    gap: 4px;
    overflow-x: auto;
  }

  .product-thumbnails img {
    width: 52px;
    height: 65px;
  }

  /* Checkout */
  .checkout-page {
    padding: 60px 16px 40px;
    display: block;
  }

  .checkout-form h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 24px;
  }

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

  .order-summary {
    position: static;
    margin-top: 32px;
    padding: 24px;
  }

  .order-summary h3 {
    font-size: 1.2rem;
  }

  /* Cart Sidebar */
  .cart-sidebar {
    width: 100vw;
  }

  .cart-header {
    padding: 16px;
  }

  .cart-header h2 {
    font-size: 1.2rem;
  }

  .cart-items {
    padding: 12px 16px;
  }

  .cart-item {
    gap: 12px;
    padding: 12px 0;
    grid-template-columns: 60px 1fr auto;
  }

  .cart-item img {
    width: 60px;
    height: 75px;
  }

  .cart-footer {
    padding: 12px 16px 20px;
  }

  /* Newsletter */
  .newsletter {
    padding: clamp(30px, 5vw, 40px) 16px;
  }

  .newsletter p {
    font-size: 0.8rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  /* Footer */
  footer {
    padding: clamp(30px, 5vw, 40px) 16px 20px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 0.6rem;
  }

  .footer-col ul li a {
    font-size: 0.75rem;
  }

  /* Marquee */
  .marquee-track {
    gap: 40px;
    animation: marquee 30s linear infinite;
  }

  .marquee-item {
    font-size: 0.6rem;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex !important;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 16px;
  }

  .nav-links.open li a {
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
  }

  .hamburger span {
    width: 18px;
    height: 1.2px;
  }
}

/* ────── TABLETS & SMALL PHONES (480px - 767px) ────── */
@media (min-width: 480px) and (max-width: 767px) {

  /* Layout */
  section {
    padding: clamp(40px, 6vw, 48px) clamp(16px, 5vw, 24px);
  }

  /* Navigation */
  nav {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  nav.scrolled {
    padding: 10px 16px;
  }

  .nav-logo {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    letter-spacing: 0.06em;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex: 1;
    justify-content: flex-end;
  }

  /* Search Bar */
  #nav-search-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
    order: 2;
  }

  #nav-search-input {
    width: 0;
    padding: 0;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: all 0.3s ease;
    color: var(--black);
    max-width: 140px;
  }

  #nav-search-input.expanded {
    width: 140px !important;
    padding: 6px 10px !important;
    border-bottom: 1px solid var(--gold) !important;
  }

  /* Nav Icon Buttons */
  .nav-icon-btn {
    padding: 6px 6px;
    font-size: 0.55rem;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-icon-btn .btn-label {
    display: none !important;
  }

  .nav-svg-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }

  .nav-svg-search {
    width: 19px;
    height: 19px;
  }

  .cart-count {
    width: 15px;
    height: 15px;
    font-size: 0.5rem;
    position: absolute;
    top: -2px;
    right: -2px;
  }

  /* Account Button - Icon Only */
  #nav-account-btn {
    padding: 6px 6px;
  }

  #nav-account-btn .btn-label {
    display: none !important;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    order: 3;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s ease;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Hero */
  .hero {
    padding-top: 70px;
  }

  .hero-text {
    padding: clamp(32px, 5vw, 40px);
  }

  .hero-title {
    font-size: clamp(2.4rem, 7vw, 3.5rem);
  }

  .hero-desc {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .hero-image {
    min-height: 400px;
  }

  .hero-badge {
    width: 80px;
    height: 80px;
    top: 30px;
    right: 30px;
  }

  /* Shop */
  .shop-hero {
    padding: 100px 24px 60px;
  }

  .shop-layout {
    display: block;
  }

  .shop-filters {
    padding: clamp(32px, 5vw, 40px) 20px;
    margin-bottom: 32px;
  }

  .shop-main {
    padding: clamp(24px, 5vw, 32px);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Product Detail */
  .product-detail {
    padding: 80px 24px 48px;
    gap: 40px;
  }

  .product-detail-name {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
  }

  .size-grid {
    gap: 8px;
  }

  .size-btn {
    width: 44px;
    height: 44px;
  }

  /* Checkout */
  .checkout-page {
    padding: 80px 24px 60px;
    display: block;
  }

  .order-summary {
    position: static;
    margin-top: 40px;
  }

  /* Cart Sidebar */
  .cart-sidebar {
    width: 90vw;
    max-width: 400px;
  }

  .cart-item {
    grid-template-columns: 70px 1fr auto;
  }

  /* Products */
  .product-name {
    font-size: 1rem;
  }

  /* Categories */
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  footer {
    padding: clamp(40px, 6vw, 48px) 24px;
  }

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

  /* Hamburger */
  .hamburger {
    display: flex !important;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    gap: 28px;
    padding: 40px 20px;
  }

  .nav-links.open li a {
    font-size: 1.5rem;
  }
}

/* ────── TABLETS (768px - 1023px) ────── */
@media (min-width: 768px) and (max-width: 1023px) {
  section {
    padding: 60px 32px;
  }

  nav {
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  nav.scrolled {
    padding: 10px 28px;
  }

  .nav-logo {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .nav-links {
    display: flex !important;
    gap: 20px;
    list-style: none;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .nav-actions {
    gap: 12px;
    margin-left: auto;
  }

  /* Search Bar - Desktop Style */
  #nav-search-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
  }

  #nav-search-input {
    width: 140px;
    padding: 6px 10px;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.3s;
    color: var(--black);
  }

  #nav-search-input:focus {
    border-bottom-color: var(--gold);
  }

  /* Nav Icon Buttons */
  .nav-icon-btn {
    padding: 6px 8px;
    font-size: 0.65rem;
    gap: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-icon-btn .btn-label {
    display: inline !important;
  }

  .nav-svg-icon {
    width: 20px;
    height: 20px;
  }

  .nav-svg-search {
    width: 22px;
    height: 22px;
  }

  .cart-count {
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
    position: relative;
    top: auto;
    right: auto;
  }

  /* Account Button - With Label */
  #nav-account-btn {
    padding: 6px 8px;
  }

  #nav-account-btn .btn-label {
    display: inline !important;
  }

  /* Hamburger Menu */
  .hamburger {
    display: none !important;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .shop-layout {
    grid-template-columns: 200px 1fr;
    gap: 0;
  }

  .shop-filters {
    padding: 32px 24px;
    position: static;
  }

  .shop-hero {
    padding: 120px 32px 60px;
  }

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

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

  .product-thumbnails {
    gap: 6px;
  }

  .product-thumbnails img {
    width: 64px;
    height: 80px;
  }

  .checkout-page {
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 100px 32px 60px;
  }

  .cart-sidebar {
    width: 350px;
  }
}

/* ────── DESKTOPS & LARGE TABLETS (1024px - 1279px) ────── */
@media (min-width: 1024px) and (max-width: 1279px) {
  section {
    padding: 80px 40px;
  }

  nav {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  nav.scrolled {
    padding: 12px 32px;
  }

  .nav-logo {
    font-size: 1.7rem;
    letter-spacing: 0.1em;
  }

  .nav-links {
    display: flex !important;
    gap: 28px;
    list-style: none;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-actions {
    gap: 16px;
    margin-left: auto;
  }

  /* Search Bar - Full Desktop Style */
  #nav-search-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
  }

  #nav-search-input {
    width: 160px;
    padding: 6px 12px;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.3s;
    color: var(--black);
  }

  #nav-search-input:focus {
    border-bottom-color: var(--gold);
  }

  /* Nav Icon Buttons */
  .nav-icon-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-icon-btn .btn-label {
    display: inline !important;
  }

  .nav-svg-icon {
    width: 20px;
    height: 20px;
  }

  .nav-svg-search {
    width: 22px;
    height: 22px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    position: relative;
    top: auto;
    right: auto;
  }

  /* Account Button - With Label */
  #nav-account-btn {
    padding: 6px 10px;
  }

  #nav-account-btn .btn-label {
    display: inline !important;
  }

  /* Hamburger Menu */
  .hamburger {
    display: none !important;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text {
    padding: 60px 40px;
  }

  .shop-layout {
    grid-template-columns: 240px 1fr;
  }

  .shop-filters {
    padding: 40px 28px;
  }

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

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 100px 40px 60px;
  }

  .checkout-page {
    grid-template-columns: 1fr 380px;
    gap: 70px;
    padding: 100px 40px 60px;
  }

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

  .cart-sidebar {
    width: 380px;
  }
}

/* ────── LARGE DESKTOPS (1280px+) ────── */
@media (min-width: 1280px) {
  section {
    padding: 100px 80px;
  }

  nav {
    padding: 20px 48px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  nav.scrolled {
    padding: 14px 48px;
  }

  .nav-logo {
    font-size: 1.8rem;
    letter-spacing: 0.12em;
  }

  .nav-links {
    display: flex !important;
    gap: 36px;
    list-style: none;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-actions {
    gap: 16px;
    margin-left: 32px;
  }

  /* Search Bar - Full Desktop */
  #nav-search-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
  }

  #nav-search-input {
    width: 160px;
    padding: 6px 12px;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.3s;
    color: var(--black);
  }

  #nav-search-input:focus {
    border-bottom-color: var(--gold);
  }

  /* Nav Icon Buttons */
  .nav-icon-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-icon-btn .btn-label {
    display: inline !important;
  }

  .nav-svg-icon {
    width: 20px;
    height: 20px;
  }

  .nav-svg-search {
    width: 22px;
    height: 22px;
  }

  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    position: relative;
    top: auto;
    right: auto;
  }

  /* Account Button - With Label */
  #nav-account-btn {
    padding: 6px 12px;
  }

  #nav-account-btn .btn-label {
    display: inline !important;
  }

  /* Hamburger Menu */
  .hamburger {
    display: none !important;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
  }

  .hero-text {
    padding: 80px 48px 80px 80px;
  }

  .shop-layout {
    grid-template-columns: 260px 1fr;
  }

  .shop-filters {
    padding: 48px 32px;
  }

  .shop-main {
    padding: 48px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 120px 80px 80px;
  }

  .checkout-page {
    grid-template-columns: 1fr 400px;
    gap: 80px;
    padding: 120px 80px 80px;
  }

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

  .cart-sidebar {
    width: 400px;
  }
}

/* ────── HAMBURGER MENU ────── */
.hamburger {
  display: none;
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ────── TABLET-SPECIFIC ADJUSTMENTS ────── */
@media (max-width: 1024px) {

  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex !important;
  }

  /* Shop Filters Mobile */
  .shop-filters {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
  }

  /* Sections */
  .story-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .story-grid>div:first-child {
    padding: clamp(24px, 5vw, 36px) clamp(16px, 4vw, 20px) !important;
  }

  .story-grid>div:last-child {
    min-height: auto;
  }

  /* Categories */
  .categories {
    padding: clamp(40px, 6vw, 60px) clamp(16px, 5vw, 40px);
  }

  /* Products Grid */
  .products-grid {
    gap: clamp(8px, 2vw, 12px);
  }

  /* Newsletter Form */
  .newsletter {
    padding: clamp(40px, 6vw, 60px) clamp(16px, 5vw, 40px);
  }

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

  .newsletter-form input {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  .newsletter-form button {
    width: 100%;
  }

  /* Cart Sidebar */
  .cart-sidebar {
    width: 100vw;
  }

  /* Footer */
  footer {
    padding: clamp(40px, 6vw, 60px) clamp(16px, 5vw, 40px) clamp(24px, 5vw, 32px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 32px);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ────── FORM RESPONSIVE IMPROVEMENTS ────── */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

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

  .form-group label {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select {
    padding: 10px 12px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ────── FLEXIBLE IMAGES ────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ────── FLEXIBLE CONTAINERS ────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 80px);
}

/* ────── MOBILE-FIRST INPUT HANDLING ────── */
input,
select,
textarea,
button {
  font-size: 16px;
  /* Prevents iOS zoom on input focus */
  border-radius: 4px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ────── TOUCH-FRIENDLY BUTTONS ────── */
@media (max-width: 768px) {

  button,
  [role="button"],
  a.btn-primary,
  a.btn-secondary {
    min-height: 44px;
    /* Apple HIG recommendation */
    min-width: 44px;
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 28px);
  }
}

/* ────── FLEXIBLE GRID GAPS ────── */
.products-grid {
  gap: clamp(4px, 2vw, 12px);
}

.footer-grid {
  gap: clamp(24px, 5vw, 60px);
}

.hero-cta {
  gap: clamp(8px, 2vw, 16px);
}

/* ────── RESPONSIVE BADGES ────── */
@media (max-width: 479px) {
  .hero-badge {
    width: 60px;
    height: 60px;
    font-size: 0.45rem;
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .hero-badge {
    width: 80px;
    height: 80px;
    font-size: 0.55rem;
  }
}

@media (min-width: 1024px) {
  .hero-badge {
    width: 100px;
    height: 100px;
    font-size: 0.6rem;
  }
}

/* ────── RESPONSIVE TYPOGRAPHY - BASE SCALING ────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
}

p {
  line-height: 1.6;
}

a {
  color: inherit;
  transition: color 0.2s ease;
}

/* ────── ASPECT RATIO RESPONSIVE ────── */
@supports (aspect-ratio: 1) {
  .product-img-wrap {
    aspect-ratio: 3/4;
  }

  .cat-card {
    aspect-ratio: 4/5;
  }
}

@supports not (aspect-ratio: 1) {
  .product-img-wrap::before {
    content: '';
    display: block;
    padding-bottom: 133.33%;
  }

  .cat-card::before {
    content: '';
    display: block;
    padding-bottom: 125%;
  }
}

/* ────── RESPONSIVE SPACING UTILITIES ────── */
@media (max-width: 479px) {
  .section-title {
    margin-bottom: clamp(24px, 5vw, 32px);
  }

  .products-header {
    margin-bottom: clamp(24px, 5vw, 32px);
    gap: 8px;
    flex-wrap: wrap;
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .section-title {
    margin-bottom: clamp(32px, 6vw, 40px);
  }

  .products-header {
    margin-bottom: clamp(32px, 6vw, 40px);
  }
}

@media (min-width: 1024px) {
  .section-title {
    margin-bottom: 48px;
  }

  .products-header {
    margin-bottom: 48px;
  }
}

/* ────── RESPONSIVE FONT SIZES ────── */
@media (max-width: 479px) {
  .section-label {
    font-size: 0.6rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .product-brand {
    font-size: 0.6rem;
  }

  .footer-col h4 {
    font-size: 0.6rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .section-label {
    font-size: 0.65rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .product-brand {
    font-size: 0.65rem;
  }
}

@media (min-width: 768px) {
  .section-label {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ────── PREVENT LAYOUT SHIFT & SCROLL ────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ────── GLOBAL RESPONSIVE FIX ────── */
* {
  min-width: 0;
}

/* ────── TABLE RESPONSIVENESS ────── */
table {
  width: 100%;
  border-collapse: collapse;
  display: block;
}

table thead {
  display: none;
}

table tbody {
  display: block;
}

table tr {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 16px;
}

table td {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border: none;
}

table td::before {
  content: attr(data-label);
  font-weight: 600;
  flex: 1;
}

@media (min-width: 768px) {
  table thead {
    display: table-header-group;
  }

  table tbody {
    display: table-row-group;
  }

  table tr {
    display: table-row;
    flex-direction: row;
    border-bottom: 1px solid var(--light-gray);
  }

  table td {
    display: table-cell;
  }

  table td::before {
    content: none;
  }
}

/* ────── PRINT STYLES ────── */
@media print {

  nav,
  .cart-overlay,
  .cart-sidebar,
  .toast {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  section {
    padding: 1in;
  }

  a {
    text-decoration: underline;
  }
}

/* ────── ACCESSIBILITY - REDUCE MOTION ────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ────── PROFILE BUTTON & MODAL ────── */
#nav-profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--light-gray);
  border: 2px solid var(--black);
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--cream);
  font-size: 0.9rem;
}

#nav-profile-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

#nav-profile-btn.has-image {
  background-blend-mode: overlay;
  color: transparent;
  font-size: 0;
}

/* Profile Modal/Dropdown */
.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-modal-content {
  background: var(--cream);
  padding: 48px;
  max-width: 540px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.profile-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
}

.profile-modal-close:hover {
  color: var(--black);
}

.profile-header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-pic-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--light-gray);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}

.profile-pic-wrapper:hover {
  opacity: 0.9;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-pic-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--gray);
  background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.profile-pic-upload-input {
  display: none;
}

.profile-pic-edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--black);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-pic-edit-icon:hover {
  background: var(--gray);
}

.profile-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.profile-header p {
  font-size: 0.85rem;
  color: var(--gray);
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.profile-field {
  margin-bottom: 16px;
}

.profile-field label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.profile-field input:focus,
.profile-field textarea:focus {
  border-color: var(--black);
}

.profile-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-btn:hover {
  background: var(--black);
  color: var(--cream);
}

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

.profile-btn-primary:hover {
  background: var(--gray);
  border-color: var(--gray);
}

.profile-menu {
  list-style: none;
  border-top: 1px solid var(--light-gray);
  padding-top: 20px;
}

.profile-menu-item {
  margin-bottom: 0;
}

.profile-menu-link {
  display: block;
  padding: 12px 0;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--light-gray);
  transition: color 0.2s;
}

.profile-menu-link:hover {
  color: var(--gold);
}

.profile-logout-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: none;
  border: 1px solid var(--black);
  color: var(--black);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-logout-btn:hover {
  background: var(--black);
  color: var(--cream);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-modal-content {
    padding: 32px 24px;
    max-width: none;
  }

  .profile-pic-wrapper {
    width: 100px;
    height: 100px;
  }

  .profile-header h2 {
    font-size: 1.4rem;
  }
}

/* ────── DARK MODE SUPPORT ────── */
@media (prefers-color-scheme: dark) {
  /* Uses existing dark colors - no additional changes needed */
}