/* ============================================================
   AdepaMarket — Main Stylesheet
   Design: Warm earth tones + vibrant Ghanaian accent palette
   ============================================================ */

:root {
  --clr-primary:   #F04E23;   /* logo orange */
  --clr-primary-d: #C73A14;
  --clr-primary-l: #FFE7DB;
  --clr-secondary: #2A6B4F;   /* forest green */
  --clr-accent:    #FFC94A;   /* warm highlight */
  --clr-dark:      #0F1216;
  --clr-body:      #F9F6F2;
  --clr-surface:   #FFFFFF;
  --clr-border:    #EADFD6;
  --clr-text:      #2C221C;
  --clr-text-muted:#75665A;
  --clr-danger:    #DC3545;
  --clr-success:   #198754;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);

  --transition: all 0.25s ease;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--clr-body);
  color: var(--clr-text);
  line-height: 1.65;
  font-size: 15px;
}

a { color: var(--clr-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--clr-primary-d); }

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

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar-text { color: rgba(255,255,255,0.75); }
.topbar-links a {
  color: rgba(255,255,255,0.65);
  font-size: 12.5px;
}
.topbar-links a:hover { color: var(--clr-accent); }
.topbar-links { position: relative; z-index: 2; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-main {
  background: var(--clr-surface);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  z-index: 1030;
}
.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  max-width: none;
  flex: 0 0 auto;
  margin-right: 10px;
  min-width: 0;
}
.brand-icon { font-size: 22px; }
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 125px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-logo-footer {
  display: block;
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
}
.brand-accent { color: var(--clr-primary); }

.navbar-search {
  display: flex;
  align-items: stretch;
  flex: 0 0 300px;
  width: 300px;
  min-width: 260px;
  max-width: 300px;
  margin: 0 18px;
}
.search-input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  border-right: none;
  background: var(--clr-body);
  font-size: 14px;
  padding: 9px 14px;
}
.search-input:focus { border-color: var(--clr-primary); box-shadow: none; background: #fff; }
.search-btn {
  background: var(--clr-primary);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border: 1.5px solid var(--clr-primary);
  padding: 9px 16px;
}
.search-btn:hover { background: var(--clr-primary-d); color: #fff; }

.btn-account {
  background: transparent; border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  padding: 7px 14px; color: var(--clr-text);
}
.btn-account:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

.btn-cart {
  background: var(--clr-primary); color: #fff;
  border-radius: var(--radius-sm); padding: 8px 16px;
  font-size: 18px; position: relative; border: none;
}
.btn-cart:hover { background: var(--clr-primary-d); color: #fff; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--clr-accent); color: var(--clr-dark);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge:empty { display: none; }

.mobile-menu-body { padding: 16px 0; }
.navbar-toggler { border: none; background: transparent; color: var(--clr-text); }

/* ── Hero Banner ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #111418 0%, #2A1A10 40%, #E35D1F 100%);
  padding: 80px 0 70px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(245,200,66,0.2); color: var(--clr-accent);
  border: 1px solid rgba(245,200,66,0.4);
  border-radius: 50px; font-size: 13px; font-weight: 500;
  padding: 4px 14px; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; color: #fff; line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--clr-accent); font-style: normal; }
.hero p { color: rgba(255,255,255,0.75); font-size: 16.5px; max-width: 480px; }
.hero-cta {
  margin-top: 28px;
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 12px !important;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.hero-cta .btn {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 14px;
  letter-spacing: .01em;
  font-size: 1rem;
  text-decoration: none;
}
.hero-cta .btn i {
  font-size: 1rem;
  opacity: .95;
  flex-shrink: 0;
}
.hero-cta .btn-hero-primary {
  box-shadow: 0 10px 22px rgba(197, 97, 42, 0.28);
}
.hero-cta .btn-hero-secondary {
  background: rgba(255,255,255,0.03);
}

.btn-hero-primary {
  background: var(--clr-primary); color: #fff; border: none;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 15.5px; font-weight: 600; transition: var(--transition);
}
.btn-hero-primary:hover { background: var(--clr-primary-d); color: #fff; transform: translateY(-2px); }
.btn-hero-secondary {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 15.5px; font-weight: 500; transition: var(--transition);
}
.btn-hero-secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

.hero-stats {
  display: flex; gap: 32px; margin-top: 36px;
}
.hero-stat .stat-value {
  display: block; font-size: 28px; font-weight: 700;
  color: var(--clr-accent);
}
.hero-stat .stat-label {
  font-size: 12.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── Section Headings ───────────────────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--clr-dark);
}
.section-sub {
  color: var(--clr-text-muted); font-size: 15px; margin-top: 6px;
}
.section-divider {
  width: 48px; height: 4px; background: var(--clr-primary);
  border-radius: 4px; margin: 10px 0 0;
}

/* ── Category Cards ─────────────────────────────────────────── */
.category-card {
  background: var(--clr-surface); border-radius: var(--radius-lg);
  border: 1.5px solid var(--clr-border);
  padding: 28px 20px; text-align: center;
  transition: var(--transition); cursor: pointer;
  text-decoration: none;
}
.category-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  text-decoration: none;
}
.category-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--clr-primary-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
}
.category-card h6 {
  color: var(--clr-dark); font-weight: 600; margin-bottom: 4px;
}
.category-card small { color: var(--clr-text-muted); }

/* ── Product Cards ──────────────────────────────────────────── */
.product-card {
  background: var(--clr-surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  transition: var(--transition); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
}
.product-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px);
  border-color: rgba(227,93,31,0.30);
}
.product-img-wrap {
  position: relative; background: #f5f0eb;
  aspect-ratio: 4 / 3; overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 8px;
  background: #fff;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--clr-primary); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 50px;
}
.product-badge.sale { background: var(--clr-danger); }
.product-badge.new  { background: var(--clr-secondary); }

