/* ============================================================
   RC-Start — Pages CSS (products, product detail, cars, cart)
   ============================================================ */

/* ---------- Active nav states ---------- */
.nav-link--active {
  color: #ffffff !important;
  font-weight: 700;
}
.mobile-nav-link--active {
  color: #ffffff !important;
  font-weight: 600;
}

/* ---------- Page title area ---------- */
.page-hero {
  padding: 4rem 0 1rem;
  text-align: center;
}
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
}
.page-subtitle {
  color: var(--gray-400);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-page {
  min-height: calc(100vh - 68px);
  background: var(--bg);
  padding-bottom: 6rem;
}


/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-page {
  min-height: calc(100vh - 68px);
  background: var(--bg);
  padding: 2.5rem 0 6rem;
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.product-back-link:hover { color: var(--white); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* --- Gallery --- */
.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  cursor: zoom-in;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-main:hover img { transform: scale(1.04); }

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb--active { border-color: #60a5fa; }

/* --- Info panel --- */
.product-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-info-badge--blue {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}
.product-info-badge--gray {
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
}

.product-info-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.product-info-price {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.4rem;
}
.product-info-price--unavailable { color: var(--gray-500); }
.product-info-price--soon        { color: #34d399; }

.product-info-stock {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.product-info-stock--in  { color: #34d399; }
.product-info-stock--out { color: #f87171; }

.product-info-desc {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Archive notice */
.product-archive-notice {
  padding: 1rem 1.25rem;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.product-archive-notice p {
  color: #fca5a5;
  font-size: 0.9rem;
  line-height: 1.6;
}
.product-archive-notice a { color: #60a5fa; text-decoration: underline; }

/* Qty + cart row */
.product-cart-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.qty-control {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.15s;
}
.qty-btn:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-value {
  width: 48px;
  text-align: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
}

.btn-add-cart { justify-content: center; }

/* Extra action buttons row */
.product-actions-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
}
.product-actions-row .btn { justify-content: center; }

/* --- Product detail tabs --- */
.product-detail-tabs {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.detail-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.detail-tabs-nav::-webkit-scrollbar { display: none; }

.detail-tab-btn {
  flex-shrink: 0;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.detail-tab-btn:hover { color: var(--white); }
.detail-tab-btn--active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

.detail-tab-panel { outline: none; }
.detail-tab-panel[hidden] { display: none; }

/* Feature check list */
.feature-check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem 2.5rem;
  max-width: 54rem;
}
.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.55;
}
.feature-check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Specs table */
.specs-table-wrap { overflow-x: auto; }
.specs-table {
  width: 100%;
  max-width: 48rem;
  border-collapse: collapse;
}
.specs-table tr:nth-child(even) td { background: rgba(255,255,255,0.025); }
.specs-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.specs-table td:first-child {
  color: var(--gray-400);
  width: 42%;
  font-weight: 500;
}
.specs-table td:last-child { color: var(--white); }


/* ============================================================
   CARS PAGE
   ============================================================ */
.cars-page {
  min-height: calc(100vh - 68px);
  background: var(--bg);
  padding: 0 0 6rem;
}

/* Model cards grid (cars page models view) */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .models-grid { grid-template-columns: 1fr; }
}

.model-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.model-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-blue);
}

.model-img-placeholder {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.model-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.model-img svg { opacity: 0.3; }

.model-img--clickable { cursor: pointer; }
.model-img--clickable:hover img { transform: scale(1.06); }

.model-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.model-img--clickable:hover .model-img-overlay { opacity: 1; }
.model-img-overlay svg { color: white; }

.models-loader {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}
.models-loader span {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--blue, #3b82f6);
  border-radius: 50%;
  animation: models-spin 0.7s linear infinite;
}
@keyframes models-spin { to { transform: rotate(360deg); } }

.models-error,
.models-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray-400);
  font-size: 0.95rem;
}

.model-info {
  padding: 1rem 1.25rem;
}
.model-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.model-info p {
  color: var(--gray-400);
  font-size: 0.85rem;
  line-height: 1.4;
}
.model-info .model-trim {
  margin-top: 0.2rem;
  font-size: 0.8rem;
}


/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page {
  min-height: calc(100vh - 68px);
  background: var(--bg);
  padding: 3rem 0 6rem;
}

.cart-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.5rem;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 26rem;
  margin: 0 auto;
}
.cart-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gray-400);
}
.cart-empty-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cart-empty-desc {
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Cart layout: items + sidebar */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.cart-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

/* Items list */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.cart-item-card:hover { border-color: rgba(96,165,250,0.25); }

.cart-item-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.cart-item-name--link {
  display: block;
  transition: color 0.2s;
}
.cart-item-name--link:hover { color: var(--blue); }
.cart-item-price-unit {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cart-item-subtotal {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-left: auto;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: #f87171; }

/* Order summary */
.cart-summary-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: sticky;
  top: 88px;
}
.cart-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.cart-summary-label { color: var(--gray-400); }
.cart-summary-val { color: var(--white); font-weight: 500; }
.cart-summary-val--free { color: #34d399; font-weight: 600; }

.cart-summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.cart-summary-total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.cart-summary-total-val {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--white);
}

.cart-summary-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Cart badge on nav icon */
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge.show { display: flex; }


/* ============================================================
   FIRMWARE REQUEST FORM
   ============================================================ */
.fw-request-wrap {
  margin-top: 2.5rem;
}
.fw-request-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.fw-email-hint {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}
.fw-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-top: 1.25rem;
}
.fw-success {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
#fw-submit-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-page {
  min-height: calc(100vh - 68px);
  background: var(--bg);
  padding: 2.5rem 0 6rem;
}

.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.checkout-back-link:hover { color: var(--white); }

.checkout-page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.checkout-payments-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(239,68,68,0.18);
  border: 2px solid rgba(239,68,68,0.75);
  border-radius: var(--radius-md);
  color: #ff8080;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Section cards */
.checkout-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.checkout-card:last-of-type { margin-bottom: 0; }

.checkout-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.checkout-card-icon { color: #60a5fa; flex-shrink: 0; }

/* Form elements */
.form-field { display: flex; flex-direction: column; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-fields-stack { display: flex; flex-direction: column; gap: 1.25rem; }

.form-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-300);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  box-sizing: border-box;
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  cursor: pointer;
}
.form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(96,165,250,0.9)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.form-input::placeholder { color: var(--gray-500); }
.form-input:focus,
.form-select:focus { border-color: #3b82f6; background-color: rgba(255,255,255,0.11); }
.form-input--error,
.form-input--error:focus {
  border-color: #ef4444;
  background-color: rgba(239,68,68,0.07);
}
.form-select option { background: #1a1a2e; color: #fff; }
.form-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Radio option buttons */
.radio-options { display: flex; gap: 1rem; }
.radio-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.radio-opt:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
.radio-opt--active { border-color: #3b82f6; background: rgba(59,130,246,0.18); color: var(--white); }
.radio-opt--active-green { border-color: #10b981; background: rgba(16,185,129,0.15); color: var(--white); }
.radio-opt[hidden] { display: none !important; }
.currency-switcher[hidden] { display: none !important; }

.delivery-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.payment-options { display: flex; gap: 1rem; }

/* Order summary sidebar */
.checkout-summary-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: sticky;
  top: 88px;
}
.checkout-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.order-items-list {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  margin-bottom: 1.25rem;
}

.order-summary-item {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.5rem;
}
.order-summary-item:last-child { margin-bottom: 0; }

.order-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }

.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 0.875rem; font-weight: 600; color: var(--white); margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-qty { font-size: 0.8rem; color: var(--gray-400); }
.order-item-total { font-size: 0.875rem; font-weight: 600; color: var(--white); white-space: nowrap; }

/* ---- Currency switcher ---- */
.currency-switcher {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 1.125rem;
}
.currency-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.currency-btn:hover { color: var(--white); }
.currency-btn--active {
  background: #2563eb;
  color: var(--white);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
}
.checkout-summary-row span:first-child { color: var(--gray-400); }
.checkout-summary-row span:last-child { color: var(--white); font-weight: 500; }
.checkout-summary-row span.text-free { color: #34d399; font-weight: 600; }

.checkout-summary-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.checkout-summary-total-label { font-size: 1rem; font-weight: 600; color: var(--white); }
.checkout-summary-total-val { font-size: 1.625rem; font-weight: 700; color: #60a5fa; }

.checkout-submit-notice {
  color: var(--gray-500);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.875rem;
  line-height: 1.5;
}

/* Success state */
.checkout-success {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 32rem;
  margin: 0 auto;
}
.checkout-success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(52,211,153,0.15);
  border: 2px solid rgba(52,211,153,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  color: #34d399;
}
.checkout-success-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.checkout-success-desc {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.checkout-success-note {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; }
}

@media (max-width: 768px) {
  .product-detail-page { padding: 1.5rem 0 4rem; }
  .feature-check-list { grid-template-columns: 1fr; }
  .product-actions-row { flex-wrap: wrap; }
  .product-cart-row { flex-wrap: wrap; }
  .btn-add-cart { width: 100%; }
  .cart-item-card { flex-direction: column; gap: 1rem; }
  .cart-item-img { width: 80px; height: 80px; }
  .gallery-thumbs { gap: 0.5rem; }
  .gallery-thumb { width: 64px; height: 48px; }
  .checkout-card { padding: 1.25rem; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .delivery-options { grid-template-columns: 1fr; }
  .payment-options { flex-direction: column; }
  .radio-options { flex-direction: column; }
}

@media (max-width: 480px) {
  .cart-item-actions { gap: 0.75rem; }
  .product-cart-row { flex-direction: column; align-items: stretch; }
  .qty-control { align-self: flex-start; }
  .fw-request-box { padding: 1.25rem; }
  #fw-submit-wrap .btn-lg { width: 100%; }
}
