/* ============================================
   Apple-like Retail Liquidation Store
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-accent: #ff3b30;
  --color-primary: #0071e3;
  --color-border: #e5e5e7;
  --color-muted: #86868b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
}

/* Reset + Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  padding-top: calc(52px + 38px); /* header + liquidation banner */
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Header Styles
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  height: 52px;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  font-weight: 600;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-link:hover {
  color: var(--color-primary);
}

.cart-count {
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  text-align: center;
  line-height: 18px;
  display: none;
  font-weight: 600;
}

.cart-count.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Liquidation Banner
   ============================================ */
.liquidation-banner {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background-color: var(--color-accent);
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 99;
}

/* body padding accounts for both fixed header (52px) and fixed liquidation banner (~38px) */

/* ============================================
   Language Popup Styles
   ============================================ */
.lang-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
}

.lang-overlay.active {
  display: block;
}

.lang-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  z-index: 201;
  text-align: center;
  min-width: 280px;
  box-shadow: var(--shadow);
}

.lang-popup-inner p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #0077ed;
}

.btn-secondary {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: #0077ed;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background-color: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.product-card.out-of-stock-card {
  opacity: 0.5;
  pointer-events: none;
}

.product-card-image {
  aspect-ratio: 1;
  background-color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  max-height: 80%;
  object-fit: contain;
}

