/* ============================================
   MARKETO – Toko Online UMKM Theme
   By IndoKoding.net
   Bootstrap 5.3 + Custom CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────── */
:root {
  --primary:        #F97316;
  --primary-dark:   #EA6C0A;
  --primary-light:  #FFF7ED;
  --primary-mid:    #FED7AA;
  --secondary:      #0F172A;
  --dark:           #0F172A;
  --success:        #16A34A;
  --danger:         #DC2626;
  --warning:        #F59E0B;
  --info:           #0EA5E9;
  --gray-50:        #F8FAFC;
  --gray-100:       #F1F5F9;
  --gray-200:       #E2E8F0;
  --gray-300:       #CBD5E1;
  --gray-400:       #94A3B8;
  --gray-500:       #64748B;
  --gray-700:       #334155;
  --white:          #FFFFFF;

  --font-base:      'Plus Jakarta Sans', sans-serif;
  --radius-sm:      0.375rem;
  --radius:         0.625rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.07);
  --shadow:         0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.11);
  --transition:     all .25s ease;
}

/* ── Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-size: .95rem;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--dark); line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ── Layout ──────────────────────────────── */
.section-padding    { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.bg-gray-50  { background: var(--gray-50) !important; }
.bg-gray-100 { background: var(--gray-100) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: .25rem .85rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  font-family: var(--font-base);
  font-weight: 600;
  border-radius: var(--radius);
  padding: .6rem 1.4rem;
  transition: var(--transition);
  font-size: .9rem;
}
.btn-primary  { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,.3); color: #fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; border-color: #1e293b; transform: translateY(-1px); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); transform: translateY(-1px); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; }
.btn-icon { display: inline-flex; align-items: center; gap: .4rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }

/* ── Topbar ──────────────────────────────── */
.topbar {
  background: var(--dark);
  padding: .45rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
}
.topbar a { color: rgba(255,255,255,.65); }
.topbar a:hover { color: #fff; }
.topbar-divider { color: rgba(255,255,255,.2); margin: 0 .5rem; }

/* ── Navbar ──────────────────────────────── */
#mainNav {
  background: var(--white);
  padding: .75rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark) !important;
  letter-spacing: -.02em;
}
.navbar-brand span { color: var(--primary); }

#mainNav .nav-link {
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-700) !important;
  padding: .4rem .8rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
#mainNav .nav-link:hover, #mainNav .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

/* Search bar */
.nav-search {
  position: relative;
  width: 280px;
}
.nav-search input {
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  padding: .5rem 1rem .5rem 2.5rem;
  font-size: .85rem;
  font-family: var(--font-base);
  width: 100%;
  transition: var(--transition);
  background: var(--gray-50);
}
.nav-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.nav-search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .9rem;
}

