/* TechZone Mobile Accessories - Core Stylesheet & Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dynamic brand colors - overridden by JS from settings */
  --primary-color: #ff5722;
  --primary-hover: #e64a19;
  --secondary-color: #1e1e24;
  --secondary-hover: #0f0f12;
  
  /* Palette & Neutrals */
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --text-light: #f3f4f6;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  
  /* Shadow Systems */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 30px -10px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Dimensions */
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.section-padding {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: capitalize;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  height: auto;
  min-height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  transition: var(--transition-fast);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

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

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

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

.search-bar-container {
  position: relative;
  width: 250px;
}

.search-input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  background-color: var(--bg-white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.search-icon-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50px;
  transition: var(--transition-fast);
}

.cart-icon-btn:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger & Drawer Mobile */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  gap: 25px;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

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

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary-color);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}

.drawer-backdrop.show {
  display: block;
}

/* Search Suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1002;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--bg-light);
}

.suggestion-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}

.suggestion-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.suggestion-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 30, 36, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.hero-slider-wrapper {
  position: relative;
  height: 420px;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition-normal) ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  color: white;
  width: 100%;
  max-width: 650px;
  padding: 0 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .hero-slide-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.25s;
}

.hero-discount-badge {
  background-color: var(--primary-color);
  color: white;
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-slide h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.hero-slide p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.carousel-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  opacity: 0;
  pointer-events: none;
}

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

.carousel-control-btn.prev {
  left: 20px;
}

.carousel-control-btn.next {
  right: 20px;
}

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

.carousel-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.carousel-indicator-dot.active {
  background-color: var(--primary-color);
  width: 25px;
  border-radius: 5px;
}

/* Category Grid Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--bg-light);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.category-card:hover .category-icon-wrapper {
  background-color: rgba(255, 87, 34, 0.05);
}

.category-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Product Section Card Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Responsive row overrides */
@media(max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media(max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Product Card Component */
.product-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 87, 34, 0.2);
}

.product-image-container {
  position: relative;
  padding-bottom: 100%; /* 1:1 Aspect ratio */
  background-color: var(--bg-light);
  overflow: hidden;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}

.badge {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  color: white;
}

.badge-new { background-color: var(--info); }
.badge-bestseller { background-color: var(--warning); }
.badge-offer { background-color: var(--danger); }
.badge-outofstock {
  background-color: var(--danger);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 5;
}

.product-wishlist-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

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

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.stars-rating {
  color: #fb5;
}

.rating-count {
  color: var(--text-muted);
}

.product-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

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