.product-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 11px; font-weight: 600; color: var(--clr-primary); text-transform: uppercase; letter-spacing: 0.06em; }
.product-name {
  font-size: 13px; font-weight: 700; color: var(--clr-dark);
  margin: 4px 0 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { margin-top: auto; }
.price-current { font-size: 16px; font-weight: 800; color: var(--clr-primary); }
.price-original {
  font-size: 12px; color: var(--clr-text-muted);
  text-decoration: line-through; margin-left: 6px;
}
.product-footer {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--clr-border);
  display: flex; gap: 8px;
}
.btn-add-cart {
  flex: 1; background: var(--clr-primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700; padding: 7px;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--clr-primary-d); }
.btn-add-cart.loading { opacity: 0.7; pointer-events: none; }
.btn-view-detail {
  background: var(--clr-body); color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm); padding: 7px 10px;
  font-size: 13px; transition: var(--transition);
}
.btn-view-detail:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.btn-wishlist {
  background: var(--clr-body);
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1;
  transition: var(--transition);
}
.btn-wishlist:hover,
.btn-wishlist.is-liked {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: #fff;
}

/* ── Features Strip ─────────────────────────────────────────── */
.features-strip {
  background: var(--clr-surface); border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border); padding: 24px 0;
}
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon { font-size: 28px; }
.feature-item h6 { font-size: 14px; font-weight: 600; margin: 0; color: var(--clr-dark); }
.feature-item small { font-size: 12.5px; color: var(--clr-text-muted); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--clr-primary); color: #fff; border: none;
  padding: 11px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px;
}
.btn-primary-custom:hover { background: var(--clr-primary-d); color: #fff; }

.btn-outline-custom {
  background: transparent; color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 500;
}
.btn-outline-custom:hover { background: var(--clr-primary); color: #fff; }

/* ── Cart Page ──────────────────────────────────────────────── */
.cart-item {
  background: var(--clr-surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border); padding: 16px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px; transition: var(--transition);
}
.cart-item:hover { border-color: rgba(227,93,31,0.20); }
.cart-item-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; color: var(--clr-dark); }
.cart-item-price { color: var(--clr-primary); font-weight: 700; font-size: 16px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px; border: 1.5px solid var(--clr-border);
  background: var(--clr-body); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; transition: var(--transition);
}
.qty-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.qty-input {
  width: 44px; text-align: center; border: 1.5px solid var(--clr-border);
  border-radius: 6px; font-weight: 600; padding: 4px;
}
.cart-summary-card {
  background: var(--clr-surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border); padding: 24px; position: sticky; top: 80px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--clr-border); }
