/* ==========================================================================
   RASA - CUSTOMER WEBSITE MAIN STYLES
   Modern, Original Indian Grocery Delivery Platform
   ========================================================================== */

:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #115e59;
  --primary-subtle: #f0fdfa;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --accent-subtle: #fffbeb;
  --secondary: #0284c7;
  --success: #16a34a;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #ea580c;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input, select, textarea {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #0f766e, #134e4a);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.35rem 0;
  font-weight: 500;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.top-bar-badge {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.top-bar-links {
  display: flex;
  gap: 1.25rem;
}
.top-bar-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand-icon-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
}
.brand-name-accent {
  color: var(--accent-dark);
}

/* Delivery Location Picker */
.location-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  border: 1px solid rgba(20, 184, 166, 0.3);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.location-picker:hover {
  background: #ccfbf1;
}
.location-icon {
  color: var(--primary);
  font-size: 1.1rem;
}
.location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.location-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}
.location-val {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Global Search Bar */
.search-container {
  flex: 1;
  max-width: 580px;
  position: relative;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.85rem;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}
.search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--text-main);
}
.search-input::placeholder {
  color: var(--text-light);
}
.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: none;
}

/* Live Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
.search-suggestions.active {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-item:hover {
  background: var(--primary-subtle);
}
.suggestion-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
}
.suggestion-info {
  flex: 1;
}
.suggestion-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}
.suggestion-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.suggestion-price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.875rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  min-height: 40px;
}
.action-btn:hover {
  background: var(--bg-page);
  border-color: var(--border);
}

/* Wishlist Icon Button (Red Heart) */
.wishlist-header-btn {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  background: #fff;
  border: 1.5px solid #fecaca;
  color: #ef4444;
  border-radius: var(--radius-md);
}
.wishlist-header-btn:hover {
  background: #fef2f2;
  border-color: #f87171;
  transform: translateY(-1px);
}
.heart-icon-svg {
  width: 20px;
  height: 20px;
  fill: #ef4444;
  transition: transform 0.2s ease;
}
.wishlist-header-btn:hover .heart-icon-svg {
  transform: scale(1.18);
}
.wishlist-header-btn .action-badge {
  background: #ef4444;
  color: #fff;
  top: -4px;
  right: -4px;
}

.action-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
/* Cart Icon Button (Black SVG Icon) */
.cart-header-btn {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: #111827;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}
.cart-header-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #000;
  transform: translateY(-1px);
}
.cart-icon-svg {
  width: 20px;
  height: 20px;
  fill: #111827; /* Solid Black Cart Icon */
  display: block;
  transition: transform 0.2s ease;
}
.cart-header-btn:hover .cart-icon-svg {
  transform: scale(1.18);
}
.cart-header-btn .action-badge {
  background: #111827; /* Matching Black Badge */
  color: #ffffff;
  top: -4px;
  right: -4px;
}

/* Categories Scroll Bar Under Header */
.sub-header-categories {
  background: #ffffff;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.sub-header-categories::-webkit-scrollbar {
  display: none;
}
.category-pills-list {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  list-style: none;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   HERO 16:9 AD SCREEN & PROMOTIONAL CAROUSEL
   ========================================================================== */
.hero-section {
  padding: 1.25rem 0 1rem;
}
.hero-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  background: #0f172a;
}
.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.hero-slide.active {
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 55%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: clamp(1rem, 4vw, 2.5rem);
  max-width: 60%;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  font-weight: 800;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(1.2rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  color: #e2e8f0;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  padding: clamp(0.4rem, 1vw, 0.65rem) clamp(0.8rem, 1.8vw, 1.4rem);
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.hero-cta:hover {
  background: var(--primary-light);
  color: #ffffff;
}

/* Dedicated 16:9 Video & Store Update Screen */
.ad-video-screen-section {
  margin: 2.75rem 0;
}
.ratio-16-9-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  background: #000;
}
.ratio-16-9-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.ratio-16-9-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.ratio-16-9-update-card {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.ratio-16-9-update-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: clamp(1rem, 4vw, 2.75rem);
}
.ratio-16-9-update-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 65%;
}

