* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b6b;
  --primary-dark: #ff5252;
  --secondary: #1a1a1a;
  --light: #f5f5f5;
  --gray: #888888;
  --gray-light: #e0e0e0;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--secondary);
  line-height: 1.6;
  background-color: #fff;
}

html, body, #root {
  height: 100%;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  border-radius: var(--border-radius);
}

/* App Layout */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 0;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

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

.navbar-center {
  flex: 1;
  max-width: 400px;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.navbar-menu a {
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.3s;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.navbar-menu a:hover {
  color: var(--primary);
}

.navbar-menu a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.navbar-menu a.admin-link {
  color: var(--primary);
  font-weight: bold;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

.icon-btn:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background: var(--primary);
  color: white;
  font-weight: 600;
  transition: background 0.3s;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

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

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

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--gray-light);
}

.btn-outline:hover {
  border-color: var(--secondary);
}

.btn-danger {
  background: #e74c3c;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-icon {
  padding: 0.5rem;
  background: transparent;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background 0.3s;
}

.btn-icon:hover {
  background: var(--light);
}

.btn-icon.active {
  background: var(--primary) + '20';
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8787 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light);
}

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

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

.discount-badge, .featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.875rem;
}

.featured-badge {
  right: auto;
  left: 10px;
  background: #4CAF50;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.price {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

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

.price .discounted,
.price .current {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
}

.stock {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.in-stock {
  color: #4CAF50;
  font-weight: 600;
}

.out-of-stock {
  color: #e74c3c;
  font-weight: 600;
}

/* Category Card */
.category-card {
  display: block;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
}

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

.category-card h3 {
  padding: 1rem;
  font-size: 1.2rem;
}

.category-card p {
  padding: 0 1rem 1rem;
  color: var(--gray);
  font-size: 0.875rem;
}

/* Search Bar */
.search-bar {
  position: relative;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-light);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--light);
}

/* Filters */
.filters-sidebar {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  height: fit-content;
}

.filters-sidebar h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="checkbox"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-size: 0.9rem;
}

.filter-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Products Page */
.products-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.products-page h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.products-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.products-content {
  display: flex;
  flex-direction: column;
}

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.sort-bar select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
}

.product-count {
  color: var(--gray);
  font-size: 0.9rem;
}

.no-products {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
}

/* Product Detail */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.detail-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #f5f5f5;
  margin: 0 auto;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.nav-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
  left: 1rem;
}

.nav-arrow.next {
  right: 1rem;
}

.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: var(--primary-color);
  opacity: 0.8;
}

