/* Component Styles */

/* Product Card Component */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.product-image-container {
  position: relative;
  aspect-ratio: 5/4;
  overflow: hidden;
  background: #f8f9fa;
}

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

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

.product-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc2626;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 9;
}

.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-wishlist-btn:hover {
  background: #fef2f2;
  transform: scale(1.1);
}

.product-wishlist-btn.active {
  background: #fef2f2;
  color: #dc2626;
}

.product-wishlist-btn i {
  font-size: 16px;
}

.product-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-current-price {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.product-old-price {
  color: #9ca3af;
  font-size: 14px;
  text-decoration: line-through;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.product-add-to-cart-btn {
  flex: 1;
  background: #111827;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-add-to-cart-btn:hover {
  background: #374151;
  transform: translateY(-1px);
}

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

/* Hero Carousel Component */
.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-indicator.active {
  background: white;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-nav-btn.prev {
  left: 20px;
}

.hero-nav-btn.next {
  right: 20px;
}

/* Service Card Component */
.service-card {
  text-align: center;
  padding: 24px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 48px;
  color: #dc2626;
  margin-bottom: 16px;
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.service-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Header Component */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-desktop-nav {
  display: none;
}

.site-desktop-nav a {
  color: #111827;
  font-weight: 500;
  text-decoration: none;
  margin: 0 2rem;
  transition: color 0.2s ease;
}

.site-desktop-nav a:hover,
.site-desktop-nav a.active {
  color: #dc2626;
}

.site-desktop-icons {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-icon-btn {
  position: relative;
  color: #111827;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-icon-btn:hover {
  color: #dc2626;
}

.site-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: white;
  font-size: 0.75rem;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.site-user-menu {
  position: relative;
}

.site-user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 12rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  display: none;
  z-index: 50;
}

.site-user-dropdown.show {
  display: block;
}

.site-user-dropdown a,
.site-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.site-user-dropdown a:hover,
.site-user-dropdown button:hover {
  background: #f3f4f6;
}

.site-mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: #111827;
  font-size: 1.25rem;
  cursor: pointer;
}

.site-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 16rem;
  height: 100%;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 50;
}

.site-mobile-menu.show,
.site-mobile-menu.translate-x-0 {
  transform: translateX(0);
}

.site-mobile-menu.-translate-x-full {
  transform: translateX(-100%);
}

.site-mobile-menu-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

/* Mobile menu close button styles */
#close-mobile-menu {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

#close-mobile-menu:hover {
  background-color: #f3f4f6;
  color: #374151;
}

#close-mobile-menu:active {
  background-color: #e5e7eb;
  transform: scale(0.95);
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  #close-mobile-menu {
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.75rem;
  }
  
  #close-mobile-menu:active {
    background-color: #d1d5db;
    transform: scale(0.9);
  }
}

/* Ensure the button is easily tappable on mobile */
@media (max-width: 768px) {
  #close-mobile-menu {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.625rem;
  }
}

.site-mobile-menu-content {
  padding: 1.5rem;
}

.site-mobile-menu-content a,
.site-mobile-menu-content button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  color: #111827;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-mobile-menu-content a:hover,
.site-mobile-menu-content button:hover {
  color: #dc2626;
}

.site-mobile-menu-content a.active {
  color: #dc2626;
}

.site-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 24rem;
  height: 100%;
  background: white;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 50;
}

.site-cart-drawer.show {
  transform: translateX(0);
}

.site-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  display: none;
}

.site-cart-overlay.show {
  display: block;
}

.site-cart-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.site-cart-content {
  padding: 1.5rem;
  height: calc(100% - 75px);
  display: flex;
  flex-direction: column;
}

.site-cart-items {
  flex: 1;
  overflow-y: auto;
}

.site-cart-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.site-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.site-checkout-btn {
  width: 100%;
  background: #111827;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.site-checkout-btn:hover {
  background: #374151;
}

.site-continue-shopping-btn {
  width: 100%;
  background: #f3f4f6;
  color: #374151;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.site-continue-shopping-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Footer Component */
.site-footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.site-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer-section p {
  color: #9ca3af;
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.site-social-links a {
  color: #9ca3af;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.site-social-links a:hover {
  color: white;
}

.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-links a:hover {
  color: white;
}

.site-contact-info {
  color: #9ca3af;
}

.site-contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.site-contact-info i {
  margin-right: 0.5rem;
  width: 1rem;
}

.site-footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.site-payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-payment-methods span {
  color: #9ca3af;
  font-size: 0.875rem;
}

.site-payment-methods i {
  font-size: 1.5rem;
  color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 768px) {
  .site-desktop-nav {
    display: flex;
  }

  .site-desktop-icons {
    display: flex;
  }

  .site-mobile-menu-btn {
    display: none;
  }

  .site-footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .site-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 300px;
  }
  
  .hero-slide {
    background-size: cover;
    background-position: center;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
  }

  .product-content {
    padding: 10px;
  }

  .product-title {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .product-brand {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .product-current-price {
    font-size: 15px;
  }

  .product-old-price {
    font-size: 11px;
  }

  .product-price-container {
    margin-bottom: 8px;
    gap: 6px;
  }

  .product-add-to-cart-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-wishlist-btn {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }

  .product-wishlist-btn i {
    font-size: 12px;
  }

  .product-discount-badge {
    top: 8px;
    left: 8px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .service-card {
    padding: 20px 12px;
  }

  .service-icon {
    font-size: 36px;
  }

  .service-title {
    font-size: 16px;
  }

  .service-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 200px;
  }
  
  .hero-slide {
    background-size: cover;
    background-position: center;
  }
  
  .hero-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .hero-nav-btn.prev {
    left: 10px;
  }
  
  .hero-nav-btn.next {
    right: 10px;
  }
}