.summary-total { font-size: 20px; font-weight: 700; color: var(--clr-primary); }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-section {
  background: var(--clr-surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border); padding: 28px; margin-bottom: 20px;
}
.checkout-section h5 { font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--clr-border); }

.delivery-option { cursor: pointer; }
.delivery-option input[type="radio"] { display: none; }
.delivery-option-card {
  border: 2px solid var(--clr-border); border-radius: var(--radius-md);
  padding: 18px; transition: var(--transition);
}
.delivery-option input:checked + .delivery-option-card {
  border-color: var(--clr-primary); background: var(--clr-primary-l);
}
.delivery-option-card:hover { border-color: var(--clr-primary); }

/* ── Order Tracking ─────────────────────────────────────────── */
.tracking-timeline { padding: 10px 0; }
.tracking-step { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; position: relative; }
.tracking-step:not(:last-child)::before {
  content: ''; position: absolute; left: 17px; top: 44px;
  width: 2px; height: calc(100% - 10px);
  background: var(--clr-border);
}
.tracking-step.completed::before { background: var(--clr-success); }
.step-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--clr-border); background: var(--clr-body);
  font-size: 14px;
}
.tracking-step.completed .step-icon { background: var(--clr-success); border-color: var(--clr-success); color: #fff; }
.tracking-step.current .step-icon { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.step-content { flex: 1; }
.step-label { font-weight: 600; font-size: 14.5px; }
.step-time { font-size: 12.5px; color: var(--clr-text-muted); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-card {
  background: var(--clr-surface); border-radius: var(--radius-lg);
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow-md); padding: 40px;
}
.form-control, .form-select {
  border: 1.5px solid var(--clr-border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14.5px; background: var(--clr-body);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(227,93,31,0.15); background: #fff;
}
.form-label { font-size: 13.5px; font-weight: 600; color: var(--clr-text); margin-bottom: 6px; }
.invalid-feedback { font-size: 12.5px; }

/* ── Success Page ───────────────────────────────────────────── */
.order-success-card {
  background: var(--clr-surface); border-radius: var(--radius-lg);
  border: 1.5px solid var(--clr-border); padding: 48px; text-align: center;
}
.success-icon { font-size: 72px; margin-bottom: 16px; }
.tracking-code-display {
  background: var(--clr-body); border: 2px dashed var(--clr-primary);
  border-radius: var(--radius-md); padding: 16px 24px;
  font-family: monospace; font-size: 24px; font-weight: 700;
  color: var(--clr-primary); letter-spacing: 4px; display: inline-block;
}

/* ── Product Detail ─────────────────────────────────────────── */
.product-detail-img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; background: #f5f0eb;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-price { font-size: 32px; font-weight: 700; color: var(--clr-primary); }
.stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px; font-size: 12.5px; font-weight: 600;
}
.stock-badge.in-stock { background: #d4edda; color: #155724; }
.stock-badge.low-stock { background: #fff3cd; color: #856404; }
.stock-badge.out-of-stock { background: #f8d7da; color: #721c24; }

/* ── Filter Sidebar ─────────────────────────────────────────── */
.filter-card {
  background: var(--clr-surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border); padding: 20px; position: sticky; top: 80px;
}
.filter-heading { font-weight: 700; margin-bottom: 14px; font-size: 14.5px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--clr-dark); color: rgba(255,255,255,0.7); }
.site-footer .row.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.footer-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand .brand-name { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.6; }
.footer-heading { color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 13px; }
.footer-links a:hover { color: var(--clr-accent); }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.social-link:hover { background: var(--clr-primary); color: #fff; }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.contact-item i { color: var(--clr-accent); width: 16px; flex-shrink: 0; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-badge {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  font-size: 11px; padding: 4px 9px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-copy {
  margin: 0;
  color: rgba(255,255,255,0.56);
  font-size: 14px;
  line-height: 1.5;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}
.footer-bottom a {
  color: rgba(255,255,255,0.58);
  font-size: 14px;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.82); }
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    gap: 18px;
    flex-wrap: wrap;
  }
}

/* ── Toast ──────────────────────────────────────────────────── */
#cartToast { background: var(--clr-dark); color: #fff; border-radius: var(--radius-sm); }
#cartToast.success { background: #1a4731; }
#cartToast.error { background: #5a1a1a; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-primary-custom { color: var(--clr-primary) !important; }
.bg-primary-custom { background: var(--clr-primary) !important; }
.rounded-custom { border-radius: var(--radius-md) !important; }

.page-header {
  background: linear-gradient(135deg, var(--clr-dark) 0%, #3A2010 100%);
  padding: 40px 0; color: #fff;
}
.page-header h1 { font-family: var(--font-display); font-weight: 700; margin: 0; }
.page-header nav .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.page-header nav .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-header nav .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh; background: var(--clr-body);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-side {
  background: linear-gradient(160deg, #2A1A10 0%, var(--clr-primary) 100%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.auth-side p { color: rgba(255,255,255,0.75); }

/* ── Order history / detail ─────────────────────────────────── */
.order-card {
  background: var(--clr-surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border); transition: var(--transition);
}
.order-card:hover { border-color: rgba(227,93,31,0.30); box-shadow: var(--shadow-sm); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero { padding: 52px 0 40px; }
  .hero-stats { gap: 20px; }
  .form-card { padding: 28px 20px; }
  .auth-side { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .order-success-card { padding: 32px 20px; }
  .cart-item { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  .brand-logo { height: 34px; max-width: 102px; }
  .brand-logo-footer { height: 34px; max-width: 140px; }
  .brand-name { font-size: 20px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 10px; }
  .tracking-code-display { font-size: 18px; letter-spacing: 2px; }
  .product-card { border-radius: 10px; }
}

/* Hero side panel to use right-hand space */
.hero-side-panel {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(4px);
  max-width: 420px;
  margin: 0 auto;
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hero-panel-head h5 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}
.hero-discount-badge {
  background: var(--clr-accent);
  color: #111418;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}
.hero-deal-card {
  display: block;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}
.hero-deal-thumb {
  width: min(100%, 300px);
  height: 150px;
  border-radius: 10px;
  border: 1px solid var(--clr-border);
  background: #f7f7f7;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-deal-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-deal-name {
  color: var(--clr-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero-deal-price .new {
  color: var(--clr-primary);
  font-weight: 800;
  margin-right: 8px;
  line-height: 1.1;
}
.hero-deal-price .old {
  color: var(--clr-text-muted);
  text-decoration: line-through;
  font-size: .9rem;
}
.hero-deal-cta {
  margin-top: 4px;
  color: var(--clr-primary);
  font-weight: 700;
  font-size: .92rem;
}
.hero-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.hero-benefits .benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.95);
  font-size: .9rem;
}
.hero-benefits .benefit-item i {
  color: var(--clr-accent);
  font-size: 1rem;
}
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hero-mini-item {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-mini-item .title {
  color: #fff;
  font-size: .8rem;
  line-height: 1.3;
}
.hero-mini-item .price {
  color: var(--clr-accent);
  font-weight: 700;
  font-size: .82rem;
}

@media (max-width: 991.98px) {
  .hero-side-panel {
    margin-top: 8px;
    max-width: 100%;
  }
  .hero-cta {
    grid-template-columns: 1fr 1fr;
  }
  .hero-cta .btn:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 575.98px) {
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    grid-template-columns: 1fr;
    gap: 10px !important;
  }
  .hero-cta .btn:last-child {
    grid-column: auto;
  }
}

/* Category dropdown + Flash sale layout */
.category-dropdown-card {
  background: #fff;
  border: 1px solid #ebdfd2;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.category-dropdown-card h6 {
  font-weight: 800;
  margin: 0;
}
.category-dropdown-card .form-select {
  min-height: 42px;
  border-radius: 10px;
}
.flash-sale-card {
  background: #fff;
  border: 1px solid #ebdfd2;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.flash-sale-expanded {
  min-height: 100%;
}
.flash-sale-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.flash-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.flash-sale-head h6 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #1d1a16;
}
.flash-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #d0471f 0%, #ff7a1f 100%);
  animation: flashBlink 1s infinite;
  box-shadow: 0 0 0 rgba(208, 71, 31, 0.5);
}
@keyframes flashBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(208, 71, 31, 0.5); }
  50% { opacity: .45; box-shadow: 0 0 16px rgba(208, 71, 31, 0.85); }
}
.flash-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flash-countdown .time-box {
  background: #1f1a15;
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 46px;
  text-align: center;
  line-height: 1.05;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.flash-countdown .time-box b {
  display: block;
  font-size: .92rem;
  font-weight: 800;
}
.flash-countdown .time-box small {
  display: block;
  margin-top: 2px;
  font-size: .62rem;
  color: #f5c9ab;
  letter-spacing: .08em;
}
.flash-sale-grid .flash-item-card {
  display: block;
  min-height: 180px;
  border: 1px solid #efe3d7;
  border-radius: 12px;
  background: #fffaf5;
  padding: 10px;
}
.flash-item-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3ece4;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flash-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}
.flash-item-card .flash-item-name {
  color: #2b231e;
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.35;
  min-height: 2.6em;
}
.flash-item-price .new {
  color: #E35D1F;
  font-size: 1.05rem;
  font-weight: 800;
  margin-right: 7px;
}
.flash-item-price .old {
  color: #8f7f72;
  text-decoration: line-through;
  font-size: .85rem;
}

/* Deal of the Day */
.deal-day-box {
  background: linear-gradient(135deg, #fff3e5 0%, #fff 100%);
  border: 1px solid #efcfaa;
  border-radius: 14px;
  padding: 12px;
}
.deal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.deal-day-head h6 {
  font-weight: 800;
  font-size: .96rem;
}
.deal-ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}
.deal-ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: dealTickerMove 9s linear infinite;
}
@keyframes dealTickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.deal-day-badge {
  background: #E35D1F;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.deal-day-link { display: block; }
.deal-day-thumb {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0dfcc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.deal-day-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.deal-day-title {
  color: #2b231e;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.deal-day-price .new {
  color: #E35D1F;
  font-weight: 800;
  margin-right: 8px;
}
.deal-day-price .old {
  color: #8e7b69;
  text-decoration: line-through;
  font-size: .88rem;
}

@media (max-width: 991.98px) {
  .flash-sale-expanded { margin-top: 4px; }
}

/* Flash sale uniform card sizing */
.flash-sale-grid > [class*="col-"] {
  display: flex;
}
.flash-sale-grid .flash-item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 355px;
}
.flash-item-thumb {
  height: 160px;
  min-height: 160px;
  flex: 0 0 auto;
}
.flash-item-card .flash-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.flash-item-price {
  margin-top: auto;
  min-height: 2.2em;
}
.flash-item-price .new,
.flash-item-price .old {
  white-space: nowrap;
}

/* Lucky coupon block */
.lucky-coupon-box {
  border: 2px dashed #cf6a2b;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff0e3 0%, #ffe2c8 55%, #ffd6b1 100%);
  padding: 16px;
  min-height: 300px;
  box-shadow: 0 14px 30px rgba(197, 97, 42, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.lucky-coupon-kicker {
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8d3d12;
  font-weight: 900;
}
.lucky-coupon-code {
  margin-top: 10px;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #d86a28 0%, #b34712 100%);
  border: 1px solid #b34712;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.lucky-coupon-value {
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #312419;
}
.lucky-coupon-note,
.lucky-coupon-tip {
  margin-top: 8px;
  font-size: .95rem;
  color: #5f4837;
}

/* Flash sale cleanup override */
.flash-sale-grid > [class*="col-"] {
  display: block;
}
.flash-sale-grid .flash-item-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 10px;
}
.flash-item-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  background: #f3ece4;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.flash-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.flash-item-card .flash-item-name {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
  min-height: 2.6em;
  margin-bottom: 6px;
}
.flash-item-price {
  margin-top: auto;
}
.flash-item-price .new,
.flash-item-price .old {
  white-space: nowrap;
}


@media (max-width: 1399.98px) {
  .navbar-search {
    flex-basis: 280px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    margin: 0 12px;
  }
}

/* Topbar ticker */
.topbar .container-xl {
  gap: 20px;
}
.topbar-ticker {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 18px;
}
.topbar-ticker-item {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding-left: 100%;
  will-change: transform;
  animation: topbarMarquee 28s linear infinite;
}
@keyframes topbarMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-140%); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-ticker-item { animation: none; padding-left: 0; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--clr-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.back-to-top:hover { background: var(--clr-primary-d); }
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Product reviews and ratings */
.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #f6b51e;
  font-size: 13px;
  line-height: 1;
}
.product-rating,
.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--clr-muted);
  font-size: 12px;
}
.product-detail-rating {
  margin-top: 8px;
  font-size: 14px;
}
.product-detail-rating .rating-stars { font-size: 16px; }
.rating-count { color: var(--clr-muted); }
.reviews-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 3vw, 28px);
}
.reviews-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--clr-border);
}
.reviews-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff8ea;
  border: 1px solid #f0dfbf;
  color: var(--clr-dark);
  font-size: 13px;
}
.review-form-card,
.review-card,
.review-empty {
  background: #fffaf5;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.review-form-card h6 {
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 4px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #16834b;
  font-size: 12px;
  font-weight: 700;
}
.review-list {
  display: grid;
  gap: 12px;
}
.review-card {
  background: #fff;
}
.review-card p {
  color: var(--clr-text);
  line-height: 1.65;
}
.review-empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--clr-muted);
}
.review-empty i {
  font-size: 34px;
  color: var(--clr-primary);
  margin-bottom: 8px;
}
@media (max-width: 575.98px) {
  .product-detail-rating { align-items: flex-start; flex-direction: column; gap: 5px; }
  .reviews-summary-badge { width: 100%; justify-content: center; }
}

