/* ==========================================================================
   chawwanni E-Commerce - Amazon Scale Modern Design System
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --primary-navy: #0f1117;
  --header-bg: #131921;
  --nav-sub-bg: #232f3e;
  --accent-gold: #ff9900;
  --accent-orange: #ff6000;
  --accent-yellow: #febd69;
  --accent-cyan: #00d2ff;
  --accent-green: #00c853;
  --accent-red: #ff3b30;

  /* Surfaces & Neutral - Light Mode Default */
  --bg-main: #f3f4f8;
  --bg-card: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Modal backdrop */
  --overlay-bg: rgba(15, 23, 42, 0.65);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #161c2e;
  --bg-secondary: #1f273d;
  --border-color: #2e3852;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --overlay-bg: rgba(0, 0, 0, 0.85);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ==========================================================================
   Header & Navigation (Amazon Signature Look with chawwanni Twist)
   ========================================================================== */

.chawwanni-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.brand-logo:hover {
  outline: 1px solid var(--accent-gold);
}

.brand-logo .logo-ik {
  color: var(--accent-yellow);
}
.brand-logo .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange);
}
.brand-smile {
  font-size: 0.75rem;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-top: -6px;
  display: block;
}

/* Deliver To Widget */
.deliver-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.deliver-widget:hover {
  outline: 1px solid #ffffff;
}
.deliver-widget i {
  font-size: 1.2rem;
  color: var(--accent-yellow);
}
.deliver-text-muted {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.1;
}
.deliver-location {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Super Search Bar */
.search-container {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.search-container:focus-within {
  box-shadow: 0 0 0 3px var(--accent-gold);
}

.search-category-select {
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 14px;
  height: 42px;
  border-right: 1px solid #cbd5e1;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%3C64748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.search-category-select:hover {
  background-color: #e2e8f0;
}

.search-input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
  color: #0f172a;
}
.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  background: var(--accent-gold);
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-bg);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}
.search-btn:hover {
  background: var(--accent-yellow);
}

/* Instant Search Results Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  border: 1px solid var(--border-color);
  margin-top: 4px;
}
.search-dropdown.active {
  display: block;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.search-suggest-item:hover {
  background: var(--bg-secondary);
}
.search-suggest-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.search-suggest-info {
  flex: 1;
}
.search-suggest-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.search-suggest-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: #ffffff;
}
.header-action-btn:hover {
  outline: 1px solid #ffffff;
}
.action-label-sm {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.1;
}
.action-label-lg {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Cart Button */
.cart-header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.cart-icon-wrapper {
  position: relative;
  font-size: 1.6rem;
  color: var(--accent-yellow);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--header-bg);
  box-shadow: 0 2px 6px rgba(255, 96, 0, 0.4);
}

/* Sub Navigation Bar */
.sub-nav {
  background-color: var(--nav-sub-bg);
  padding: 4px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  overflow-x: auto;
  white-space: nowrap;
}
.sub-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  cursor: pointer;
  transition: var(--transition-fast);
}
.sub-nav-item:hover {
  outline: 1px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}
.sub-nav-item.highlight {
  color: var(--accent-yellow);
}

/* Department Drawer Overlay */
.dept-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dept-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.dept-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 340px;
  height: 100%;
  background: var(--bg-card);
  z-index: 1000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.dept-drawer.active {
  left: 0;
}
.dept-header {
  background: var(--header-bg);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}
.dept-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}
.dept-section-title {
  padding: 12px 24px 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--text-muted);
}
.dept-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}
.dept-link:hover {
  background: var(--bg-secondary);
  color: var(--accent-orange);
}

/* ==========================================================================
   Hero Section Carousel & Quick Grid Widgets
   ========================================================================== */

.hero-section {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  height: 380px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 0 60px;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
}

.hero-slide-1 {
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,58,138,0.7)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero-slide-2 {
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(180,83,9,0.7)), url('https://images.unsplash.com/photo-1498049794561-7780e7231661?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero-slide-3 {
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(4,120,87,0.7)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.hero-content {
  max-width: 600px;
  color: #ffffff;
  z-index: 2;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(255, 153, 0, 0.4);
  transition: var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.6);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition-fast);
}
.carousel-nav-btn:hover {
  background: #ffffff;
  color: var(--primary-navy);
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Dashboard Cards Grid (Amazon Style Overlapping Cards) */
.dashboard-grid {
  max-width: 1600px;
  margin: -60px auto 30px;
  padding: 0 24px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dash-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}
.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.dash-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}
.dash-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.dash-item {
  cursor: pointer;
}
.dash-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.dash-item:hover img {
  opacity: 0.9;
  transform: scale(1.02);
}
.dash-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}
.dash-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dash-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* ==========================================================================
   Lightning Deals Section (With Live Countdown Timer)
   ========================================================================== */

.deals-section {
  max-width: 1600px;
  margin: 0 auto 36px;
  padding: 0 24px;
}