.product-card-body {
  padding: 1rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-card-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.product-card-price-from {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 0.25rem;
}

.product-card-cta {
  display: block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.product-card-cta:hover {
  background-color: #0077ed;
}

/* ============================================
   Badge Styles
   ============================================ */
.badge-sale {
  background-color: var(--color-accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-links a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-lang a {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}

.footer-lang a.active {
  color: var(--color-text);
  font-weight: 600;
}

.footer-lang a:hover {
  color: var(--color-text);
}

/* ============================================
   In-development Placeholder
   ============================================ */
.in-development {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-muted);
  font-size: 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-inner {
    height: 48px;
    padding: 0 1rem;
  }

  body {
    padding-top: calc(48px + 36px); /* smaller header + banner on mobile */
  }

  .liquidation-banner {
    top: 48px;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .lang-popup {
    min-width: 90%;
    padding: 1.5rem;
  }

  .footer-inner {
    padding: 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  text-align: center;
  padding: 5rem 1rem 4rem;
  background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ============================================
   Section layout
   ============================================ */
.section {
  padding: 3rem 0;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ============================================
   Categories Grid (home page)
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-card__icon {
  font-size: 2.5rem;
}

.category-card__name {
  font-weight: 600;
  font-size: 1rem;
}

.category-card__count {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.category-card__btn {
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================
   Why Us
   ============================================ */
.why-us {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.why-us__item {
  padding: 1.5rem;
  background: #f5f5f7;
  border-radius: var(--radius);
}

.why-us__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.why-us__title {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================
   Out-of-Stock Page stub
   ============================================ */
.out-of-stock-page {
  text-align: center;
  padding: 5rem 1rem;
}

.out-of-stock-page__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.out-of-stock-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* ============================================
   Product Detail Page layout
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(52px + 38px + 1.5rem);
}

.product-gallery__main {
  background: #f5f5f7;
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-gallery__main img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.product-gallery__colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   Variant Buttons (storage / SIM)
   ============================================ */
.variant-group {
  margin-bottom: 1.5rem;
}

.variant-group__label {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.variant-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.variant-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  color: var(--color-text);
}

.variant-btn:hover {
  border-color: var(--color-primary);
}

.variant-btn.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: white;
  font-weight: 500;
}

/* ============================================
   Color Swatches (gallery thumbnails)
   ============================================ */
.color-swatch--gallery {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
  flex-shrink: 0;
}

.color-swatch--gallery.active,
.color-swatch--gallery:hover {
  outline-color: var(--color-primary);
}

/* ============================================
   Product Configurator (right column)
   ============================================ */
.product-config {
  padding-top: 0.5rem;
}

.product-config__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.product-config__badge {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.product-config__price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.product-config__price-placeholder {
  font-size: 1rem;
  color: var(--color-muted);
}

.product-config__cta {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1.5rem;
  font-family: inherit;
}

.product-config__cta:hover:not(:disabled) {
  background-color: #0077ed;
}

.product-config__cta:disabled {
  background-color: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
}

/* ============================================
   Toast notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-text);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  z-index: 500;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Responsive overrides for new components
   ============================================ */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-gallery {
    position: static;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-config__price {
    font-size: 1.5rem;
  }
}

/* ============================================
   Cart Page
   ============================================ */
.cart-page {
  max-width: 800px;
}

.cart-page__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.cart-empty__text {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.cart-items {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f5f5f7;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-item__sub {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.cart-item__price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.qty-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.qty-num {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  opacity: 0.4;
  transition: opacity 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.cart-item__remove:hover {
  opacity: 1;
  color: var(--color-accent);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.cart-summary__label {
  font-size: 1rem;
  color: var(--color-muted);
}

.cart-summary__total {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Responsive: Cart Page
   ============================================ */
@media (max-width: 600px) {
  .cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cart-item__info {
    order: 2;
  }

  .cart-item__qty {
    order: 3;
  }

  .cart-item__remove {
    order: 4;
  }

  .cart-summary__total {
    font-size: 1.25rem;
  }
}

/* ============================================
   Checkout Page
   ============================================ */

.checkout-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.checkout-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.checkout-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.checkout-section h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-total {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: right;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.field-group input[type="text"],
.field-group input[type="tel"],
.field-group input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
}

.field-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.field-group input.field-error {
  border-color: var(--color-accent);
  background: #fff5f5;
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  list-style: none;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.autocomplete-list li {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover {
  background: #f5f5f7;
}

.checkout-agreements {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.agreement-link {
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.form-error {
  background: #fff0f0;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-large {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 1rem;
}

.btn-large:hover {
  opacity: 0.88;
}

.btn-large:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Checkout responsive */
@media (max-width: 480px) {
  .checkout-page {
    padding: 1rem 0.75rem 3rem;
  }

  .checkout-section {
    padding: 1rem;
  }
}

/* ============================================
   Static Pages (privacy, terms)
   ============================================ */

.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.static-page h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.static-date {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.static-page h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.static-page p {
  color: #3a3a3c;
  line-height: 1.7;
}

/* ============================================
   Order Success Page
   ============================================ */
.order-success-page {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.order-success-page h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.success-message {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.order-details {
  background: #f5f5f7;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.order-details h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.order-detail-section {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.order-detail-section:last-child {
  border-bottom: none;
}

/* ============================================
   Crypto Payment Page
   ============================================ */
.crypto-page {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
}

.crypto-page h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.crypto-step {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.crypto-page .field-group select.field-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.crypto-payment-info {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.wallet-address-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wallet-address-wrap #wallet-address {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  background: #f5f5f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
}

#copy-btn {
  padding: 0.5rem 0.85rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

#copy-btn:hover {
  opacity: 0.85;
}

.crypto-amount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0;
  font-size: 1rem;
}

.crypto-amount strong {
  font-size: 1.4rem;
  color: var(--color-primary);
}

.crypto-timer {
  text-align: center;
  margin: 1.25rem 0 1.5rem;
}

.crypto-timer p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.timer-display {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

#paid-btn {
  width: 100%;
  padding: 0.85rem;
  background: #34c759;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

#paid-btn:hover {
  background: #28a745;
}

#paid-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   Responsive — mobile (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .order-success-page,
  .crypto-page {
    margin-top: 1.5rem;
  }

  .timer-display {
    font-size: 1.5rem;
  }

  .crypto-amount strong {
    font-size: 1.2rem;
  }

  .wallet-address-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  #copy-btn {
    width: 100%;
  }
}
