/* ===== CSS Variables ===== */
:root {
  --primary: #c6f163;
  --primary-dark: #96e546;
  --primary-light: #81def8;
  --secondary: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  font-size: 1.75rem;
}

.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

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

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-item:hover {
  background: var(--gray-50);
}

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

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.icon-btn {
  background: transparent;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-600);
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
}

.hero-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat {
  text-align: center;
}

.stat span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.stat label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ===== Sections ===== */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

.hidden {
  display: none !important;
}

/* ===== Categories Grid ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-card-content {
  padding: 20px;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.category-card .product-count {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  padding-top: 100%;
  background: var(--gray-100);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-badge {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.product-badge.featured {
  background: var(--primary);
  color: var(--white);
}

.product-badge.sale {
  background: var(--danger);
  color: var(--white);
}

.product-badge.low-stock {
  background: var(--warning);
  color: var(--white);
}

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-action-btn {
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.product-action-btn.in-wishlist {
  background: var(--danger);
  color: var(--white);
}

.product-info {
  padding: 20px;
}

.product-category {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
  cursor: pointer;
}

.product-name:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stars {
  color: var(--warning);
}

.rating-count {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.price-original {
  font-size: 1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.product-card .btn {
  width: 100%;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.filter-bar select,
.filter-bar input {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  min-width: 180px;
}

.price-filter {
  display: flex;
  gap: 8px;
}

.price-filter input {
  width: 120px;
  min-width: auto;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

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

/* ===== Cart Sidebar ===== */
.cart-overlay,
.wishlist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.cart-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.qty-btn:hover {
  background: var(--gray-100);
}

.remove-btn {
  color: var(--danger);
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: auto;
}

.cart-coupon {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--gray-200);
}

.cart-coupon input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}

.cart-summary {
  padding: 16px;
  background: var(--gray-50);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid var(--gray-300);
  padding-top: 16px;
  margin-top: 8px;
}

.discount-row {
  color: var(--secondary);
}

.checkout-btn {
  margin: 16px;
}

.empty-cart {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
}

/* ===== Checkout Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 301;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.checkout-steps {
  display: flex;
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.step {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  color: var(--gray-400);
  position: relative;
}

.step.active {
  color: var(--primary);
  font-weight: 600;
}

.step.completed {
  color: var(--secondary);
}

.checkout-content {
  padding: 24px;
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.shipping-option:hover,
.shipping-option.selected {
  border-color: var(--primary);
}

.shipping-option input {
  width: auto;
}

.shipping-option-info {
  flex: 1;
}

.shipping-option-name {
  font-weight: 500;
}

.shipping-option-time {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.shipping-option-price {
  font-weight: 600;
}

.step-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.step-actions .btn {
  flex: 1;
}

/* ===== Order Review ===== */
.order-review-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.order-review-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.order-review-info {
  flex: 1;
}

.order-review-name {
  font-weight: 500;
}