/* Nav icon buttons */
.nav-icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}
.nav-icon-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.nav-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* Category mega nav */
.cat-nav {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: .5rem 0;
}
.cat-nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: .35rem .85rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
.cat-nav-link:hover, .cat-nav-link.active { background: var(--primary); color: #fff; }

/* ── Hero ─────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #292524 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(249,115,22,.15) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 100px;
  padding: .3rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: #FED7AA;
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.65); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-img-wrap { position: relative; }
.hero-img-main {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
  animation: float-y 4s ease-in-out infinite;
  min-width: 150px;
}
.hero-float .ic { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.hero-float-1 { bottom: 1.5rem; left: -1rem; animation-delay: 0s; }
.hero-float-2 { top: 1.5rem; right: -1rem; animation-delay: 2s; }
@keyframes float-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── Promo Banner ─────────────────────────── */
.promo-strip {
  background: var(--primary);
  padding: .55rem 0;
  overflow: hidden;
}
.promo-marquee {
  display: flex;
  gap: 4rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.promo-marquee span { font-size: .82rem; font-weight: 600; color: #fff; }
.promo-marquee span::before { content: '🔥 '; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Feature Bar ─────────────────────────── */
.feature-bar {
  background: #fff;
  border-bottom: 1.5px solid var(--gray-200);
  padding: 1.25rem 0;
}
.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-bar-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1.5rem;
  border-right: 1.5px solid var(--gray-200);
}
.feature-bar-item:last-child { border-right: none; }
.feature-bar-item i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.feature-bar-title { font-size: .88rem; font-weight: 700; color: var(--dark); }
.feature-bar-sub   { font-size: .75rem; color: var(--gray-400); margin-top: .05rem; }

@media (max-width: 767.98px) {
  .feature-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-bar-item:nth-child(2) { border-right: none; }
  .feature-bar-item:nth-child(1),
  .feature-bar-item:nth-child(2) { border-bottom: 1.5px solid var(--gray-200); }
  .feature-bar-item { padding: .65rem 1rem; }
}

/* ── Category Cards ──────────────────────── */
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  height: 100%;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.cat-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto .85rem;
  transition: var(--transition);
}
.cat-card:hover .cat-icon { background: var(--primary); }
.cat-card h6 { font-size: .88rem; font-weight: 700; color: var(--dark); margin-bottom: .15rem; }
.cat-card span { font-size: .75rem; color: var(--gray-400); }

/* ── Product Card ────────────────────────── */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gray-300); }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
}
.product-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: .65rem; left: .65rem;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-sale    { background: var(--danger);   color: #fff; }
.badge-new     { background: var(--success);  color: #fff; }
.badge-hot     { background: var(--primary);  color: #fff; }
.badge-limited { background: var(--warning);  color: #fff; }

.product-actions {
  position: absolute;
  top: .65rem; right: .65rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.product-action-btn:hover { background: var(--primary); color: #fff; }

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat { font-size: .72rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.product-name { font-size: .9rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: .4rem; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--primary); }

.product-rating { display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.stars { color: #F59E0B; font-size: .8rem; letter-spacing: .05em; }
.rating-count { font-size: .72rem; color: var(--gray-400); }

.product-price { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.price-now { font-size: 1rem; font-weight: 800; color: var(--primary); }
.price-old { font-size: .8rem; color: var(--gray-400); text-decoration: line-through; }
.price-disc { font-size: .7rem; font-weight: 700; background: #FEE2E2; color: var(--danger); padding: .1rem .4rem; border-radius: 4px; }

.product-footer {
  padding: .65rem 1rem;
  border-top: 1px solid var(--gray-200);
}
.btn-add-cart {
  width: 100%;
  min-width: 0;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .5rem;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-base);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn-add-cart:hover { background: var(--primary); transform: none; }

/* Product detail page: qty + cart + buy row */
.product-buy-row { display: flex; align-items: center; gap: .75rem; flex-wrap: nowrap; }
.product-buy-row .btn-add-cart { flex: 1; min-width: 0; width: auto; }
.product-buy-row .btn { white-space: nowrap; }

/* ── Promo Banner Section ────────────────── */
.promo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 2rem;
}
.promo-card-1 { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
.promo-card-2 { background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%); }
.promo-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(249,115,22,.2) 0%, transparent 70%);
}
.promo-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.3); padding: .2rem .75rem; border-radius: 100px; display: inline-block; margin-bottom: .5rem; }
.promo-card h3 { font-size: 1.5rem; color: #fff; font-weight: 800; margin-bottom: .35rem; }
.promo-card p  { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }

/* ── Cart Table ──────────────────────────── */
.cart-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.cart-table th { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); padding: .75rem 1rem; background: var(--gray-50); border-bottom: 1.5px solid var(--gray-200); }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.cart-product-img { width: 70px; height: 70px; border-radius: var(--radius); object-fit: cover; border: 1.5px solid var(--gray-200); }
.cart-product-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.cart-product-variant { font-size: .78rem; color: var(--gray-400); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 32px; height: 32px; background: var(--gray-50); border: none; font-size: 1rem; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 40px; height: 32px; border: none; border-left: 1.5px solid var(--gray-200); border-right: 1.5px solid var(--gray-200); text-align: center; font-size: .88rem; font-weight: 700; font-family: var(--font-base); color: var(--dark); }
.qty-input:focus { outline: none; }
.btn-remove { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1rem; transition: var(--transition); padding: .25rem; }
.btn-remove:hover { color: var(--danger); }

/* ── Order Summary Card ──────────────────── */
.summary-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--gray-100); font-size: .88rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 1.05rem; font-weight: 800; color: var(--dark); padding-top: .85rem; }
.summary-row.total .amount { color: var(--primary); }

/* ── Coupon Input ────────────────────────── */
.coupon-input { display: flex; gap: .5rem; }
.coupon-input input { flex: 1; border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: .55rem 1rem; font-size: .85rem; font-family: var(--font-base); }
.coupon-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }

/* ── Form Controls ───────────────────────── */
.form-label { font-size: .83rem; font-weight: 700; color: var(--gray-700); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-family: var(--font-base);
  font-size: .88rem;
  color: var(--dark);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.form-section-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); padding-bottom: .5rem; border-bottom: 1.5px solid var(--gray-200); margin-bottom: 1.25rem; }

/* ── Payment Method ──────────────────────── */
.payment-option { display: none; }
.payment-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: .5rem;
}
.payment-option:checked + .payment-label { border-color: var(--primary); background: var(--primary-light); }
.payment-logo { width: 48px; height: 28px; object-fit: contain; border-radius: 4px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }

