/* ============================================
   MILLIONS - E-Commerce Test Site Styles
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #212121;
  background-color: #fff;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   HEADER PROMOTION TICKER
   ============================================ */
.header-promotion {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.ticker-wrapper {
  position: relative;
  height: 18px;
  overflow: hidden;
}

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

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

.ticker-slide a {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   UTILITY NAV
   ============================================ */
.utility-nav {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 24px;
  font-size: 12px;
}

.utility-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.country-selector,
.find-store {
  color: #555;
}

.find-store:hover {
  color: #000;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  padding: 8px;
}

.primary-logo .logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #000;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-item a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #212121;
  padding: 8px 0;
  position: relative;
}

.nav-item a:hover {
  text-decoration: none;
  color: #000;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-item.sale a {
  color: #c62828;
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon-btn {
  font-size: 18px;
  color: #212121;
  padding: 8px;
  position: relative;
}

.icon-btn:hover {
  color: #000;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -4px;
  background: #000;
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
}

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

.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  max-width: 500px;
}

.breadcrumb {
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.breadcrumb a {
  color: #fff;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 24px;
  background: #fafafa;
}

.filter-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-title {
  font-size: 24px;
  font-weight: 600;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #212121;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover {
  background: #212121;
  color: #fff;
}

.bopis-message {
  max-width: 1440px;
  margin: 12px auto 0;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  padding: 24px;
}

.container-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

.gridbreak-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.gridbreak-title h2 {
  font-size: 20px;
  font-weight: 600;
}

.pagination-info {
  font-size: 14px;
  color: #666;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-tile {
  position: relative;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

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

/* Product Image */
.product-image {
  position: relative;
  aspect-ratio: 0.8;
  overflow: hidden;
  background: #f5f5f5;
}

.thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.main-image,
.hover-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.main-image img,
.hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-tile:hover .hover-image {
  opacity: 1;
}

.product-tile:hover .main-image {
  opacity: 0;
}

/* Product Data */
.product-data {
  padding: 16px;
}

.product-name h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-name a:hover {
  text-decoration: underline;
}

.brand-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

/* Swatches */
.product-swatches {
  margin-bottom: 12px;
}

.swatch-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
}

.swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.more-colors {
  font-size: 11px;
  color: #666;
  margin-left: 4px;
}

.quickshop-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #212121;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.quickshop-btn:hover {
  background: #212121;
  color: #fff;
  text-decoration: none;
}

/* Pricing */
.product-pricing {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.price {
  font-size: 14px;
  font-weight: 600;
}

.sale-price {
  font-size: 14px;
  font-weight: 600;
  color: #c62828;
}

.original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

/* Badges */
.product-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: #f5f5f5;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  border: 1px solid #e0e0e0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.results-hits {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.pagination-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.btn-load-more {
  padding: 12px 32px;
  border: 2px solid #212121;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.btn-load-more:hover {
  background: #212121;
  color: #fff;
}

.view-all-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #212121;
  color: #fff;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

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

.footer-section ul li a {
  font-size: 13px;
  color: #bbb;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.social-icons a:hover {
  background: #fff;
  color: #212121;
  text-decoration: none;
}

/* Newsletter */
.newsletter p {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #555;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form button {
  padding: 10px 20px;
  background: #fff;
  color: #212121;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #e0e0e0;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #444;
}

.footer-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links a {
  font-size: 12px;
  color: #999;
}

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

.copyright {
  font-size: 12px;
  color: #999;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-item a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .hero-banner {
    height: 300px;
  }
  
  .hero-content {
    left: 20px;
    bottom: 20px;
  }
  
  .hero-content h1 {
    font-size: 24px;
  }
  
  .utility-nav {
    display: none;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .header-inner {
    padding: 12px 16px;
  }
  
  .primary-logo .logo-text {
    font-size: 22px;
  }
  
  .filter-bar {
    padding: 12px 16px;
  }
  
  .filter-title {
    font-size: 18px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