.order-review-qty {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.order-review-price {
  font-weight: 600;
}

.order-address {
  margin-top: 24px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.order-address h4 {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* ===== Orders List ===== */
.orders-list {
  max-width: 800px;
  margin: 0 auto;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.order-id {
  font-weight: 600;
}

.order-date {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.processing {
  background: #dbeafe;
  color: #1e40af;
}

.order-status.shipped {
  background: #d1fae5;
  color: #065f46;
}

.order-status.delivered {
  background: #d1fae5;
  color: #065f46;
}

.order-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.order-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.order-total {
  font-weight: 700;
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--gray-500);
}

/* ===== User Menu ===== */
.user-menu {
  position: absolute;
  top: 70px;
  right: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 150;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.menu-item:hover {
  background: var(--gray-50);
}

.menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
}

/* ===== Auth Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
}

.modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  margin: 10vh auto;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
}

.auth-modal-content {
  padding: 32px;
}

.auth-modal-content h2 {
  margin-bottom: 24px;
  text-align: center;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  color: var(--gray-500);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
}

/* ===== Product Detail Modal ===== */
.product-detail {
  max-width: 900px;
  padding: 0;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-detail-images {
  padding: 24px;
}

.product-detail-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.product-detail-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.product-detail-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.product-detail-thumbnails img:hover,
.product-detail-thumbnails img.active {
  opacity: 1;
}

.product-detail-info {
  padding: 24px;
  padding-left: 0;
}

.product-detail-info h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.product-detail-info .product-category {
  margin-bottom: 16px;
}

.product-detail-info .product-rating {
  margin-bottom: 16px;
}

.product-detail-info .product-price {
  margin-bottom: 24px;
}

.product-detail-description {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.8;
}

.product-detail-meta {
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.meta-label {
  color: var(--gray-500);
  min-width: 120px;
}

.product-detail-actions {
  display: flex;
  gap: 16px;
}

.product-detail-actions .btn {
  flex: 1;
}

/* ===== Payment Info ===== */
.payment-info {
  text-align: center;
  padding: 32px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.payment-note {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
}

.toast {
  background: var(--gray-900);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}

.toast.success {
  background: var(--secondary);
}

.toast.error {
  background: var(--danger);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 64px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--gray-400);
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  color: var(--gray-500);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    max-width: 100%;
    flex: 1 0 100%;
    margin-top: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 32px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }
  
  .cart-sidebar {
    width: 100%;
  }
  
  .checkout-modal {
    width: 95%;
    margin: 20px auto;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: calc(100vh - 40px);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .product-detail-content {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Multi-Page Specific Styles ===== */

.main-content {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--gray-500);
}

/* Cart Page */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.cart-items-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-row img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-details .cart-item-price {
  color: var(--gray-500);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-total {
  font-weight: 600;
  min-width: 100px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.cart-summary-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.coupon-section {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.coupon-section input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}

.applied-coupon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--secondary);
}

.applied-coupon button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-500);
}

.summary-details {
  margin-bottom: 20px;
}

/* Checkout Page */
.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.checkout-steps-bar .step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
}

.checkout-steps-bar .step.active {
  color: var(--primary);
}

.checkout-steps-bar .step.completed {
  color: var(--secondary);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step.active .step-number {
  background: var(--primary);
  color: var(--white);
}

.step.completed .step-number {
  background: var(--secondary);
  color: var(--white);
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 16px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.checkout-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.checkout-main h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.form-section {
  margin-bottom: 32px;
}

.form-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--gray-700);
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

.checkout-sidebar {
  position: sticky;
  top: 100px;
}

.order-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.order-summary-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.checkout-items {
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.checkout-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.checkout-item-qty {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.checkout-item-price {
  font-weight: 500;
}

/* Review Step */
.review-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}

.review-section h3 {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  align-items: center;
}

.review-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
}

.review-item-qty {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Payment Section */
.payment-section {
  text-align: center;
  padding: 32px;
}

.payment-info-box {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.payment-info-box h3 {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.payment-total {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.payment-methods p {
  color: var(--gray-600);
  margin-bottom: 8px;
}

.payment-note {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Account Page */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--primary);
  color: var(--white);
}

.auth-form {
  display: none;
}

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

.auth-form h2 {
  margin-bottom: 8px;
}

.auth-form > p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.auth-demo {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 16px;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.account-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.user-info-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 20px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.user-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.user-info-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
  background: var(--gray-50);
  color: var(--primary);
}

.logout-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 12px;
  border: none;
  background: none;
  color: var(--danger);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.account-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.account-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

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

.addresses-list {
  display: grid;
  gap: 16px;
}

.address-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}

.address-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.address-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.address-actions {
  margin-top: 12px;
}

.add-address-form {
  margin-top: 24px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.add-address-form h3 {
  margin-bottom: 16px;
}

.no-addresses {
  color: var(--gray-500);
  text-align: center;
  padding: 24px;
}

/* Orders Filters */
.orders-filters {
  margin-bottom: 24px;
}

.orders-filters select {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  min-width: 180px;
}

/* Wishlist Card Remove Button */
.wishlist-card {
  position: relative;
}

.wishlist-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: var(--gray-400);
  transition: var(--transition);
}

.wishlist-remove-btn:hover {
  color: var(--danger);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--gray-500);
}

/* More Items Badge */
.more-items {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* Order Card Enhancements */
.order-items-count {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-left: 8px;
}

.order-actions {
  display: flex;
  gap: 8px;
}

/* ===== Responsive for Multi-Page ===== */
@media (max-width: 1024px) {
  .cart-page-layout,
  .checkout-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-summary-card,
  .checkout-sidebar,
  .account-sidebar {
    position: static;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cart-item-row {
    flex-wrap: wrap;
  }
  
  .cart-item-total {
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }
  
  .checkout-steps-bar {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .step-line {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