.deals-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.deals-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.deals-title-group h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}
.deals-badge {
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  animation: pulse 1.5s infinite;
}

/* Timer Box */
.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
}
.timer-unit {
  background: var(--accent-gold);
  color: var(--primary-navy);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;

}

.deals-scroll {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Claim progress bar */
.deal-progress {
  margin-top: 10px;
}
.deal-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.deal-progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}
.deal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
  border-radius: 3px;
}

/* ==========================================================================
   Main Catalog & Filters Section
   ========================================================================== */

.catalog-layout {
  max-width: 1600px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: fit-content;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.filter-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-item:hover {
  color: var(--accent-orange);
}
.filter-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

/* Price Range Slider */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.price-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Catalog Top Controls Bar */
.catalog-controls {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.results-count span {
  color: var(--text-main);
  font-weight: 800;
}

.sort-select {
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Product Card Styling */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-yellow);
}

.product-image-container {
  position: relative;
  height: 220px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img {
  transform: scale(1.06);
}

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
}
.badge-bestseller { background: #eab308; color: #000; }
.badge-choice { background: #0284c7; color: #fff; }
.badge-discount { background: var(--accent-red); color: #fff; }

.wishlist-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
  z-index: 5;
}
.wishlist-heart-btn:hover,
.wishlist-heart-btn.active {
  color: var(--accent-red);
  transform: scale(1.15);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: bottom 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  white-space: nowrap;
  z-index: 5;
}
.product-card:hover .quick-view-overlay-btn {
  bottom: 12px;
  opacity: 1;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  cursor: pointer;
}
.product-title:hover {
  color: var(--accent-orange);
}

/* Rating Stars */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}
.stars-group {
  color: var(--accent-gold);
}
.rating-count {
  font-size: 0.78rem;
  color: #0284c7;
  font-weight: 600;
}

/* Price block */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.current-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}
.original-price {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.prime-delivery-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00d2ff;
}
.prime-delivery-tag i {
  color: var(--accent-gold);
}

.product-actions {
  padding: 0 16px 16px;
  margin-top: auto;
}
.btn-add-cart {
  width: 100%;
  background: var(--accent-gold);
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
  transition: var(--transition-fast);
}
.btn-add-cart:hover {
  background: var(--accent-yellow);
  transform: translateY(-1px);
}

/* Quick Qty counter inside card if item in cart */
.qty-counter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.qty-btn:hover {
  background: var(--accent-gold);
}
.qty-val {
  font-weight: 800;
  font-size: 0.95rem;
}

/* ==========================================================================
   Modals & Drawers System
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
}

/* Quick View Modal layout */
.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}
.quickview-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quickview-main-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
}
.quickview-thumbs {
  display: flex;
  gap: 10px;
}
.quickview-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}
.quickview-thumb.active {
  border-color: var(--accent-orange);
}

/* Slide-over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  height: 100%;
  background: var(--bg-card);
  z-index: 1001;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.cart-drawer-overlay.active .cart-drawer {
  right: 0;
}

.cart-header {
  background: var(--header-bg);
  color: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-free-shipping-banner {
  background: #0284c7;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.cart-item-img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-orange);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-footer {
  padding: 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 96, 0, 0.3);
  transition: var(--transition-fast);
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 96, 0, 0.5);
}

/* ==========================================================================
   Checkout Multi-Step Wizard Modal
   ========================================================================== */

.checkout-wizard {
  padding: 30px;
}
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}
.step-item {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-muted);
}
.step-item.active .step-circle {
  background: var(--accent-gold);
  border-color: var(--accent-orange);
  color: var(--primary-navy);
}
.step-item.completed .step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}
.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.step-item.active .step-label {
  color: var(--text-main);
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: span 2;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.95rem;
}
.form-input:focus {
  border-color: var(--accent-gold);
  outline: none;
}

/* ==========================================================================
   Order Tracking & Confirmation Modal
   ========================================================================== */

.tracker-container {
  padding: 30px;
  text-align: center;
}
.confetti-badge {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: bounce 1s infinite alternate;
}
.tracker-timeline {
  display: flex;
  justify-content: space-between;
  margin: 36px 0;
  position: relative;
}
.tracker-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: var(--accent-green);
  z-index: 1;
}
.tracker-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tracker-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease forwards;
  border-left: 4px solid var(--accent-gold);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.chawwanni-footer {
  background-color: var(--header-bg);
  color: #94a3b8;
  font-size: 0.88rem;
  margin-top: 60px;
}
.back-to-top {
  background: var(--nav-sub-bg);
  color: #ffffff;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.back-to-top:hover {
  background: #374151;
}
.footer-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.footer-col-title {
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom {
  background-color: #0b0f17;
  padding: 24px;
  text-align: center;
  border-top: 1px solid #1e293b;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .quickview-grid {
    grid-template-columns: 1fr;
  }
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
  }
  .search-container {
    order: 3;
    width: 100%;
  }
  .hero-carousel {
    height: 280px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .cart-drawer {
    width: 100%;
  }
}