/* ── Order Status Badge ──────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-pending    { background: #FEF3C7; color: #92400E; }
.status-processing { background: #DBEAFE; color: #1D4ED8; }
.status-shipped    { background: #E0E7FF; color: #4338CA; }
.status-delivered  { background: #D1FAE5; color: #065F46; }
.status-cancelled  { background: #FEE2E2; color: #991B1B; }

/* ── Order Card (list) ───────────────────── */
.order-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}
.order-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }
.order-card-header {
  background: var(--gray-50);
  padding: .85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: .8rem;
}
.order-id { font-weight: 800; color: var(--dark); font-size: .88rem; }
.order-card-body { padding: 1.25rem; }
.order-product-thumb { width: 54px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; border: 1.5px solid var(--gray-200); flex-shrink: 0; }

/* ── Tracking Timeline ───────────────────── */
.tracking-timeline { position: relative; padding-left: 2rem; }
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: .6rem; top: .6rem; bottom: .6rem;
  width: 2px;
  background: var(--gray-200);
}
.tracking-step { position: relative; padding-bottom: 2rem; }
.tracking-step:last-child { padding-bottom: 0; }
.tracking-dot {
  position: absolute;
  left: -1.65rem; top: .15rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gray-200);
  z-index: 1;
}
.tracking-step.done .tracking-dot { background: var(--success); box-shadow: 0 0 0 2px #D1FAE5; }
.tracking-step.active .tracking-dot { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-mid); animation: pulse-ring 1.5s infinite; }
@keyframes pulse-ring { 0%{box-shadow:0 0 0 3px var(--primary-mid)} 50%{box-shadow:0 0 0 6px rgba(249,115,22,.15)} 100%{box-shadow:0 0 0 3px var(--primary-mid)} }
.tracking-step-title { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: .15rem; }
.tracking-step.pending .tracking-step-title { color: var(--gray-400); }
.tracking-step-time  { font-size: .78rem; color: var(--gray-400); margin-bottom: .25rem; }
.tracking-step-desc  { font-size: .82rem; color: var(--gray-500); }

/* ── Invoice ─────────────────────────────── */
.invoice-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 2rem 2.5rem;
}
.invoice-table th { background: var(--gray-50); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); padding: .75rem 1rem; }
.invoice-table td { padding: 1rem; border-bottom: 1px solid var(--gray-100); font-size: .88rem; }
.invoice-total-row { background: var(--primary-light); font-weight: 800; color: var(--dark); }
.invoice-total-row td { border-bottom: none; padding: 1rem; }

/* ── Profile ─────────────────────────────── */
.profile-sidebar {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.profile-sidebar-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  padding: 2rem;
  text-align: center;
}
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 1rem; }
.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.2);
}
.profile-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .75rem;
  cursor: pointer;
  border: 2px solid #fff;
}
.profile-name { font-weight: 800; color: #fff; font-size: 1.05rem; }
.profile-email { font-size: .8rem; color: rgba(255,255,255,.55); }

.profile-menu { padding: .75rem; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
}
.profile-menu-item:hover, .profile-menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
}
.profile-menu-item i { width: 20px; text-align: center; }
.profile-menu-item .badge { margin-left: auto; }

.profile-content {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.profile-content-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-content-header h5 { font-size: 1rem; font-weight: 800; margin: 0; }
.profile-content-body { padding: 1.75rem; }

/* Address card */
.address-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition);
}
.address-card.primary-addr { border-color: var(--primary); }
.address-card:hover { box-shadow: var(--shadow-sm); }
.address-primary-tag { position: absolute; top: .75rem; right: .75rem; font-size: .68rem; font-weight: 700; background: var(--primary); color: #fff; padding: .15rem .55rem; border-radius: 100px; }

/* ── Testimonial ─────────────────────────── */
.testi-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
}
.testi-stars { color: #F59E0B; margin-bottom: .75rem; font-size: .9rem; }
.testi-text { font-size: .88rem; color: var(--gray-500); font-style: italic; line-height: 1.8; margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-author h6 { font-size: .88rem; font-weight: 700; margin: 0; }
.testi-author span { font-size: .75rem; color: var(--gray-400); }

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: 72px 0 0;
}
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; display: inline-block; margin-bottom: .85rem; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: .85rem; line-height: 1.8; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-title { font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.5); display: inline-flex; align-items: center; gap: .35rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: .25rem; }
.footer-links a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.25rem 0; margin-top: 2.5rem; font-size: .8rem; }

/* ── Page Header ─────────────────────────── */
.page-header {
  background: var(--gray-50);
  border-bottom: 1.5px solid var(--gray-200);
  padding: 2rem 0;
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.breadcrumb { background: none; padding: 0; margin: .35rem 0 0; font-size: .8rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item.active { color: var(--gray-700); }

/* ── Back to Top ─────────────────────────── */
#backToTop {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; opacity: 0; transform: translateY(16px);
  transition: var(--transition); z-index: 999;
}
#backToTop.show { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Product Gallery Thumbs ──────────────── */
.product-thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}
.product-thumb:hover, .product-thumb.active { border-color: var(--primary); }

