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

:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --hover-color: #ff5252;
  --sale-color: #4caf50;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Banner */
.top-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Navigation Bar */
.header {
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 40px;
  z-index: 999;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.main-nav a:hover:not(.active) {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.main-nav a:hover:not(.active)::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--accent-color);
  font-weight: 600;
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  height: 2px;
  background: var(--accent-color);
  transform: none !important;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  position: relative;
}

.dropdown:hover > a {
  color: var(--accent-color);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  list-style: none;
  min-width: auto;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border-top: 2px solid var(--accent-color);
  display: flex;
  flex-direction: row;
  gap: 0;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.dropdown-menu a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent-color);
  transition: transform 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 107, 107, 0.05);
  color: var(--accent-color);
}

.dropdown-menu a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

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

.nav-actions button:not(.login-btn) {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
  position: relative;
  transition: color 0.2s ease;
  padding: 8px;
}

.nav-actions button:not(.login-btn):hover {
  color: var(--accent-color);
}

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

.login-btn {
  padding: 8px 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.login-btn i {
  flex-shrink: 0;
}

.login-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  display: inline-block;
}

.login-btn:hover {
  background: var(--accent-color);
  color: white;
}

/* Login Dropdown Menu */
.login-dropdown {
  position: relative;
}

.login-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  list-style: none;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border-top: 2px solid var(--accent-color);
  z-index: 1000;
  display: block;
}

.login-dropdown:hover .login-dropdown-menu:not(.hide) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-dropdown-menu.hide {
  display: none;
}

.login-dropdown-menu li {
  padding: 0;
  margin: 0;
}

.login-dropdown-menu a {
  padding: 10px 20px;
  display: block;
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.login-dropdown-menu a:hover {
  background: rgba(255, 107, 107, 0.05);
  color: var(--accent-color);
}

.logout-link {
  cursor: pointer;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  width: 80%;
  max-width: 600px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 20px 50px 20px 20px;
  font-size: 24px;
  border: 2px solid white;
  border-radius: 50px;
  background: transparent;
  color: white;
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.close-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.search-results {
  margin-top: 30px;
  width: 80%;
  max-width: 600px;
  max-height: 400px;
  overflow-y: auto;
}

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

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

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

.cart-header h2 {
  font-size: 24px;
}

.close-cart {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

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

.empty-cart {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

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

.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: 5px;
  flex-shrink: 0;
}

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

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

.cart-item-price {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  background: white;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.remove-item {
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5px 10px;
  border-radius: 3px;
}

.remove-item:hover {
  background: rgba(255, 107, 107, 0.1);
  transform: scale(1.1);
}

.remove-item:active {
  transform: scale(0.95);
}

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

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.total-price {
  color: var(--accent-color);
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.checkout-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.checkout-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.checkout-btn:hover::before {
  width: 400px;
  height: 400px;
}

.checkout-btn:active {
  transform: translateY(0);
}

/* Hero Section */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.85) 0%,
    rgba(118, 75, 162, 0.85) 100%
  );
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3) 0%,
    rgba(118, 75, 162, 0.3) 100%
  );
  z-index: 1;
}

.carousel-slide:nth-child(2)::before {
  background: linear-gradient(
    135deg,
    rgba(240, 147, 251, 0.3) 0%,
    rgba(245, 87, 108, 0.3) 100%
  );
}

.carousel-slide:nth-child(3)::before {
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.3) 0%,
    rgba(0, 242, 254, 0.3) 100%
  );
}

.carousel-slide:nth-child(4)::before {
  background: linear-gradient(
    135deg,
    rgba(67, 233, 123, 0.3) 0%,
    rgba(56, 249, 215, 0.3) 100%
  );
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.carousel-slide.prev {
  transform: translateX(-100%);
}

.carousel-content {
  flex: 1;
  max-width: 500px;
  z-index: 2;
  color: white;
  text-align: left;
  position: relative;
}

.carousel-image {
  z-index: 1;
  position: relative;
}

.carousel-content h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-image {
  flex: 1;
  max-width: 500px;
  height: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--accent-color);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.cta-button:hover::before {
  width: 400px;
  height: 400px;
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-color);
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 30px;
}

