/* Home Page Minimal Styles - Mobile First */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================
   HEADER - MOBILE FIRST
   ============================================ */
.site-header {
  border-bottom: 1px solid #ddd;
}

/* Mobile Header */
.header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.logo-mobile {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.logo-mobile img {
  height: 30px;
  margin-right: 10px;
}

.header-actions-mobile {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  padding: 5px;
}

/* Desktop Header - Hidden on mobile */
.header-desktop {
  display: none;
}

/* Search bar mobile - below header */
.search-bar-mobile {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.search-form {
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-btn {
  padding: 10px 15px;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
}

.search-btn:hover {
  background: var(--accent-hover);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: white;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 20px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
}

/* ============================================
   MEGA NAVIGATION - DESKTOP ONLY
   ============================================ */
.mega-nav {
  display: none; /* Hidden on mobile */
  border-bottom: 1px solid #ddd;
}

.nav-categories {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-category-item {
  position: relative;
}

.nav-category-link {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.nav-category-link:hover {
  background: #f5f5f5;
}

.nav-arrow {
  font-size: 10px;
  margin-left: 5px;
}

.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  min-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Show dropdown on hover */
.nav-category-item:hover .mega-dropdown {
  display: block;
}

.mega-dropdown-content {
  display: flex;
  padding: 20px;
  gap: 30px;
  flex-wrap: wrap;
}

.mega-column {
  flex: 1;
  min-width: 150px;
}

.mega-column-title {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.mega-column-title:hover {
  color: #000;
  text-decoration: underline;
}

.mega-subcategories {
  list-style: none;
}

.mega-subcategories li {
  margin-bottom: 5px;
}

.mega-subcategories a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.2s ease;
}

.mega-subcategories a:hover {
  color: #000;
  padding-left: 5px;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 85%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.carousel-indicators {
  display: flex;
  gap: 8px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-indicator.active {
  background: white;
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.product-section {
  padding: 30px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.25rem;
  margin: 0;
  color: #333;
  font-weight: 700;
}

.show-more-link {
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.show-more-link:hover {
  text-decoration: underline;
}

/* Product Carousel */
.product-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.product-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  flex: 1;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.carousel-nav-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.carousel-nav-btn.prev-btn {
  left: -20px;
}

.carousel-nav-btn.next-btn {
  right: -20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.product-card {
  flex: 0 0 auto;
  width: 160px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f8f8;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e53935;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-name {
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.3;
  height: 2.6em;
  min-height: 2.6em;
  overflow: hidden;
  flex-shrink: 0;
}

.product-name a {
  text-decoration: none;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-category {
  font-size: 0.7rem;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  min-height: 24px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
}

.product-original-price {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
  white-space: nowrap;
}

.stock-status {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.stock-status.in-stock {
  background: #d4edda;
  color: #155724;
}

.stock-status.out-of-stock {
  background: #f8d7da;
  color: #721c24;
}

.btn-add-to-cart {
  width: 100%;
  padding: 8px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
}

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

/* Show More Container */
.show-more-container {
  text-align: center;
  margin-top: 20px;
}

.btn-show-more {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-show-more:hover {
  background: var(--accent-color);
  color: #fff;
}

/* ============================================
   TRUSTPILOT SECTION
   ============================================ */
.trustpilot-section {
  padding: 40px 0;
  background: #f5f5f5;
}

.trustpilot-widget {
  text-align: center;
}

.trustpilot-placeholder {
  max-width: 400px;
  margin: 0 auto;
}

.trustpilot-stars {
  font-size: 32px;
  color: #00b67a;
  margin-bottom: 10px;
}

.trustpilot-score {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.trustpilot-reviews {
  color: #666;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #035751;
  color: white;
  padding: 30px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
}

.footer-brand {
  font-size: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

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

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
}

.newsletter-btn {
  padding: 10px 20px;
  background: var(--accent-color);
  color: var(--text-inverse);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.footer-bottom p {
  font-size: 14px;
  color: #aaa;
}

/* ============================================
   TABLET - 768px and up
   ============================================ */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-card {
    width: 200px;
  }
  
  .carousel-nav-btn {
    display: flex;
  }
  
  .product-carousel-wrapper {
    padding: 0 30px;
  }
  
  .carousel-nav-btn.prev-btn {
    left: 0;
  }
  
  .carousel-nav-btn.next-btn {
    right: 0;
  }
}

/* ============================================
   DESKTOP - 1024px and up
   ============================================ */
@media (min-width: 1024px) {
  /* Hide mobile header, show desktop header */
  .header-mobile {
    display: none;
  }
  
  .header-desktop {
    display: block;
  }
  
  .search-bar-mobile {
    display: none;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
  
  .logo img {
    height: 40px;
    margin-right: 10px;
  }
  
  .search-bar-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
  }
  
  .header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .btn-signin,
  .btn-track-order,
  .btn-cart {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .btn-track-order {
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
  }
  
  .btn-track-order:hover {
    background: var(--accent-hover);
  }
  
  /* Show mega navigation on desktop */
  .mega-nav {
    display: block;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .section-title {
    font-size: 32px;
  }
}

/* Logo text fallback */
.logo-text {
  display: inline-block;
}

.logo img + .logo-text,
.logo-mobile img + .logo-text {
  display: none;
}

.logo img[style*="display: none"] + .logo-text,
.logo-mobile img[style*="display: none"] + .logo-text {
  display: inline-block;
}

/* Checkbox group styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ============================================
   SHOP BY BRANDS SECTION
   ============================================ */
.brands-section {
  padding: 40px 0;
  background: var(--secondary-color);
}

.brands-grid-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.brand-tile {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.brand-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-tile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.brand-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.brand-tile-name {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Tablet - 3 columns */
@media (min-width: 576px) {
  .brands-grid-home {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .brand-tile-name {
    font-size: 1rem;
  }
}

/* Desktop - 4 columns */
@media (min-width: 992px) {
  .brands-grid-home {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .brand-tile {
    aspect-ratio: 16/9;
  }
  
  .brand-tile-placeholder {
    font-size: 2.5rem;
  }
  
  .brand-tile-name {
    font-size: 1.1rem;
  }
  
  .brand-tile-overlay {
    padding: 15px 20px;
  }
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] .show-more-link {
  color: #fecc01;
}

[data-theme="dark"] .show-more-link:hover {
  text-decoration: none;
}

[data-theme="dark"] .btn-show-more {
  color: #fecc01;
  border-color: #fecc01;
}

[data-theme="dark"] .btn-show-more:hover {
  background: transparent;
  color: #fecc01;
  border-color: #fecc01;
}

[data-theme="dark"] .header-actions-mobile svg {
  fill: #fff;
}

[data-theme="dark"] .mobile-nav-icon {
  stroke: #fff;
}

[data-theme="dark"] .mobile-menu svg {
  fill: #fff;
  stroke: #fff;
}

[data-theme="dark"] .newsletter-input {
  background-color: #2a2a2a;
  color: #fff;
}

[data-theme="dark"] .newsletter-input::placeholder {
  color: #aaa;
}

[data-theme="dark"] .btn-cart svg {
  fill: #fff;
}

