/* Poster & Artwork E-Commerce MVP - Design System Tokens */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --color-bg: #f4f1ec;
  --color-surface: #ffffff;
  --color-surface-soft: #fcfbfa;
  --color-text: #141414;
  --color-text-light: #525252;
  --color-muted: #737373;
  --color-accent: #1d4ed8;
  --color-accent-hover: #1e40af;
  --color-accent-contrast: #ffffff;
  --color-danger: #dc2626;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-border: #e2ded5;
  --color-border-light: #ece9e2;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--color-text);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 100;
  text-align: center;
}

.announcement-bar a {
  text-decoration: underline;
  color: #fff;
  font-weight: 600;
}

.countdown-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.announcement-close {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

.announcement-close:hover {
  opacity: 1;
}

/* Main Site Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-4);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-img {
  max-height: 40px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  border: 2px solid var(--color-text);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  margin-left: var(--space-3);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  padding: 8px 0;
  text-decoration: none;
  background: transparent;
  transition: color var(--transition-fast);
}

/* Minimal Underline Animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: transparent;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown:hover .nav-link-trigger::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-link-trigger svg {
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-link-trigger svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 110;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 8px 0;
}

/* Search — centered and balanced between nav and action utilities */
.header-search-form {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 40px;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.search-input:hover {
  border-color: var(--color-text-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Icon-over-label action buttons (Wishlist / Cart / Track Order) */
.nav-icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 56px;
  padding: 6px 4px 4px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: transparent;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-icon-action:hover {
  color: var(--color-text);
  background: transparent;
}

.nav-icon-action-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.nav-icon-action:hover .nav-icon-action-icon {
  transform: translateY(-2px);
}

.nav-icon-action-label {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.nav-icon-action-label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-action:hover .nav-icon-action-label::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.action-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
}

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

.mobile-nav-drawer .nav-link {
  width: fit-content;
  padding: 6px 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

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

/* Layout Main Content */
.main-content {
  flex: 1;
}

/* Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-surface);
  border-color: var(--color-text);
}

.btn-dark {
  background: var(--color-text);
  color: #ffffff;
}

.btn-dark:hover:not(:disabled) {
  background: #000;
}

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

.btn-outline-dark:hover:not(:disabled) {
  background: var(--color-text);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  background: #000000;
  border-bottom: 1px solid #141414;
  overflow: hidden;
  width: 100%;
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 8 / 3;
  min-height: 480px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-carousel {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  color: #ffffff;
  padding: clamp(16px, 3vw, var(--space-5)) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content .hero-headline,
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: clamp(10px, 1.4vw, 16px);
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero-content .hero-subheadline,
.hero-subheadline {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  text-align: center;
  max-width: 600px;
}

.hero-content .hero-cta,
.hero-cta,
a.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff !important;
  color: #111111 !important;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: clamp(11px, 1.1vw, 14px) clamp(26px, 2.4vw, 34px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.hero-content .hero-cta:hover,
.hero-cta:hover,
a.hero-cta:hover {
  background-color: #f5f5f5 !important;
  color: #000000 !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.hero-cta:active,
.hero-content .hero-cta:active {
  transform: translateY(0) scale(0.99);
}

.hero-cta .hero-cta-arrow,
.hero-content .hero-cta .hero-cta-arrow {
  font-size: 1.15em;
  line-height: 1;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.hero-cta:hover .hero-cta-arrow,
.hero-content .hero-cta:hover .hero-cta-arrow {
  transform: translateX(3px);
}

/* Hero Carousel Controls */
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(34px, 3.2vw, 44px);
  height: clamp(34px, 3.2vw, 44px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  padding: 0;
}

.hero-carousel-btn:hover {
  background: #ffffff;
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-btn.prev-btn {
  left: clamp(10px, 2vw, 24px);
}

.hero-carousel-btn.next-btn {
  right: clamp(10px, 2vw, 24px);
}

/* Hero Carousel Dots */
.hero-carousel-dots {
  position: absolute;
  bottom: clamp(10px, 1.8vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 8px);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(4px, 0.6vw, 6px) clamp(8px, 1vw, 12px);
  border-radius: var(--radius-full);
}

.hero-dot {
  /* Sized for the active (widest) state; inactive dots are scaled down via
     transform rather than animating width, so the transition never triggers
     layout — border-radius: 999px keeps the scaled-down box a perfect
     circle without needing to animate that property either. */
  width: clamp(16px, 1.8vw, 22px);
  height: clamp(6px, 0.7vw, 8px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transform: scaleX(0.36);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
  background: #ffffff;
  transform: scaleX(1);
}

/* Hero Empty State Panel */
.hero-empty-panel {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #eeeae1 0%, #ded7c9 100%);
  padding: var(--space-5);
}

.hero-empty-inner {
  max-width: 500px;
}

.hero-empty-title {
  font-family: var(--font-serif);
  font-size: 38px;
  margin-bottom: var(--space-2);
}

.hero-empty-subtitle {
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  font-size: 16px;
}

/* Category Tiles Section */
.section-padding {
  padding: var(--space-6) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 15px;
  margin-top: 4px;
}

.section-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.section-header-btn:hover {
  background: var(--color-text);
  color: #ffffff;
  border-color: var(--color-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.section-btn-arrow {
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.section-header-btn:hover .section-btn-arrow {
  transform: translateX(3px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.category-card-fallback-bg {
  position: absolute;
  inset: 0;
  background: #dfd9ce;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
}

.category-card-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Product Cards & Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

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

/*
 * Deterrent only, not a security boundary: pairs with the contextmenu/
 * dragstart handlers in storefront.js. Blocks the iOS long-press "Save Image"
 * callout and the text-selection outline a drag can leave behind; it changes
 * no layout or appearance.
 */
.protected-artwork-img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/*
 * Extra layer for thumbnails that are never interactive themselves (cart,
 * checkout, order confirmation, profile). With pointer events off the image
 * is never the target of a right-click, so the browser has no "Save image as"
 * to offer even when JavaScript is off. Clicks fall through to the parent, so
 * a thumbnail inside a link still navigates. Do NOT add this to images that
 * carry their own click handler (PDP main image / lightbox).
 */
.artwork-thumb-locked {
  pointer-events: none;
}

.product-card-img.secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card-img.primary.has-secondary {
  opacity: 0;
}

.product-card:hover .product-card-img.secondary {
  opacity: 1;
  transform: scale(1.03);
}

.wishlist-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.wishlist-heart-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
  color: var(--color-danger);
}

.wishlist-heart-btn.active {
  color: var(--color-danger);
}

.wishlist-heart-btn.active svg {
  fill: var(--color-danger);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-text);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-badge.out-of-stock {
  background: var(--color-danger);
}

.product-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.product-card-compare-price {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: line-through;
}

/* Universal Empty State Partial */
.empty-state-box {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) 0;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.empty-state-desc {
  color: var(--color-muted);
  max-width: 440px;
  font-size: 14px;
  margin-bottom: var(--space-4);
}

/* Trust Row Partial */
.trust-row-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  margin: var(--space-5) 0;
}

.trust-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-text-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

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

/* PDP (Product Detail Page) */
.pdp-page-wrapper {
  padding-top: 20px;
  padding-bottom: 64px;
}

.pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.pdp-crumb-link {
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.pdp-crumb-link:hover {
  color: var(--color-text);
}

.pdp-crumb-sep {
  color: var(--color-border);
  font-size: 11px;
}

.pdp-crumb-current {
  color: var(--color-text);
  font-weight: 600;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: 48px;
}

.pdp-gallery {
  position: sticky;
  top: 96px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
  flex-shrink: 0;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pdp-thumb-item {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  background: #faf9f6;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.pdp-thumb-item:hover {
  border-color: var(--color-text);
  transform: translateY(-1px);
}

.pdp-thumb-item.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.pdp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-main-image-wrap {
  position: relative;
  flex: 1;
  height: 480px;
  max-height: 480px;
  background: #f4f2ed;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.pdp-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-main-img:hover {
  transform: scale(1.02);
}

.pdp-zoom-trigger-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 5;
}

.pdp-zoom-trigger-btn:hover {
  background: #ffffff;
  color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Lightbox Modal */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pdp-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.pdp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pdp-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.pdp-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.pdp-lightbox-close:hover {
  opacity: 1;
}

/* PDP Info Column */
.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdp-header-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdp-category-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-accent);
  background: rgba(29, 78, 216, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  transition: background var(--transition-fast);
}

.pdp-category-pill:hover {
  background: rgba(29, 78, 216, 0.15);
}

.pdp-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.pdp-material-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}

.pdp-material-tag svg {
  color: var(--color-warning);
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 4px;
}

.pdp-price {
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.pdp-compare-price {
  font-size: 18px;
  color: var(--color-muted);
  text-decoration: line-through;
}

.pdp-discount-badge {
  font-size: 12px;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Variant Selectors */
.variant-section {
  margin-bottom: 18px;
}

.variant-group-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.variant-selected-value {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: none;
  letter-spacing: 0;
}

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

.variant-option-label {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.variant-option-label:hover {
  border-color: var(--color-text);
  background: var(--color-surface-soft);
}

.variant-option-label.selected {
  border-color: var(--color-accent);
  background: rgba(29, 78, 216, 0.05);
  color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

/* Size Specific Pill with Dimension display */
.variant-size-card {
  padding: 8px 14px;
}

.size-pill-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.size-pill-name {
  font-weight: 700;
  color: inherit;
}

.size-pill-sep {
  color: var(--color-muted);
  font-size: 12px;
  opacity: 0.6;
}

.size-pill-dim {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
}

.variant-option-label.selected .size-pill-dim {
  color: var(--color-accent);
}

.stock-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  width: fit-content;
}

.stock-status-line.in-stock {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.stock-status-line.low-stock {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.stock-status-line.out-of-stock {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.stock-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pdp-cta-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 22px;
}

.quantity-stepper {
  display: inline-flex;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  height: 48px;
}

.stepper-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.stepper-btn:hover {
  background: var(--color-bg);
}

.stepper-input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  background: transparent;
}

.stepper-input:focus {
  outline: none;
}

.pdp-actions-wrapper {
  flex: 1;
  display: flex;
  gap: 10px;
}

.pdp-btn-main {
  height: 48px;
  flex: 1.2;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
}

.pdp-btn-buynow {
  height: 48px;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.pdp-delivery-badge {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.delivery-badge-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.pdp-accordions {
  border-top: 1px solid var(--color-border);
  margin-top: 6px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border-light);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--color-accent);
}

.accordion-chevron {
  transition: transform 0.25s ease;
  color: var(--color-muted);
}

.accordion-content {
  padding-bottom: 14px;
  font-size: 13.5px;
  color: var(--color-text-light);
  line-height: 1.6;
  display: none;
}

.accordion-content.open {
  display: block;
}

.pdp-disclaimer {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--color-muted);
  line-height: 1.45;
}

.pdp-related-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}

.pdp-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-5);
  margin: var(--space-5) 0;
}

.cart-items-table {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  align-items: center;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f4f1ec;
}

.cart-item-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 13px;
  color: var(--color-muted);
}

.cart-price-changed-alert {
  font-size: 12px;
  color: var(--color-warning);
  font-weight: 600;
  margin-top: 4px;
}

.order-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: sticky;
  top: 96px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.summary-line.total {
  border-top: 2px solid var(--color-border);
  padding-top: 16px;
  font-size: 18px;
  font-weight: 800;
}

/* 2-Step Checkout */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: var(--space-5) 0;
}

.checkout-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-muted);
}

.checkout-step-indicator.active {
  color: var(--color-accent);
}

.checkout-step-indicator.completed {
  color: var(--color-success);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.checkout-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 14px;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
}

.form-control::placeholder {
  color: var(--color-muted);
}

.form-control:disabled,
.form-control[readonly] {
  background: #f5f3ef;
  cursor: not-allowed;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Payment Method Badges */
.payment-badges-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: var(--space-3) 0;
}

.payment-badge-pill {
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: #fdfdfc;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Confirmation & Status Pages */
.confirmation-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 720px;
  margin: var(--space-5) auto;
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

/* Order Confirmation */
.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.confirmation-icon.is-success {
  background: #dcfce7;
  color: #15803d;
}

.confirmation-icon.is-error {
  background: #fee2e2;
  color: #dc2626;
}

.confirmation-header {
  text-align: center;
  margin-bottom: var(--space-4);
}

.confirmation-header p {
  color: var(--color-muted);
  font-size: 14.5px;
  max-width: 40ch;
  margin: 0 auto;
}

.access-link-card {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.access-link-card .access-link-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.access-link-card p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.access-link-row {
  display: flex;
  gap: 8px;
}

.access-link-row input {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  background: var(--color-surface);
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: var(--space-4);
}

.order-meta-cell .meta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.order-meta-cell .meta-value {
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 4px;
}

.order-items-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.order-item-row {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-thumb {
  width: 48px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-weight: 700;
  font-size: 14px;
}

.order-item-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.order-item-line-total {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.order-totals {
  max-width: 300px;
  margin-left: auto;
  margin-bottom: var(--space-4);
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
}

/* Footer */
.site-footer {
  background: #18181b;
  color: #a1a1aa;
  padding: var(--space-6) 0 var(--space-4) 0;
  margin-top: auto;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

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

  .primary-nav,
  .search-form-desktop {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

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

  .pdp-gallery {
    position: static;
  }

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

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .hero-headline {
    font-size: 32px;
  }

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

  .pdp-gallery {
    flex-direction: column-reverse;
  }

  .pdp-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .pdp-main-image-wrap {
    height: clamp(300px, 72vw, 400px);
    max-height: 400px;
    padding: 16px;
  }

  .pdp-cta-row {
    flex-direction: column;
  }

  .pdp-actions-wrapper {
    width: 100%;
  }

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

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

  .confirmation-box {
    padding: var(--space-3);
  }

  .order-item-row {
    flex-wrap: wrap;
  }

  .order-item-line-total {
    width: 100%;
    text-align: right;
    margin-top: 4px;
  }
}

/* Small Phones (≤480px) — additive refinements only, does not alter
   anything above this width */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  .announcement-bar {
    font-size: 12px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-headline {
    font-size: 26px;
  }

  .hero-carousel {
    /* explicit height (not just min-height) so the absolutely-positioned
       slide image has a definite box to fill via object-fit: cover —
       without it the carousel's own height collapses to its text content
       and the surrounding black .hero-section background shows through */
    height: 260px;
    min-height: 260px;
  }

  .hero-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .mobile-nav-drawer {
    width: 300px;
    max-width: 85vw;
  }

  /* Section headers (Show Off What Makes You You / Browse Posters You'll Love) */
  .section-padding {
    padding: var(--space-4) 0;
  }

  .section-header {
    margin-bottom: var(--space-3);
    align-items: center;
    gap: 10px;
  }

  .section-title-group {
    gap: 2px;
    min-width: 0;
  }

  .section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
    gap: 4px;
  }

  .section-eyebrow::before {
    width: 5px;
    height: 5px;
  }

  .section-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .section-header .btn,
  .section-header-btn {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    min-height: 0;
    border-radius: 99px;
    gap: 4px;
    flex-shrink: 0;
  }

  .section-btn-arrow {
    width: 12px;
    height: 12px;
  }

  /* Category tiles: small grid, image on top with name below (no overlay) */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .category-grid-home .category-card:nth-child(n+4) {
    display: none;
  }

  .category-card {
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
    padding: 0;
    border: none;
    background: transparent;
    gap: 6px;
  }

  .category-card-bg,
  .category-card-fallback-bg {
    position: static;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
  }

  .category-card-overlay {
    display: none;
  }

  .category-card-fallback-text {
    font-size: 11px !important;
  }

  .category-card-title {
    position: static;
    color: var(--color-text);
    font-size: 11.5px;
    text-align: center;
    text-shadow: none;
  }

  .product-grid {
    gap: var(--space-2);
  }

  .product-card-body {
    padding: 10px;
    gap: 4px;
  }

  /* Value-prop band (Archival Quality / Damage-Proof / Gift-Ready) */
  .value-prop-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .value-prop-card {
    padding: 14px 12px !important;
  }

  .value-prop-icon {
    font-size: 20px !important;
    margin-bottom: 6px !important;
  }

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

  .value-prop-title {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  .value-prop-desc {
    font-size: 11.5px !important;
    line-height: 1.4;
  }

  .product-card-title {
    font-size: 13.5px;
  }

  .product-card-price {
    font-size: 14px;
  }

  .product-card-badge {
    font-size: 10px;
    padding: 2px 6px;
    top: 8px;
    left: 8px;
  }

  .pdp-main-image-wrap {
    height: clamp(260px, 80vw, 340px);
    padding: 12px;
  }

  .pdp-thumb-item {
    width: 56px;
    height: 56px;
  }

  .pdp-thumbs {
    width: 100%;
  }

  .pdp-zoom-trigger-btn {
    min-height: 32px;
  }

  .pdp-lightbox-close {
    top: -40px;
    min-width: 44px;
    min-height: 44px;
  }

  .cart-item-thumb {
    width: 64px;
    height: 80px;
  }

  .checkout-steps-bar {
    gap: 12px;
    margin: var(--space-4) 0;
  }

  .checkout-step-indicator {
    font-size: 13px;
    gap: 6px;
  }

  .btn {
    min-height: 44px;
  }

  .form-control {
    min-height: 44px;
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Currency Picker (header) — display currency only; the store always
   settles in its base currency. */
.currency-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.currency-picker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.currency-picker-select {
  max-width: 92px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.currency-picker-select:hover {
  border-color: var(--color-text-light);
}

.currency-picker-select:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

@media (max-width: 900px) {
  .currency-picker-label {
    display: none;
  }
  .currency-picker-select {
    max-width: 76px;
  }
}

/* =====================================================================
   Account, cart, checkout & order confirmation
   Sign in / register, profile, settings, cart, checkout, confirmation.
   Warm paper page, white panels, hairline borders; Playfair for page
   titles (as on the PDP and hero), Space Grotesk for UI and prices.
   ===================================================================== */

/* Page shells: the main column has no padding of its own. */
.auth-page,
.profile-page,
.cart-page,
.checkout-page,
.confirmation-page {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.cart-page,
.checkout-page {
  max-width: 1120px;
}

.profile-page {
  max-width: 960px;
}

.profile-page-narrow {
  max-width: 720px;
}

.confirmation-page {
  max-width: 760px;
}

.auth-page {
  max-width: 480px;
  padding-top: clamp(32px, 8vh, 72px);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Titles that carry an order number: the serif's old-style figures make
   long digit runs look uneven, so these use the UI face. */
.page-title-ref {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 30px);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.cart-page > .page-title,
.checkout-page > .page-title {
  margin-bottom: var(--space-4);
}

.profile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.profile-subtitle {
  margin-top: 6px;
  color: var(--color-text-light);
  font-size: 14.5px;
}

.profile-subtitle strong {
  color: var(--color-text);
  font-weight: 600;
}

.profile-page .pdp-breadcrumb {
  margin-bottom: var(--space-3);
}

/* Storefront components that only existed in the admin stylesheet. */
.alert {
  padding: 12px 16px;
  margin-bottom: var(--space-4);
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.alert > div + div {
  margin-top: 4px;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: var(--color-text-light);
  font-size: 12.5px;
  line-height: 1.5;
}

.form-hint a,
.auth-alt a,
.checkout-license-check a,
.confirmation-license-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-hint a:hover,
.auth-alt a:hover,
.checkout-license-check a:hover,
.confirmation-license-note a:hover {
  color: var(--color-accent-hover);
}

/* Keyboard focus for links and buttons on these pages. */
:is(.auth-page, .profile-page, .cart-page, .checkout-page, .confirmation-page)
  :is(a, button, .btn):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Sign in / register ------------------------------------------- */
.auth-card {
  padding: clamp(24px, 5vw, 40px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-title {
  margin-bottom: var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 32px);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.auth-subtitle {
  max-width: 44ch;
  margin-bottom: var(--space-4);
  color: var(--color-text-light);
  font-size: 14.5px;
}

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

.auth-form .btn {
  margin-top: var(--space-2);
}

.auth-alt {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  color: var(--color-text-light);
  font-size: 14px;
  text-align: center;
}

.auth-alt a {
  font-weight: 600;
}

/* --- Order lines (profile, confirmation, cart, checkout) ------------ */
.cart-line,
.checkout-line,
.confirmation-item,
.profile-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-line:last-child,
.confirmation-item:last-child,
.profile-item:last-child {
  border-bottom: 0;
}

.cart-line-body,
.checkout-line-body,
.confirmation-item-body,
.profile-item-body {
  flex: 1;
  min-width: 0;
}

.cart-line-thumb {
  display: block;
  flex: none;
}

.cart-line-thumb img,
.checkout-line-thumb,
.confirmation-item-thumb,
.profile-item-thumb {
  display: block;
  flex: none;
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-border-light);
  border: 1px solid var(--color-border-light);
}

.cart-line-thumb img {
  width: 80px;
  height: 100px;
}

.checkout-line-thumb {
  width: 48px;
  height: 60px;
}

.cart-line-title,
.checkout-line-title,
.confirmation-item-title,
.profile-item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cart-line-title:hover {
  color: var(--color-accent);
}

.checkout-line-title {
  font-size: 14px;
}

.cart-line-meta,
.checkout-line-meta,
.confirmation-item-meta,
.profile-item-meta {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 13px;
}

.profile-item-downloads {
  margin-top: 4px;
  color: var(--color-text-light);
  font-size: 12.5px;
}

.cart-line-price,
.checkout-line-price,
.confirmation-item-price,
.profile-item-price {
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.checkout-line-price {
  font-size: 14px;
}

.profile-item-actions,
.confirmation-item-download {
  flex: none;
}

/* Keep prices on one right edge whether or not a row has a download
   button (unpaid or unavailable items have none). */
.profile-item-actions {
  min-width: 104px;
  text-align: right;
}

.confirmation-item-download {
  min-width: 136px;
}

.confirmation-item:not(:has(.confirmation-item-download))::after {
  content: '';
  flex: none;
  width: 136px;
}

.profile-item-unavailable .profile-item-thumb {
  opacity: 0.55;
  filter: grayscale(1);
}

.profile-item-unavailable-note {
  color: var(--color-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Cart lines are a grid so the price and remove control can drop under
   the title on small screens. */
.cart-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto auto;
  column-gap: var(--space-4);
}

.cart-line-notice {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #fef3c7;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.cart-line-remove {
  justify-self: end;
}

.btn-link-danger {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-underline-offset: 3px;
}

.btn-link-danger:hover {
  color: #7f1d1d;
  text-decoration: underline;
}

/* --- Profile: purchases -------------------------------------------- */
.profile-order {
  margin-bottom: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.profile-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px var(--space-3);
  padding: 14px var(--space-4);
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border-light);
}

.profile-order-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-order-number {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.profile-order-number:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-order-date {
  color: var(--color-muted);
  font-size: 13px;
}

.profile-order-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-order-total {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.profile-order-items,
.confirmation-items {
  padding: 0 var(--space-4);
}

/* On the order detail page the items are not inside an order panel. */
.profile-page > .profile-order-items,
.confirmation-items {
  margin-bottom: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.profile-order-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space-4);
  padding: 12px var(--space-4);
  border-top: 1px solid var(--color-border-light);
  font-size: 13.5px;
  font-weight: 600;
}

.profile-order-foot a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

.profile-order-foot a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* --- Profile: settings ---------------------------------------------- */
.settings-card {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.settings-card-title {
  margin-bottom: 20px;
  font-size: 17px;
}

.settings-card-desc {
  max-width: 60ch;
  color: var(--color-text-light);
  font-size: 14px;
}

.settings-card-title + .settings-card-desc {
  margin: -12px 0 20px;
}

.settings-card form {
  max-width: 440px;
}

.settings-card form > .form-hint {
  margin: 0 0 var(--space-3);
}

.settings-card form .btn {
  margin-top: 4px;
}

/* --- Order summary (cart, checkout, confirmation, order detail) ------- */
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 6px 0;
  color: var(--color-text-light);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.summary-discount {
  color: #15803d;
}

.summary-total {
  margin-top: var(--space-2);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.cart-summary-card {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.cart-summary-title {
  margin-bottom: var(--space-3);
  font-size: 18px;
}

.cart-summary-note {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}

/* --- Cart ------------------------------------------------------------ */
.cart-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: var(--space-5);
  margin: 0;
}

.cart-items-col {
  padding: 0 var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.cart-summary-col,
.checkout-summary-col {
  position: sticky;
  top: 96px;
}

.coupon-form {
  display: flex;
  gap: var(--space-2);
  margin: 20px 0 var(--space-3);
}

.coupon-form .form-control {
  flex: 1;
  min-width: 0;
}

/* --- Checkout ---------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: var(--space-5);
}

.checkout-main-col {
  display: grid;
  gap: var(--space-4);
}

.checkout-section {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.checkout-section-title {
  margin-bottom: 20px;
  font-size: 17px;
}

.checkout-section .form-group:last-child {
  margin-bottom: 0;
}

.checkout-license-summary {
  max-width: 65ch;
  margin: -8px 0 var(--space-3);
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.65;
}

.checkout-license-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px var(--space-3);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.checkout-license-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkout-license-check:has(input:checked) {
  background: #eff4ff;
  border-color: var(--color-accent);
}

.checkout-license-check:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.checkout-line + .summary-row {
  margin-top: var(--space-3);
}

.checkout-summary-col .btn-block {
  margin-top: 20px;
}

.checkout-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-3);
  color: var(--color-text-light);
  font-size: 13.5px;
  font-weight: 600;
}

.checkout-back-link:hover {
  color: var(--color-text);
}

/* --- Order confirmation ------------------------------------------------ */
.confirmation-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-5);
  text-align: center;
}

.confirmation-hero > svg {
  flex: none;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--radius-full);
}

.confirmation-hero-success > svg {
  background: #dcfce7;
  color: #15803d;
}

.confirmation-hero-failed > svg {
  background: #fee2e2;
  color: #b91c1c;
}

.confirmation-title {
  max-width: 26ch;
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.confirmation-subtitle {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 15px;
}

.confirmation-subtitle strong {
  color: var(--color-text);
  font-weight: 600;
}

.confirmation-hero .btn {
  margin-top: var(--space-4);
}

.confirmation-summary {
  max-width: 360px;
  margin: 0 0 var(--space-4) auto;
}

.confirmation-license-note {
  max-width: 60ch;
  margin-bottom: var(--space-4);
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.6;
}

.profile-page .confirmation-actions,
.confirmation-page .confirmation-actions {
  justify-content: flex-end;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

@media (prefers-reduced-motion: no-preference) {
  .confirmation-hero > svg {
    animation: seal-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cart-summary-col,
  .checkout-summary-col {
    position: static;
  }
}

@media (max-width: 640px) {
  .auth-page,
  .profile-page,
  .cart-page,
  .checkout-page,
  .confirmation-page {
    padding-top: var(--space-4);
    padding-bottom: var(--space-5);
  }

  .profile-order-head,
  .profile-order-foot,
  .settings-card,
  .checkout-section,
  .cart-summary-card {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .profile-order-items,
  .confirmation-items,
  .cart-items-col {
    padding: 0 var(--space-3);
  }

  .confirmation-hero {
    margin-bottom: var(--space-4);
  }

  .confirmation-summary {
    max-width: none;
  }

  .confirmation-actions .btn {
    flex: 1 1 100%;
  }

  /* Purchase and confirmation rows: thumbnail + title, then price and
     download share a second row. */
  .profile-item,
  .confirmation-item {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 12px;
  }

  .profile-item-body,
  .confirmation-item-body {
    flex: 1 1 calc(100% - 80px);
  }

  .profile-item-price,
  .confirmation-item-price {
    align-self: center;
  }

  .profile-item-actions,
  .confirmation-item-download {
    flex: 1 1 auto;
  }

  .profile-item-actions .btn {
    width: 100%;
  }

  .profile-item-unavailable-note {
    display: block;
    text-align: right;
  }

  /* Cart line: price and remove sit under the title. */
  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb body body"
      "thumb price remove";
    align-items: start;
    column-gap: var(--space-3);
    row-gap: 4px;
  }

  .cart-line-thumb {
    grid-area: thumb;
  }

  .cart-line-thumb img {
    width: 72px;
    height: 90px;
  }

  .cart-line-body {
    grid-area: body;
  }

  .cart-line-price {
    grid-area: price;
    align-self: center;
  }

  .cart-line-remove {
    grid-area: remove;
    align-self: center;
  }

  .btn-link-danger {
    min-height: 44px;
  }

  .settings-card form {
    max-width: none;
  }

  .confirmation-item:not(:has(.confirmation-item-download))::after {
    display: none;
  }
}

/* Phone header: logo + hamburger + three icon actions overflowed the
   viewport (~510px of content in 390px), making every page scroll sideways. */
@media (max-width: 480px) {
  .header-inner {
    gap: var(--space-2);
  }

  .logo-wrapper,
  .logo-wrapper a {
    min-width: 0;
  }

  .logo-wrapper {
    flex-shrink: 1;
  }

  .site-logo-text {
    display: block;
    overflow: hidden;
    padding: 3px 8px;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 0;
  }

  .nav-icon-action {
    min-width: 44px;
  }
}
