/* ==========================================================================
   KICKS ON THE SOUTH — STOREFRONT STYLESHEET
   Aligned with Main Inventory System Design Language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== DESIGN TOKENS (Luxury Aesthetic) ===== */
:root,
[data-theme='light'],
[data-theme='dark'] {
  --bg-primary: #000000;
  --bg-card: #151515;
  --bg-secondary: #111111;
  --text-primary: #FFFFFF;
  --text-secondary: #CFCFCF;
  --text-muted: #71717a;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.08);
  --accent-primary: #B00020;
  --accent-hover: #D90429;
  --accent-gradient: linear-gradient(135deg, #B00020 0%, #D90429 100%);
  --status-success: #10b981;
  --status-error: #ef4444;
  --status-warning: #f59e0b;
  --status-info: #3b82f6;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.011em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.store-main {
  flex: 1;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TOPBAR ===== */
.store-topbar {
  background: var(--accent-gradient);
  padding: 5px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.store-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-topbar .brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-topbar .brand-logo {
  height: 24px;
  object-fit: contain;
  filter: brightness(1.1);
}

.store-topbar .brand-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.store-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.store-topbar .topbar-actions a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.store-topbar .topbar-actions a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.store-topbar .topbar-actions .cart-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.store-topbar .topbar-actions .cart-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.store-topbar .topbar-actions .user-pill {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ===== NAVIGATION BAR ===== */
.store-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.store-navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.store-navbar nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.store-navbar nav a:hover {
  color: var(--accent-primary);
  background: rgba(193, 27, 23, 0.08);
}

.store-navbar nav a.active {
  color: var(--accent-primary);
  font-weight: 700;
}

.store-navbar nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px 2px 0 0;
}

/* ===== HERO SECTION ===== */
.store-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  margin-bottom: 0;
}

.store-hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.store-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.store-hero-sub {
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* ===== SEARCH ===== */
.store-search-wrap {
  display: flex;
  gap: 5px;
  min-width: 200px;
  flex: 1;
  max-width: 320px;
}

.store-search-wrap input {
  flex: 1;
  padding: 5px 10px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-search-wrap input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(193, 27, 23, 0.12);
}

.store-search-wrap input::placeholder {
  color: var(--text-muted);
}

/* ===== SECTION HEADERS ===== */
.store-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.store-section-header h2 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== MAIN CONTENT WRAPPER ===== */
.store-content {
  padding: 0 12px 24px;
  max-width: 1150px;
  margin: 0 auto;
}

/* ===== CARDS (General) ===== */
.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
  box-shadow: var(--shadow-md);
}

/* Legacy .card class for existing pages */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

/* ===== PROMO GRID ===== */
.store-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 5px;
}

.store-promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.store-promo-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.store-promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.promo-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(193, 27, 23, 0.08);
  color: var(--accent-primary);
  width: fit-content;
  border: 1px solid rgba(193, 27, 23, 0.15);
}

[data-theme='dark'] .promo-badge {
  background: rgba(193, 27, 23, 0.15);
  border-color: rgba(193, 27, 23, 0.3);
}

.store-promo-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.store-promo-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.store-promo-dates {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.store-no-promo {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 6px 0;
}

/* ===== PRODUCT GRID ===== */
.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.store-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.store-product-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

[data-theme='dark'] .store-product-card {
  border-color: rgba(193, 27, 23, 0.2);
}

[data-theme='dark'] .store-product-card:hover {
  border-color: rgba(193, 27, 23, 0.5);
}

.store-card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.store-product-card:hover .store-card-img-wrap img {
  transform: scale(1.05);
}

.store-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-placeholder i {
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.4;
}

.store-card-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.store-card-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.store-card-brand {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 2px 0 8px;
  font-weight: 500;
}

.store-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
}

.store-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.old-price {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 4px;
}

.stock-pill {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--status-success);
  margin-top: 4px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

