/* Font Hierarchy & Theme Variables */
:root {
  --font-display: 'Anton', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Light Theme Colors */
  --primary-color: #ff592b;
  --text-dark: #333;
  --text-light: #666;
  --background-color: #fafafa;
  --white: #ffffff;
  --border-color: #ddd;
  --card-background: #ffffff;
  --navbar-background: rgba(255, 255, 255, 0.95);
  --footer-background: #333;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
}

/* Dark Theme Colors */
body.dark-theme {
  --primary-color: #ff592b;
  --text-dark: #e0e0e0;
  --text-light: #b0b0b0;
  --background-color: #121212;
  --white: #1e1e1e;
  --border-color: #333;
  --card-background: #1e1e1e;
  --navbar-background: rgba(18, 18, 18, 0.95);
  --footer-background: #0d0d0d;
  --shadow-light: rgba(255, 255, 255, 0.05);
  --shadow-medium: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Theme Toggle Button */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 89, 43, 0.4);
  transition: all 0.3s ease;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 89, 43, 0.6);
}

/* Navigation - Mobile First */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-background);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 2px 20px var(--shadow-light);
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 32px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-brand h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-dark);
  text-transform: uppercase;
}

/* Navigation Links - Mobile Default Hidden */
.nav-links {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--navbar-background);
  backdrop-filter: blur(15px);
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 4px 20px var(--shadow-light);
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.3s ease;
  text-align: left;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hamburger Menu - Mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: 0.3s;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-container {
    padding: 0 15px;
    gap: 30px;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 30px;
    width: auto;
  }

  .nav-links a {
    border-bottom: none;
    padding: 0;
    text-align: left;
  }

  .nav-toggle {
    display: none;
  }

  .brand-logo {
    height: 36px;
  }

  .nav-brand h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
}

.hero {
  min-height: 82vh;
  background: url('back.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-content p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  font-family: var(--font-heading);
  background: white;
  color: var(--text-dark);
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Products Section with Background Pattern */
.products-section {
  padding: 60px 0;
  background: 
    linear-gradient(
      rgba(250, 250, 250, 0.9), 
      rgba(250, 250, 250, 0.8)
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 89, 43, 0.05) 10px,
      rgba(255, 89, 43, 0.05) 20px
    );
  transition: all 0.3s ease;
  position: relative;
}

/* Dark theme background */
body.dark-theme .products-section {
  background: 
    linear-gradient(
      rgba(18, 18, 18, 0.9), 
      rgba(18, 18, 18, 0.8)
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 89, 43, 0.1) 10px,
      rgba(255, 89, 43, 0.1) 20px
    );
}

/* Ensure content stays above background */
.products-section .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

body.dark-theme .section-title {
  background: rgba(30, 30, 30, 0.9);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.1);
}

.filter-bar {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  font-family: var(--font-heading);
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  background: var(--card-background);
  color: var(--text-light);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-size: 0.85rem;
  min-width: fit-content;
  backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Products Grid - 4 per row with smaller images */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced Product Cards with Background */
.product-card {
  width: 100%;
  max-width: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  position: relative;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

/* Smaller Product Images */
.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  flex-shrink: 0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  font-family: var(--font-heading);
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff4757;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

/* More space for product info */
.product-info {
  padding: 20px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.view-btn {
  font-family: var(--font-heading);
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.view-btn:hover {
  background: #e44d26;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 15px;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--card-background);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2001;
  transition: background-color 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  z-index: 2002;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: var(--border-color);
}

.modal-body {
  padding: 20px;
}

.modal-image {
  margin-bottom: 20px;
}

.modal-image img {
  width: 100%;
  border-radius: 12px;
}

.modal-details h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.size-selector {
  margin-bottom: 25px;
}

.size-selector label {
  font-family: var(--font-heading);
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.size-selector select {
  font-family: var(--font-body);
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--card-background);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.btn {
  font-family: var(--font-heading);
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #e44d26;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--border-color);
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--text-light);
  border-color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--footer-background);
  color: white;
  padding: 40px 0 20px;
  transition: background-color 0.3s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-brand p {
  font-family: var(--font-body);
  color: #ccc;
  font-size: 0.9rem;
}

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

.footer-column h4 {
  font-family: var(--font-heading);
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-column a {
  font-family: var(--font-body);
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer-column a:hover {
  color: white;
}

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

.footer-bottom p {
  font-family: var(--font-body);
  color: #ccc;
  font-size: 0.8rem;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 3000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 89, 43, 0.3);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  font-family: var(--font-body);
  color: var(--text-light);
}

/* Selection Styling */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Design */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  
  .product-card {
    max-width: 280px;
    height: 420px;
  }
  
  .product-image {
    height: 220px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .product-card {
    max-width: 260px;
    height: 400px;
  }
  
  .product-image {
    height: 200px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: 3px;
  }

  .hero-content p {
    font-size: 1.3rem;
    max-width: 400px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
  }

  .modal-actions {
    flex-direction: row;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    text-align: left;
  }

  .filter-bar {
    justify-content: center;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 30px;
  }
}

@media (max-width: 479px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-card {
    max-width: 300px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .products-section {
    padding: 40px 0;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .brand-logo {
    height: 40px;
  }

  .nav-brand h1 {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }

  .hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: 4px;
  }

  .hero-content p {
    font-size: 1.5rem;
    max-width: 500px;
  }

  .products-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 3rem;
    margin-bottom: 60px;
  }

  .modal-content {
    max-width: 800px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 5rem;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: none;
  }
  
  .product-card:active {
    transform: scale(0.98);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.95);
  }
}
  