:root {
  --bg-color: #f5f5f7;
  --surface-color: #ffffff;
  --surface-hover: #fcfcfc;
  --primary-accent: #0066cc;
  --secondary-accent: #000000;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --logo-text-start: #1d1d1f;
  --logo-text-end: #86868b;
}

[data-theme="dark"] {
  --bg-color: #0b0b0c;
  --surface-color: #16161a;
  --surface-hover: #1e1e24;
  --primary-accent: #3b82f6;
  --secondary-accent: #ffffff;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(22, 22, 26, 0.85);
  --glass-border: rgba(255, 255, 255, 0.05);
  --logo-text-start: #ffffff;
  --logo-text-end: #a1a1a6;
}

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

/* Global Transition for Theme Switching */
body, header, .admin-card, .product-card, .filter-bar, .search-bar, table, th, td, input, select, textarea, .category-card, .btn-icon, .brand-item {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-icon {
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}

.btn-icon:hover {
  color: var(--primary-accent);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--logo-text-start), var(--logo-text-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--primary-accent);
  -webkit-text-fill-color: var(--primary-accent);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

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

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
  margin: 0 40px;
  background: rgba(245, 245, 247, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-accent);
  max-width: 550px;
}

.search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.search-bar i {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.search-bar:focus-within i {
  color: var(--primary-accent);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

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



/* Hero Banner Carousel */
.banner-carousel-container {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: #0b0b0d;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}

.banner-carousel-container:hover .carousel-btn {
  opacity: 1;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-btn:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  transform: translateY(-50%) scale(1.1);
}

/* Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .banner-carousel-container {
    height: 320px;
  }
  .carousel-btn {
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .banner-carousel-container {
    height: 220px;
    border-radius: 14px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  .carousel-dots { bottom: 12px; }
}

/* Global Section Title */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
  background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.category-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-accent);
  box-shadow: 0 10px 30px rgba(0, 112, 243, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-accent);
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Categories */


/* Brand Bar */
.brand-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0 20px;
  margin-bottom: 20px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.brand-bar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.brand-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-item:hover {
  color: var(--primary-accent);
}

.brand-item.active {
  color: var(--text-primary);
  border-bottom-color: var(--primary-accent);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  background: var(--surface-color);
  padding: 15px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
}

.filter-select {
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.filter-select:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.filter-select:hover {
  border-color: var(--primary-accent);
}

/* Products */
.products {
  padding: 60px 0;
}

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

.product-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

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

.product-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-price span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.btn-add-cart {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card:hover .btn-add-cart {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
}



/* Footer */
/* Footer */
footer {
  background: #0b0b0d;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 20px 0;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 700;
}

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

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

.footer-links ul li a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

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

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.contact-list li i {
  color: var(--primary-accent);
  font-size: 1.1rem;
}

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

.social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Local Payment Badges in Footer */
.payment-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e5e5e7;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.pay-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.pay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .search-bar { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text { margin-bottom: 40px; }
  
  .footer-grid { grid-template-columns: 1fr; }
}