[data-theme='dark'] .stock-pill {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.store-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.25s ease;
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(193, 27, 23, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(193, 27, 23, 0.35);
  color: #fff;
  background: linear-gradient(135deg, #d42020 0%, #a01010 100%);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(193, 27, 23, 0.2);
}

.btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(193, 27, 23, 0.04);
  box-shadow: var(--shadow-md);
}

[data-theme='dark'] .btn.secondary {
  background: #1a1a1a;
  border-color: #333;
  color: #ddd;
}

[data-theme='dark'] .btn.secondary:hover {
  border-color: var(--accent-primary);
  color: #fff;
  background: rgba(193, 27, 23, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.76rem;
}

.btn-muted {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.btn-muted:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(193, 27, 23, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== TABLES ===== */
.store-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.store-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-secondary);
}

.store-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.store-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.store-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.store-table tbody tr {
  transition: background 0.15s ease;
}

.store-table tbody tr:hover {
  background: rgba(193, 27, 23, 0.03);
}

[data-theme='dark'] .store-table tbody tr:hover {
  background: rgba(193, 27, 23, 0.06);
}

.store-table tbody tr:last-child td {
  border-bottom: none;
}

/* Legacy cart-table support */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.cart-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cart-table tbody tr {
  transition: background 0.15s ease;
}

.cart-table tbody tr:hover {
  background: rgba(193, 27, 23, 0.03);
}

[data-theme='dark'] .cart-table tbody tr:hover {
  background: rgba(193, 27, 23, 0.06);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-badge.pending,
.status-badge.delivery {
  background: rgba(245, 158, 11, 0.1);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.processing,
.status-badge.preparing {
  background: rgba(59, 130, 246, 0.1);
  color: var(--status-info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.delivered,
.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== FLASH MESSAGES ===== */
.flash {
  background: rgba(193, 27, 23, 0.08);
  border: 1px solid rgba(193, 27, 23, 0.2);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 500;
}

.flash.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--status-success);
}

.flash.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--status-error);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.product-detail .media-wrap {
  flex: 0 0 420px;
  max-width: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-detail .media-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.product-detail .info-wrap {
  flex: 1;
  min-width: 280px;
}

.product-detail .info-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.product-detail .brand-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.product-detail .price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-detail .price-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-detail .description-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.product-detail .add-to-cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.product-detail .qty-input {
  width: 80px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}

.product-detail .qty-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(193, 27, 23, 0.12);
}

/* ===== DASHBOARD WELCOME ===== */
.welcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.welcome-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welcome-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.store-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-card);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  opacity: 0.3;
  display: block;
  margin-bottom: 14px;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== AUTH PAGES (Login / Signup) — Professional Centered Card Redesign ===== */
.auth-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  background: radial-gradient(circle at 50% 30%, #151515 0%, #0c0c0c 100%);
  padding: 30px 20px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 12px 12px 0 0;
}

.auth-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-card .auth-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.auth-card .form-group {
  margin-bottom: 12px;
}

.auth-card .form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card .form-group input:not([type="hidden"]) {
  width: 100%;
  padding: 7px 12px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  background: #181818;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.auth-card .form-group input:not([type="hidden"]):focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #1c1c1c;
  box-shadow: 0 0 0 3px rgba(193, 27, 23, 0.15);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.auth-actions .btn {
  width: 100%;
  padding: 0 14px;
  height: 34px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.auth-bottom-link {
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-bottom-link a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-bottom-link a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #444;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* Signup Two-Column Grid */
.auth-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== CHECKOUT ===== */
.checkout-card {
  max-width: 520px;
  margin: 0 auto;
}

/* ===== CART TOTAL ===== */
.cart-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .store-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .store-search-wrap {
    min-width: 100%;
    max-width: 100%;
  }

  .store-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .product-detail {
    flex-direction: column;
  }

  .product-detail .media-wrap {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .store-topbar .container {
    flex-wrap: wrap;
  }

  .store-content {
    padding: 0 16px 32px;
  }

  .auth-page-wrapper {
    flex-direction: column;
  }

  .auth-brand-panel {
    padding: 40px 20px;
    min-height: 200px;
  }

  .auth-brand-features {
    display: none;
  }

  .auth-form-panel {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .auth-name-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .store-topbar .topbar-actions {
    gap: 4px;
  }

  .store-topbar .topbar-actions a {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .store-navbar nav a {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   MARKETING PAGE REDESIGN STYLES
   Added to override/support new modern marketing features.
   ========================================================================== */
.store-utility-bar {
  background: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme='dark'] .store-utility-bar {
  background: var(--accent-gradient);
  color: #fff;
}

/* MODERN HEADER */
.store-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.store-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.header-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo {
  height: 24px;
}

.header-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav .nav-link {
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.header-nav .nav-link:hover {
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 999px;
  padding: 4px 12px;
  width: 180px;
  height: 28px;
}

.header-search-form .search-icon {
  color: var(--text-muted);
  margin-right: 6px;
  font-size: 0.72rem;
}

.header-search-form input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.72rem;
  width: 100%;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s;
}

.icon-btn:hover {
  transform: translateY(-2px);
  color: var(--accent-primary);
}

.cart-btn {
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* MARKETING HERO */
.marketing-hero {
  position: relative;
  height: 40vh;
  min-height: 200px;
  max-height: 320px;
  background-image: url('https://images.unsplash.com/photo-1552346154-21d32810baa3?q=80&w=2940&auto=format&fit=crop');
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(193, 27, 23, 0.9);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 28px;
}

.btn-hero {
  background: #fff;
  color: #000;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero:hover {
  background: #c11b17;
  color: #fff;
  transform: scale(1.05);
}

/* LIFESTYLE FEATURES */
.store-features {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 22px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.feature-item i {
  font-size: 2rem;
  color: var(--accent-primary);
}

.feat-text {
  display: flex;
  flex-direction: column;
}

.feat-text strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.feat-text span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* SECTION HEADERS */
.marketing-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 36px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.marketing-section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.view-all-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--accent-primary);
}

/* MODERN PRODUCT GRID */
.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 36px;
}

.product-card-modern {
  text-decoration: none;
  display: block;
}

.card-image-wrapper {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-modern:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.quick-add-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.product-card-modern:hover .quick-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-brand {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-tag {
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.card-title {
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-price {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* RESPONSIVE UPDATES */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .features-grid,
  .product-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .features-grid,
  .product-grid-modern {
    grid-template-columns: 1fr;
  }

  .header-search-form {
    display: none;
  }

  .marketing-section-header h2 {
    font-size: 1.5rem;
  }
}

/* ===== PHONE / TABLET OPTIMIZATION ===== */
@media (max-width: 1024px) {
  .store-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .store-header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .features-grid,
  .product-grid-modern,
  .promos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .store-navbar {
    padding: 10px 0;
  }

  .store-header-inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 0;
  }

  .header-brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-brand a {
    justify-content: center;
    text-align: center;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .store-search-wrap-premium {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .store-search-wrap-premium input {
    width: 100%;
    min-width: 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .btn-hero {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .marketing-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
  }

  .marketing-section-header h2 {
    font-size: 1.7rem;
  }

  .features-grid,
  .product-grid-modern,
  .promos-grid {
    grid-template-columns: 1fr;
  }

  .secondary-banner {
    padding: 40px 20px;
  }

  .secondary-banner h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .store-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-name {
    font-size: 0.9rem;
    letter-spacing: 0.4px;
  }

  .header-logo {
    height: 28px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .store-search-wrap-premium {
    padding-left: 10px;
    padding-right: 10px;
  }

  .store-search-wrap-premium input {
    padding: 10px 8px;
    font-size: 0.85rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 6px 12px;
  }

  .marketing-hero {
    min-height: 420px;
    height: auto;
    padding: 60px 0;
  }
}

/* PROMOS MODERN */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.promo-card-modern:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.promo-card-modern h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* SECONDARY BANNER */
.secondary-banner {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  /* updated to standard token */
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.secondary-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.secondary-banner h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.secondary-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ==========================================================================
   HOMEPAGE CUSTOM LUXURY STYLES
   ========================================================================== */

/* ANIMATIONS */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.hover-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hover-zoom-wrap img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-zoom-wrap:hover img {
  transform: scale(1.08);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVBAR & SEARCH */
.store-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.store-navbar nav a {
  position: relative;
  padding: 10px 15px;
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.store-navbar nav a:hover {
  color: var(--text-primary);
  background: transparent;
}

.store-navbar nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s;
}

.store-navbar nav a:hover::after {
  width: 100%;
}

.store-search-wrap-premium {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 25px;
  padding: 0 15px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.store-search-wrap-premium:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(176, 0, 32, 0.3);
}

.store-search-wrap-premium input {
  background: transparent;
  border: none;
  padding: 12px 10px;
  color: var(--text-primary);
  outline: none;
  width: 200px;
  font-size: 0.95rem;
}

.store-search-wrap-premium input::placeholder {
  color: var(--text-muted);
}

.store-search-wrap-premium button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.store-search-wrap-premium button:hover {
  color: var(--accent-primary);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  background: var(--bg-card);
  color: var(--accent-hover);
}

/* HERO SECTION */
.hero-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  background: radial-gradient(circle at right, #111111 0%, #000000 70%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  padding: 40px 24px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  padding-left: 5%;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(176, 0, 32, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.hero-title span {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 450px;
}

.hero-image-wrap {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  min-height: 500px;
}

.hero-image-wrap img {
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
  transition: transform 0.5s;
  z-index: 2;
  position: relative;
  border-radius: 15px;
}

.hero-image-wrap:hover img {
  transform: translateY(-10px) scale(1.05);
}

.glow-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  filter: blur(150px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}

.floating-badge {
  position: absolute;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.badge-1 {
  top: 20%;
  right: 10%;
  animation: float 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 20%;
  left: 10%;
  animation: float 5s ease-in-out infinite alternate;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* BUTTONS */
.btn-hero {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(176, 0, 32, 0.3);
}

.btn-hero:hover {
  background: var(--accent-hover);
  box-shadow: 0 15px 25px rgba(217, 4, 41, 0.4);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  margin-left: 10px;
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* FEATURED CATEGORIES */
.categories-section {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0 24px;
}

.category-card {
  position: relative;
  height: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s;
}

.category-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.category-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.category-content h3 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.category-content span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.category-card:hover .category-content span {
  color: var(--accent-primary);
}

/* FEATURED PRODUCTS */
.premium-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 15px;
  padding: 0;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.premium-card-img {
  height: 180px;
  background: var(--bg-secondary);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.premium-card-img img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

.premium-card:hover .premium-card-img img {
  transform: rotate(-5deg) scale(1.08);
}

.action-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.3s ease;
  z-index: 10;
}

.premium-card:hover .action-buttons {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.premium-card-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-brand {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.premium-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.premium-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.premium-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.premium-add-cart {
  background: rgba(176, 0, 32, 0.1);
  color: var(--accent-primary);
  border: none;
  padding: 5px 12px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.premium-add-cart:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* PROMOTIONAL BANNER */
.promo-banner {
  margin: 24px auto;
  max-width: 1050px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: #111;
}

.promo-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.5s, filter 0.5s;
}

.promo-banner:hover .promo-banner-img {
  opacity: 0.8;
  filter: grayscale(50%);
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.promo-banner-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.promo-banner-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.promo-banner-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* TESTIMONIALS */
.testimonials-section {
  padding: 30px 16px;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.stars {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.4;
  font-size: 0.78rem;
}

.customer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
  font-size: 0.75rem;
}

.customer-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.8rem;
}

/* BRANDS SECTION */
.brands-section {
  padding: 40px 24px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 60px 0;
  background: var(--bg-card);
}

.brands-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0.5;
}

.brands-grid i {
  font-size: 3rem;
  color: var(--text-primary);
  transition: all 0.3s;
  cursor: pointer;
}

.brands-grid i:hover {
  opacity: 1;
  color: var(--accent-primary);
  transform: scale(1.1);
}

.brand-txt {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* NEWSLETTER */
.newsletter-section {
  padding: 80px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--accent-primary);
  filter: blur(80px);
  opacity: 0.4;
}

.newsletter-box h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 25px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  outline: none;
  transition: border 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--accent-primary);
}

.newsletter-form button {
  padding: 0 35px;
  border-radius: 30px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-transform: uppercase;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(176, 0, 32, 0.3);
}

/* FOOTER PREMIUM */
.footer-premium {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 24px 20px 16px;
  margin-top: 30px;
}

.footer-grid {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.footer-logo img {
  height: 24px;
}

.footer-desc {
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
  font-size: 0.72rem;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1050px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.7rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* RESPONSIVE Adjustments */
@media (max-width: 1024px) {
  .hero-premium {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }

  .hero-content {
    padding-left: 0;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image-wrap {
    min-height: 400px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .store-navbar nav {
    display: none;
  }

  /* Could add hamburger */
  .categories-grid,
  .premium-product-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    padding: 15px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===== CUSTOMER NOTIFICATIONS ===== */
.notif-item {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notif-item.unread {
  background: rgba(193, 27, 23, 0.05) !important;
}

.notif-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== CATEGORY FILTER TABS ===== */
.category-tab {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.category-tab:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(193, 27, 23, 0.06);
}

.category-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(193, 27, 23, 0.35);
}

/* ===== CUSTOMER ACCOUNT DASHBOARD ===== */
.profile-grid-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.profile-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.profile-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #7a0010 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  box-shadow: 0 6px 14px rgba(193, 27, 23, 0.2);
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-username {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-meta-info {
  border-top: 1px solid var(--border-color);
  margin-top: 14px;
  padding-top: 14px;
  text-align: left;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.profile-meta-item i {
  color: var(--text-muted);
  width: 14px;
  text-align: center;
}

.profile-meta-item span {
  word-break: break-all;
}

.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.profile-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(193, 27, 23, 0.08);
  color: var(--accent-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.profile-stat-info .stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.profile-stat-info .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-card-premium {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}

.profile-card-premium h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-info-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.profile-info-field .field-val {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {

  .checkout-grid,
  .profile-split,
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .profile-grid-container {
    grid-template-columns: 1fr;
  }

  .store-hero-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .store-topbar .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .store-search-wrap {
    min-width: 100%;
    order: 3;
    margin-top: 10px;
  }

  .store-navbar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .store-navbar nav a {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .store-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* Make Tables Responsive on Mobile */
  .store-table,
  .cart-table,
  .table-container table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .store-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .store-promo-grid {
    grid-template-columns: 1fr;
  }

  .checkout-split {
    grid-template-columns: 1fr;
  }
}

/* ===== PRODUCT GRID MODERN (products.php) ===== */
.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .product-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .product-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .product-grid-modern {
    grid-template-columns: 1fr;
  }
}

.product-card-modern {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(176, 0, 32, 0.45);
  color: inherit;
}

/* ── Image area ── */
.product-card-modern .card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.product-card-modern .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card-modern:hover .card-image-wrapper img {
  transform: scale(1.06);
}

/* ── Stock badge overlay ── */
.card-stock-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.88);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  pointer-events: none;
  white-space: nowrap;
}

.card-stock-badge.oos {
  background: rgba(239, 68, 68, 0.88);
}

/* ── Info area ── */
.product-card-modern .card-info {
  display: flex;
  flex-direction: column;
  padding: 8px 10px 8px;
  flex: 1;
}

.product-card-modern .card-brand {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 2px;
}

.product-card-modern .card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-modern .card-sku {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Footer row: price + add button ── */
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  gap: 6px;
}

.product-card-modern .card-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(176, 0, 32, 0.35);
}

.product-card-modern:hover .card-add-btn {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(176, 0, 32, 0.5);
}

/* ── Category tabs ── */
.category-tab {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.category-tab:hover {
  border-color: rgba(176, 0, 32, 0.4);
  color: var(--accent-primary);
  background: rgba(176, 0, 32, 0.06);
}

.category-tab.active {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(176, 0, 32, 0.3);
}

/* ── Marketing section header (products.php page title) ── */
.marketing-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.marketing-section-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.marketing-section-header .view-all-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.marketing-section-header .view-all-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* ── Legal Pop-up Modal ── */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out forwards;
}

.legal-modal-content {
  background: #161616;
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.legal-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.legal-modal-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.legal-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.legal-modal-body {
  padding: 22px;
  overflow-y: auto;
  color: #d4d4d8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.legal-modal-body h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 14px 0 6px;
  font-weight: 700;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin: 0 0 10px;
  color: #a1a1aa;
}

/* ===== HIDE NATIVE BROWSER PASSWORD REVEAL & AUTOFILL ICONS ===== */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  right: 0 !important;
}

.password-toggle,
.password-toggle-icon,
.toggle-password {
  user-select: none;
  -webkit-user-select: none;
}