:root {
  --primary: #0a0a0a;
  --primary-light: #1a1a1a;
  --accent: #e11d2e;
  --accent-hover: #b91c1c;
  --accent-soft: #ff2d3f;
  --success: #16a34a;
  --bg: #111111;
  --card: #1c1c1c;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: #333333;
  --discount: #fbbf24;
  --shadow: 0 8px 24px rgba(0,0,0,0.45);
  --radius: 12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #2a0508 100%);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a, .nav button {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.nav a:hover, .nav button:hover, .nav a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.2) !important;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.bonus-badge {
  background: var(--discount);
  color: #1a202c;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Promo banner */
.promo-banner {
  background: linear-gradient(90deg, #450a0a, #e11d2e, #450a0a);
  color: #1a202c;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-banner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main */
.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3182ce 100%);
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
}

.btn-secondary:hover {
  background: #edf2f7;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #2f855a;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

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

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.card-img {
  height: 220px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
  background: #141414;
}

.card-body {
  padding: 0.85rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-soft, #ff2d3f);
  margin-bottom: 1rem;
}

.card-price .old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* Services specific */
.service-card .card-img {
  background: linear-gradient(135deg, #2c5282, #3182ce);
  color: white;
}

/* Forms */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-success {
  background: #c6f6d5;
  color: #22543d;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-info {
  background: #ebf8ff;
  color: #2c5282;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

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

.cart-item-img {
  width: 70px;
  height: 70px;
  background: #2a2a2a;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-soft, #ff2d3f);
  font-size: 1.1rem;
  min-width: 80px;
  text-align: right;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #2a2a2a;
  color: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #3a3a3a;
  border-color: var(--accent);
  color: #fff;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
}

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

.cart-summary {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 2px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  color: #fff;
}
.summary-row.total span:last-child {
  color: var(--accent-soft, #ff2d3f);
}

.summary-row.discount {
  color: var(--success);
  font-weight: 600;
}

.payment-options {
  margin: 1.5rem 0;
}

.payment-options h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option:hover, .payment-option.selected {
  border-color: var(--accent);
  background: rgba(225, 29, 46, 0.12);
}

.payment-option input {
  accent-color: var(--accent);
}

.payment-option .discount-hint {
  font-size: 0.8rem;
  color: var(--success);
  margin-left: auto;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-cart .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Account */
.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

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

.account-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.account-sidebar .user-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.account-sidebar h3 {
  text-align: center;
  margin-bottom: 0.25rem;
}

.account-sidebar .email {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.bonus-card {
  background: linear-gradient(135deg, #d69e2e, #ed8936);
  color: #1a202c;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.bonus-card .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.bonus-card .amount {
  font-size: 1.75rem;
  font-weight: 700;
}

.account-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  transition: background 0.2s;
}

.account-menu a:hover, .account-menu a.active {
  background: #edf2f7;
  color: var(--primary);
}

.account-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.order-status {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-status.pending { background: #fefcbf; color: #744210; }
.order-status.processing { background: #bee3f8; color: #2a4365; }
.order-status.ready { background: #e9d8fd; color: #44337a; }
.order-status.done { background: #c6f6d5; color: #22543d; }
.order-status.cancelled { background: #fed7d7; color: #742a2a; }

/* Footer */
.footer {
  background: #000000;
  color: rgba(255,255,255,0.8);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h4 {
  color: white;
  margin-bottom: 0.75rem;
}

.footer p, .footer a {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: block;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

/* Tabs for custom */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 350px;
}

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

.toast.success {
  background: var(--success);
}

/* Utils */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }
}

.card-old-price {
  font-size: 0.85em;
  color: var(--text-muted, #718096);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.35rem;
}


/* === Black & Red theme refinements === */
body {
  background: var(--bg);
  color: var(--text);
}

.card, .form-card, .order-card, .account-card {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

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

.btn-secondary {
  background: #2a2a2a !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
.btn-secondary:hover {
  border-color: var(--accent) !important;
  color: #fff !important;
}

.section-title {
  color: #fff;
}
.section-subtitle {
  color: var(--text-muted);
}

.card-title { color: #fff; }
.card-desc { color: var(--text-muted); }
.card-price { color: var(--accent-soft) !important; }

input, select, textarea {
  background: #0d0d0d !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.25);
}

.footer {
  background: #000 !important;
  color: var(--text-muted);
  border-top: 1px solid #1f1f1f;
}
.footer a:hover { color: var(--accent); }

.promo-banner {
  background: linear-gradient(90deg, #450a0a, #e11d2e, #450a0a) !important;
  color: #fff !important;
}

.bonus-badge {
  background: rgba(225, 29, 46, 0.2) !important;
  color: #fecaca !important;
  border: 1px solid rgba(225, 29, 46, 0.4);
}

.hero, .hero-section {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a0508 100%) !important;
}

.nav a.active {
  background: rgba(225, 29, 46, 0.35) !important;
}

.cart-count {
  background: var(--accent) !important;
}

a { color: inherit; }
a[style*="color:var(--primary)"],
a[href].text-link {
  color: var(--accent-soft);
}


/* cart dark theme */
.cart-layout,
.cart-items,
.cart-summary,
.empty-cart {
  background: #141414 !important;
  border: 1px solid #2a2a2a !important;
  color: #e8e8e8 !important;
  box-shadow: none !important;
}
.cart-item {
  background: #141414 !important;
  border-bottom-color: #2a2a2a !important;
  color: #e8e8e8 !important;
}
.cart-item-img {
  background: #0d0d0d !important;
  border-color: #333 !important;
  color: #fff !important;
}
.cart-item-title {
  color: #f5f5f5 !important;
}
.cart-item-meta {
  color: #9ca3af !important;
}
.cart-item-price,
#sum-subtotal,
#sum-total,
#sum-discount,
#sum-bonus,
.summary-row.total span:last-child {
  color: #ff4d5e !important;
  font-weight: 700 !important;
}
.summary-row {
  color: #a3a3a3 !important;
}
.summary-row span:last-child {
  color: #f5f5f5 !important;
  font-weight: 600;
}
.summary-row.total {
  color: #fff !important;
  border-top-color: #333 !important;
}
.summary-row.discount {
  color: #4ade80 !important;
}
.payment-option {
  background: #0d0d0d !important;
  border-color: #333 !important;
  color: #e8e8e8 !important;
}
.payment-option strong {
  color: #fff !important;
}
.payment-option:hover,
.payment-option.selected {
  border-color: #e11d2e !important;
  background: rgba(225, 29, 46, 0.15) !important;
}
.qty-btn {
  background: #1f1f1f !important;
  border-color: #333 !important;
  color: #f5f5f5 !important;
}
.qty-value {
  color: #f5f5f5 !important;
}
.remove-btn {
  color: #9ca3af !important;
}
.remove-btn:hover {
  color: #ff4d5e !important;
}
#bonus-box {
  background: #0d0d0d !important;
  border: 1px solid #333 !important;
  color: #e8e8e8 !important;
}
#guest-checkout-hint {
  background: #1a0a0a !important;
  color: #fecaca !important;
  border: 1px solid #7f1d1d !important;
}
.promo-banner,
.promo-banner span {
  color: #fff !important;
}
a[style*="var(--primary)"] {
  color: #ff4d5e !important;
}

/* secondary buttons on dark pages */
.btn-secondary {
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
  border: 1px solid #333 !important;
}

/* === Cart: kill remaining white, brighten prices === */
.form-info {
  background: #141414 !important;
  color: #e5e5e5 !important;
  border: 1px solid #2a2a2a !important;
}
.form-success {
  background: #0f2918 !important;
  color: #86efac !important;
  border: 1px solid #166534 !important;
}
.form-error {
  color: #ff4d5e !important;
}

/* cart page containers — darker, no white */
.cart-layout,
.cart-items,
.cart-summary,
.empty-cart,
#cart-content,
#cart-items,
#bonus-box,
#login-hint,
#fixed-address,
#checkout-form {
  background: #121212 !important;
  color: #e8e8e8 !important;
  border-color: #2a2a2a !important;
  box-shadow: none !important;
}

.cart-item {
  background: #121212 !important;
  border-bottom: 1px solid #2a2a2a !important;
  color: #e8e8e8 !important;
}

.cart-item-img {
  background: #0a0a0a !important;
  border: 1px solid #333 !important;
  color: #fff !important;
}

.cart-item-title {
  color: #fafafa !important;
}

.cart-item-meta,
.cart-item-meta * {
  color: #9ca3af !important;
}

/* product costs — bright red (was black/dark) */
.cart-item-price,
.cart-item-price * {
  color: #ff4d5e !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  text-shadow: 0 0 12px rgba(255, 45, 63, 0.35);
}

/* summary totals & values — bright */
#sum-subtotal,
#sum-total,
#sum-discount,
#sum-bonus,
.summary-row.total span:last-child,
.summary-row span:last-child {
  color: #ff4d5e !important;
  font-weight: 700 !important;
}

.summary-row {
  color: #a3a3a3 !important;
}

.summary-row.total {
  color: #fff !important;
  border-top: 2px solid #333 !important;
}

.summary-row.discount,
.summary-row.discount span {
  color: #4ade80 !important;
}

/* payment options dark */
.payment-options h4 {
  color: #f5f5f5 !important;
}
.payment-option {
  background: #0d0d0d !important;
  border: 2px solid #2a2a2a !important;
  color: #e8e8e8 !important;
}
.payment-option strong {
  color: #fff !important;
}
.payment-option div[style],
.payment-option .discount-hint {
  color: #9ca3af !important;
}
.payment-option:hover,
.payment-option.selected {
  border-color: #e11d2e !important;
  background: rgba(225, 29, 46, 0.12) !important;
}

/* qty controls dark */
.qty-btn {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  color: #f5f5f5 !important;
}
.qty-btn:hover {
  background: #2a2a2a !important;
  border-color: #e11d2e !important;
  color: #fff !important;
}
.qty-value {
  color: #f5f5f5 !important;
  font-weight: 600 !important;
}
.remove-btn {
  color: #9ca3af !important;
}
.remove-btn:hover {
  color: #ff4d5e !important;
}

/* bonus switch area already dark; reinforce */
#bonus-box,
#bonus-box * {
  color: #e8e8e8 !important;
}
#bonus-box strong {
  color: #fff !important;
}
#bonus-track {
  background: #3a3a3a !important;
}

/* checkout form fields */
#checkout-form label,
.cart-summary label,
.cart-summary h3,
.cart-summary h4 {
  color: #f5f5f5 !important;
}
#checkout-form textarea,
#order-comment {
  background: #0a0a0a !important;
  color: #f5f5f5 !important;
  border: 1px solid #333 !important;
}

/* empty cart */
.empty-cart {
  background: #121212 !important;
  color: #a3a3a3 !important;
}
.empty-cart h3 {
  color: #f5f5f5 !important;
}

/* links in cart hints */
#login-hint a,
.cart-summary a {
  color: #ff4d5e !important;
  font-weight: 600;
}

/* secondary btn already dark; ensure in cart */
.cart-summary .btn-secondary,
#cart-content .btn-secondary {
  background: #1a1a1a !important;
  color: #f5f5f5 !important;
  border: 1px solid #333 !important;
}
.cart-summary .btn-secondary:hover {
  border-color: #e11d2e !important;
  color: #fff !important;
}

/* modal dark (if any cart-related) */
.modal {
  background: #1c1c1c !important;
  color: #f5f5f5 !important;
  border: 1px solid #333 !important;
}
.modal h2 {
  color: #fff !important;
}



/* Bonus switch (cart) — yellow */
.bonus-switch #bonus-track {
  background: #3a3a3a;
}
.bonus-switch input:checked ~ #bonus-track,
#bonus-track.on {
  background: #16a34a !important;
}
#bonus-knob {
  background: #22c55e !important;
}


/* ========== Mobile adaptation ========== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

button, .btn, a, input, select, textarea {
  touch-action: manipulation;
}

.btn, .btn-primary, .btn-secondary, .btn-block {
  min-height: 44px;
  padding: 0.7rem 1.1rem;
}

input, select, textarea {
  font-size: 16px !important; /* prevent iOS zoom on focus */
  max-width: 100%;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
  }
  .cart-summary {
    position: static !important;
    top: auto !important;
  }
  .account-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.5rem 0.85rem !important;
    gap: 0.5rem !important;
  }
  .logo {
    font-size: 1.15rem !important;
  }
  .logo-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.15rem !important;
  }
  .nav {
    width: 100%;
    gap: 0.35rem !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav button {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .user-info {
    flex-wrap: wrap;
    gap: 0.35rem !important;
    font-size: 0.8rem !important;
  }
  .bonus-badge {
    font-size: 0.72rem !important;
  }

  .promo-banner {
    font-size: 0.85rem !important;
    padding: 0.55rem 0.75rem !important;
  }

  .main {
    padding: 1.1rem 0.85rem !important;
  }

  .hero {
    padding: 1.75rem 1rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 10px !important;
  }
  .hero h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }
  .hero p {
    font-size: 0.95rem !important;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.35rem !important;
  }
  .section-subtitle {
    font-size: 0.9rem !important;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }
  .card {
    border-radius: 10px !important;
  }
  .card-img {
    height: 150px !important;
    font-size: 2.4rem !important;
  }
  .card-body {
    padding: 0.6rem 0.65rem !important;
  }
  .card-title {
    font-size: 0.88rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.25 !important;
  }
  .card-desc {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-price {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
  }
  .card .btn, .card button {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.5rem !important;
    min-height: 36px !important;
  }

  .form-card {
    padding: 1.25rem !important;
    max-width: 100% !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .cart-item {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    align-items: flex-start !important;
  }
  .cart-item-img {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.4rem !important;
  }
  .cart-item-info {
    flex: 1 1 calc(100% - 80px) !important;
    min-width: 0;
  }
  .cart-item-price {
    width: 100% !important;
    text-align: left !important;
    min-width: 0 !important;
    order: 3;
  }
  .remove-btn {
    position: absolute;
    right: 0.75rem;
  }
  .cart-item {
    position: relative;
  }

  .payment-option {
    padding: 0.7rem 0.75rem !important;
    align-items: flex-start !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 1rem !important;
  }
  .footer-bottom {
    font-size: 0.8rem !important;
    padding: 0.75rem 1rem !important;
  }

  .account-sidebar {
    margin-bottom: 0.5rem;
  }
  .account-tabs, .tabs, [class*="tab-nav"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .order-card, .order-item {
    padding: 1rem !important;
  }
  .order-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }

  .toast {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1.05rem;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }
  .card-img {
    height: 130px !important;
  }
  .card-title {
    font-size: 0.82rem !important;
  }
  .btn-block {
    width: 100%;
  }
  .summary-row {
    font-size: 0.9rem !important;
  }
  .summary-row.total {
    font-size: 1.1rem !important;
  }
  #bonus-box {
    padding: 0.75rem !important;
  }
  .bonus-switch {
    flex-wrap: wrap;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .header-inner {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  .main {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  .promo-banner {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}


/* === Product cards compact + large images === */
.cards {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
}
.card-img {
  height: 220px !important;
}
.card-img img {
  object-fit: contain !important;
  padding: 0.2rem !important;
}
.card-body {
  padding: 0.85rem 0.9rem !important;
}
.card-title {
  font-size: 1rem !important;
}
.card-price {
  font-size: 1.15rem !important;
}
.card-desc {
  font-size: 0.85rem !important;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .card-img {
    height: 180px !important;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }
  .card-img {
    height: 145px !important;
  }
  .card-body {
    padding: 0.55rem 0.6rem !important;
  }
  .card-title {
    font-size: 0.85rem !important;
  }
  .card-desc {
    font-size: 0.72rem !important;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-price {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 360px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .card-img {
    height: 120px !important;
  }
}


/* Auth form titles */
.form-card h2,
.form-card h1 {
  color: #fff !important;
}
.form-card a {
  color: var(--accent-soft, #ff2d3f) !important;
}
#btn-checkout:disabled {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}


/* Top promo strip removed — use /promotions.html */
.promo-banner { display: none !important; }


/* Bonus switch green */
#bonus-knob {
  background: #22c55e !important;
}
#bonus-track {
  background: #3a3a3a !important;
}


/* Promo modal */
#promo-modal.modal-overlay {
  background: rgba(0,0,0,0.7);
  z-index: 300;
}
#promo-modal .modal {
  background: #1c1c1c !important;
  border: 1px solid #333;
  color: #f5f5f5;
}
#promo-modal .modal strong {
  color: #ff4d5e;
}


/* Why us — 3 columns */
.cards.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
@media (max-width: 900px) {
  .cards.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }
  .section-why .card-title {
    font-size: 0.95rem !important;
  }
  .section-why .card-desc {
    font-size: 0.8rem !important;
  }
}
@media (max-width: 520px) {
  .cards.cards-3 {
    grid-template-columns: 1fr !important;
  }
}


/* product card photos */
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.card .card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 120px;
  background: rgba(15, 23, 42, 0.5);
}


.cart-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 1.75rem;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ========== Home previews: services + keychains ==========
   PC: 5 columns × 1 row
   Phone: 2 columns × 1 row
*/
.home-preview-cards,
#services-preview.cards,
#keychains-preview.cards {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch;
}
/* one row on PC: only first 5 cards (already rendered max 5) */
.home-preview-cards > .card:nth-child(n+6),
#services-preview > .card:nth-child(n+6),
#keychains-preview > .card:nth-child(n+6) {
  display: none !important;
}

@media (max-width: 1100px) {
  .home-preview-cards,
  #services-preview.cards,
  #keychains-preview.cards {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .home-preview-cards .card-title,
  #services-preview .card-title,
  #keychains-preview .card-title {
    font-size: 0.9rem !important;
  }
  .home-preview-cards .card-img,
  #services-preview .card-img,
  #keychains-preview .card-img {
    height: 140px !important;
  }
}

