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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.2rem;
  animation: fadeInUp 1s ease;
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Featured Products Carousel */
.carousel {
  margin: 3rem 0;
  position: relative;
}

.carousel-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.carousel-card {
  flex: 0 0 350px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.carousel-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.carousel-card-body {
  padding: 1.5rem;
}

.carousel-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.carousel-card-price {
  font-size: 1.5rem;
  color: #f5576c;
  font-weight: bold;
}

.carousel-card-original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #667eea;
  color: white;
}

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

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

/* Category Icons */
.categories {
  margin: 3rem 0;
}

.categories-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.category-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

/* Product Grid */
.products {
  margin: 3rem 0;
}

.products-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

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

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.product-card-body {
  padding: 1.5rem;
}

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

.product-card-price {
  font-size: 1.3rem;
  color: #f5576c;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-card-original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 1rem;
}

.add-to-cart-btn:hover {
  opacity: 0.9;
}

/* Trust Section */
.trust {
  background: white;
  padding: 3rem 2rem;
  margin: 3rem 0;
  text-align: center;
}

.trust-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  font-size: 3rem;
}

.trust-text {
  font-size: 1rem;
  color: #666;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #999;
}

/* Product Detail Page */
.product-detail {
  padding: 2rem 0;
}

.product-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-title {
  font-size: 2rem;
  font-weight: bold;
}

.product-detail-price {
  font-size: 2.5rem;
  color: #f5576c;
  font-weight: bold;
}

.product-detail-original-price {
  font-size: 1.5rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 1rem;
}

.product-detail-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

.product-detail-options {
  margin-top: 1rem;
}

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

.option-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

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

.size-option,
.color-option {
  padding: 0.5rem 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.size-option:hover,
.color-option:hover {
  border-color: #667eea;
}

.size-option.selected,
.color-option.selected {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.quantity-input {
  width: 100px;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.add-to-cart-btn-large {
  flex: 1;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.add-to-cart-btn-large:hover {
  opacity: 0.9;
}

.buy-now-btn {
  flex: 1;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.buy-now-btn:hover {
  opacity: 0.9;
}

/* Cart Page */
.cart-page {
  padding: 2rem 0;
}

.cart-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 1fr 50px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 10px;
}

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

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-title {
  font-weight: bold;
}

.cart-item-variant {
  font-size: 0.9rem;
  color: #666;
}

.cart-item-price {
  font-size: 1.2rem;
  color: #f5576c;
  font-weight: bold;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.quantity-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.cart-item-quantity span {
  font-size: 1.1rem;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.remove-btn {
  color: #ff4757;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.remove-btn:hover {
  transform: scale(1.2);
}

.cart-summary {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.summary-total {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f5576c;
  border-top: 2px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 1rem;
}

.checkout-btn:hover {
  opacity: 0.9;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #666;
}

.empty-cart p {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 2rem;
}

.empty-cart a {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-weight: bold;
  transition: opacity 0.3s;
}

.empty-cart a:hover {
  opacity: 0.9;
}

/* Checkout Page */
.checkout-page {
  padding: 2rem 0;
}

.checkout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkout-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

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

.form-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.payment-method {
  padding: 2rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.payment-method:hover {
  border-color: #667eea;
  background: #f8f8f8;
}

.payment-method.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.payment-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.payment-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.order-summary {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 10px;
}

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

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #ddd;
}

.order-item-info {
  display: flex;
  flex-direction: column;
}

.order-item-name {
  font-weight: bold;
}

.order-item-variant {
  font-size: 0.9rem;
  color: #666;
}

.order-item-price {
  font-weight: bold;
  color: #f5576c;
}

.order-total {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f5576c;
  border-top: 2px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}

.place-order-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 2rem;
}

.place-order-btn:hover {
  opacity: 0.9;
}

/* Success Page */
.success-page {
  padding: 4rem 2rem;
  text-align: center;
}

.success-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 4rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 5rem;
  color: #4CAF50;
  margin-bottom: 2rem;
}

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.back-home-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: opacity 0.3s;
}

.back-home-btn:hover {
  opacity: 0.9;
}

/* Legal Pages */
.legal-page {
  padding: 2rem 0;
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legal-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.legal-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item img {
    grid-row: 1 / 3;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #333;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  animation: slideIn 0.3s ease;
}

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

.toast.success {
  background: #4CAF50;
}

.toast.error {
  background: #ff4757;
}