.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detail-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.detail-info .brand {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.rating {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.detail-info .description {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.color-options,
.size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.color-btn,
.size-btn {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--border-radius);
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.color-btn:hover,
.size-btn:hover {
  border-color: var(--primary);
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  width: fit-content;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
}

.quantity-selector input {
  width: 60px;
  border: none;
  text-align: center;
  font-weight: bold;
}

.stock-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light);
  border-radius: var(--border-radius);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-buttons .btn {
  flex: 1;
}

.action-buttons .btn-icon {
  flex: 0;
  width: auto;
}

.product-details {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.product-details h3 {
  margin-bottom: 1rem;
}

.product-details ul {
  list-style: none;
}

.product-details li {
  padding: 0.5rem 0;
  color: var(--gray);
}

/* Cart Page */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.cart-page h1 {
  margin-bottom: 2rem;
}

.empty-cart {
  text-align: center;
  padding: 3rem;
  background: var(--light);
  border-radius: var(--border-radius);
}

.empty-cart p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: var(--light);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gray-light);
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.cart-item-product {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cart-item-product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.product-name {
  font-weight: 600;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  width: fit-content;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  background: transparent;
  cursor: pointer;
}

.cart-summary {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  margin-bottom: 1.5rem;
}

.summary-rows {
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 2px solid var(--gray-light);
  border-bottom: none;
  padding: 1rem 0;
}

/* Checkout Page */
.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.checkout-page h1 {
  margin-bottom: 2rem;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.checkout-form,
.checkout-summary {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #f44336;
}

.required {
  color: #f44336;
  margin-left: 2px;
}

.error-message {
  display: block;
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.payment-info {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.text-muted {
  color: var(--gray);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.checkout-summary {
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-items {
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.9rem;
}

.summary-total {
  padding-top: 1rem;
  font-size: 1.1rem;
  color: var(--primary);
}

/* Auth Pages */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem;
}

.auth-container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.auth-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-container form {
  margin-bottom: 1.5rem;
}

.auth-container p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1rem;
}

.auth-container a {
  color: var(--primary);
  font-weight: 600;
}

.forgot-password-link {
  text-align: right;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s;
}

.link-button:hover {
  color: var(--primary-dark);
}

.auth-switch {
  margin-top: 1.5rem !important;
}

.modal-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  text-align: left !important;
}

.admin-demo {
  color: #ff6b6b !important;
  font-weight: bold !important;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  text-align: center;
}

.demo-account {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.demo-account p {
  margin: 0.25rem 0;
  text-align: left;
}

/* Profile Page */
.profile-page,
.orders-page,
.wishlist-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-page h1,
.orders-page h1,
.wishlist-page h1 {
  margin-bottom: 2rem;
}

.profile-container {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.profile-form h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem;
}

.profile-form h2:first-child {
  margin-top: 0;
}

/* Orders Page */
.orders-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.order-card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.order-header h3 {
  font-size: 1.2rem;
}

.status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.status.paid {
  background: #d4edda;
  color: #155724;
}

.status.shipped {
  background: #d1ecf1;
  color: #0c5460;
}

.status.delivered {
  background: #d4edda;
  color: #155724;
}

.order-details {
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--gray);
}

.order-items {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.order-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.shipping-info {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.shipping-info h4 {
  margin-bottom: 0.5rem;
}

.shipping-info p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

/* Wishlist Page */
.wishlist-item {
  position: relative;
}

.wishlist-item .btn {
  margin-top: 0.5rem;
}

/* About Page */
.about-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.about-page h1 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray);
}

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.why-us-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s;
}

.why-us-card:hover {
  transform: translateY(-4px);
}

.why-us-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Contact Page */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-page h1 {
  margin-bottom: 2rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.info-item p {
  color: var(--gray);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-links a:hover {
  background: var(--primary-dark);
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--light);
  color: var(--secondary);
  transition: all 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.social-icon svg {
  flex-shrink: 0;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-icon.whatsapp:hover {
  background: #25D366;
  color: white;
}

.social-icon span {
  font-weight: 500;
  font-size: 1rem;
}

.contact-form {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Sales Page */
.sales-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.sales-header {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8787 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 2rem;
}

.sales-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.sales-header p {
  font-size: 1.1rem;
}

/* Sale Banner */
.sale-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8787 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--border-radius);
}

.sale-banner h2 {
  color: white;
}

.sale-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #424242 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.promo-banner h3 {
  font-size: 1.5rem;
}

.promo-banner input {
  max-width: 400px;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
}

.promo-banner .btn {
  max-width: 400px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

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

.modal-body {
  margin-bottom: 0;
}

/* Cart Modal Specific */
.cart-modal {
  text-align: center;
  max-width: 400px;
}

.cart-modal-icon {
  width: 60px;
  height: 60px;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.cart-modal h2 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.cart-modal-message {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.cart-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cart-modal-actions .btn {
  flex: 1;
  max-width: 200px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid #4CAF50;
}

.toast-error {
  border-left: 4px solid #f44336;
}

.toast-info {
  border-left: 4px solid #2196F3;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: #4CAF50;
  color: white;
}

.toast-error .toast-icon {
  background: #f44336;
  color: white;
}

.toast-info .toast-icon {
  background: #2196F3;
  color: white;
}

.toast-message {
  flex: 1;
  color: var(--secondary);
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--secondary);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  margin-top: auto;
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.2rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Loading & Empty States */
.loading,
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
  font-size: 1.1rem;
}

.empty-state {
  background: var(--light);
  border-radius: var(--border-radius);
  margin: 2rem auto;
  max-width: 500px;
}

.empty-state .btn {
  margin-top: 1.5rem;
}

.text-muted {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .navbar-center {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  .navbar-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .detail-container {
    grid-template-columns: 1fr;
  }

  .products-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none;
  }

  .cart-container,
  .checkout-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .cart-table {
    font-size: 0.85rem;
  }

  .cart-table th,
  .cart-table td {
    padding: 0.5rem;
  }

  .sort-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    font-size: 1.2rem;
  }

  .navbar-icons {
    gap: 0.5rem;
  }

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

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 0 1rem;
  }

  .auth-container {
    padding: 1.5rem;
  }

  .contact-form,
  .profile-container {
    padding: 1rem;
  }
}
