/* ============================================
   CHOICEHUT — Design System
   Palette: deep teal + cream (premium, calm)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  /* Primary — deep teal */
  --primary: #0F766E;
  --primary-dark: #115E59;
  --primary-light: #CCFBF1;
  --primary-hover: #0D9488;

  /* Accent — warm amber */
  --accent: #F59E0B;
  --accent-dark: #D97706;

  /* Backgrounds */
  --bg-body: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-section-alt: #F4F4EE;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-white: #FFFFFF;

  /* Borders */
  --border: #E5E7EB;
  --border-light: #F1F5F9;

  /* Semantic */
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
  --info: #0369A1;
  --bkash-pink: #EB2775;

  /* Typography */
  --font: 'Hind Siliguri', sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.13);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.16);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background-color: var(--bg-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
}

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

::selection {
  background: var(--primary);
  color: #fff;
}

/* ─── Custom Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* ─── Navigation ────────────────────────────────────────── */
.navbar-ch {
  background: var(--bg-dark) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 0.75rem 0;
}

.navbar-ch .navbar-toggler {
  color: #fff;
  border-color: rgba(255,255,255,0.4) !important;
  padding: 0.4rem 0.6rem;
}

.navbar-ch .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
}

.navbar-ch .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-ch .navbar-brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-ch .navbar-brand .brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.navbar-ch .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.navbar-ch .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(255,107,0,0.1);
}

.navbar-ch .search-form {
  flex: 1;
  max-width: 480px;
}

.navbar-ch .search-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  width: 100%;
  transition: all 0.2s ease;
}

.navbar-ch .search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.navbar-ch .search-input:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.2);
}

.navbar-ch .btn-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.navbar-ch .btn-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
}

.navbar-ch .cart-badge {
  background: var(--accent);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

/* Category dropdown */
.navbar-ch .category-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.9rem;
  transition: all 0.15s ease;
}

.navbar-ch .category-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
}

.navbar-ch .category-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  min-width: 220px;
}

.navbar-ch .category-dropdown .dropdown-item {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.1s ease;
}

.navbar-ch .category-dropdown .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #B23A00 100%);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-section h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-section .btn-hero {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  border: none;
  transition: all 0.2s ease;
}

.hero-section .btn-hero:hover {
  background: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-section .trust-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-section .trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-section .trust-badge i {
  color: var(--accent);
  font-size: 1rem;
}

/* ─── Section Headers ───────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 .section-icon {
  color: var(--primary);
}

.section-header .view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.section-header .view-all:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ─── Category Cards ───────────────────────────────────── */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

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

.category-card .cat-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.2s ease;
}

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

.category-card .cat-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
}

.category-card .cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Product Cards ─────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

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

.product-card .product-img-wrap {
  position: relative;
  background: #FAFAFA;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card .discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-card .out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--danger);
  font-size: 0.9rem;
}

.product-card .product-info {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card .product-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-card .product-price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 500;
}

.product-card .product-footer {
  margin-top: auto;
}

.product-card .btn-add-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 100%;
  padding: 0.5rem;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.product-card .btn-add-cart:hover {
  background: var(--primary-dark);
}

.product-card .btn-add-cart.added {
  background: var(--success);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

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

.btn-dark {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  font-family: var(--font);
  font-weight: 600;
}

.btn-dark:hover {
  background: #2A2A4E;
  border-color: #2A2A4E;
}

/* ─── Cards & Surfaces ──────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ─── Page Sections ─────────────────────────────────────── */
.page-section {
  padding: 3rem 0;
}

.page-section.alt {
  background: var(--bg-card);
}

/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* ─── Product Detail ─────────────────────────────────────── */
.pdp-gallery {
  position: sticky;
  top: 80px;
}

.pdp-main-image {
  background: #FAFAFA;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pdp-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
  object-fit: cover;
}

.pdp-thumb:hover,
.pdp-thumb.active {
  border-color: var(--primary);
}

.pdp-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.pdp-price-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}

.pdp-discount {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

.pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.875rem;
}

.pdp-stock.in-stock {
  color: var(--success);
}

.pdp-stock.low-stock {
  color: var(--warning);
}

.pdp-stock.out-of-stock {
  color: var(--danger);
}

.pdp-add-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  width: 100%;
  transition: all 0.2s ease;
}

.pdp-add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
}

/* ─── Trust Icons (product page) ────────────────────────── */
.trust-icon-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0;
}

.trust-icon-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-icon-item i {
  color: var(--success);
  font-size: 1rem;
}

/* ─── Cart Page ──────────────────────────────────────────── */
.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: box-shadow 0.15s ease;
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #FAFAFA;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.cart-summary h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary .total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.cart-summary .total-row.grand {
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.cart-summary .total-row.grand .amount {
  color: var(--primary);
}

/* ─── Checkout ──────────────────────────────────────────── */
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.checkout-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
  font-family: var(--font);
  margin-top: 4rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
}

.footer h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: all 0.15s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  margin-top: 2.5rem;
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.payment-icon {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.payment-icon.bkash { color: var(--bkash-pink); background: rgba(235,39,117,0.15); }
.payment-icon.cod { color: var(--success); background: rgba(0,166,81,0.15); }

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── Order Confirmation ────────────────────────────────── */
.order-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0,166,81,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--success);
  font-size: 2.5rem;
}

.order-number-display {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  letter-spacing: 1px;
}

/* ─── Filter Sidebar ──────────────────────────────────── */
.filter-sidebar .filter-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.filter-sidebar .filter-group-header {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: #FAFAFA;
  border-bottom: 1px solid var(--border);
}

.filter-sidebar .filter-group-body {
  padding: 0.75rem 1rem;
}

.filter-sidebar .form-check-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-sidebar .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
  gap: 4px;
}

.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  transition: all 0.15s ease;
}

.page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ─── Alert / Messages ─────────────────────────────────── */
.alert {
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(0,166,81,0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: rgba(211,47,47,0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: rgba(245,124,0,0.1);
  border-color: var(--warning);
  color: var(--warning);
}

/* ─── Sort Bar ──────────────────────────────────────────── */
.sort-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sort-bar label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.sort-bar .form-select {
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ─── Quantity Selector ─────────────────────────────────── */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-selector button {
  background: var(--bg-section-alt);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: background 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-selector button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.qty-selector input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  height: 36px;
  outline: none;
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
}

/* ─── Loading / Skeleton ──────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-ch .search-form {
    max-width: 100%;
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar-ch .d-flex.gap-3 {
    gap: 0.75rem !important;
  }

  .pdp-gallery {
    position: static;
  }

  .cart-summary {
    position: static;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .product-card .product-name {
    font-size: 0.82rem;
  }

  .product-card .product-info {
    padding: 0.65rem;
  }

  .page-section {
    padding: 2rem 0;
  }

  .footer {
    padding: 2rem 0 0;
  }
}

/* ─── Product Description ───────────────────────────────── */
.product-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-description ul {
  padding-left: 1.25rem;
}

.product-description li {
  margin-bottom: 0.35rem;
}

/* ─── Product List Count ────────────────────────────────── */
.product-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}