/* Premium product discovery */
.products-hero .products-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.products-reset-btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}
.products-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px auto;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.toolbar-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.toolbar-search i {
  position: absolute;
  left: 14px;
  color: var(--clr-primary);
  pointer-events: none;
}
.toolbar-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  padding: 0 14px 0 42px;
  background: #fffaf7;
  color: var(--clr-dark);
}
.toolbar-search input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(227,93,31,0.12);
  background: #fff;
}
.products-toolbar .form-select,
.products-toolbar .btn {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 700;
}
.premium-filter-card {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.filter-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--clr-border);
}
.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.price-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  background: #fffaf7;
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-dark);
}
.filter-toggle input {
  accent-color: var(--clr-primary);
  width: 16px;
  height: 16px;
}
.products-results-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow-sm);
}
.products-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(227,93,31,0.25);
  background: #fff4ec;
  color: var(--clr-dark);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
}
.products-grid-tight .product-card {
  box-shadow: 0 10px 24px rgba(31,20,12,0.05);
}
.empty-products-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px;
}
.empty-products-state i {
  font-size: 46px;
  color: var(--clr-primary);
  margin-bottom: 10px;
}
.products-pagination {
  display: flex;
  justify-content: center;
}
@media (max-width: 991.98px) {
  .products-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar-search {
    grid-column: 1 / -1;
  }
  .premium-filter-card {
    position: static;
  }
}
@media (max-width: 575.98px) {
  .products-toolbar {
    grid-template-columns: 1fr;
  }
  .products-toolbar .btn,
  .products-toolbar .form-select,
  .toolbar-search input {
    width: 100%;
  }
  .products-results-card {
    padding: 12px;
  }
}