/* ── Variant Buttons ─────────────────────── */
.variant-btn {
  padding: .35rem .9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .83rem;
  font-weight: 600;
  font-family: var(--font-base);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.variant-btn:hover  { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Product detail price + disc badge */
.product-detail-price { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }

/* Info strips */
.product-info-strips { display: flex; flex-direction: column; gap: .5rem; background: var(--gray-50); border-radius: var(--radius-lg); padding: 1rem; border: 1.5px solid var(--gray-200); }
.info-strip { display: flex; align-items: flex-start; gap: .65rem; font-size: .83rem; color: var(--gray-700); }
.info-strip i { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

/* Product Tabs */
.product-tabs .nav-link { font-weight: 600; font-size: .88rem; color: var(--gray-500); border: none; padding: .6rem 1.25rem; border-radius: 0; border-bottom: 2px solid transparent; }
.product-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }

/* Seller Card */
.seller-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.seller-header { display: flex; align-items: center; gap: .85rem; }
.seller-avatar { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; border: 1.5px solid var(--gray-200); }
.seller-name { font-weight: 700; font-size: .95rem; color: var(--dark); }
.seller-location { font-size: .78rem; color: var(--gray-400); margin-top: .15rem; }

/* ── Wishlist Remove Button ──────────────── */
.wishlist-remove-btn {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #FEE2E2;
  border: none;
  color: var(--danger);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}
.wishlist-remove-btn:hover {
  background: var(--danger);
  color: #fff;
  transform: scale(1.1);
}

/* Detail link button in wishlist footer */
.btn-wishlist-detail {
  width: 38px;
  flex-shrink: 0;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-wishlist-detail:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Nav Pills (order filter tabs) ──────── */
.nav-pills .nav-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .4rem 1rem;
  transition: var(--transition);
}
.nav-pills .nav-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.nav-pills .nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Checkout Blocks ─────────────────────── */
.checkout-block {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.checkout-block-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1.5px solid var(--gray-200);
  background: var(--gray-50);
}
.checkout-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checkout-block-body { padding: 1.5rem; }

/* ── Shop Sidebar Filter ─────────────────── */
.shop-filter-panel {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}
.filter-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.filter-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-500);
  margin-bottom: .75rem;
}
.filter-list { display: flex; flex-direction: column; gap: .35rem; }
.filter-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  cursor: pointer;
  color: var(--gray-700);
  padding: .2rem 0;
}
.filter-check input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.filter-count { margin-left: auto; font-size: .72rem; color: var(--gray-400); background: var(--gray-100); padding: .1rem .45rem; border-radius: 100px; }

/* Shop Toolbar */
.shop-toolbar { padding: .85rem 1.25rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200); }

/* ── Feature Cards ───────────────────────── */
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--primary-mid); transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.feature-desc  { font-size: .85rem; color: var(--gray-500); line-height: 1.7; margin: 0; }

/* ── Promo Card Emoji ────────────────────── */
.promo-card-emoji {
  font-size: 5rem;
  line-height: 1;
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  opacity: .25;
  pointer-events: none;
}

/* ── Contact Page ────────────────────────── */
.contact-info-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  height: 100%;
}
.contact-info-card:hover { box-shadow: var(--shadow); border-color: var(--primary-mid); transform: translateY(-4px); }
.contact-info-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
}
.contact-info-card:hover .contact-info-icon { background: var(--primary); color: #fff; }
.contact-info-title { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.contact-info-text  { font-weight: 700; color: var(--primary); margin-bottom: .25rem; font-size: 1rem; }
.contact-map { height: 260px; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--gray-200); }
.contact-address-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.contact-address-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 30% 50%, rgba(249,115,22,.18) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.cta-desc  { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 2rem; }

/* ── Utilities ───────────────────────────── */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-muted { color: var(--gray-400) !important; }
.divider { width: 40px; height: 3px; background: var(--primary); border-radius: 100px; margin: .6rem 0 1.25rem; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 3.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 991.98px) {
  .nav-search { width: 200px; }
  .cat-nav { display: none; }
  .summary-card { position: static; }
}
@media (max-width: 767.98px) {
  .section-padding { padding: 56px 0; }
  .hero-section { min-height: auto; padding: 3rem 0; }
  .hero-img-wrap { display: none; }
  .nav-search { display: none; }
  .topbar .d-flex { justify-content: center; }
}
@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; padding: .5rem 1rem; }
}
