/* Self-hosted Inter font (DSGVO: no external Google Fonts requests) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── LEVIAPAY Hardware Shop ─────────────────────── */
:root {
  --bg: #f5f5f9;
  --surface: #ffffff;
  --surface-elevated: #f0eef6;
  --accent: #652CD1;
  --accent-hover: #46208F;
  --accent-light: #ECE9FC;
  --accent-50: #F5F3FE;
  --text-primary: #110E34;
  --text-secondary: #97A3B6;
  --text-tertiary: #9d9daf;
  --divider: #e8e8ef;
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.08);
  --warning: #F29C06;
  --destructive: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --hero-gradient: linear-gradient(12deg, #1F0D44 0%, #8F78BD 100%);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

.hidden { display: none !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav Bar ─────────────────────────────────────── */
.shop-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.shop-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.shop-nav-logo svg {
  width: 32px;
  height: 32px;
}

.shop-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.shop-nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.shop-nav-links a:hover,
.shop-nav-links a.active {
  color: var(--text-primary);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
}

.cart-link:hover {
  background: var(--accent);
  color: #fff !important;
}

.cart-link svg {
  width: 18px;
  height: 18px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-link:hover .cart-badge {
  background: var(--accent-hover);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* ── Hero Section ────────────────────────────────── */
.shop-hero {
  background: var(--hero-gradient);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 20%, rgba(101, 44, 209, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.shop-hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
}

.shop-hero .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  font-weight: 400;
}

/* ── Category Filter Bar ─────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--divider);
  border-radius: 50px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Product Grid ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-card-image .placeholder-icon {
  color: var(--text-tertiary);
  opacity: 0.4;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.product-card-name a {
  color: inherit;
}

.product-card-name a:hover {
  color: var(--accent);
}

.product-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card-price {
  display: flex;
  flex-direction: column;
}

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

.product-card-price .price-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Price Toggle (Pill Switch) ──────────────────── */
.price-toggle {
  display: inline-flex;
  background: var(--surface-elevated);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}

.price-toggle-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 50px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: inherit;
}

.price-toggle-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 4px rgba(101, 44, 209, 0.3);
}

.price-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* ── CTA Button ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

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

.btn-full {
  width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

/* ── Bundle Section ──────────────────────────────── */
.bundles-section {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

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

.bundle-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.bundle-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bundle-card.featured {
  border-color: var(--accent);
}

.bundle-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.bundle-card-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bundle-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.bundle-card-price {
  margin-bottom: 24px;
}

.bundle-card-price .price-big {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.bundle-card-price .price-big .currency {
  font-size: 20px;
  vertical-align: super;
}

.bundle-card-price .price-period {
  font-size: 14px;
  color: var(--text-secondary);
}

.bundle-card-price .price-buy {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.bundle-items {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.bundle-items li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--divider);
}

.bundle-items li:last-child {
  border-bottom: none;
}

.bundle-items li svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.bundle-savings {
  background: var(--success-light);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  text-align: center;
  margin-bottom: 16px;
}

/* ── Product Detail Page ─────────────────────────── */
.product-detail {
  padding: 40px 0 64px;
}

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

.product-image-area {
  background: var(--surface);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.product-image-area .placeholder-icon {
  color: var(--text-tertiary);
  opacity: 0.3;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info .category-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
}

.product-info .description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.price-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.price-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.price-option {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--divider);
  cursor: pointer;
  transition: all var(--transition);
}

.price-option.active {
  border-color: var(--accent);
  background: var(--accent-50);
}

.price-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.price-option-amount {
  font-size: 24px;
  font-weight: 700;
}

.price-option-detail {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Rent-to-Own Explainer ───────────────────────── */
.rto-explainer {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.rto-explainer h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.rto-steps {
  display: flex;
  gap: 20px;
}

.rto-step {
  flex: 1;
  text-align: center;
}

.rto-step-number {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 8px;
}

.rto-step-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.rto-step-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Toggles & Extras ────────────────────────────── */
.option-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.option-toggle-label {
  display: flex;
  flex-direction: column;
}

.option-toggle-label .label-title {
  font-size: 14px;
  font-weight: 600;
}

.option-toggle-label .label-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--divider);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  padding: 0;
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

.deposit-info {
  background: var(--accent-50);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.deposit-info svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Specs Table ─────────────────────────────────── */
.specs-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}

.specs-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.specs-table tr {
  border-bottom: 1px solid var(--divider);
}

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

.specs-table td {
  padding: 10px 0;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-secondary);
}

/* ── Compatible Products ─────────────────────────── */
.compatible-section {
  margin-top: 40px;
}

.compatible-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

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

.cart-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

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

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.cart-empty p {
  font-size: 16px;
  margin-bottom: 16px;
}

.cart-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

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

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

.cart-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--divider);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-control button:hover {
  background: var(--surface-elevated);
}

.qty-control .qty-value {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
  height: 32px;
  line-height: 32px;
}

.cart-item-price {
  text-align: right;
  flex-shrink: 0;
}

.cart-item-price .price-amount {
  font-size: 16px;
  font-weight: 700;
}

.cart-item-price .price-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
  transition: color var(--transition);
}

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

/* ── Cart Summary ────────────────────────────────── */
.cart-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}

.cart-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.summary-row.total {
  border-top: 2px solid var(--divider);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.summary-row .label {
  color: var(--text-secondary);
}

.summary-row.total .label {
  color: var(--text-primary);
}

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

.summary-divider {
  height: 1px;
  background: var(--divider);
  margin: 16px 0;
}

.checkout-btn-wrap {
  margin-top: 20px;
}

/* ── Stripe Payment Element ──────────────────────── */
.checkout-section {
  margin-top: 24px;
}

.checkout-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

#payment-element {
  min-height: 200px;
}

#payment-message {
  margin-top: 12px;
  font-size: 14px;
  color: var(--destructive);
}

/* ── Login Modal ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 14, 52, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal .modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

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

.modal .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--surface);
  color: var(--text-primary);
}

.modal .form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-error {
  color: var(--destructive);
  font-size: 13px;
  margin-bottom: 12px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
}

/* ── Success Page ────────────────────────────────── */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 40px 24px;
  text-align: center;
}

