/* 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;
}

.hidden {
  display: none !important;
}

/* 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 */
.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;
}

.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,
.nav-links a.active {
  color: var(--primary-color);
}

.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);
}

/* Collections List Section */
.collections-list {
  padding: 120px 0 80px;
  background: var(--background-color);
  min-height: 100vh;
}

.collections-header {
  text-align: center;
  margin-bottom: 60px;
}

.collections-header h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.collections-header p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.collection-item {
  background: var(--card-background);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.collection-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.collection-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.collection-item:hover .collection-image img {
  transform: scale(1.1);
}

.collection-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
}

.collection-count {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.collection-info {
  padding: 30px;
}

.collection-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.collection-info p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 25px;
}

.view-btn {
  font-family: var(--font-heading);
  background: var(--primary-color);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.view-btn:hover {
  background: #e44d26;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 89, 43, 0.4);
}

/* Individual Collection View */
.collection-view {
  padding: 120px 0 80px;
  background: var(--background-color);
  min-height: 100vh;
}

.back-btn {
  font-family: var(--font-heading);
  background: none;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 40px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.collection-header {
  text-align: center;
  margin-bottom: 50px;
}

.collection-header h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.collection-header p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  padding: 12px 24px;
  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;
  font-size: 0.9rem;
}

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

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
}

.product-card {
  width: 100%;
  max-width: 280px;
  height: 400px;
  display: flex;
  flex-direction: column;
  background: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 260px;
  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;
}

.product-info {
  padding: 20px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.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.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
}

/* 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;
}

/* 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;
  }

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

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

/* Responsive Design */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .collections-header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collection-header h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .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: 480px) {
  .collections-list {
    padding: 100px 0 60px;
  }

  .collections-header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .collection-info {
    padding: 20px;
  }

  .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;
  }
}

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

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  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;
}
