/* ============================================================
   CoreLogic Store — style.css
   Tamamen yeniden yazıldı. Bootstrap 5 üzerine inşa edildi.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --primary:       #0f2942;
  --primary-mid:   #1a3a5c;
  --primary-light: #2563a8;
  --accent:        #f59e0b;
  --accent-hover:  #d97706;
  --accent-soft:   #fef3c7;
  --success:       #059669;
  --danger:        #dc2626;
  --bg:            #f1f5f9;
  --bg-card:       #ffffff;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --border:        #e2e8f0;
  --border-hover:  #cbd5e1;
  --radius-xs:     6px;
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.07);
  --shadow-hover:  0 12px 32px rgba(0,0,0,.13);
  --shadow-lg:     0 20px 48px rgba(0,0,0,.15);
  --transition:    all .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

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

main { flex: 1; }

img { max-width: 100%; }

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 99px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary) !important;
  letter-spacing: -.5px;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: .875rem;
  padding: .4rem .75rem !important;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--bg);
}

/* Search bar in navbar */
.navbar-search {
  position: relative;
  max-width: 340px;
  width: 100%;
}

.navbar-search input {
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: .45rem 1rem .45rem 2.5rem;
  font-size: .875rem;
  background: var(--bg);
  transition: var(--transition);
  width: 100%;
  outline: none;
  color: var(--text);
}

.navbar-search input:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,168,.12);
}

.navbar-search .search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: .9rem;
  pointer-events: none;
}

/* Cart badge */
.cart-btn {
  position: relative;
  background: var(--primary);
  color: #fff !important;
  border-radius: 99px;
  padding: .45rem 1.1rem !important;
  font-weight: 600;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--primary-mid) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 55%, var(--primary-light) 100%);
  min-height: 440px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric decoration */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  right: -150px;
  top: -200px;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245,158,11,.08);
  left: -80px;
  bottom: -100px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  padding: .8rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245,158,11,.35);
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,158,11,.45);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 99px;
  padding: .8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.hero-cta-secondary:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats bar inside hero */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  position: relative;
  padding-left: .9rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .1em;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.section-link:hover { color: var(--primary); gap: .5rem; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  color: var(--primary);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
  transition: var(--transition);
  overflow: hidden;
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: #fff;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

/* Image wrapper */
.product-card__img {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-light);
  font-size: 2.5rem;
}

/* Quick-add overlay on hover */
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,41,66,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__quick-add {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 99px;
  padding: .55rem 1.4rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transform: translateY(8px);
  transition: var(--transition);
}

.product-card:hover .product-card__quick-add {
  transform: translateY(0);
}

.product-card__quick-add:hover {
  background: var(--accent);
  color: #fff;
}

/* Badges */
.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  z-index: 5;
  letter-spacing: .02em;
}

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--success);
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  z-index: 5;
}

/* Body */
.product-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__vendor {
  font-size: .73rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.product-card__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .75rem;
  flex: 1;
  text-decoration: none;
}

.product-card__name:hover { color: var(--primary-light); }

.product-card__price-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.product-card__price--sale {
  color: var(--danger);
}

.product-card__old-price {
  font-size: .82rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-card__add-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .6rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: var(--transition);
}

.product-card__add-btn:hover {
  background: var(--primary-mid);
  transform: none;
}

.product-card__add-btn:active {
  transform: scale(.97);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
}

.product-detail-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-light);
}

.product-badge-cat {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .25rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  margin-bottom: .75rem;
  transition: var(--transition);
}

.product-badge-cat:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.product-vendor-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}

.product-vendor-link:hover { color: var(--primary-light); }

.product-price-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.25rem 0;
  border: 1.5px solid var(--border);
}

.product-price-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
}

.product-price-main.is-sale { color: var(--danger); }

.product-price-old {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: .5rem;
}

.product-price-discount-badge {
  display: inline-block;
  background: #fef2f2;
  color: var(--danger);
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .7rem;
  margin-left: .5rem;
}

.product-stock-ok {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--success);
  font-size: .875rem;
  font-weight: 600;
}

.product-stock-out {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--danger);
  font-size: .875rem;
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-control__btn {
  background: var(--bg);
  border: none;
  width: 38px;
  height: 44px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control__btn:hover {
  background: var(--primary);
  color: #fff;
}

.qty-control__input {
  width: 52px;
  height: 44px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
}

.qty-control__input::-webkit-inner-spin-button,
.qty-control__input::-webkit-outer-spin-button { -webkit-appearance: none; }

.btn-add-to-cart {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: var(--transition);
}

.btn-add-to-cart:hover:not(:disabled) {
  background: var(--primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,41,66,.2);
}

.btn-add-to-cart:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ============================================================
   CART
   ============================================================ */
.cart-table th {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: .9rem 1rem;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.cart-table td {
  vertical-align: middle;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-table tr:last-child td { border-bottom: none; }

.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
}

.cart-item-img-placeholder {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.4rem;
  border: 1.5px solid var(--border);
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  width: fit-content;
}

.quantity-control button {
  background: var(--bg);
  border: none;
  width: 32px;
  height: 36px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .95rem;
  transition: var(--transition);
}

.quantity-control button:hover {
  background: var(--primary);
  color: #fff;
}

.quantity-control input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-remove-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cart-remove-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fef2f2;
}

/* Order Summary box */
.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.order-summary__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  font-size: .9rem;
}

.order-summary__row--total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
  font-weight: 800;
  font-size: 1.1rem;
}

.order-summary__total-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
}