/* Payment and order polish */
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payment-option {
  display: block;
  cursor: pointer;
}
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option-card {
  min-height: 104px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: #fffaf7;
  transition: var(--transition);
}
.payment-option input:checked + .payment-option-card {
  border-color: var(--clr-primary);
  background: #fff3ea;
  box-shadow: 0 14px 30px rgba(227,93,31,0.12);
}
.payment-option-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: #fff;
  font-size: 19px;
  flex: 0 0 auto;
}
.payment-option-card strong {
  display: block;
  color: var(--clr-dark);
  margin-bottom: 4px;
}
.payment-option-card small {
  display: block;
  color: var(--clr-muted);
  line-height: 1.45;
}
.order-status-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-alert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #f0d8aa;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff8e8, #fffaf6);
  box-shadow: var(--shadow-sm);
}
.payment-alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5b700;
  color: #1f140c;
  font-size: 24px;
  flex: 0 0 auto;
}
.payment-amount {
  font-weight: 800;
  color: var(--clr-primary);
  white-space: nowrap;
}
.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--clr-border);
}
.order-item-row img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  background: #f5f0eb;
}
.order-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  font-weight: 800;
  font-size: 1.15rem;
}
.order-action-card {
  position: sticky;
  top: 92px;
}
.order-info-list {
  display: grid;
  gap: 10px;
}
.order-info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.order-info-list span {
  color: var(--clr-muted);
  font-size: 13px;
}
.order-info-list strong {
  text-align: right;
  font-size: 13px;
  color: var(--clr-dark);
}
.payment-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}
.pending-payment-panel,
.paid-confirmation-panel {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: #fffaf7;
}
.pending-payment-panel h6 {
  font-weight: 800;
  margin-bottom: 8px;
}
.pending-payment-panel p {
  margin-bottom: 6px;
  font-size: 13px;
}
.paid-confirmation-panel {
  display: grid;
  gap: 4px;
  text-align: center;
  background: #ecf9f1;
  border-color: #c9edd5;
  color: #146c43;
}
.paid-confirmation-panel i {
  font-size: 28px;
}
.orders-history-list {
  display: grid;
  gap: 14px;
}
.order-history-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.order-history-card.needs-payment {
  border-color: #f0d8aa;
  background: linear-gradient(135deg, #fff, #fffaf1);
}
.order-history-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.order-history-price {
  text-align: right;
}
.order-payment-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff3cd;
  color: #785800;
  font-size: 13px;
}
@media (max-width: 767.98px) {
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
  .payment-alert-card,
  .order-history-main {
    align-items: flex-start;
  }
  .payment-alert-card {
    flex-wrap: wrap;
  }
  .order-history-price {
    text-align: left;
  }
  .order-action-card {
    position: static;
  }
}

