/* ==========================================
   PAGE-LEVEL EXTRA STYLES
   (Cart, Checkout, Product, Admin, Success)
   ========================================== */

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #6b7280; padding: 20px 0; }
.breadcrumb a { color: #008a68; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #9ca3af; }

/* Page Hero Bar */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e3a5f); color: white; padding: 40px 0; text-align: center; margin-bottom: 0; }
.page-hero h1 { font-size: 2rem; color: white; margin-bottom: 6px; }
.page-hero p { color: #94a3b8; font-size: 0.95rem; }

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 60px; align-items: start; }
.product-detail-img { width: 100%; border-radius: 16px; border: 1px solid #e5e7eb; object-fit: contain; height: auto; max-height: 400px; background: #f8fafc; }
.product-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.product-detail-category { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #008a68; background: #e8f5f1; padding: 4px 12px; border-radius: 50px; }
.product-detail-title { font-size: 1.8rem; font-weight: 800; color: #1a1f36; line-height: 1.25; margin-bottom: 16px; }
.product-detail-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: #008a68; }
.product-detail-original { font-size: 1.1rem; color: #9ca3af; text-decoration: line-through; }
.product-detail-discount { background: #ef4444; color: white; padding: 4px 12px; border-radius: 6px; font-weight: 800; font-size: 0.85rem; }
.product-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pd-add-cart { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #e8f5f1; border: 2px solid #008a68; color: #008a68; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.pd-add-cart:hover { background: #008a68; color: white; }
.pd-buy-now { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #008a68; color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.pd-buy-now:hover { background: #006b50; }
.watching-badge { display: inline-flex; align-items: center; gap: 6px; background: #fef9c3; color: #854d0e; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; }
.product-meta { border-top: 1px solid #e5e7eb; padding-top: 20px; }
.product-meta p { font-size: 0.875rem; color: #6b7280; margin-bottom: 8px; }
.product-meta strong { color: #1a1f36; }
.product-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.product-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #374151; }
.product-features li::before { content: '✅'; flex-shrink: 0; }


/* ==========================================
   CART PAGE
   ========================================== */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 40px 0 60px; align-items: start; }
.cart-table { width: 100%; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cart-head h2 { font-size: 1.15rem; font-weight: 800; color: #0b1f27; margin: 0; }
.cart-clear-btn { background: none; border: none; color: #ef4444; font-weight: 600; font-size: 0.86rem; cursor: pointer; font-family: inherit; padding: 6px 0; white-space: nowrap; flex-shrink: 0; }
.cart-clear-btn:hover { text-decoration: underline; }
/* Flex, not grid: grid children default to min-width:auto, which refuses to
   shrink below their content and pushed the whole row wider than the screen
   (the cart was horizontally scrolling on mobile). */
.cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: white; border: 1px solid #e8ecf1; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.cart-item > * { min-width: 0; }
.cart-item-controls { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; margin-left: auto; }
.cart-item-img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #f1f5f9; }
.cart-item-info { flex: 1 1 200px; min-width: 0; }
.cart-item-title { font-weight: 700; color: #0b1f27; font-size: 0.92rem; line-height: 1.35; margin-bottom: 4px; overflow-wrap: anywhere; }
.cart-item-opts { font-size: 0.76rem; color: #5b6b7a; margin-bottom: 3px; overflow-wrap: anywhere; }
.cart-item-cat { font-size: 0.72rem; color: #008a68; font-weight: 600; }
.cart-item-link { font-size: 0.74rem; color: #6b7280; margin-top: 3px; display: inline-block; }
.cart-item-link:hover { color: #008a68; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.summary-saved { margin: 10px 0 0; font-size: 0.82rem; font-weight: 600; color: #00875f; text-align: center; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 30px; height: 30px; border: 1px solid #e5e7eb; background: white; border-radius: 6px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.2s; }
.qty-btn:hover { background: #008a68; color: white; border-color: #008a68; }
.qty-display { font-weight: 700; min-width: 24px; text-align: center; }
.cart-item-price { font-weight: 800; color: #008a68; font-size: 1.05rem; text-align: right; white-space: nowrap; }
.cart-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1.2rem; padding: 4px; }
.cart-summary { background: white; border: 1px solid #e8ecf1; border-radius: 18px; padding: 26px; position: sticky; top: 100px; box-shadow: 0 6px 24px rgba(11,31,39,0.05); }
.cart-summary h3 { font-size: 1.1rem; font-weight: 800; color: #0b1f27; margin-bottom: 18px; padding-bottom: 15px; border-bottom: 1px solid #eef1f4; }

/* ── Sticky mobile checkout bar (total + primary action) ── */
.sticky-checkout {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e8ecf1;
  box-shadow: 0 -4px 20px rgba(11,31,39,0.09);
  padding: 10px 14px;
  z-index: 890;
  align-items: center;
  gap: 12px;
}
.sticky-checkout-total { flex-shrink: 0; line-height: 1.2; }
.sticky-checkout-total small { display: block; font-size: 0.66rem; color: #7a8896; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sticky-checkout-total strong { font-size: 1.15rem; font-weight: 800; color: #0b1f27; }
.sticky-checkout-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(100deg, #00c48f, #00875f);
  color: #fff; border: none; border-radius: 50px;
  font-family: inherit; font-size: 0.98rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,138,104,0.34);
}
.sticky-checkout-btn:active { transform: translateY(1px); }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.95rem; color: #6b7280; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; color: #1a1f36; border-top: 1px solid #e5e7eb; padding-top: 14px; margin-top: 8px; }
.checkout-btn { width: 100%; padding: 15px; background: linear-gradient(90deg, #008a68, #10b981, #008a68); background-size: 200% auto; color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 1.05rem; cursor: pointer; font-family: inherit; transition: all 0.3s ease; margin-top: 20px; box-shadow: 0 4px 15px rgba(0,138,104,0.3); }
.checkout-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,138,104,0.4); }
.empty-cart { text-align: center; padding: 80px 24px; }
.empty-cart-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-cart h2 { margin-bottom: 8px; }
.empty-cart p { color: #6b7280; margin-bottom: 28px; }

/* ==========================================
   CHECKOUT PAGE
   ========================================== */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0 60px; align-items: start; }
.checkout-form-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px; }
.checkout-section-title { font-size: 1.1rem; font-weight: 700; color: #1a1f36; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; display: flex; align-items: center; gap: 10px; }
.checkout-section-title .step-badge { background: #008a68; color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.form-input { padding: 11px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.95rem; color: #1a1f36; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: #008a68; box-shadow: 0 0 0 3px rgba(0,138,104,0.1); }
.form-input.error { border-color: #ef4444; }

/* Payment section */
.payment-box { background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-top: 16px; text-align: center; }
.upi-qr { width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 12px; background: white; padding: 8px; border: 2px solid #008a68; }
.upi-id-box { background: #1e293b; color: #00e5ff; padding: 10px 20px; border-radius: 8px; font-family: monospace; font-size: 1rem; font-weight: 700; display: inline-block; margin-bottom: 16px; cursor: pointer; }
.upi-apps { display: flex; justify-content: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.upi-app-btn { padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: white; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.upi-app-btn:hover { border-color: #008a68; background: #e8f5f1; }
.utr-section { margin-top: 20px; text-align: left; }
.utr-label { font-size: 0.9rem; font-weight: 700; color: #1a1f36; margin-bottom: 8px; display: block; }
.utr-input-row { display: flex; gap: 10px; }
.utr-input { flex: 1; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.95rem; outline: none; }
.utr-input:focus { border-color: #008a68; }
.place-order-btn { width: 100%; padding: 16px; background: linear-gradient(90deg, #008a68, #10b981, #008a68); background-size: 200% auto; color: white; border: none; border-radius: 10px; font-weight: 800; font-size: 1.1rem; cursor: pointer; font-family: inherit; transition: all 0.3s ease; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,138,104,0.3); }
.place-order-btn:hover:not(:disabled) { background-position: right center; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,138,104,0.4); }
.place-order-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.order-summary-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; position: sticky; top: 120px; }
.order-summary-card h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.order-item-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.order-item-name { font-size: 0.85rem; color: #374151; font-weight: 600; }
.order-item-price { font-size: 0.9rem; font-weight: 700; color: #1a1f36; white-space: nowrap; }
.security-badges { display: flex; justify-content: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.security-badge { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #6b7280; font-weight: 600; }

/* ==========================================
   ORDER SUCCESS PAGE
   ========================================== */
.success-container { max-width: 620px; margin: 60px auto; padding: 0 24px 80px; text-align: center; }
.success-icon { width: 90px; height: 90px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; font-size: 2.5rem; }
.success-title { font-size: 2rem; font-weight: 800; color: #1a1f36; margin-bottom: 12px; }
.success-subtitle { font-size: 1rem; color: #6b7280; margin-bottom: 36px; line-height: 1.7; }
.order-details-box { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; text-align: left; margin-bottom: 32px; }
.order-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label { color: #6b7280; }
.order-detail-value { font-weight: 700; color: #1a1f36; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.success-btn-primary { padding: 13px 32px; background: #008a68; color: white; border-radius: 8px; font-weight: 700; font-size: 0.95rem; transition: background 0.2s; }
.success-btn-primary:hover { background: #006b50; color: white; }
.success-btn-secondary { padding: 13px 32px; border: 2px solid #008a68; color: #008a68; border-radius: 8px; font-weight: 700; font-size: 0.95rem; transition: all 0.2s; }
.success-btn-secondary:hover { background: #008a68; color: white; }

/* ==========================================
   ADMIN PAGE
   ========================================== */
.admin-login { max-width: 420px; margin: 80px auto; padding: 0 24px; }
.admin-login-card { background: white; border: 1px solid #e5e7eb; border-radius: 20px; padding: 40px; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.admin-login-icon { font-size: 2.5rem; margin-bottom: 16px; }
.admin-login-card h2 { margin-bottom: 8px; }
.admin-login-card p { color: #6b7280; font-size: 0.9rem; margin-bottom: 28px; }
.admin-dashboard { display: none; }
.admin-nav { background: #1e293b; color: white; padding: 0; }
.admin-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-nav-brand { font-weight: 800; font-size: 1.1rem; padding: 16px 0; display: flex; align-items: center; gap: 10px; }
.admin-nav-links { display: flex; }
.admin-nav-link { padding: 16px 18px; color: #94a3b8; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: color 0.2s; border-bottom: 3px solid transparent; }
.admin-nav-link:hover, .admin-nav-link.active { color: white; border-bottom-color: #008a68; }
.admin-content { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card { background: white; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; }
.stat-value { font-size: 2rem; font-weight: 800; color: #1a1f36; }
.stat-label { font-size: 0.85rem; color: #6b7280; margin-top: 4px; }
.stat-change { font-size: 0.8rem; font-weight: 700; margin-top: 8px; }
.stat-change.up { color: #10b981; }
.admin-panel { background: white; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.admin-panel-header { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.admin-panel-header h3 { font-size: 1rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 20px; text-align: left; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; background: #f8fafc; }
.admin-table td { padding: 16px 20px; border-top: 1px solid #f1f5f9; font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.status-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-verified { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.admin-btn { padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }
.admin-btn-green { background: #d1fae5; color: #065f46; }
.admin-btn-red { background: #fee2e2; color: #991b1b; }
.add-product-form { padding: 24px; }
.add-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .product-detail-grid, .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .add-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-stats { grid-template-columns: 1fr; }

  /* Mobile cart row: switch from grid to wrapping flex so the image and
     details share the first line and the controls drop to a second line
     without any fragile offsets. */
  .cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }
  .cart-item-img { flex: 0 0 68px; width: 68px; height: 68px; }
  .cart-item-info { flex: 1 1 140px; }
  .cart-item-title { font-size: 0.88rem; }
  /* Controls take a full row of their own, qty left / price+remove right */
  .cart-item-controls {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: space-between;
    border-top: 1px solid #f1f4f6;
    padding-top: 10px;
  }
  .cart-item-right { flex-direction: row; align-items: center; gap: 14px; }
  .cart-summary { padding: 20px; border-radius: 14px; position: static; }
  /* The sticky bar carries the action, so hide the inline button */
  .cart-summary .checkout-btn { display: none; }
  .sticky-checkout { display: flex; }
  /* Keep content clear of the sticky bar + tab bar */
  body.has-sticky-checkout { padding-bottom: calc(138px + env(safe-area-inset-bottom, 0px)); }
  .checkout-form-card { padding: 18px 16px; border-radius: 14px; }
  .checkout-section-title { font-size: 1rem; }
}

/* ========================================== 
   ORDER SUCCESS PAGE 
   ========================================== */

    body {
      font-family: 'Outfit', sans-serif;
      background: #f8fafc;
      margin: 0;
      padding: 0;
    }
    .success-wrapper {
      max-width: 540px;
      margin: 40px auto;
      padding: 0 16px 60px;
    }
    .success-card {
      background: #fff;
      border-radius: 24px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.06);
      overflow: hidden;
      margin-bottom: 24px;
    }
    .success-card-header {
      background: linear-gradient(135deg, #059669, #047857);
      padding: 40px 24px 30px;
      text-align: center;
      color: white;
      position: relative;
    }
    .success-card-header.pending {
      background: linear-gradient(135deg, #f59e0b, #d97706);
    }
    .success-card-header.failed {
      background: linear-gradient(135deg, #ef4444, #b91c1c);
    }
    
    .icon-container {
      width: 80px;
      height: 80px;
      background: rgba(255,255,255,0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      font-size: 40px;
      animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
      transform: scale(0);
    }

    @keyframes popIn {
      100% { transform: scale(1); }
    }
    
    .success-card-header h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.5px; }
    .success-card-header p { font-size: 0.95rem; opacity: 0.95; margin: 0; line-height: 1.5; font-weight: 400; }
    
    .success-card-body { padding: 28px 24px; }
    
    .detail-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px dashed #e2e8f0;
      font-size: 0.95rem;
      gap: 12px;
    }
    .detail-row:last-child { border-bottom: none; padding-bottom: 0; }
    .detail-label { color: #64748b; font-weight: 500; white-space: nowrap; }
    .detail-value { font-weight: 700; color: #1e293b; text-align: right; word-break: break-word; }
    
    .status-badge {
      display: inline-flex;
      align-items: center;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 700;
      gap: 6px;
    }
    .status-verified { background: #dcfce7; color: #166534; }
    .status-pending  { background: #fef3c7; color: #92400e; }
    .status-failed   { background: #fee2e2; color: #991b1b; }
    
    .next-steps-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 24px;
    }
    .next-steps-box h4 {
      margin: 0 0 12px;
      color: #0f172a;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .next-steps-list {
      margin: 0;
      padding-left: 20px;
      color: #475569;
      font-size: 0.9rem;
      line-height: 1.6;
    }
    .next-steps-list li { margin-bottom: 6px; }
    
    .trust-strip {
      display: flex;
      justify-content: center;
      gap: 16px;
      padding: 16px 0;
      border-top: 1px solid #f1f5f9;
      margin-top: 20px;
    }
    .trust-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.75rem;
      color: #64748b;
      font-weight: 600;
      gap: 4px;
    }
    
    .action-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 8px;
    }
    @media(min-width: 480px) {
      .action-row.double { grid-template-columns: 1fr 1fr; }
    }
    
    .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px;
      border-radius: 12px;
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
      outline: none;
      font-family: inherit;
    }
    .btn-primary { background: #1f2937; color: white; }
    .btn-primary:hover { background: #111827; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ========================================== 
   PRODUCT GALLERY 
   ========================================== */

    .product-gallery { display: flex; flex-direction: column; gap: 12px; }
    .gallery-main {
      position: relative;
      background: #f8fafc;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #e2e8f0;
      cursor: zoom-in;
    }
    .gallery-main-img {
      width: 100%;
      display: block;
      transition: transform 0.3s ease;
    }
    .gallery-main:hover .gallery-main-img { transform: scale(1.02); }
    .gallery-expand-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(255,255,255,0.9);
      backdrop-filter: blur(8px);
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      z-index: 2;
    }
    .gallery-expand-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: scale(1.1); }
    .gallery-discount-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: white;
      font-size: 0.8rem;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 8px;
      z-index: 2;
      box-shadow: 0 2px 8px rgba(239,68,68,0.3);
    }
    .gallery-thumbs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 4px 2px 8px;
      scrollbar-width: none;
    }
    .gallery-thumbs::-webkit-scrollbar { display: none; }
    .gallery-thumb {
      width: 72px;
      height: 72px;
      object-fit: cover;
      border-radius: 10px;
      cursor: pointer;
      border: 2.5px solid #e2e8f0;
      flex-shrink: 0;
      transition: all 0.2s ease;
      opacity: 0.7;
    }
    .gallery-thumb:hover { opacity: 1; border-color: #94a3b8; transform: translateY(-2px); }
    .gallery-thumb.active { border-color: #3b82f6; opacity: 1; box-shadow: 0 2px 8px rgba(59,130,246,0.25); }
    
    /* Lightbox */
    .gallery-lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.92);
      backdrop-filter: blur(8px);
      z-index: 99999;
      align-items: center;
      justify-content: center;
      animation: lbFadeIn 0.25s ease;
    }
    .gallery-lightbox.active { display: flex; }
    @keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
    .lightbox-img {
      max-width: 90vw;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 12px;
      animation: lbZoomIn 0.3s ease;
    }
    @keyframes lbZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 24px;
      background: rgba(255,255,255,0.15);
      border: none;
      color: white;
      font-size: 1.5rem;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      z-index: 2;
    }
    .lightbox-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.15);
      border: none;
      color: white;
      font-size: 2.5rem;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      line-height: 1;
    }
    .lightbox-nav:hover { background: rgba(255,255,255,0.3); }
    .lightbox-prev { left: 20px; }
    .lightbox-next { right: 20px; }
    .lightbox-counter {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      color: rgba(255,255,255,0.7);
      font-size: 0.9rem;
      font-weight: 600;
    }
    @media (max-width: 768px) {
      .lightbox-nav { width: 40px; height: 40px; font-size: 2rem; }
      .lightbox-prev { left: 8px; }
      .lightbox-next { right: 8px; }
    }

/* ==========================================
   CHECKOUT — STEP PROGRESS + CARDS
   ========================================== */
.co-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b1f27;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.co-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.co-step-dot {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #8fa1af;
  font-size: 0.86rem; font-weight: 800;
}
.co-step-label { font-size: 0.74rem; font-weight: 600; color: #8fa1af; }
.co-step.active .co-step-dot { background: #bef264; color: #17300a; }
.co-step.active .co-step-label { color: #fff; }
.co-step-line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.16); }

/* Card with a dark title strip, matching the rest of the refreshed UI */
.co-card { padding: 0 !important; overflow: hidden; border-radius: 16px; }
.co-card-head {
  background: #0b1f27;
  color: #bef264;
  padding: 12px 18px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.co-card-head::before { content: '● '; color: #bef264; }
.co-card-body { padding: 18px; }
.co-hint { font-weight: 500; font-size: 0.72rem; color: #8b98a5; text-transform: none; letter-spacing: 0; }
.co-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #5b6b7a;
  background: #f4f7f9;
  border-radius: 10px;
  padding: 11px 13px;
}

@media (max-width: 768px) {
  .co-steps { padding: 13px 14px; border-radius: 14px; }
  .co-step-dot { width: 28px; height: 28px; font-size: 0.8rem; }
  .co-step-label { font-size: 0.68rem; }
  .co-card-body { padding: 15px; }
  .co-card-head { padding: 11px 15px; font-size: 0.71rem; }
}

/* ── Checkout order summary items (with artwork) ── */
.co-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f6f8fa;
  border-radius: 12px;
  padding: 9px 12px 9px 9px;
  margin-bottom: 8px;
}
.co-item img {
  width: 42px; height: 42px;
  border-radius: 9px;
  object-fit: cover;
  background: #e9eef2;
  flex-shrink: 0;
}
.co-item-name {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0b1f27;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.co-item-qty { font-weight: 500; color: #8b98a5; font-size: 0.78rem; margin-left: 3px; }
.co-item-price { font-size: 0.88rem; font-weight: 800; color: #0b1f27; white-space: nowrap; }

/* Highlighted total block */
.co-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef7f1;
  border: 1px solid #d6ebdf;
  border-radius: 12px;
  padding: 15px 16px;
  margin-top: 12px;
}
.co-total-box span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #14313d;
}
.co-total-box strong { font-size: 1.3rem; font-weight: 800; color: #00714f; }

/* Field error state */
.form-input.error { border-color: #ef4444 !important; background: #fef2f2; }

/* Primary pay button as a pill */
.place-order-btn {
  border-radius: 50px !important;
  min-height: 54px;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .co-item img { width: 38px; height: 38px; }
  .co-item-name { font-size: 0.8rem; }
  .co-total-box { padding: 13px 14px; }
  .co-total-box strong { font-size: 1.18rem; }
}
