/* Vishwasri Trends Customer Website CSS */
:root {
  --primary: #6C1C8F;
  --primary-light: #8B2CB3;
  --accent: #C0392B;
  --text: #1a1a2e;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f8f5ff;
  --border: #eee;
  --card-radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', -apple-system, sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  font-size: .82rem;
  font-weight: 500;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  z-index: 1000;
}

/* Navbar row */
.site-navbar { padding: 0; }
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary) !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-name { display: inline; }
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem;
  flex-shrink: 0;
}
.brand-icon.small { width: 28px; height: 28px; font-size: .75rem; }

/* Desktop search */
.header-search-wrap {
  flex: 1;
  max-width: 480px;
}

/* Right actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  position: relative;
}

/* Icon buttons */
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border: none; background: none;
  font-size: 1.15rem; color: var(--text);
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--bg-light); color: var(--primary); }
.cart-count {
  position: absolute; top: 1px; right: 1px;
  background: var(--accent); color: #fff;
  font-size: .58rem; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* User dropdown */
.user-dropdown {
  position: absolute; top: 44px; right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  min-width: 185px;
  overflow: hidden;
  z-index: 9999;
}
.user-dropdown a {
  display: block; padding: 11px 18px;
  font-size: .87rem; color: var(--text);
  transition: background .15s; text-decoration: none;
}
.user-dropdown a:hover { background: var(--bg-light); color: var(--primary); }

/* Mobile search bar (below navbar) */
.mobile-search-bar {
  padding: 6px 0 8px;
  background: #fff;
  border-top: 1px solid #f2f2f2;
}

/* Legacy hidden */
.search-bar-row { display: none; }

/* ── MOBILE HEADER TWEAKS ──────────────────────────────── */
@media (max-width: 767px) {
  .navbar-inner { padding: 8px 0; gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-icon { width: 32px; height: 32px; font-size: .85rem; }
  /* Announcement bar shorter on mobile */
  .announcement-bar { font-size: .75rem; padding: 5px 12px; }
}
.search-wrap {
  display: flex; align-items: center;
  background: #f5f5f8; border-radius: 25px;
  border: 2px solid #eee; overflow: hidden;
  transition: border-color .2s; width: 100%;
}
.search-wrap:focus-within { border-color: var(--primary); background: #fff; }
.search-icon { padding: 0 10px; color: #aaa; font-size: .9rem; }
.search-input { flex: 1; border: none; background: none; padding: 8px 4px; font-size: .88rem; outline: none; min-width: 0; }
.search-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none;
  padding: 8px 18px; font-size: .84rem; font-weight: 600;
  cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.search-btn:hover { opacity: .9; }

/* Category Nav */
.cat-nav-row { border-top: 1px solid #f0f0f0; overflow-x: auto; }
.cat-nav { display: flex; gap: 5px; padding: 8px 0; white-space: nowrap; }
.cat-nav-item {
  padding: 6px 16px; border-radius: 20px;
  font-size: .82rem; font-weight: 600; color: #555;
  transition: all .2s; white-space: nowrap;
}
.cat-nav-item:hover, .cat-nav-item.active { background: var(--primary); color: #fff; }

/* Hero / Banner Carousel */
.hero-section { background: #f8f8f8; }

/* Banner slide wrapper — maintains aspect ratio, no crop */
.banner-slide-wrap {
  width: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Desktop: fixed comfortable height */
  height: 420px;
}
.banner-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* full image visible, no crop */
  display: block;
}

/* Default slide (no banner uploaded yet) */
.hero-slide.default-slide {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.hero-content { text-align: center; color: #fff; padding: 40px 20px; }
.hero-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.hero-content p { font-size: 1.05rem; opacity: .9; margin-bottom: 25px; }
.btn-hero {
  background: #fff; color: var(--primary);
  padding: 12px 30px; border-radius: 30px;
  font-weight: 700; font-size: .95rem;
  transition: all .3s; display: inline-block;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); color: var(--primary); }

/* Mobile banner — shorter, full image still visible */
@media (max-width: 767px) {
  .banner-slide-wrap { height: 200px; }
  .hero-slide.default-slide { height: 260px; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: .9rem; }
}

/* Sections */
.section-gap { padding: 50px 0; }
.bg-light-custom { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 35px; }
.section-header h2 { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.section-header p { color: var(--text-light); margin: 5px 0 0; }

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}
.cat-card {
  text-align: center; cursor: pointer;
  transition: transform .2s;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-img {
  width: 100%; aspect-ratio: 1;
  border-radius: 16px; overflow: hidden;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; font-size: 2rem; color: var(--primary);
  box-shadow: var(--shadow);
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: .82rem; font-weight: 600; color: var(--text); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
@media (max-width: 576px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.product-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .25s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.product-img {
  width: 100%; aspect-ratio: 1;
  overflow: hidden; position: relative;
  background: #f8f8f8;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.product-info { padding: 12px; }
.product-name { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-pack { font-size: .75rem; color: var(--text-light); margin-bottom: 5px; }
.product-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-current { font-size: .95rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: .8rem; color: #aaa; text-decoration: line-through; }
.price-discount { font-size: .75rem; color: #27ae60; font-weight: 600; }
.btn-add-cart, .btn-add-to-cart {
  width: 100%; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 0 0 var(--card-radius) var(--card-radius);
  padding: 9px; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}
.btn-add-cart:hover, .btn-add-to-cart:hover { opacity: .9; }

/* Feature Cards */
.feature-card { padding: 25px 15px; }
.feature-icon {
  width: 60px; height: 60px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.4rem; color: var(--primary);
}
.feature-card h6 { font-weight: 700; margin-bottom: 5px; }
.feature-card p { font-size: .83rem; color: var(--text-light); margin: 0; }

/* Cart Drawer */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 380px; max-width: 95vw;
  background: #fff; z-index: 2001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s;
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h5 { margin: 0; font-weight: 700; }
.cart-header button { border: none; background: none; font-size: 1.2rem; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 15px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #f8f8f8; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .88rem; font-weight: 600; margin-bottom: 3px; }
.cart-item-var { font-size: .78rem; color: var(--text-light); }
.cart-item-price { font-size: .9rem; font-weight: 700; color: var(--primary); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid #ddd; background: #f8f8f8; border-radius: 6px; cursor: pointer; font-size: .9rem; }
.qty-val { font-size: .88rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.cart-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.btn-checkout {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(108,28,143,0.3); }

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 24px; font-weight: 600;
  transition: all .2s;
}
.btn-brand:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.btn-outline-brand {
  border: 2px solid var(--primary); color: var(--primary);
  background: none; border-radius: 25px;
  padding: 10px 28px; font-weight: 600;
  transition: all .2s; display: inline-block;
}
.btn-outline-brand:hover { background: var(--primary); color: #fff; }

/* Footer */
.site-footer-bottom { background: #1a1a2e; color: #aaa; padding: 40px 0 20px; }
.footer-links { list-style: none; padding: 0; margin: 10px 0 0; }
.footer-links li a { color: #aaa; font-size: .85rem; line-height: 2; }
.footer-links li a:hover { color: #fff; }

/* Modals */
.modal-content { border-radius: 16px; border: none; }

/* Breadcrumb */
.breadcrumb-section { background: var(--bg-light); padding: 12px 0; }
.breadcrumb { margin: 0; font-size: .83rem; }
.breadcrumb-item a { color: var(--primary); }

/* Product Page */
.product-gallery-main { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f8f8f8; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 65px; height: 65px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Checkout page */
.checkout-section { padding: 30px 0; }
.checkout-card { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.checkout-card h6 { font-weight: 700; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.address-option { border: 2px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: pointer; transition: all .2s; }
.address-option:hover, .address-option.selected { border-color: var(--primary); background: var(--bg-light); }
.order-item-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item-row img { width: 55px; height: 55px; object-fit: cover; border-radius: 8px; }

/* Filter sidebar */
.filter-sidebar { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); position: static; }
.filter-group { margin-bottom: 20px; }
.filter-group h6 { font-weight: 700; font-size: .9rem; margin-bottom: 10px; }

/* Scroll */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* ===================== ADDITIONAL STYLES ===================== */

/* Page Wrapper */
.page-wrapper { min-height: 70vh; }

/* Breadcrumb Bar */
.breadcrumb-bar { background: var(--bg-light); padding: 10px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-bar .breadcrumb { font-size: .82rem; margin: 0; }
.breadcrumb-bar .breadcrumb-item a { color: var(--primary); text-decoration: none; }

/* Filter Sidebar (Products Page) */
.filter-sidebar { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); position: static; }
.filter-block { margin-bottom: 20px; }
.filter-title { font-weight: 700; font-size: .88rem; margin-bottom: 10px; color: #333; text-transform: uppercase; letter-spacing: .5px; }
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; padding: 3px 0; }
.filter-check input { accent-color: var(--primary); }
.filter-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; padding: 3px 0; }
.filter-radio input { accent-color: var(--primary); }

/* Filter Tags */
.filter-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: .8rem; }
.filter-tag a { cursor: pointer; color: #e74c3c; font-weight: 700; }
.filter-tag.clear-all { background: #fde; border-color: #e74c3c; color: #e74c3c; cursor: pointer; }

/* Active Filters */
.active-filters { min-height: 30px; }

/* View Toggle */
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.view-btn { border: none; background: #fff; padding: 5px 10px; cursor: pointer; color: #999; }
.view-btn.active { background: var(--primary); color: #fff; }

/* Products Top Bar */
.products-topbar { padding: 10px 0; }

/* Product Grid Layouts */
.product-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; }
.product-list-view { display: flex; flex-direction: column; gap: 12px; }
.product-list-view .product-card { display: flex; flex-direction: row; gap: 16px; align-items: center; }
.product-list-view .product-card .product-img-wrap { width: 120px; min-width: 120px; height: 120px; border-radius: 10px; }
.product-list-view .product-card-body { flex: 1; }

/* Mobile Filter Panel */
.mobile-filter-panel { background: #fff; border-radius: var(--card-radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }

/* Product Detail */
.product-gallery { position: static; }
.main-image-wrap { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-light); aspect-ratio: 1; }
.main-image { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; z-index: 2; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb-item { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.thumb-item.active { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { padding: 0 8px; }
.product-category-tag { font-size: .82rem; margin-bottom: 6px; }
.product-category-tag a { color: var(--primary); text-decoration: none; }
.product-detail-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.product-price-wrap { margin: 10px 0; }
.product-price { font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.product-price-old { font-size: 1rem; color: #999; text-decoration: line-through; margin-left: 8px; }
.pack-info-box { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 10px 14px; margin: 12px 0; display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.variations-wrap { margin: 16px 0; }
.variation-group { margin-bottom: 14px; }
.variation-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variation-btn { border: 2px solid var(--border); background: #fff; border-radius: 6px; padding: 6px 14px; font-size: .85rem; cursor: pointer; transition: all .2s; }
.variation-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.variation-btn:hover:not(.selected) { border-color: var(--primary); color: var(--primary); }
.selected-val { font-weight: 600; color: var(--primary); }
.qty-wrap { margin: 16px 0; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { border: none; background: var(--bg-light); padding: 8px 14px; font-size: 1.1rem; cursor: pointer; }
.qty-btn:hover { background: #e9e9e9; }
.qty-input { border: none; width: 50px; text-align: center; font-weight: 600; outline: none; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-add-cart { background: var(--primary); border: none; color: #fff; border-radius: 10px; padding: 12px 28px; font-weight: 600; flex: 1; }
.btn-add-cart:hover { opacity: .9; color: #fff; }
.btn-buy-now { border: 2px solid var(--primary); color: var(--primary); border-radius: 10px; padding: 12px 28px; font-weight: 600; flex: 1; background: transparent; }
.btn-buy-now:hover { background: var(--primary); color: #fff; }
.product-description { font-size: .9rem; line-height: 1.7; color: #555; }
.description-text { max-height: 200px; overflow-y: auto; }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: fixed; top: 16px; right: 20px; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.2rem; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.3rem; padding: 12px; cursor: pointer; border-radius: 8px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Checkout */
.checkout-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.checkout-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-light); }
.checkout-card-header h6 { font-weight: 700; margin: 0; }
.checkout-card-body { padding: 16px 20px; }
.address-card { border: 2px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all .2s; }
.address-card:hover { border-color: var(--primary); }
.address-card.selected { border-color: var(--primary); background: #fdf0f7; }
.addr-type-badge { font-size: .72rem; text-transform: capitalize; }
.payment-option { display: flex; align-items: center; border: 2px solid var(--primary); border-radius: 8px; padding: 12px 16px; cursor: pointer; background: #fdf0f7; }
.place-order-btn { background: var(--primary); border: none; color: #fff; border-radius: 12px; padding: 14px; font-size: 1.05rem; font-weight: 700; }
.place-order-btn:hover { opacity: .9; color: #fff; }
.order-summary-card { position: static; }
.order-items { max-height: 280px; overflow-y: auto; padding-right: 4px; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.order-item-info { flex: 1; }
.order-item-name { font-size: .85rem; font-weight: 600; margin: 0; }
.order-item-qty { font-size: .78rem; color: #999; margin: 0; }
.order-item-price { font-weight: 700; white-space: nowrap; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.total-row { font-weight: 700; font-size: 1.1rem; }
.trust-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #666; }
.trust-item i { color: var(--primary); }

/* Orders Page */
.profile-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.profile-sidebar { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: static; }
.profile-avatar-block .profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.profile-nav { display: flex; flex-direction: column; gap: 4px; }
.profile-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #555; text-decoration: none; font-size: .9rem; transition: all .2s; }
.profile-nav-item:hover, .profile-nav-item.active { background: var(--bg-light); color: var(--primary); }
.profile-nav-item i { width: 18px; }
.profile-content { min-width: 0; }
.order-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.order-tab { border: none; background: none; padding: 6px 14px; border-radius: 20px; font-size: .85rem; cursor: pointer; color: #666; }
.order-tab:hover { background: var(--bg-light); }
.order-tab.active { background: var(--primary); color: #fff; }
.order-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; border: 2px solid transparent; }
.order-card-new { border-color: var(--primary); }
.order-card-header { padding: 14px 16px; background: var(--bg-light); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.order-id { font-weight: 700; font-size: .9rem; }
.order-date { font-size: .8rem; }
.order-card-body { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-items-preview { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.order-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.more-items { font-size: .8rem; color: #999; }
.order-summary-text { text-align: right; font-size: .85rem; }
.order-card-footer { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.order-status-badge { padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; text-transform: capitalize; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cff4fc; color: #055160; }
.status-shipped { background: #d0d6ff; color: #2e3196; }
.status-delivered { background: #d1e7dd; color: #0a3622; }
.status-cancelled { background: #f8d7da; color: #842029; }
.order-detail-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-detail-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* Profile Page */
.address-manage-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; height: 100%; }
.profile-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* Search Page */
.search-page-bar { max-width: 600px; }

/* Empty State */
.empty-state { padding: 40px 0; }

/* Admin additions */
.customer-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.customer-avatar-lg { width: 70px; height: 70px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.stat-mini { background: var(--bg-light); border-radius: 10px; padding: 14px; text-align: center; }
.stat-mini-val { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.stat-mini-label { font-size: .75rem; color: #999; margin-top: 2px; }
.banner-card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow); overflow: hidden; }
.banner-img-wrap { position: relative; }
.banner-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.banner-order-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 20px; }
.banner-info { padding: 12px 14px; }
.empty-state-card { background: var(--bg-light); border-radius: var(--card-radius); }

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; }

/* Responsive */
@media (max-width: 768px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .product-detail-title { font-size: 1.2rem; }
  .product-price { font-size: 1.3rem; }
  .product-actions { flex-direction: column; }
  .btn-add-cart, .btn-buy-now { padding: 12px 16px; flex: none; width: 100%; }
}
@media (max-width: 480px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .order-card-body { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PRODUCT DETAIL PAGE (pd- prefix)
   ============================================================ */
.pd-gallery { position: static; }

.pd-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f8f8;
  cursor: zoom-in;
}
.pd-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* contain so full product shows */
  display: block;
  transition: transform .3s;
}
.pd-main-img-wrap:hover .pd-main-img { transform: scale(1.03); }

.pd-zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.4); color: #fff;
  border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; pointer-events: none;
}

.pd-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: none;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; z-index: 2;
}
.pd-nav-btn.prev { left: 10px; }
.pd-nav-btn.next { right: 10px; }

.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.gallery-thumb {
  width: 58px; height: 58px; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; flex-shrink: 0;
  background: #f8f8f8;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info */
.pd-info { padding: 4px 0; }
.pd-category { font-size: .82rem; margin-bottom: 6px; }
.pd-category a { color: var(--primary); text-decoration: none; }
.pd-title { font-size: 1.45rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--text); }

.pd-price { margin: 12px 0; }
.price-current.large { font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: 1rem; color: #aaa; text-decoration: line-through; margin-left: 6px; }

.pack-info-box {
  background: #fff8e1; border: 1px solid #ffe082;
  border-radius: 8px; padding: 10px 14px; margin: 12px 0;
  font-size: .88rem; display: flex; align-items: center;
}

/* Variations */
.pd-variations { margin: 16px 0; }
.pd-variation-group { margin-bottom: 14px; }
.var-btn {
  border: 2px solid var(--border); background: #fff;
  border-radius: 8px; padding: 6px 16px; font-size: .85rem;
  cursor: pointer; transition: all .2s;
}
.var-btn.selected, .var-btn:hover { border-color: var(--primary); color: var(--primary); background: #fdf0f7; }
.var-btn.selected { background: var(--primary); color: #fff; }

/* Qty */
.pd-qty-row { display: flex; align-items: center; margin: 16px 0; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { border: none; background: var(--bg-light); padding: 8px 14px; font-size: 1rem; cursor: pointer; }
.qty-btn:hover { background: #e5e5e5; }
.qty-input { border: none; width: 48px; text-align: center; font-weight: 700; outline: none; font-size: 1rem; }

/* Actions */
.pd-actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.pd-btn-cart {
  flex: 1; min-width: 140px;
  background: var(--primary); border: 2px solid var(--primary);
  color: #fff; border-radius: 12px; padding: 13px 20px;
  font-weight: 700; font-size: 1rem; transition: all .2s;
}
.pd-btn-cart:hover { opacity: .9; color: #fff; }
.pd-btn-cart:disabled { opacity: .5; cursor: not-allowed; }
.pd-btn-buy {
  flex: 1; min-width: 140px;
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent; border-radius: 12px; padding: 13px 20px;
  font-weight: 700; font-size: 1rem; transition: all .2s;
}
.pd-btn-buy:hover { background: var(--primary); color: #fff; }

/* Description */
.pd-description { border-top: 1px solid var(--border); padding-top: 16px; }
.pd-desc-text { font-size: .9rem; line-height: 1.8; color: #555; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.93); z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lightbox-close { position: fixed; top: 14px; right: 18px; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.1rem; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.2rem; padding: 12px 16px; cursor: pointer; border-radius: 8px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Related section title */
.section-title { font-weight: 700; font-size: 1.15rem; }

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 991px) {
  .header-search-wrap { max-width: 100%; }
}
@media (max-width: 767px) {
  .pd-title { font-size: 1.1rem; }
  .price-current.large { font-size: 1.3rem; }
  .pd-main-img-wrap { max-height: 260px; }
  .pd-actions { flex-direction: column; }
  .pd-btn-cart, .pd-btn-buy { width: 100%; text-align: center; }
}

/* ============================================================
   BOTTOM NAVIGATION – mobile only (d-md-none hides on ≥768px)
   ============================================================ */

/* Push page content up so last section isn't hidden behind bottom nav */
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  /* Extra padding on product page because action bar sits above nav */
  body.has-pd-bar { padding-bottom: 128px; }
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #ebebeb;
  display: flex;
  align-items: stretch;
  z-index: 1050;
  /* Safe area for notched iPhones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #999;
  text-decoration: none;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bn-item i {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .15s;
}
.bn-item.active {
  color: var(--primary);
}
.bn-item.active i {
  transform: translateY(-1px);
}
.bn-item:active i { transform: scale(.88); }

/* Cart button – slightly bigger, highlighted */
.bn-cart .bn-cart-icon {
  position: relative;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;  /* lifts above the nav bar */
  box-shadow: 0 4px 14px rgba(123,45,139,.45);
  transition: transform .15s;
}
.bn-cart .bn-cart-icon i {
  font-size: 1.1rem;
  color: #fff;
}
.bn-cart:active .bn-cart-icon { transform: scale(.9); }

.bn-cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #e74c3c;
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

.bn-cart span:last-child { font-size: .62rem; color: #999; }

/* ============================================================
   PRODUCT PAGE – sticky Add to Cart / Buy Now bar (mobile)
   ============================================================ */
.pd-bottom-bar {
  position: fixed;
  bottom: 60px;   /* sits directly above bottom nav */
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #ebebeb;
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1049;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
.pd-bottom-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.pd-bottom-btn:active { transform: scale(.97); opacity: .88; }
.pd-bottom-cart {
  background: var(--primary);
  color: #fff;
}
.pd-bottom-buy {
  background: transparent;
  border: 2px solid var(--primary) !important;
  color: var(--primary);
}

/* Hide the inline product action buttons on mobile since bottom bar replaces them */
@media (max-width: 767px) {
  .pd-actions { display: none !important; }
}

/* ============================================================
   MOBILE HOMEPAGE FONT & SPACING FIXES (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* Section spacing — tighter on mobile */
  .section-gap { padding: 28px 0; }
  .bg-light-custom.section-gap { padding: 28px 0; }

  /* Section headings */
  .section-header { margin-bottom: 18px; }
  .section-header h2 { font-size: 1.15rem; font-weight: 800; }
  .section-header p { font-size: .8rem; margin-top: 3px; }

  /* Category grid — more columns, smaller cards */
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
  }
  .cat-img {
    border-radius: 12px;
    font-size: 1.4rem;  /* icon inside */
    margin-bottom: 5px;
  }
  .cat-name { font-size: .72rem; }

  /* Product cards — compact */
  .product-grid { gap: 8px; }
  .product-info { padding: 8px 8px 4px; }
  .product-name { font-size: .78rem; margin-bottom: 3px; -webkit-line-clamp: 2; }
  .product-pack { font-size: .68rem; }
  .price-current { font-size: .85rem; }
  .price-original { font-size: .72rem; }
  .btn-add-cart, .btn-add-to-cart { padding: 7px; font-size: .74rem; }

  /* Why-choose-us feature cards */
  .feature-card { padding: 14px 8px; }
  .feature-icon {
    width: 44px; height: 44px;
    font-size: 1.1rem; margin-bottom: 8px;
  }
  .feature-card h6 { font-size: .82rem; margin-bottom: 3px; }
  .feature-card p { font-size: .73rem; }

  /* Footer */
  .site-footer-bottom { padding: 24px 0 16px; }
  .site-footer-bottom h5,
  .site-footer-bottom h6 { font-size: .88rem; margin-bottom: 6px; }
  .footer-links li a { font-size: .78rem; line-height: 1.9; }

  /* View-all button */
  .btn-outline-brand { padding: 8px 20px; font-size: .84rem; }
}

/* ── MOBILE NAVBAR: centered brand ─────────────────────────── */
@media (max-width: 767px) {
  .navbar-inner {
    justify-content: center;
    position: relative;
  }
  .navbar-brand {
    /* Take full width so text centers naturally */
    flex: 1;
    justify-content: center;
  }
  /* Hide the right-actions wrapper on mobile entirely
     (no icons left after removing search; desktop icons already d-none) */
  .navbar-actions { display: none; }
}

/* ============================================================
   LIVE SEARCH DROPDOWN AUTOCOMPLETE
   ============================================================ */
.search-dropdown {
  display: none;          /* hidden when empty */
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  border: 1px solid #eee;
  overflow: hidden;
  z-index: 2000;
  max-height: 420px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }

/* Loading / empty states */
.sd-loading, .sd-empty {
  padding: 14px 16px;
  font-size: .88rem;
  color: #888;
}

/* Each result row */
.sd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid #f5f5f5;
}
.sd-item:last-of-type { border-bottom: none; }
.sd-item:hover { background: #fdf0f7; }

/* Thumbnail */
.sd-img {
  width: 46px; height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f5f5;
}

/* Text info */
.sd-info { flex: 1; min-width: 0; }
.sd-name {
  font-size: .88rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-cat {
  font-size: .74rem;
  color: #aaa;
  margin-top: 2px;
}
.sd-highlight {
  color: var(--primary);
  font-weight: 700;
  background: none;
}

/* Price */
.sd-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* "View all results" footer */
.sd-footer {
  padding: 11px 16px;
  font-size: .84rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  background: #faf5ff;
  border-top: 1px solid #eee;
  transition: background .12s;
}
.sd-footer:hover { background: #f0e6ff; }

/* Mobile: dropdown sits inside .mobile-search-bar container */
.mobile-search-bar { position: relative; }
.mobile-search-bar .search-dropdown {
  left: 12px; right: 12px;  /* match container padding */
  top: calc(100% + 2px);
}

/* Scrollbar styling */
.search-dropdown::-webkit-scrollbar { width: 4px; }
.search-dropdown::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }