:root {
  --primary: #159e65;
  --primary-dark: #039433;
  --primary-light: #23dd4b;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  --gradient-success: linear-gradient(
    135deg,
    var(--success) 0%,
    var(--secondary) 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--dark);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 1.8rem;
}

.logo span {
  color: var(--dark);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--light);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: scale(1.02);
}

.search-bar i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.user-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.user-info:hover::before {
  left: 100%;
}

.cart-icon,
.favorites-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--dark);
}

.cart-icon:hover,
.favorites-icon:hover {
  background: var(--gray-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.cart-count,
.favorites-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Hero Section */
.hero {
  background: var(--gradient-dark);
  color: white;
  padding: 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  height: 600px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: float 20s linear infinite;
}

@keyframes float {
  from {
    transform: translate(0, 0) rotate(0deg);
  }

  to {
    transform: translate(-50px, -50px) rotate(360deg);
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: slideUp 0.8s ease;
  padding: 4rem 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .swiper {
  width: 100%;
  height: 100%;
}

.hero .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-blend-mode: overlay;
}

.hero .swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 0;
}

.hero .swiper-slide .container {
  position: relative;
  z-index: 1;
}

.hero .swiper-button-next,
.hero .swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
}

.hero .swiper-button-next::after,
.hero .swiper-button-prev::after {
  font-size: 20px;
  color: white;
}

.hero .swiper-pagination {
  bottom: 20px;
}

.hero .swiper-pagination-bullet {
  background: white;
  opacity: 0.6;
}

.hero .swiper-pagination-bullet-active {
  background: white;
  opacity: 1;
}

.hero-product-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 1.5rem 0;
}

.discounted-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: #999;
}

.final-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.discount-badge {
  background: var(--danger);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Category Filter */
.category-section {
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease 0.2s both;
}

.category-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.category-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-item {
  text-align: center;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--gray-light);
  padding: 1.2rem 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 120px;
  width: 100%;
}

.category-btn i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-btn span {
  display: block;
}

.category-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.category-btn:hover i {
  color: var(--primary);
  transform: scale(1.2);
}

.category-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary);
  animation: pulse 2s infinite;
}

.category-btn.active i {
  color: white;
}

/* Products Section */
.products-section {
  margin-bottom: 4rem;
  animation: fadeIn 0.8s ease 0.4s both;
}

.products-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.products-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
  animation: fadeInUp 0.6s ease both;
  animation-delay: calc(var(--animation-order) * 0.1s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(37, 99, 235, 0.03) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-quick-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  border: none;
  backdrop-filter: blur(10px);
}

.product-card:hover .product-quick-view {
  transform: translate(-50%, -50%) scale(1);
}

.product-quick-view:hover {
  background: var(--primary);
  color: white;
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient-success);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  animation: floatUpDown 2s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.product-info {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.product-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  color: var(--dark);
  transition: var(--transition);
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-description {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price.discounted {
  color: var(--gray);
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 500;
}

.product-final-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.product-final-price::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover .product-final-price::after {
  transform: scaleX(1);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn:hover::after {
  width: 200px;
  height: 200px;
}

.btn-add-to-cart {
  background: var(--gradient-primary);
  color: white;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-add-to-cart.added {
  background: var(--gradient-success);
  animation: celebrate 0.5s ease;
}

@keyframes celebrate {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.btn-favorite {
  background: var(--gray-light);
  color: var(--dark);
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.btn-favorite:hover {
  background: #d1d5db;
  transform: rotate(15deg);
}

.btn-favorite.active {
  background: var(--danger);
  color: white;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Cart User Details Form */

.cart-user-details .form-group {
  margin-bottom: 1.2rem;
}

.cart-user-details label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.cart-user-details input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.cart-user-details input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 158, 101, 0.1);
  transform: scale(1.02);
}

.cart-user-details input:invalid {
  border-color: var(--danger);
}

.cart-user-details input:valid {
  border-color: var(--success);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-primary);
  color: white;
}

.cart-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.cart-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.close-cart {
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-cart:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.cart-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  color: var(--gray);
  padding: 3rem 0;
  animation: fadeIn 0.5s ease;
}

.cart-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-light);
  animation: bounce 2s infinite;
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
}

.cart-item:hover .cart-item-image {
  transform: scale(1.1);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-light);
  padding: 0.3rem;
  border-radius: 6px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  background: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.qty-input {
  width: 30px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
}

.remove-item {
  color: var(--danger);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.3rem;
  border-radius: 4px;
}

.remove-item:hover {
  background-color: rgba(223, 59, 59, 0.226);
}

.cart-summary {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-light);
  background: var(--light);
}

.cart-footer {
  margin-top: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  animation: fadeIn 0.5s ease;
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gray-light);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn-checkout {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  justify-content: center;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-clear-cart {
  background: var(--gray-light);
  color: var(--dark);
  padding: 0.8rem;
  justify-content: center;
}

.btn-clear-cart:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-2px);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Product Quick View Modal */
.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.quick-view-modal.active {
  opacity: 1;
  visibility: visible;
}

.quick-view-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
}