/* Products catalogue hero contrast fix */
.products-hero {
  color: #fff;
}
.products-hero .eyebrow,
.products-hero h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.28);
}
.products-hero p,
.products-hero .text-muted {
  color: rgba(255,255,255,0.78) !important;
}
.products-hero .products-reset-btn {
  color: #fff4dc;
  border-color: rgba(255,207,61,0.75);
  background: rgba(255,207,61,0.08);
}
.products-hero .products-reset-btn:hover {
  color: #1b130f;
  background: #ffcf3d;
  border-color: #ffcf3d;
}

/* Products catalogue hero hard contrast override */
.page-header.products-hero,
.page-header.products-hero * {
  color: #ffffff;
}
.page-header.products-hero .products-hero-inner > div > p,
.page-header.products-hero p.mb-0,
.page-header.products-hero p.text-muted,
.page-header.products-hero .text-muted {
  color: rgba(255,255,255,0.86) !important;
  opacity: 1 !important;
}
.page-header.products-hero .eyebrow,
.page-header.products-hero h1 {
  color: #ffffff !important;
}
.page-header.products-hero .products-reset-btn,
.page-header.products-hero a.products-reset-btn.btn,
.page-header.products-hero a.products-reset-btn.btn-outline-primary {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.72) !important;
  background: rgba(255,255,255,0.10) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}
.page-header.products-hero .products-reset-btn:hover,
.page-header.products-hero a.products-reset-btn.btn:hover,
.page-header.products-hero a.products-reset-btn.btn-outline-primary:hover {
  color: #20130d !important;
  background: #ffcf3d !important;
  border-color: #ffcf3d !important;
}
