/* ─── CurveLuxe Design System ─────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --warm-cream: #FDF6F0;
  --deep-plum: #2D1B2E;
  --rose-gold: #C4887B;
  --soft-mauve: #B8879B;
  --rich-bronze: #8B6914;
  --warm-brown: #5C3D2E;
  --light-blush: #F5E6E0;
  --off-white: #FEFCFA;
  --success: #4a7c59;
  --error: #c44b4b;
  --max-w: 1200px;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--deep-plum);
  background: var(--warm-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── NAV ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-blush);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-plum);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

.nav-links .active {
  color: var(--rose-gold);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--rose-gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -12px;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--deep-plum);
}

/* ─── PAGE HEADER ──────────────────────────────────────── */
.page-header {
  padding: 120px 40px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--warm-brown);
  font-weight: 300;
  margin-top: 12px;
  max-width: 600px;
}

.breadcrumbs {
  padding: 96px 40px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--warm-brown);
}

.breadcrumbs a:hover {
  color: var(--rose-gold);
}

.breadcrumbs span {
  margin: 0 8px;
  opacity: 0.4;
}

/* ─── FILTERS ──────────────────────────────────────────── */
.shop-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.filters {
  padding-top: 8px;
}

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

.filter-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 16px;
}

.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--warm-brown);
  border-radius: 8px;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: var(--light-blush);
  color: var(--deep-plum);
}

.filter-btn.active {
  background: var(--deep-plum);
  color: var(--warm-cream);
  font-weight: 500;
}

.filter-toggle-mobile {
  display: none;
  width: 100%;
  padding: 14px 20px;
  background: var(--off-white);
  border: 1px solid var(--light-blush);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--deep-plum);
  margin-bottom: 20px;
  text-align: left;
}

/* ─── PRODUCT GRID ─────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--off-white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 27, 46, 0.08);
}

.product-card-image {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category-specific gradients for product imagery */
.product-card-image[data-category="tops"] {
  background: linear-gradient(135deg, #F5E6E0 0%, #E8C4B8 40%, #C4887B 100%);
}
.product-card-image[data-category="dresses"] {
  background: linear-gradient(135deg, #E8D5DE 0%, #B8879B 40%, #2D1B2E 100%);
}
.product-card-image[data-category="accessories"] {
  background: linear-gradient(135deg, #F0E6C8 0%, #C4A84B 40%, #8B6914 100%);
}

.product-card-image .product-icon {
  font-size: 3rem;
  opacity: 0.15;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-card-image .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--deep-plum);
  color: var(--warm-cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}

.product-card-image .sale-badge {
  background: var(--rose-gold);
  color: white;
}

.product-card-info {
  padding: 20px;
}

.product-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-info .product-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose-gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.product-card-info .price {
  font-size: 1.1rem;
  font-weight: 600;
}

.product-card-info .price .compare {
  text-decoration: line-through;
  color: var(--warm-brown);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 8px;
  opacity: 0.6;
}

.product-card-info .colors-preview {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--light-blush);
}

/* ─── PRODUCT DETAIL ───────────────────────────────────── */
.product-detail {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-image-main {
  aspect-ratio: 4/5;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-main[data-category="tops"] {
  background: linear-gradient(135deg, #F5E6E0 0%, #E8C4B8 40%, #C4887B 100%);
}
.product-image-main[data-category="dresses"] {
  background: linear-gradient(135deg, #E8D5DE 0%, #B8879B 40%, #2D1B2E 100%);
}
.product-image-main[data-category="accessories"] {
  background: linear-gradient(135deg, #F0E6C8 0%, #C4A84B 40%, #8B6914 100%);
}

.product-image-main .product-icon-lg {
  font-size: 6rem;
  opacity: 0.12;
}

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

.product-info .category-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 12px;
}

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.product-info .price-main {
  font-size: 1.6rem;
  font-weight: 700;
}

.product-info .price-compare {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--warm-brown);
  opacity: 0.6;
}

.product-info .price-save {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(74, 124, 89, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.product-info .description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--warm-brown);
  font-weight: 300;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--light-blush);
}

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

.option-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--deep-plum);
}

.size-options, .color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn, .color-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--light-blush);
  background: var(--off-white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  color: var(--deep-plum);
}

.size-btn:hover, .color-btn:hover {
  border-color: var(--rose-gold);
}

.size-btn.selected, .color-btn.selected {
  background: var(--deep-plum);
  color: var(--warm-cream);
  border-color: var(--deep-plum);
}

.add-to-cart-btn {
  width: 100%;
  padding: 18px 32px;
  background: var(--deep-plum);
  color: var(--warm-cream);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.2s;
  margin-top: 8px;
}

.add-to-cart-btn:hover {
  background: var(--rose-gold);
  transform: translateY(-1px);
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.add-to-cart-btn.added {
  background: var(--success);
}

.product-meta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--light-blush);
}

.meta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.meta-row .meta-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--deep-plum);
}

.meta-row .meta-value {
  color: var(--warm-brown);
  font-weight: 300;
}

.size-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rose-gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.size-guide-link:hover {
  opacity: 0.7;
}

/* Size guide modal */
.size-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 27, 46, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.size-guide-modal.open {
  display: flex;
}