/* Phone / tablet portrait: 2 cols, 1 row */
@media (max-width: 768px) {
  .home-preview-cards,
  #services-preview.cards,
  #keychains-preview.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }
  /* hide 3rd+ card → one row of two */
  .home-preview-cards > .card:nth-child(n+3),
  #services-preview > .card:nth-child(n+3),
  #keychains-preview > .card:nth-child(n+3) {
    display: none !important;
  }
  .home-preview-cards .card-img,
  #services-preview .card-img,
  #keychains-preview .card-img {
    height: 130px !important;
  }
  .home-preview-cards .card-body,
  #services-preview .card-body,
  #keychains-preview .card-body {
    padding: 0.55rem 0.6rem !important;
  }
  .home-preview-cards .card-title,
  #services-preview .card-title,
  #keychains-preview .card-title {
    font-size: 0.85rem !important;
  }
  .home-preview-cards .card-desc,
  #services-preview .card-desc,
  #keychains-preview .card-desc {
    font-size: 0.72rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .home-preview-cards .btn,
  #services-preview .btn,
  #keychains-preview .btn {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.5rem !important;
  }
}

/* Hero / header comfort on mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.55rem !important;
  }
  .hero p {
    font-size: 0.95rem !important;
  }
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hero-buttons .btn {
    flex: 1 1 auto;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.9rem;
  }
}