.success-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

.success-card h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.success-order-id {
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  display: inline-block;
}

.success-order-id strong {
  color: var(--accent);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────── */
.shop-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

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

/* ── Bundle Comparison Page ──────────────────────── */
.bundle-page {
  padding: 40px 0 64px;
}

.bundle-page h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.bundle-page .page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ── Loading State ───────────────────────────────── */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--divider);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Toast Notification ──────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

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

/* ── Address Form ────────────────────────────────── */
.address-section {
  margin-top: 24px;
}

.address-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.address-form-group {
  background: var(--surface);
  border: 1.5px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.address-form-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

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

.form-group-full {
  flex: 1 1 100%;
  margin-bottom: 16px;
}

.address-section .form-group label,
.address-section .form-group-full label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.address-section .form-group input,
.address-section .form-group-full input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.address-section input:focus {
  border-color: var(--accent);
  outline: none;
}

.address-section input:disabled {
  background: var(--surface-elevated);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.address-section input.input-error {
  border-color: var(--destructive);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.address-error {
  display: block;
  font-size: 13px;
  color: var(--destructive);
  margin-top: 4px;
}

.billing-fields {
  margin-top: 16px;
}

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

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

  .bundle-grid .bundle-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .cart-summary {
    position: static;
  }

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

@media (max-width: 768px) {
  .shop-hero h1 {
    font-size: 30px;
  }

  .shop-hero .subtitle {
    font-size: 15px;
  }

  .shop-hero {
    padding: 48px 0 40px;
  }

  .shop-nav-links {
    display: none;
  }

  .shop-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 24px;
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .bundle-grid .bundle-card:last-child {
    max-width: none;
  }

  .price-comparison {
    grid-template-columns: 1fr;
  }

  .rto-steps {
    flex-direction: column;
    gap: 16px;
  }

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

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

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

  .success-actions {
    flex-direction: column;
  }

  .section-title {
    font-size: 24px;
  }

  .modal {
    margin: 16px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .shop-hero h1 {
    font-size: 26px;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

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

  .cart-item {
    flex-wrap: wrap;
  }

  .success-card {
    padding: 32px 24px;
  }

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

  .address-form-group {
    padding: 16px;
  }
}