.size-guide-content {
  background: var(--off-white);
  border-radius: 20px;
  padding: 48px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.size-guide-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.size-guide-content .subtitle {
  color: var(--warm-brown);
  font-weight: 300;
  margin-bottom: 28px;
}

.size-guide-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--warm-brown);
  cursor: pointer;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.size-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--deep-plum);
  color: var(--warm-cream);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.size-table th:first-child {
  border-radius: 8px 0 0 0;
}

.size-table th:last-child {
  border-radius: 0 8px 0 0;
}

.size-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-blush);
  color: var(--warm-brown);
}

.size-table tr:last-child td {
  border-bottom: none;
}

.size-table td:first-child {
  font-weight: 600;
  color: var(--deep-plum);
}

/* ─── RELATED PRODUCTS ─────────────────────────────────── */
.related-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 80px;
}

.related-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── CART ─────────────────────────────────────────────── */
.cart-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 80px 40px;
  grid-column: 1 / -1;
}

.cart-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--warm-brown);
  font-weight: 300;
  margin-bottom: 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-blush);
  align-items: center;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item-image {
  width: 100px;
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image[data-category="tops"] {
  background: linear-gradient(135deg, #F5E6E0 0%, #C4887B 100%);
}
.cart-item-image[data-category="dresses"] {
  background: linear-gradient(135deg, #E8D5DE 0%, #B8879B 100%);
}
.cart-item-image[data-category="accessories"] {
  background: linear-gradient(135deg, #F0E6C8 0%, #8B6914 100%);
}

.cart-item-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-details .cart-item-meta {
  font-size: 0.85rem;
  color: var(--warm-brown);
  font-weight: 300;
}

.cart-item-details .cart-item-price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--light-blush);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border: none;
  font-size: 1.1rem;
  color: var(--deep-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

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

.qty-value {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--warm-brown);
  opacity: 0.6;
  transition: all 0.15s;
}

.remove-btn:hover {
  opacity: 1;
  color: var(--error);
}

/* Cart summary */
.cart-summary {
  background: var(--off-white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--light-blush);
  position: sticky;
  top: 96px;
}

.cart-summary h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-blush);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.summary-row .label {
  color: var(--warm-brown);
  font-weight: 300;
}

.summary-row .value {
  font-weight: 500;
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px solid var(--deep-plum);
  font-size: 1.15rem;
}

.summary-row.total .label,
.summary-row.total .value {
  font-weight: 700;
  color: var(--deep-plum);
}

.free-shipping-note {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 16px;
}

.checkout-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--light-blush);
}

.checkout-form h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--light-blush);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--deep-plum);
  transition: border-color 0.2s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--rose-gold);
}

.form-field input::placeholder {
  color: var(--warm-brown);
  opacity: 0.5;
}

.checkout-btn {
  width: 100%;
  padding: 18px;
  background: var(--deep-plum);
  color: var(--warm-cream);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.2s;
  margin-top: 8px;
}

.checkout-btn:hover {
  background: var(--rose-gold);
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── ORDER SUCCESS ────────────────────────────────────── */
.success-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 140px 40px 80px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(74, 124, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
}

.success-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.success-page .order-id {
  font-size: 0.85rem;
  color: var(--warm-brown);
  margin-bottom: 24px;
}

.success-page .order-id strong {
  color: var(--deep-plum);
}

.success-details {
  background: var(--off-white);
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  margin-bottom: 32px;
  border: 1px solid var(--light-blush);
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--light-blush);
}

.success-details .detail-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ─── SHARED BUTTON ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--deep-plum);
  color: var(--warm-cream);
}

.btn-primary:hover {
  background: var(--rose-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--deep-plum);
  color: var(--deep-plum);
}

.btn-outline:hover {
  background: var(--deep-plum);
  color: var(--warm-cream);
}

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer {
  padding: 60px 40px;
  background: var(--deep-plum);
  color: var(--warm-cream);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.6;
  font-weight: 300;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.6;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.8;
  padding: 6px 0;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--rose-gold);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.4;
  font-weight: 300;
}

/* ─── SORT BAR ─────────────────────────────────────────── */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.result-count {
  font-size: 0.9rem;
  color: var(--warm-brown);
  font-weight: 300;
}

.sort-select {
  padding: 8px 16px;
  border: 1.5px solid var(--light-blush);
  border-radius: 8px;
  background: var(--off-white);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--deep-plum);
  cursor: pointer;
}

/* ─── LOADING ──────────────────────────────────────────── */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--warm-brown);
  font-weight: 300;
}

.loading-spinner::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--light-blush);
  border-top-color: var(--rose-gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 12px;
}

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

/* ─── TOAST ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--deep-plum);
  color: var(--warm-cream);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(45, 27, 46, 0.2);
}

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

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
    height: 64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--warm-cream);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--light-blush);
    box-shadow: 0 8px 32px rgba(45, 27, 46, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--light-blush);
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .page-header {
    padding: 100px 20px 24px;
  }

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

  .filter-toggle-mobile {
    display: block;
  }

  .filters {
    display: none;
  }

  .filters.open {
    display: block;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
    padding: 16px 20px 60px;
    gap: 28px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

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

  .breadcrumbs {
    padding: 80px 20px 0;
  }

  .success-page {
    padding: 110px 20px 60px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-card-info {
    padding: 16px;
  }
}
