/* ==================== */
/* ENHANCED NAVIGATION */
/* ==================== */

/* Sticky Header */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced header state on scroll */
#main-header.header-scrolled {
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Header Container */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  min-height: 70px;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  flex: 0 0 auto;
}

.header-left h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Main Navigation */
#main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: background 0.2s ease-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease-out;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

/* Enhanced Hover States */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #ff3366;
    border-radius: 2px;
  }
}

/* Active State */
.nav-link:active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Current Page Indicator */
.nav-link.active {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #ff3366;
  border-radius: 2px;
}

/* Cart Icon */
.cart-icon {
  position: relative;
}

.cart-count {
  background: #ff3366;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

/* User Area */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

#user-greeting {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== */
/* RESPONSIVE NAVIGATION */
/* ==================== */

/* Tablet */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    min-height: 60px;
  }
  
  .header-left h1 {
    font-size: 1.25rem;
  }
  
  /* Hide regular navigation */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #111;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 1rem;
    justify-content: flex-start;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 56px;
  }
  
  .nav-link:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.98);
  }
  
  /* Show hamburger menu - MOVED TO RIGHT */
  .nav-toggle {
    display: block;
    margin-left: auto;
    margin-right: 10px;
  }
  
  /* Adjust user area for mobile */
  .header-right {
    gap: 0.75rem;
  }
  
  #user-greeting {
    display: none;
  }
  
  .btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Cart count position for mobile */
  .cart-count {
    top: 0.1rem;
    right: 0.1rem;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header-container {
    padding: 0 0.75rem;
  }
  
  .header-left h1 {
    font-size: 1.1rem;
  }
  
  .btn-small {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ==================== */
/* GENERAL STYLES */
/* ==================== */

/* GENERAL */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #333;
}

/* Shop Controls */
.shop-controls {
  background: white;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-container {
  max-width: 600px;
  margin: 0 auto 20px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.sort-dropdown,
.filter-dropdown {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-dropdown:hover,
.filter-dropdown:hover {
  border-color: #111;
}

#clear-filters {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

#clear-filters:hover {
  background: #e9ecef;
}

/* Sections */
section {
  padding: 2rem;
  border-bottom: 1px solid #ddd;
}

h2 {
  color: #111;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* PRODUCT GRIDS */
.product-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  margin: 0 -0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  
  &::-webkit-scrollbar {
    height: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    
    &:hover {
      background: #555;
    }
  }
}

.product {
  flex: 0 0 auto;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  margin: 0;
  border: 1px solid #ddd;
  padding: 1rem;
  background: #fff;
  text-align: center;
  border-radius: 8px;
  position: relative;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

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

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.8rem 0 0.4rem;
  color: #111;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 0.5rem 0;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  font-weight: 400;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3366;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.out-of-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #666;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.product-sizes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}

.size-chip {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #333;
}

.size-chip.out-of-stock {
  background: #ffebee;
  color: #c62828;
}

/* BUTTONS */
.btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.btn:hover {
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

button.clear {
  background: #d9534f;
  margin-left: 10px;
}
button.clear:hover {
  background: #b52b27;
}

/* CART ITEMS - FIXED SIZE */
.cart-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #111;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

.quantity-display {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.remove-item {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.remove-item:hover {
  background: #ff5252;
}

.cart-item-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111;
  margin-left: 15px;
}

#cart-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

#cart-summary p {
  margin: 8px 0;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
}

#cart-summary p:last-child {
  font-size: 1.3rem;
  font-weight: 700;
  border-top: 2px solid #ddd;
  padding-top: 10px;
  margin-top: 15px;
}

#checkout-btn {
  background: #28a745;
  padding: 15px 30px;
  font-size: 1.1rem;
  width: 100%;
  margin-bottom: 10px;
}

#checkout-btn:hover {
  background: #218838;
}

/* ==================== */
/* MODAL STYLES */
/* ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 1000px;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  gap: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Product Modal Specific */
#product-modal .modal-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.modal-left {
  flex: 1;
  min-width: 0;
}

.modal-right {
  flex: 1;
  min-width: 0;
  padding-left: 20px;
}

#modal-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

#modal-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#modal-thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

#modal-thumbnails img:hover,
#modal-thumbnails img.active {
  border-color: #111;
}

#modal-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111;
}

#modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px 0;
}

#modal-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

#modal-sizes-area {
  margin: 20px 0 30px;
}

.size-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.size-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 10px 15px;
  margin: 0 10px 10px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.size-btn:hover {
  background: #e0e0e0;
}

.size-btn.selected {
  background: #111;
  color: white;
  border-color: #111;
}

.size-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#modal-add-cart-btn {
  background: #111;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  width: 100%;
  margin-top: 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #f0f0f0;
}

