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

:root {
  /* Premium Organic Palette */
  --primary: #0F5132;
  --primary-rgb: 15, 81, 50;
  --primary-light: #d1e7dd;
  --primary-dark: #082d1c;
  --accent: #EAB308;
  --accent-hover: #ca8a04;
  --success: #198754;
  --success-light: #e8f5e9;
  --warning: #f59e0b;
  --danger: #dc3545;
  
  /* Neutral Grays */
  --bg-body: #f1f3f6;
  --bg-card: #ffffff;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #e0e0e0;
  
  /* Shadows and Transitions */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Utility Classes */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: #f1f3f6;
}
.badge-success {
  background-color: var(--success-light);
  color: var(--success);
}
.badge-warning {
  background-color: #fffbeb;
  color: var(--warning);
}
.badge-danger {
  background-color: #fef2f2;
  color: var(--danger);
}

/* Flipkart-style Header */
.main-header {
  background-color: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-container a {
  display: block;
}
.logo-container img {
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Header Search */
.header-search-container {
  flex-grow: 1;
  position: relative;
  max-width: 560px;
}

.header-search {
  display: flex;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
}

.header-search input {
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  width: 100%;
  color: var(--text-dark);
}

.header-search button {
  background-color: transparent;
  color: var(--primary);
  padding: 0 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search button:hover {
  color: var(--accent);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-top: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1100;
  display: none;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
}

.suggestion-item:hover {
  background-color: var(--bg-body);
}

.suggestion-item i {
  color: var(--text-light);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-btn {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: #ffffff;
}

.header-btn:hover {
  color: var(--accent);
}

/* Custom Login Button */
.login-btn {
  background-color: #ffffff;
  color: var(--primary);
  padding: 5px 24px;
  border-radius: 2px;
  font-weight: 600;
  border: 1px solid #ffffff;
  transition: var(--transition);
}

.login-btn:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
}

/* User Profile Dropdown */
.user-menu-dropdown {
  position: relative;
}

.user-menu-list {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  min-width: 200px;
  display: none;
  padding: 8px 0;
  margin-top: 10px;
  z-index: 1000;
}

.user-menu-dropdown:hover .user-menu-list {
  display: block;
}

.user-menu-list::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 20px;
  border: 8px solid transparent;
  border-bottom-color: #ffffff;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.user-menu-item:hover {
  background-color: var(--bg-body);
  color: var(--primary);
}

.user-menu-item i {
  font-size: 16px;
  color: var(--primary);
  width: 20px;
}

/* Flipkart-style Categories Ribbon */
.categories-ribbon {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  margin-bottom: 16px;
  overflow-x: auto;
}

.categories-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 800px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 12px;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 6px;
  transition: var(--transition);
}

.category-item:hover .category-icon-wrapper {
  background-color: var(--primary);
  color: #ffffff;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Hero Carousel Slider */
.hero-slider-section {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  height: 320px;
  box-shadow: var(--shadow-md);
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  padding: 48px;
  color: #ffffff;
  max-width: 500px;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
  font-size: 40px;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.1;
}

.slide-content p {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.slider-btn {
  background-color: rgba(255,255,255,0.9);
  color: var(--text-dark);
  width: 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: var(--shadow-md);
  border-radius: 0 4px 4px 0;
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; border-radius: 4px 0 0 4px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* Info Banner Cards */
.info-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-banner {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.info-banner-icon {
  font-size: 32px;
  color: var(--primary);
}

.info-banner-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.info-banner-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Flipkart-style Showcase Rows (Deals of the Day, etc.) */
.showcase-row {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.showcase-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showcase-header h3 {
  font-size: 20px;
}

.btn-view-all {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.btn-view-all:hover {
  background-color: var(--primary-dark);
}

.showcase-grid {
  display: flex;
  overflow-x: auto;
  padding: 16px 20px;
  gap: 16px;
  scroll-behavior: smooth;
}

/* Flipkart Product Card CSS */
.product-card {
  flex: 0 0 220px;
  background-color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

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

.wishlist-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #d1d5db;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-heart:hover, .wishlist-heart.active {
  color: var(--danger);
}

.product-image-wrapper {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.product-image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

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

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  width: 100%;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  width: 100%;
  justify-content: flex-start;
}

.rating-badge {
  background-color: var(--success);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rating-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
}

.current-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.original-price {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.discount-tag {
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

.delivery-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  width: 100%;
  text-align: left;
}

/* Flipkart-style Footer */
.main-footer {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  padding: 48px 0 24px 0;
  margin-top: 48px;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-col.about-col p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Flipkart-style Product Listing Page (product-list.html) */
.list-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* Sidebar Filters */
.filter-sidebar {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  height: fit-content;
}

.filter-section-title {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--text-dark);
}

.filter-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Price Range Slider */
.price-slider-container {
  padding: 8px 4px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.price-select {
  flex: 1;
  padding: 6px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background-color: #ffffff;
}

/* Sorting Options & Results Panel */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sorting-header {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 15px;
  font-weight: 600;
}

.sort-label {
  font-size: 13px;
  color: var(--text-muted);
}

.sort-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px 8px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.sort-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Product list catalog */
.product-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.product-catalog .product-card {
  flex: unset;
  border: 1px solid #f1f3f6;
}

/* Flipkart-style Product Details Page (product-detail.html) */
.product-details-container {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 32px;
  margin-top: 16px;
}

/* Left: Images and buttons */
.detail-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.large-image-wrapper {
  border: 1px solid var(--border-color);
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.large-image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.large-image-wrapper:hover img {
  transform: scale(1.15);
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbnail {
  border: 2px solid var(--border-color);
  width: 64px;
  height: 64px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn-action {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-add-cart {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-add-cart:hover {
  background-color: var(--accent-hover);
}

.btn-buy-now {
  background-color: #FF9F00;
  color: #ffffff;
}

.btn-buy-now:hover {
  background-color: #f39600;
}

/* Right: Content details */
.detail-content-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.detail-current-price {
  font-size: 28px;
  font-weight: 700;
}

.detail-original-price {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.detail-discount {
  font-size: 16px;
  color: var(--success);
  font-weight: 700;
}

.rating-summary-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--success);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  width: fit-content;
}

/* Offers box */
.offers-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  background-color: #fafbfd;
}

.offers-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}

.offer-item i {
  color: var(--success);
  margin-top: 2px;
}

/* Pincode delivery checker */
.pincode-checker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.pincode-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.pincode-input-row {
  display: flex;
  max-width: 320px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.pincode-input-row input {
  border: none;
  padding: 8px 12px;
  width: 100%;
  font-size: 14px;
}

.pincode-check-btn {
  background-color: transparent;
  color: var(--primary);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  border-left: 1px solid var(--border-color);
}

.pincode-feedback {
  font-size: 12px;
  font-weight: 500;
}

/* Specifications Table */
.specifications-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.specifications-table th {
  text-align: left;
  padding: 12px;
  background-color: #fafafa;
  border-bottom: 2px solid var(--border-color);
  font-size: 14px;
}

.specifications-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.specifications-table td.spec-name {
  color: var(--text-muted);
  width: 30%;
  font-weight: 600;
}

.specifications-table td.spec-value {
  color: var(--text-dark);
}

/* Reviews Panel */
.reviews-breakdown {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  margin-top: 16px;
  align-items: center;
  background-color: #fafbfd;
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.ratings-average-box {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 24px;
}

.ratings-average-box h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.ratings-average-box .avg-stars-wrapper {
  color: var(--accent);
  font-size: 16px;
  margin: 6px 0;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.ratings-average-box p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.ratings-bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.rating-bar-row span:first-child {
  width: 24px;
  text-align: right;
}

.rating-bar-bg {
  flex-grow: 1;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background-color: var(--success);
  border-radius: 4px;
}

.review-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.review-body {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.review-footer {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.review-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-footer .certified-buyer {
  color: var(--success);
  font-weight: 700;
}

/* Flipkart-style Shopping Cart (cart.html) */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  margin-top: 16px;
}

.cart-items-panel {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.cart-panel-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
  font-weight: 700;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 600;
}

.cart-item-seller {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  font-weight: 700;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: #f1f3f6;
}

.quantity-value {
  width: 36px;
  height: 28px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
}

.cart-action-btn {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
}

.cart-action-btn:hover {
  color: var(--primary);
}

/* Price Details Sidebar */
.price-details-panel {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.price-details-title {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-details-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px dashed var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-dark);
}

.price-row.total-row {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  margin-top: 8px;
}

.price-savings-msg {
  padding: 16px 24px;
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.cart-footer-bar {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
}

.btn-place-order {
  background-color: #fb641b;
  color: #ffffff;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
  text-transform: uppercase;
}

.btn-place-order:hover {
  background-color: #e25612;
}

/* Flipkart-style 3-Step Checkout (checkout.html) */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  margin-top: 16px;
}

.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-step-card {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.checkout-step-header {
  padding: 14px 24px;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.checkout-step-card.active .checkout-step-header {
  background-color: var(--primary);
  color: #ffffff;
}

.checkout-step-number {
  background-color: #f1f3f6;
  color: var(--primary);
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.checkout-step-card.active .checkout-step-number {
  background-color: #ffffff;
  color: var(--primary);
}

.checkout-step-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.checkout-step-content {
  padding: 24px;
  display: none;
}

.checkout-step-card.active .checkout-step-content {
  display: block;
}

/* Address List in Checkout */
.checkout-address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-address-card {
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-address-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.checkout-address-card input[type="radio"] {
  accent-color: var(--primary);
  margin-top: 4px;
}

.address-details {
  font-size: 13px;
}

.address-user-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Payment Methods List */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-row {
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.payment-method-row.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.payment-method-row input[type="radio"] {
  accent-color: var(--primary);
  margin-top: 3px;
}

.payment-method-label {
  font-size: 14px;
  font-weight: 600;
}

.payment-method-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-confirm-payment {
  background-color: #fb641b;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
  margin-top: 16px;
  display: inline-block;
}

/* Flipkart-style My Account Panel (account.html) */
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin-top: 16px;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-user-card {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.account-user-welcome {
  font-size: 12px;
  color: var(--text-muted);
}

.account-username {
  font-size: 16px;
  font-weight: 700;
}

.account-nav-panel {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.account-nav-group-title {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 48px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.account-nav-link:hover, .account-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.account-main-content {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  min-height: 450px;
}

.account-section-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Edit Profile Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.btn-save-form {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  width: fit-content;
}

.btn-save-form:hover {
  background-color: var(--primary-dark);
}

/* Flipkart-style Visual Order Status Tracker Stepper */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.order-header-row {
  background-color: #fafafa;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.order-header-row span strong {
  color: var(--text-dark);
}

.order-details-grid {
  display: grid;
  grid-template-columns: 100px 2fr 3fr;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.order-item-image {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-item-price {
  font-size: 14px;
  font-weight: 700;
}

/* Stepper Tracker */
.order-tracker-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 10px 0;
}

.order-tracker-stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 4px;
  background-color: #e2e8f0;
  z-index: 1;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.stepper-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 4px solid #ffffff;
  transition: var(--transition);
}

.stepper-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Stepper Active & Completed States */
.stepper-step.completed .stepper-dot {
  background-color: var(--success);
  color: #ffffff;
}

.stepper-step.completed .stepper-label {
  color: var(--success);
}

.stepper-step.active .stepper-dot {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.stepper-step.active .stepper-label {
  color: var(--primary);
}

.stepper-progress-fill {
  position: absolute;
  top: 15px;
  left: 20px;
  height: 4px;
  background-color: var(--success);
  z-index: 1;
  transition: width 0.5s ease;
}

/* Notification Popups */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--text-dark);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: var(--primary);
  border-left: 4px solid var(--accent);
}

/* Auth Cards */
.auth-container {
  max-width: 450px;
  margin: 48px auto;
  background-color: #ffffff;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 28px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .list-layout, .product-details-container, .cart-layout, .checkout-layout, .account-layout {
    grid-template-columns: 1fr;
  }
  .about-grid, .contact-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .large-image-wrapper {
    height: 300px;
  }
  .categories-ribbon {
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .about-section, .contact-container, .legal-content-section {
    padding: 24px !important;
  }
  .about-grid {
    gap: 24px !important;
  }
  .header-actions {
    gap: 16px;
  }
  .login-btn {
    padding: 4px 16px;
  }
  .header-search-container {
    max-width: unset;
  }
  .hero-slider-section {
    height: 240px;
  }
  .slide-content h2 {
    font-size: 28px;
  }
  
  /* Horizontal Categories Ribbon scroll layout */
  .categories-ribbon {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  .categories-ribbon::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  .categories-container {
    display: inline-flex;
    min-width: max-content;
    gap: 16px;
    padding: 0 16px;
  }

  /* Ratings & Reviews breakdown single column stacking */
  .reviews-breakdown {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .ratings-average-box {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0 !important;
    padding-bottom: 24px;
  }

  /* Responsive Order Stepper: Convert to Vertical Layout */
  .order-tracker-stepper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    padding-left: 16px !important;
    margin: 16px 0 !important;
  }
  .order-tracker-stepper::before {
    top: 16px !important;
    bottom: 16px !important;
    left: 31px !important;
    width: 4px !important;
    height: calc(100% - 32px) !important;
    right: unset !important;
  }
  .stepper-progress-fill {
    top: 16px !important;
    left: 31px !important;
    width: 4px !important;
    height: 100% !important; /* Visual fill fallback for simple simulations */
    right: unset !important;
  }
  .stepper-step {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 16px !important;
    flex: unset !important;
  }
  .stepper-label {
    margin-top: 0 !important;
  }
}

@media (max-width: 576px) {
  /* Header wrapper mobile layout wrapping */
  .header-wrapper {
    flex-wrap: wrap;
    gap: 12px;
  }
  .logo-container {
    order: 1;
    width: 45%;
  }
  .header-actions {
    order: 2;
    width: 50%;
    justify-content: flex-end;
    gap: 16px;
  }
  .header-search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .main-header {
    padding: 8px 0;
  }
  .logo-container img {
    height: 36px;
  }

  /* Product Catalog grid 2-column mobile layout */
  .product-catalog {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .product-card {
    padding: 10px !important;
    flex: unset !important;
  }
  .product-image-wrapper {
    width: 100px !important;
    height: 100px !important;
  }
  .product-title {
    font-size: 13px !important;
    height: 36px !important;
  }
  .current-price {
    font-size: 14px !important;
  }
  .original-price {
    font-size: 11px !important;
  }
  .discount-tag {
    font-size: 11px !important;
  }

  /* Form layouts stacking */
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Padding adjustments for mobile screens */
  .about-section, .contact-container, .legal-content-section {
    padding: 16px !important;
  }

  /* Footer bottom stacking on mobile */
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .footer-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 16px !important;
  }
}