/* Hero Carousel Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.carousel-arrow:hover {
  background: #fff;
  color: var(--primary);
}
.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: #fff;
  width: 24px;
}

/* ==========================================================================
   FEATURE STRIP (Quick Delivery Benefits)
   ========================================================================== */
.features-strip {
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}
.feature-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HOMEPAGE CATEGORIES GRID
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}
.section-title-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.section-title-wrap p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.view-all-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}
.view-all-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.category-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.1);
}
.category-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* ==========================================================================
   PRODUCT CARDS GRID
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 85%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
  margin-bottom: 0.75rem;
}
.product-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-thumb-wrap img {
  transform: scale(1.05);
}

.discount-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0f766e;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.wishlist-toggle-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 2;
  transition: var(--transition);
}
.wishlist-toggle-btn:hover {
  background: #fff;
  color: var(--danger);
  transform: scale(1.1);
}
.wishlist-toggle-btn.active {
  color: var(--danger);
  background: #fff;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.product-weight-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}
.product-rating {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: #fef3c7;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}
.product-title a:hover {
  color: var(--primary);
}

.product-brand {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
}
.product-selling-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}
.product-orig-price {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Add to Cart Stepper / Button */
.product-action-box {
  width: 100%;
}
.btn-add-cart {
  width: 100%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-add-cart:hover {
  background: var(--primary);
  color: #fff;
}
.btn-out-of-stock {
  width: 100%;
  background: #f1f5f9;
  color: var(--text-light);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  cursor: not-allowed;
  text-align: center;
  text-transform: uppercase;
}

/* Quantity Stepper (+ -) */
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-weight: 700;
  font-size: 0.875rem;
}
.qty-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--primary-dark);
}
.qty-count {
  font-size: 0.9375rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-column h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 0.35rem 0;
}
.mobile-nav-items {
  display: flex;
  justify-content: space-around;
  list-style: none;
}
.mobile-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  gap: 0.15rem;
  position: relative;
}
.mobile-nav-item.active a, .mobile-nav-item a:hover {
  color: var(--primary);
}
.mobile-nav-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   CART & CHECKOUT RESPONSIVE LAYOUTS
   ========================================================================== */
.cart-page-grid,
.checkout-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.cart-items-column {
  width: 100%;
}

.cart-items-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-card:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.cart-item-name a {
  color: var(--text-main);
  text-decoration: none;
}

.cart-item-name a:hover {
  color: var(--primary);
}

.cart-item-weight-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.cart-item-subtotal-val {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-ctrls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-item-del-btn {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem;
}

.cart-bill-column {
  width: 100%;
}

.cart-bill-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.cart-bill-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.cart-bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cart-bill-val {
  font-weight: 600;
  color: var(--text-main);
}

.cart-discount-row {
  color: var(--success);
}

.cart-discount-val {
  font-weight: 700;
}

.cart-free-tag {
  color: var(--success);
  font-weight: 700;
}

.cart-delivery-tip {
  background: var(--accent-subtle);
  color: var(--accent-dark);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1.5px dashed var(--border);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.cart-security-badge {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* RESPONSIVE: Tablets & Mobile Screens (< 992px) */
@media (max-width: 991px) {
  .cart-page-grid,
  .checkout-page-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .cart-items-column {
    order: 1 !important; /* ITEMS IN CART UPAR */
    width: 100% !important;
  }

  .cart-bill-column {
    order: 2 !important; /* BILL DETAILS NICHE */
    width: 100% !important;
  }

  .cart-bill-card {
    position: static !important;
  }
}

@media (max-width: 480px) {
  .cart-item-card {
    padding: 0.875rem !important;
    gap: 0.75rem !important;
  }
  .cart-item-thumb {
    width: 60px !important;
    height: 60px !important;
  }
  .cart-item-name {
    font-size: 0.875rem !important;
  }
  .cart-item-weight-price {
    font-size: 0.75rem !important;
  }
}

