/* Fashion Nova Style E-commerce Styles */
:root {
  --primary-color: #E91E63;
  --primary-dark: #C2185B;
  --primary-light: #F8BBD9;
  --secondary-color: #FF4081;
  --accent-color: #FFD700;
  --text-color: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg-color: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #1A1A1A;
  --border-color: #EEEEEE;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --warning-color: #FF9800;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.grid {
  display: grid;
  gap: 24px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--bg-dark);
  color: white;
  padding: 8px 0;
  font-size: 13px;
}

.header-main {
  padding: 15px 0;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.logo span {
  color: var(--bg-dark);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 14px;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-bar button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  transition: var(--transition);
}

.header-action:hover {
  color: var(--primary-color);
}

.header-action i {
  font-size: 22px;
  margin-bottom: 4px;
}

.cart-icon {
  position: relative;
}

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

/* Navigation */
.nav {
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 12px 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  margin-top: 140px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btn {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Featured Carousel */
.featured-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 20px;
  color: var(--text-color);
  transition: var(--transition);
  z-index: 10;
}

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

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

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

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

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

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

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

.badge {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 3px;
}

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

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

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.product-card:hover .product-actions {
  bottom: 0;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

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

.stars {
  color: var(--accent-color);
  font-size: 14px;
}

.rating-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Categories Section */
.categories-section {
  padding: 60px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  color: white;
  transition: var(--transition);
  cursor: pointer;
}

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

.category-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Products Grid */
.products-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

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

.sort-select {
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Trust Section */
.trust-section {
  padding: 60px 0;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-item {
  text-align: center;
  padding: 30px;
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.trust-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 15px;
}

.footer-brand .logo span {
  color: var(--primary-color);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: white;
  z-index: 2000;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.cart-title {
  font-size: 20px;
  font-weight: 600;
}

.close-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

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

.cart-item-image {
  width: 80px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

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

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 500;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.cart-subtotal span:last-child {
  font-weight: 700;
  color: var(--primary-color);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  z-index: 2000;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
}

.close-modal {
  font-size: 24px;
  color: var(--text-muted);
}

/* Product Detail Page */
.product-detail {
  padding: 160px 0 60px;
}

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

.product-gallery {
  position: sticky;
  top: 160px;
}

.main-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 15px;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-detail-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-price {
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-price .current-price {
  font-size: 28px;
}

.detail-price .original-price {
  font-size: 18px;
}

.discount-badge {
  background: var(--error-color);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.product-description {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.option-group {
  margin-bottom: 25px;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

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

.size-option.selected {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.color-options {
  display: flex;
  gap: 10px;
}

.color-option {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

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

.color-option.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.add-to-cart-section {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.add-to-cart-btn {
  flex: 1;
  padding: 18px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

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

.buy-now-btn {
  padding: 18px 40px;
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.buy-now-btn:hover {
  background: #333;
}

/* Checkout Page */
.checkout-section {
  padding: 160px 0 60px;
  background: var(--bg-light);
  min-height: 100vh;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

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

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

.form-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
}

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

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.payment-method input {
  display: none;
}

.payment-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
}

.payment-method.selected .payment-radio {
  border-color: var(--primary-color);
}

.payment-method.selected .payment-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
}

.payment-info {
  flex: 1;
}

.payment-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.payment-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.payment-logo {
  height: 40px;
}

/* Order Summary */
.order-summary {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: 160px;
}

.summary-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.summary-items {
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.summary-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-item-image {
  width: 60px;
  height: 75px;
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.summary-item-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.summary-item-variant {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-item-price {
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
}

.summary-row.total span:last-child {
  color: var(--primary-color);
}

.place-order-btn {
  width: 100%;
  padding: 18px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  transition: var(--transition);
}

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

/* Policy Pages */
.policy-page {
  padding: 160px 0 60px;
  min-height: 100vh;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow);
}

.policy-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.policy-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.policy-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--text-color);
}

.policy-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--text-color);
}

.policy-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.policy-content ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

.policy-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 10px;
}

.policy-content a {
  color: var(--primary-color);
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-icon {
  font-size: 80px;
  color: var(--border-color);
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-cart p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-dark);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 3000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

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

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Order Success Page */
.success-page {
  padding: 160px 0 60px;
  text-align: center;
  min-height: 100vh;
  background: var(--bg-light);
}

.success-icon {
  width: 120px;
  height: 120px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 60px;
  color: white;
}

.success-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.success-message {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.order-number {
  background: white;
  padding: 20px 40px;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.order-number span {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

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

@media (max-width: 992px) {
  .hero h1 {
    font-size: 42px;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-main .container {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
  }
  
  .nav-list {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-item {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cart-sidebar {
    width: 100%;
  }
  
  .policy-container {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    gap: 15px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* Quick View Modal */
.quick-view-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.quick-view-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
}

.quick-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .quick-view-content {
    grid-template-columns: 1fr;
  }
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wishlist Heart */
.wishlist-btn.active {
  color: var(--error-color);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
}

.promo-banner a {
  text-decoration: underline;
  margin-left: 10px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  margin: 0 10px;
  color: var(--text-muted);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}