/* Coupon section */
.coupon-section {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.coupon-input-wrap {
  display: flex;
  gap: .5rem;
}

.coupon-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: .55rem .9rem;
  font-size: .9rem;
  outline: none;
  color: var(--text);
  transition: var(--transition);
}

.coupon-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,168,.1);
}

.btn-coupon {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: .55rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-coupon:hover {
  background: var(--primary-mid);
}

/* Checkout button */
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .9rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: var(--transition);
  margin-top: 1.25rem;
  box-shadow: 0 4px 14px rgba(245,158,11,.3);
}

.btn-checkout:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.4);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.checkout-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: .9rem;
  border-bottom: 1.5px solid var(--border);
}

.form-label-custom {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
  display: block;
}

.form-control-custom {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: .65rem .9rem;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  resize: vertical;
}

.form-control-custom:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,168,.1);
}

.form-control-custom::placeholder { color: var(--text-light); }

.payment-demo-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xs);
  padding: .75rem 1rem;
  font-size: .83rem;
  color: #1e40af;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.card-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.card-input-grid.full { grid-template-columns: 1fr; }

.btn-place-order {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(245,158,11,.3);
  margin-top: 1.5rem;
}

.btn-place-order:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
}

/* Checkout summary item */
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.checkout-summary-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.checkout-summary-item__name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.checkout-summary-item__qty {
  font-size: .78rem;
  color: var(--text-muted);
}

.checkout-summary-item__total {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================================
   ORDER SUCCESS
   ============================================================ */
.success-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
}

.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--success);
  margin: 0 auto 1.5rem;
  border: 3px solid #a7f3d0;
}

.success-info-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: left;
  margin: 1.5rem 0 2rem;
  border: 1.5px solid var(--border);
}

.success-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}

.success-info-row:last-child { border-bottom: none; }

.status-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .75rem;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
}

.empty-state__icon {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: block;
}

.empty-state__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.empty-state__text {
  font-size: .875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: .8rem;
  background: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover { color: var(--primary-light); }
.breadcrumb-item.active { color: var(--text); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }

/* ============================================================
   PAGE HEADER (category, search)
   ============================================================ */
.page-header {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.page-header__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-light);
  flex-shrink: 0;
  overflow: hidden;
}

.page-header__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 .25rem;
  letter-spacing: -.02em;
}

.page-header__desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   TOASTS / ALERTS
   ============================================================ */
.toast-container-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toast-custom {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .85rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s cubic-bezier(.4,0,.2,1);
  max-width: 320px;
  min-width: 240px;
}

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

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS (generic)
   ============================================================ */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .65rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: var(--primary-mid);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: .6rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer__brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

.site-footer__brand span { color: var(--accent); }

.site-footer__desc {
  font-size: .85rem;
  line-height: 1.6;
  max-width: 260px;
}

.site-footer__heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .875rem;
  display: block;
  margin-bottom: .4rem;
  transition: var(--transition);
}

.site-footer a:hover {
  color: #fff;
  padding-left: 3px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in-up {
  animation: fadeInUp .5s cubic-bezier(.4,0,.2,1) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: .05s; }
.stagger-2 { animation-delay: .10s; }
.stagger-3 { animation-delay: .15s; }
.stagger-4 { animation-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .order-summary { position: relative; top: 0; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 320px; }
  .hero-title   { font-size: 1.75rem; }
  .hero-stats   { gap: 1.25rem; }

  .product-card__img { aspect-ratio: 3/2; }

  .product-title { font-size: 1.35rem; }
  .product-price-main { font-size: 1.75rem; }

  .cart-table thead { display: none; }
  .cart-table td {
    display: block;
    padding: .5rem 1rem;
    border: none;
  }
  .cart-table tr { border-bottom: 1px solid var(--border); }

  .success-card { padding: 2rem 1.25rem; }

  .card-input-grid { grid-template-columns: 1fr; }

  .page-header { flex-direction: column; align-items: flex-start; }

  .site-footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 575.98px) {
  .section { padding: 2.5rem 0; }
  .navbar-search { max-width: 100%; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-light-c  { color: var(--text-light) !important; }
.bg-primary-c  { background: var(--primary) !important; }
.bg-accent-c   { background: var(--accent) !important; }
.fw-800        { font-weight: 800 !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.border-custom  { border: 1.5px solid var(--border) !important; }

/* ============================================================
   MEGA MENU
   ============================================================ */
.nav-categories { position: static; }
.nav-categories .dropdown-menu {
    width: 100%;
    margin-top: 0;
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-categories:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

.mega-menu-col h6 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.mega-menu-link {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.mega-menu-link:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

/* ============================================================
   NEW CATEGORY CARDS (HOME)
   ============================================================ */
.category-mega-card {
    position: relative;
    border-radius: var(--radius);
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.category-mega-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-mega-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.category-mega-card:hover .category-mega-icon {
    transform: scale(1.1);
}

.category-mega-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.category-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-sub-pill {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.2rem 0.6rem;
    color: var(--text-muted);
}

/* ============================================================
   VENDOR DASHBOARD V2
   ============================================================ */
.vendor-header-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.vendor-header-gradient::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.kpi-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.kpi-blue { background: rgba(37, 99, 168, 0.1); color: var(--primary-light); }
.kpi-green { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.kpi-orange { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.kpi-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.chart-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.alert-panel {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}

.alert-panel-title {
    color: #be123c;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.low-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ffe4e6;
}
.low-stock-item:last-child { border-bottom: none; }