.product-original-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-savings-percentage {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 700;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.product-card-actions button {
  padding: 8px 5px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.add-cart-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

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

.buy-now-btn {
  background-color: var(--secondary-color);
  color: white;
}

.buy-now-btn:hover {
  background-color: var(--secondary-hover);
}

/* Why Choose Us Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media(max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background-color: var(--bg-white);
  padding: 30px 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Promo Banner Section */
.promo-banner {
  background: linear-gradient(135deg, var(--secondary-color), #2d3748);
  border-radius: var(--border-radius-lg);
  color: white;
  padding: 60px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.promo-content {
  flex: 1;
  z-index: 2;
}

.promo-badge {
  background-color: var(--primary-color);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.promo-content h2 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.promo-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 25px;
  max-width: 500px;
}

.promo-image {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.promo-image img {
  max-height: 280px;
  object-fit: contain;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.promo-banner:hover .promo-image img {
  transform: rotate(0) scale(1.05);
}

@media(max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }
  .promo-content p {
    margin: 0 auto 25px;
  }
}

/* Reviews / Testimonials Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media(max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.reviewer-name {
  font-weight: 600;
  font-size: 1rem;
}

.review-comment {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: right;
}

/* Floating WhatsApp Widget */
.whatsapp-float-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-fast);
}

.whatsapp-float-widget:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(10deg);
}

/* Footer Grid Layout */
footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 60px;
  margin-top: auto;
  border-top: 5px solid var(--primary-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media(max-width: 991px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 575px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-column h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-contact-item i {
  color: var(--primary-color);
  font-size: 1rem;
  margin-top: 3px;
}

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

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin-bottom: 6px;
}

/* Page Banner (For Shop, Cart, Detail etc.) */
.page-banner {
  background: linear-gradient(135deg, var(--secondary-color), #2d3748);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-banner h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* Shop Layout - Sidebar + Grid */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media(max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    display: none; /* Collapsed filter box toggleable on mobile */
  }
  .shop-sidebar.open-mobile {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    z-index: 998;
    background-color: var(--bg-white);
    padding: 20px;
    overflow-y: auto;
  }
}

.shop-sidebar-widget {
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.shop-sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 8px;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-item label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.price-range-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

.shop-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.shop-results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-sorting select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
  font-size: 0.9rem;
  cursor: pointer;
}

.mobile-filter-trigger {
  display: none;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

@media(max-width: 768px) {
  .mobile-filter-trigger {
    display: flex;
  }
}

/* Product Detail Page Styles */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media(max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-primary-img {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding-bottom: 100%;
  position: relative;
}

.gallery-primary-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.gallery-thumb-item {
  width: 80px;
  height: 80px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
  border-color: var(--primary-color);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-brand {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.detail-sku {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.detail-price-box {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 5px;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.detail-original-price {
  font-size: 1.15rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.detail-saving {
  background-color: var(--success);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

.stock-instock { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-outofstock { color: var(--danger); }

.detail-description {
  margin-bottom: 25px;
}

.detail-qty-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--bg-light);
}

.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.specs-table th, .specs-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.specs-table th {
  font-weight: 600;
  color: var(--text-muted);
  width: 35%;
}

.specs-table td {
  color: var(--text-dark);
}

/* Shopping Cart Page Styles */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media(max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-container {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-row:first-child {
  padding-top: 0;
}

.cart-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

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

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

.cart-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 5px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.cart-item-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.cart-item-delete:hover {
  color: var(--danger);
}

@media(max-width: 575px) {
  .cart-item-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 15px;
  }
}

.cart-summary-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  height: fit-content;
}

.cart-summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.summary-row.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.free-shipping-progress {
  background-color: rgba(255, 87, 34, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

/* Checkout Form Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media(max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-form-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.checkout-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media(max-width: 575px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-color);
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}

.payment-method-selector {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-light);
  cursor: pointer;
}

/* Success Page */
.success-container {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  background-color: var(--bg-white);
  padding: 50px 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 20px;
}

.success-container h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.success-order-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  background-color: rgba(255, 87, 34, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-block;
}

.success-details {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 30px;
  text-align: left;
}

.success-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.success-row:last-child {
  margin-bottom: 0;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Loading / Empty States */
.loader-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.skeleton-card {
  height: 350px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
  border-radius: var(--border-radius-md);
}

@keyframes loading-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--secondary-color);
  color: white;
  padding: 14px 24px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 250px;
  transform: translateX(-150%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--info); }

/* Confirmation Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.modal-body {
  margin-bottom: 25px;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

/* Review Form details page */
.review-form-box {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.review-stars-input {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.review-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
  transition: var(--transition-fast);
}

.review-star-btn.active {
  color: #fb5;
}

/* Responsive adjustments for headers and margins */
@media(max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .container {
    padding: 0 15px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .logo-img {
    height: 35px;
  }
  .header-actions {
    gap: 15px;
  }
  .search-bar-container {
    display: none; /* Hide on mobile header, can trigger full width search box or render below logo */
  }
  .search-bar-container.mobile-visible {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
  .hero-slider-wrapper {
    height: 220px;
  }
  .hero-slide h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .hero-slide p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  .hamburger-btn {
    display: block;
  }
  .nav-menu {
    display: none;
  }
}

@media(max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .logo-img {
    height: 30px;
  }
  .header-actions {
    gap: 8px;
  }
  .hamburger-btn, .cart-icon-btn {
    font-size: 1.3rem;
    padding: 4px;
  }
  .header-top-bar {
    font-size: 0.75rem !important;
  }
  .header-top-bar .container {
    justify-content: center !important;
    text-align: center;
    gap: 4px !important;
  }
}

/* Certificate Showcase Section */
.certificate-section {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.certificate-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.certificate-image-col {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.certificate-img-frame {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 6px double #c5a059;
  padding: 6px;
  background-color: white;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-img-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.25);
}

.certificate-zoom-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.certificate-text-col {
  flex: 1.2;
  min-width: 300px;
}

.certificate-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.certificate-desc-highlight {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 15px;
}

.certificate-desc-secondary {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.certificate-points-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.certificate-point {
  display: flex;
  align-items: center;
  gap: 10px;
}

.certificate-point i {
  color: #25d366;
  font-size: 1.2rem;
}

.certificate-point span {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Certificate Zoom Modal */
.cert-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.cert-modal-close-btn:hover {
  transform: scale(1.1);
}

.cert-modal-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Premium Page Loader Screen */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--secondary-color, #1e1e24);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  width: 90%;
  max-width: 320px;
}

.loader-logo {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.loader-logo span {
  color: var(--primary-color, #ff5722);
}

.loader-bar-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color, #ff5722), var(--primary-hover, #e64a19));
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--primary-color, #ff5722);
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary-color, #ff5722);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* Back To Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color, #ff5722);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s;
}

.back-to-top-btn:hover {
  background-color: var(--primary-hover, #e64a19);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media(max-width: 480px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* ==========================================
   Automated Device Detector Popup Styles
   ========================================== */
.device-detector-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 380px;
  width: calc(100% - 48px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md, 14px);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
  padding: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.device-detector-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.device-detector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.device-detector-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.device-detector-icon {
  background: rgba(255, 87, 34, 0.1);
  color: var(--primary-color, #ff5722);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  animation: pulse-detector 2s infinite;
}

@keyframes pulse-detector {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 87, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
  }
}

.device-detector-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark, #1f2937);
  line-height: 1.4;
}

.device-detector-title strong {
  color: var(--primary-color, #ff5722);
}

.device-detector-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  padding: 0 4px;
  transition: var(--transition-fast, 0.2s ease);
}

.device-detector-close:hover {
  color: var(--danger, #ef4444);
}

.device-detector-body {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
}

.device-detector-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.device-detector-btn-primary {
  flex: 1;
  background: var(--primary-color, #ff5722);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm, 8px);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast, 0.2s ease);
}

.device-detector-btn-primary:hover {
  background: var(--primary-hover, #e64a19);
}

.device-detector-btn-secondary {
  background: var(--border-color, #e5e7eb);
  color: var(--text-dark, #1f2937);
  border: none;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm, 8px);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast, 0.2s ease);
}

.device-detector-btn-secondary:hover {
  background: #d1d5db;
}

@media (max-width: 480px) {
  .device-detector-toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
}

/* Navigation dropdown menu */
.nav-menu li {
  position: relative;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease-in-out;
  z-index: 100;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 87, 34, 0.05);
  color: var(--primary-color);
}

/* Mobile dropdown styles */
.mobile-submenu {
  border-left: 2px solid var(--border-color);
  margin-left: 10px;
}

.mobile-submenu a {
  display: block;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-submenu a:hover {
  color: var(--primary-color);
}

/* Infinite Scroll Arrow Loader styling */
.scroll-arrow-loader {
  display: inline-block;
  font-size: 2.5rem;
  position: relative;
  width: 50px;
  height: 50px;
}

.scroll-arrow-loader::before {
  content: "\f0ab"; /* fa-solid fa-circle-down or fa-solid fa-circle-arrow-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--border-color, #e5e7eb);
}

.scroll-arrow-loader::after {
  content: "\f0ab";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--primary-color, #ff5722);
  clip-path: inset(100% 0 0 0); /* starts fully clipped */
  animation: fillArrow 1.5s infinite linear;
}

@keyframes fillArrow {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  50% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 100% 0);
  }
}

/* Reviews Testimonial Slider styling */
.reviews-slider-container {
  overflow: hidden;
  width: 100%;
}

.reviews-slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 20px;
}

.reviews-slider-track .review-card {
  flex: 0 0 100%; /* Shows 1 card at a time on mobile */
  box-sizing: border-box;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .reviews-slider-track .review-card {
    flex: 0 0 calc(50% - 10px); /* Shows 2 cards at a time on desktop */
  }
}

/* Mobile Sticky Action buttons for details page */
@media (max-width: 768px) {
  .detail-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
  }
  
  .detail-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 !important;
  }
  
  .detail-actions .btn {
    padding: 12px !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #btn-detail-whatsapp-order {
    margin-top: 0 !important;
  }
  
  body {
    padding-bottom: 140px !important;
  }
}

/* Corner Brand Logo Badge on Product Cards */
.brand-badge-logo {
  position: absolute;
  top: 12px;
  right: 50px; /* Positioned to the left of the wishlist button */
  background: white;
  padding: 4px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.brand-badge-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: static !important; /* Reset absolute image container position */
  transform: none !important;
}

.brand-badge-logo.text-badge {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  padding: 2px 4px;
  text-align: center;
}

.brand-fallback-logo {
  display: none;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dark);
}

.brand-badge-logo.text-badge .brand-fallback-logo {
  color: white;
  display: block;
}

/* Quick View button styling */
.product-quickview-btn {
  position: absolute;
  top: 50px; /* Right below the wishlist button */
  right: 12px;
  background: white;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 5;
}

.product-quickview-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.quick-variant-btn.active {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: rgba(255, 87, 34, 0.05) !important;
  font-weight: 600;
}

/* ==========================================
   Spin the Wheel Discount Game Styling
   ========================================== */
.spin-wheel-float-trigger {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 2000;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: spinPulse 2s infinite ease-in-out;
}

@keyframes spinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6); }
}

.spin-wheel-float-trigger:hover {
  transform: scale(1.1);
}

.spin-wheel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spin-wheel-modal-overlay.show {
  display: flex !important;
  opacity: 1;
}

.spin-wheel-modal-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 25px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spin-wheel-modal-overlay.show .spin-wheel-modal-card {
  transform: scale(1);
}

.spin-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.spin-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.spin-wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 1.6rem;
  color: #ef4444;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.spin-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5722, #e64a19);
  color: white;
  border: 3px solid white;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255,87,34,0.4);
  z-index: 5;
  transition: transform 0.15s ease;
}

.spin-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.spin-center-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}