.quick-view-modal.active .quick-view-content {
  transform: scale(1);
}

.close-quick-view {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--danger);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.close-quick-view:hover {
  transform: rotate(90deg);
}

/* Floating Cart Icon */
.floating-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: floatUpDown 3s ease-in-out infinite;
}

.floating-cart:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-xl);
}

.floating-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s infinite;
}

/* Footer */
footer {
  background: var(--secondary-dark);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  pointer-events: none;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-section p,
.footer-section a {
  color: #cbd5e1;
  margin-bottom: 0.8rem;
  display: block;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  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-links a:hover {
  background: var(--primary);
  transform: translateY(-5px) rotate(15deg);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--success);
  animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
  }
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--primary);
}

/* Progress Bar */
.free-shipping-bar {
  background: var(--gray-light);
  height: 10px;
  border-radius: 5px;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.free-shipping-progress {
  background: var(--gradient-primary);
  height: 100%;
  width: 0%;
  transition: width 1s ease;
  border-radius: 5px;
}

.free-shipping-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .search-bar {
    max-width: 300px;
    margin: 0 1rem;
  }

  .quick-view-content {
    width: 95%;
    margin: 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .user-menu {
    order: 2;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 1rem 0 0;
  }

  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-product-image {
    width: 150px;
    height: 150px;
  }

  .hero-product-price {
    flex-direction: column;
    gap: 5px;
  }

  .discounted-price {
    font-size: 1rem;
  }

  .final-price {
    font-size: 1.5rem;
  }

  .discount-badge {
    font-size: 0.8rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  .category-btn {
    padding: 1rem 0.6rem;
    min-height: 100px;
  }

  .category-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .category-btn span {
    font-size: 0.8rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .product-category-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .floating-cart {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-product-image {
    width: 120px;
    height: 120px;
  }

  .hero-product-price {
    flex-direction: column;
    gap: 5px;
  }

  .discounted-price {
    font-size: 0.9rem;
  }

  .final-price {
    font-size: 1.3rem;
  }

  .discount-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.6rem;
  }

  .category-btn {
    padding: 0.8rem 0.5rem;
    min-height: 90px;
  }

  .category-btn i {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }

  .category-btn span {
    font-size: 0.75rem;
  }

  .category-filter {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .products-container {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary);
  top: -10px;
  z-index: 9999;
  opacity: 0;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Payment Modal Styles */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

/* Customer Details Modal */
.customer-details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.customer-details-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.3s ease;
  position: relative;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: 15px 15px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.close-modal {
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: var(--light);
  border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
  flex: 1;
  max-width: 150px;
}

.payment-modal-content {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.3s ease;
  position: relative;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.payment-success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  animation: scalePulse 0.5s ease;
}

.payment-error-icon {
  width: 80px;
  height: 80px;
  background: var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  animation: shake 0.5s ease;
}

@keyframes scalePulse {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.payment-modal-content h2 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.payment-modal-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.payment-details {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.payment-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--dark);
}

.payment-details strong {
  color: var(--primary);
}

.payment-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.payment-modal-actions .btn {
  flex: 1;
  max-width: 150px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gray-light);
  color: var(--dark);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--gray);
  transform: translateY(-2px);
}