/* ==================== */
/* AUTH MODAL STYLES - FIXED */
/* ==================== */
.auth-modal-container {
  display: flex;
  flex-direction: row;
  min-height: 500px;
  max-height: 600px;
  overflow: hidden;
  padding: 0;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: white;
}

.brand-name {
  color: #ff3366;
  font-weight: 800;
}

.auth-tagline {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.2rem;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  position: relative;
  transition: color 0.2s ease;
}

.auth-tab.active {
  color: #111;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
}

.google-btn {
  width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.divider {
  text-align: center;
  position: relative;
  margin: 25px 0;
  color: #666;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
}

.divider span {
  background: white;
  padding: 0 15px;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.auth-form.active {
  display: flex;
}

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

.form-group input {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.forgot-password {
  color: #111;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.submit-btn {
  background: #111;
  color: white;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #333;
}

.switch-form {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.95rem;
}

.switch-form a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.switch-form a:hover {
  text-decoration: underline;
}

.terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.terms a {
  color: #111;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

#auth-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

#auth-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#auth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#auth-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ==================== */
/* CHECKOUT MODAL */
/* ==================== */
#checkout-modal .modal-content {
  max-width: 500px;
  flex-direction: column;
}

#order-summary {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

#order-summary li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

#checkout-info-container input,
#checkout-info-container textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

#checkout-info-container textarea {
  min-height: 100px;
  resize: vertical;
}

#place-order {
  background: #28a745;
  color: white;
  padding: 15px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

#place-order:hover {
  background: #218838;
}

/* ==================== */
/* BLOG SECTION */
/* ==================== */
#blog article {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

#blog article:hover {
  transform: translateY(-5px);
}

#blog h3 {
  color: #111;
  margin-top: 0;
  font-size: 1.4rem;
}

#blog p {
  color: #666;
  line-height: 1.6;
}

/* ==================== */
/* CONTACT SECTION - ENHANCED */
/* ==================== */
#contact {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

#contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #111;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

#contact label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

#contact input,
#contact textarea {
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.2s ease;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: #111;
}

#contact textarea {
  min-height: 150px;
  resize: vertical;
}

#contact form button {
  background: #111;
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#contact form button:hover {
  background: #333;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

.contact-info-item {
  text-align: center;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
}

.contact-info-item h3 {
  color: #111;
  margin: 15px 0 10px;
  font-size: 1.2rem;
}

.contact-info-item p {
  color: #666;
  margin: 5px 0;
  line-height: 1.5;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  transform: scale(1.1);
  background: #333;
}

/* ==================== */
/* SKELETON LOADERS */
/* ==================== */
@keyframes skeleton-pulse {
  0% { background-color: rgba(0, 0, 0, 0.05); }
  50% { background-color: rgba(0, 0, 0, 0.1); }
  100% { background-color: rgba(0, 0, 0, 0.05); }
}

.skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.skeleton-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  margin: 0 -0.5rem;
}

.skeleton-product {
  border: 1px solid #eee;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  height: 380px;
  display: flex;
  flex-direction: column;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  margin: 0;
  flex-shrink: 0;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  margin: 0.5rem auto;
}

.skeleton-price {
  height: 24px;
  width: 60%;
  margin: 0.5rem auto;
}

.skeleton-category {
  height: 16px;
  width: 40%;
  margin: 0.5rem auto;
}

.skeleton-sizes {
  height: 20px;
  width: 90%;
  margin: 1rem auto;
}

.skeleton-stock {
  height: 16px;
  width: 70%;
  margin: 0.5rem auto;
}

.skeleton-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 1rem;
}

.skeleton-button {
  flex: 1;
  height: 36px;
}

/* ==================== */
/* FOOTER */
/* ==================== */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    padding: 20px;
    max-height: 85vh;
  }
  
  .auth-modal-container {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .auth-left {
    padding: 30px 20px;
  }
  
  .auth-right {
    padding: 30px 20px;
  }
  
  .modal-left,
  .modal-right {
    padding: 0;
  }
  
  #modal-main-img {
    height: 300px;
  }
  
  .product-grid {
    padding: 1rem 0.5rem;
  }
  
  .product,
  .skeleton-product {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
  }
  
  section {
    padding: 1.5rem;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group label {
    margin-bottom: 5px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  
  .cart-item-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .cart-item-total {
    margin-left: 0;
    margin-top: 15px;
    align-self: flex-end;
  }
  
  #contact {
    padding: 25px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product,
  .skeleton-product {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }
  
  #modal-main-img {
    height: 250px;
  }
  
  .header-container {
    padding: 0 0.75rem;
  }
  
  .header-left h1 {
    font-size: 1.1rem;
  }
  
  .btn-small {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  section {
    padding: 1rem;
  }
}

/* Add scroll snapping for better UX */
.product-grid {
  scroll-snap-type: x proximity;
}

.product {
  scroll-snap-align: start;
}