.carousel-next {
  right: 30px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Product Categories */
.collections {
  padding: 80px 20px;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  font-weight: 700;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.collection-card {
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.collection-card:hover {
  transform: translateY(-8px);
}

.collection-image {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s ease;
}

.collection-card:hover .collection-image {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.collection-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.2),
    rgba(118, 75, 162, 0.2)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.collection-card:hover .collection-image::after {
  opacity: 1;
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.collection-card h3 {
  font-size: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.collection-card:hover h3 {
  color: var(--accent-color);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3),
    rgba(118, 75, 162, 0.3)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.product-image {
  width: 100%;
  height: 300px;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sale-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

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

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.discount {
  font-size: 12px;
  color: var(--sale-color);
  font-weight: 600;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  flex-shrink: 0;
}

.add-to-cart-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.add-to-cart-btn:hover::before {
  width: 300px;
  height: 300px;
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* New Arrivals and Bestsellers */
.new-arrivals,
.bestsellers {
  padding: 80px 20px;
  background: var(--light-gray);
}

.bestsellers {
  background: white;
}

.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 15px 40px;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.load-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.load-more-btn span {
  position: relative;
  z-index: 1;
}

.load-more-btn:hover {
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.load-more-btn:hover::before {
  transform: scaleX(1);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* Women's Section */
.women-section {
  padding: 80px 20px;
  background: white;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 25px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.tab-btn:hover::before {
  width: 300px;
  height: 300px;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 20px 20px;
}

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

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

.footer-section a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

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

.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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.social-links a:active {
  transform: translateY(-1px) scale(1.05);
}

.payment-methods {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.payment-methods .payment-icon {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  background: #f5f5f5;
  border-radius: 5px;
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
}

.payment-methods .payment-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Login Page */
.login-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 14px;
}

.login-form {
  width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper:has(input:focus) i {
  color: var(--accent-color);
}

.toggle-password {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--accent-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-color);
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.forgot-password {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.submit-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
  color: #999;
  font-size: 14px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  position: relative;
  background: white;
  padding: 0 15px;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.social-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-color);
}

.social-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.google-btn:hover {
  border-color: #db4437;
  color: #db4437;
}

.wechat-btn:hover {
  border-color: #07c160;
  color: #07c160;
}

.signup-link {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.signup-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Login Notification */
.login-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.login-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.login-notification.success {
  border-left: 4px solid #4caf50;
}

.login-notification.error {
  border-left: 4px solid var(--accent-color);
}

.login-notification i {
  font-size: 20px;
}

.login-notification.success i {
  color: #4caf50;
}

.login-notification.error i {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .carousel-container {
    height: 500px;
  }

  .carousel-slide {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .carousel-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .carousel-content h2 {
    font-size: 32px;
  }

  .carousel-content p {
    font-size: 18px;
  }

  .carousel-image {
    max-width: 100%;
    height: 250px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .login-box {
    padding: 30px 20px;
  }

  .login-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .top-banner {
    font-size: 12px;
    padding: 8px;
  }

  .logo h1 {
    font-size: 24px;
  }

  .nav-actions {
    gap: 10px;
  }

  .carousel-container {
    height: 400px;
  }

  .carousel-content h2 {
    font-size: 24px;
  }

  .carousel-content p {
    font-size: 16px;
  }

  .carousel-image {
    height: 200px;
  }

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

/* Custom Confirm Dialog */
.custom-confirm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-confirm-modal.show {
  display: flex;
}

.confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.confirm-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.2s ease;
  z-index: 1;
}

.confirm-modal-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.confirm-modal-header h3::before {
  content: "⚠️";
  font-size: 20px;
  margin-right: 4px;
}

.confirm-modal-body {
  padding: 0 24px 24px;
}

.confirm-modal-body p {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.confirm-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.confirm-btn.cancel-btn {
  background: white;
  color: #666;
  border: 1px solid #e0e0e0;
}

.confirm-btn.cancel-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

.confirm-btn:active {
  transform: scale(0.98);
}

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

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

/* Custom Alert Modal */
.custom-alert-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-alert-modal.show {
  display: flex;
}

.alert-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.alert-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.2s ease;
  z-index: 1;
}

.alert-modal-body {
  padding: 24px;
  text-align: center;
}

.alert-modal-body p {
  margin: 0 0 20px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.alert-modal-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: center;
}

.alert-btn {
  padding: 10px 32px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--accent-color);
  color: white;
}

.alert-btn:hover {
  background: var(--hover-color);
}

.alert-btn:active {
  transform: scale(0.98);
}
