/*
Theme Name: Primeo Mart Bangladesh Custom Theme
Theme URI: https://bd.primeomart.com
Author: Antigravity Team
Description: A high-performance glassmorphic WooCommerce custom theme for Primeo Mart.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: primeomart
*/

/* Fonts enqueued dynamically via PHP in functions.php */


/* Design Tokens & Variables */
:root {
  /* Colors */
  --primary: #0f172a;       /* Slate 900 */
  --primary-light: #1e293b; /* Slate 800 */
  --primary-dark: #020617;  /* Slate 950 */
  --brand: #4f46e5;         /* Indigo 600 */
  --brand-hover: #4338ca;   /* Indigo 700 */
  --brand-light: #e0e7ff;   /* Indigo 100 */
  --accent: #ff6b00;        /* Electric Orange */
  --accent-hover: #e56000;
  --accent-light: #fff7ed;  /* Orange 50 */
  --success: #10b981;       /* Emerald 500 */
  --warning: #f59e0b;       /* Amber 500 */
  
  /* Neutrals */
  --bg-light: #f8fafc;      /* Slate 50 */
  --bg-white: #ffffff;
  --text-dark: #0f172a;     /* Slate 900 */
  --text-muted: #64748b;    /* Slate 500 */
  --text-light: #f1f5f9;   /* Slate 100 */
  --border-light: #e2e8f0;  /* Slate 200 */
  --border-muted: #f1f5f9;  /* Slate 100 */
  
  /* Fonts */
  --font-heading: 'Outfit', 'Hind Siliguri', sans-serif;
  --font-body: 'Inter', 'Hind Siliguri', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(79 70 229 / 0.05), 0 8px 10px -6px rgb(79 70 229 / 0.05);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(79 70 229 / 0.3);
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(255 107 0 / 0.3);
}

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

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background-color: var(--brand-light);
  transform: translateY(-2px);
}

/* Header & Floating Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  /* Always show glass — never fully transparent */
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--header-blur, 20px));
  -webkit-backdrop-filter: blur(var(--header-blur, 20px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 20px rgba(79, 70, 229, 0.08);
}

.header-active {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(var(--header-blur, 20px));
  -webkit-backdrop-filter: blur(var(--header-blur, 20px));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 24px rgba(79, 70, 229, 0.12);
}

.dark-theme .site-header {
  background-color: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-theme .header-active {
  background-color: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: all var(--transition-normal);
}

.header-active .nav-wrapper {
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  opacity: 0.8;
  position: relative;
}

.nav-link:hover {
  opacity: 1;
  color: var(--brand);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(15, 23, 42, 0.03);
  transition: var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  background-color: var(--brand-light);
  color: var(--brand);
}

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

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, #e0e7ff 0%, #f8fafc 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-light);
  color: var(--brand);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media-bg {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(255, 107, 0, 0.05) 100%);
  filter: blur(40px);
  z-index: 1;
}

.hero-img {
  z-index: 2;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.12));
  animation: float 6s ease-in-out infinite;
  object-fit: cover;
  max-height: 480px;
}

/* Trust Value Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.trust-card {
  background-color: var(--bg-white);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 35px -5px rgb(15 23 42 / 0.06);
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-card:nth-child(2) .trust-icon-box {
  background-color: #ecfdf5;
  color: var(--success);
}

.trust-card:nth-child(3) .trust-icon-box {
  background-color: var(--accent-light);
  color: var(--accent);
}

.trust-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.trust-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Category Grid */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.category-card {
  background-color: var(--bg-white);
  padding: 1.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-muted);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.15);
}

.category-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
  color: var(--primary-light);
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--brand-light);
  color: var(--brand);
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Promotional Banners */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.promo-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-muted);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.promo-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  opacity: 0.3;
  z-index: 1;
}

.promo-card:nth-child(2)::after {
  background: var(--accent-light);
}

.promo-content {
  position: relative;
  z-index: 2;
}

.promo-tag {
  display: inline-block;
  background-color: var(--brand);
  color: var(--bg-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.promo-card:nth-child(2) .promo-tag {
  background-color: var(--accent);
}

.promo-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.promo-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 80%;
}

/* Product Section & Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-muted);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 23, 42, 0.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent);
  color: var(--bg-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.product-media-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
  aspect-ratio: 1;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.product-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  z-index: 15;
}

.product-card:hover .product-card-actions {
  transform: translateY(0);
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--bg-white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.action-icon-btn:hover {
  background-color: var(--brand);
  color: var(--bg-white);
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-title a:hover {
  color: var(--brand);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--warning);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.rating span {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 400;
}

.btn-add-cart-icon {
  background-color: var(--brand-light);
  color: var(--brand);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-cart-icon:hover {
  background-color: var(--brand);
  color: var(--bg-white);
}

/* Feature Showcase Box */
.showcase-section {
  background-color: var(--primary);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.showcase-bg-circles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 90%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 90% 10%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem;
}

.showcase-content {
  position: relative;
  z-index: 10;
}

.showcase-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.showcase-title {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.showcase-description {
  color: rgba(241, 245, 249, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sf-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.sf-item i {
  color: var(--success);
}

.showcase-media {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.showcase-img {
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
  animation: float 5s ease-in-out infinite;
}

/* Why Choose Us Section */
.why-section {
  background-color: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.why-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials / Customer Love */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  color: var(--brand-light);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--primary-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.client-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer Design */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(241, 245, 249, 0.75);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(241, 245, 249, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-title {
  color: var(--bg-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-logo {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.footer-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--brand);
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(241, 245, 249, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* Modals & Slide-out Drawer */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.active, .modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background-color: var(--bg-white);
  z-index: 2100;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

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

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg-light);
}

.drawer-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-empty-message {
  text-align: center;
  padding: 3rem 1rem;
}

.cart-empty-message i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 1.25rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg-light);
  font-weight: 600;
}

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

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  color: #ef4444;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-light);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-summary-price {
  color: var(--brand);
}

/* 1-Click Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 500px;
  max-width: 90%;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  z-index: 2200;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-modal.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--brand);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.order-summary-box {
  background-color: var(--brand-light);
  color: var(--brand-hover);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Success Toast */
.success-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: var(--success);
  color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.success-toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: #25d366;
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  position: relative;
}

.whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  animation: radar 2s linear infinite;
}

.whatsapp-btn i {
  font-size: 2rem;
}

/* Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes radar {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .showcase-grid {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promos-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem;
  }
  .showcase-features {
    justify-items: center;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Shop Page Styles
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-light);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.filter-item.active {
  background-color: var(--brand);
  color: var(--bg-white);
}

.filter-item .count {
  font-size: 0.8rem;
  background-color: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.filter-item.active .count {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
}

.shop-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background-color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   Single Product Detail Page Styles
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.gallery-main-wrapper img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.thumb-item {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  padding: 4px;
  background-color: var(--bg-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.prod-badge {
  background-color: var(--brand-light);
  color: var(--brand);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1rem;
}

.prod-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.prod-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--warning);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.prod-rating-row span {
  color: var(--text-muted);
}

.prod-price-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.prod-price-box .price {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--brand);
}

.prod-price-box .price-old {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.prod-desc {
  color: var(--primary-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.prod-action-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: var(--bg-white);
  height: 48px;
}

.qty-selector input {
  width: 45px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.qty-selector button {
  width: 40px;
  height: 100%;
  background-color: var(--bg-light);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.qty-selector button:hover {
  background-color: var(--border-light);
}

/* Tabs & Tables */
.product-tabs-wrapper {
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
  padding-top: 3rem;
}

.tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.tab-nav-btn {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.tab-nav-btn.active {
  color: var(--brand);
}

.tab-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-muted);
}

.specs-table td {
  padding: 1rem;
  font-size: 0.95rem;
}

.specs-table tr td:first-child {
  width: 30%;
  color: var(--text-muted);
  background-color: rgba(15, 23, 42, 0.01);
}

/* ==========================================================================
   Cart Page Styles
   ========================================================================== */
.cart-table {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-table th {
  background-color: var(--bg-light);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 1.25rem 1.5rem;
}

.cart-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-muted);
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-table-row:hover {
  background-color: rgba(79, 70, 229, 0.005);
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  margin-top: 2rem;
}

.checkout-billing-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.checkout-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.payment-method-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.payment-method-card:hover {
  border-color: var(--brand-light);
  background-color: var(--bg-light);
}

.payment-method-card input[type="radio"] {
  margin-top: 0.25rem;
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}

.payment-method-card input[type="radio"]:checked + .pm-content-wrap {
  color: var(--brand);
}

.payment-method-card input[type="radio"]:checked {
  border-color: var(--brand);
}

/* JS toggled wrapper outline border styling */
.payment-method-card.active-method {
  border-color: var(--brand);
  background-color: var(--brand-light);
}

.pm-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.pm-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Order Success Overlay Screen */
.order-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.success-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: #ecfdf5;
  color: var(--success);
  margin: 0 auto 1.5rem;
}

/* Responsive fixes for new pages */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) {
    display: none;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Floating Cart Button & Abandoned Cart Banner
   ========================================================================== */
.floating-cart-btn {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--brand);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.floating-cart-btn:hover {
  background-color: var(--brand-hover);
  transform: scale(1.05);
}

.floating-cart-btn .badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.abandoned-cart-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-150px);
  background-color: var(--primary-dark);
  color: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 90%;
  max-width: 600px;
  transition: transform var(--transition-smooth);
}

.abandoned-cart-banner.active {
  transform: translateX(-50%) translateY(20px);
}

.ac-text {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.ac-text span {
  color: var(--accent);
  font-weight: 700;
}

.ac-btn {
  background-color: var(--accent);
  color: var(--bg-white);
  padding: 0.4rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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

.ac-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ac-close:hover {
  color: var(--bg-white);
}

/* ==========================================================================
   Dark Theme Color Swaps & Element Overrides
   ========================================================================== */
.dark-theme {
  --bg-light: #0b0f19;       /* Slate 950 Dark */
  --bg-white: #111827;       /* Slate 900 Dark */
  --text-dark: #f9fafb;      /* Slate 50 Light */
  --text-muted: #9ca3af;     /* Slate 400 Light */
  --border-light: #1f2937;   /* Slate 800 Dark */
  --border-muted: #111827;
  --primary: #f9fafb;
  --primary-light: #f1f5f9;
}

.dark-theme body {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6 {
  color: var(--text-dark);
}

.dark-theme .site-header.header-active {
  background-color: rgba(17, 24, 39, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-theme .trust-card,
.dark-theme .category-card,
.dark-theme .promo-card,
.dark-theme .product-card,
.dark-theme .why-card,
.dark-theme .testimonial-card,
.dark-theme .cart-drawer,
.dark-theme .wishlist-drawer,
.dark-theme .checkout-billing-card,
.dark-theme .cart-summary-card,
.dark-theme .success-card,
.dark-theme .search-card,
.dark-theme .spin-card,
.dark-theme .purchase-toast {
  background-color: var(--bg-white);
  border-color: var(--border-light);
  color: var(--text-dark);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.dark-theme .form-input,
.dark-theme .select-input {
  background-color: #1f2937;
  color: var(--text-dark);
  border-color: #374151;
}

.dark-theme .form-input:focus {
  background-color: var(--bg-white);
}

.dark-theme .qty-control,
.dark-theme .qty-selector {
  background-color: #1f2937;
  border-color: #374151;
}

.dark-theme .qty-btn,
.dark-theme .qty-selector button {
  background-color: #374151;
  color: var(--text-dark);
}

.dark-theme .qty-btn:hover,
.dark-theme .qty-selector button:hover {
  background-color: #4b5563;
}

.dark-theme .cart-table th,
.dark-theme .specs-table tr td:first-child {
  background-color: #1f2937;
  color: var(--text-dark);
}

.dark-theme .btn-wishlist-heart,
.dark-theme .action-icon-btn {
  background-color: #1f2937;
  color: var(--text-dark);
}

.dark-theme .btn-wishlist-heart.active {
  color: #ef4444;
}

.dark-theme .cart-drawer .drawer-header,
.dark-theme .wishlist-drawer .drawer-header,
.dark-theme .drawer-footer {
  border-bottom-color: var(--border-light);
  border-top-color: var(--border-light);
}

.dark-theme .cart-drawer .drawer-footer,
.dark-theme .wishlist-drawer .drawer-footer {
  background-color: #111827;
}

.dark-theme .cart-item,
.dark-theme .cart-table-row {
  border-bottom-color: #1f2937;
}

.dark-theme .whatsapp-btn {
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

/* Toggle Switch Styling */
.header-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--primary-light);
  border: 1px solid transparent;
}

/* Force SVGs/Lucide icons inside header buttons to inherit colors correctly */
.icon-btn i,
.icon-btn svg,
.header-toggle-btn i,
.header-toggle-btn svg {
  color: var(--primary-light) !important;
  stroke: var(--primary-light) !important;
  fill: none !important;
  transition: all var(--transition-fast);
}

.dark-theme .header-toggle-btn {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
}

.dark-theme .icon-btn i,
.dark-theme .icon-btn svg,
.dark-theme .header-toggle-btn i,
.dark-theme .header-toggle-btn svg {
  color: var(--text-light) !important;
  stroke: var(--text-light) !important;
  fill: none !important;
}

.header-toggle-btn:hover {
  background-color: var(--brand-light);
  color: var(--brand);
}

.icon-btn:hover i,
.icon-btn:hover svg,
.header-toggle-btn:hover i,
.header-toggle-btn:hover svg {
  color: var(--brand) !important;
  stroke: var(--brand) !important;
}

.dark-theme .header-toggle-btn:hover {
  background-color: var(--border-light);
  color: var(--bg-white);
  border-color: var(--brand);
}

.dark-theme .icon-btn:hover i,
.dark-theme .icon-btn:hover svg,
.dark-theme .header-toggle-btn:hover i,
.dark-theme .header-toggle-btn:hover svg {
  color: var(--bg-white) !important;
  stroke: var(--bg-white) !important;
}

.lang-switch-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-light) !important;
}

.dark-theme .lang-switch-text {
  color: var(--text-light) !important;
}

/* ==========================================================================
   Wishlist Drawer & Heart Buttons
   ========================================================================== */
.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background-color: var(--bg-white);
  z-index: 2100;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.wishlist-drawer.active {
  transform: translateX(0);
}

.btn-wishlist-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-white);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

.btn-wishlist-heart:hover {
  transform: scale(1.1);
  color: #ef4444;
}

.btn-wishlist-heart.active {
  color: #ef4444;
  fill: #ef4444;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 1.25rem;
}

.wishlist-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-light);
}

.wishlist-item-info {
  flex-grow: 1;
}

.wishlist-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.wishlist-item-price {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.9rem;
}

/* ==========================================================================
   Live Search suggestions Overlay
   ========================================================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.5rem 1.5rem 1.5rem;
}

.search-card {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  animation: pulse 0.2s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--bg-light);
}

.search-input-wrapper input {
  flex-grow: 1;
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
  color: var(--text-dark);
}

.search-suggestions {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-muted);
}

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

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

.dark-theme .search-suggestion-item:hover {
  background-color: var(--border-light);
  color: var(--text-dark);
}

.search-suggestion-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
}

/* ==========================================================================
   Spin & Win Fortune Wheel Popup
   ========================================================================== */
.spin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.spin-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.wheel-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 1.5rem auto;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.wheel-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.floating-spin-trigger {
  position: fixed;
  bottom: 168px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.floating-spin-trigger:hover {
  transform: scale(1.05);
  background-color: var(--accent-hover);
}

/* ==========================================================================
   Flash Sale Urgency Timer
   ========================================================================== */
.flash-sale-box {
  background-color: #fef2f2;
  border: 2px dashed #f87171;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  color: #991b1b;
}

.dark-theme .flash-sale-box {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: #ef4444;
  color: #fee2e2;
}

.flash-sale-timer-wrap {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.flash-sale-timer-wrap span {
  background-color: #ef4444;
  color: var(--bg-white);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Free Shipping Progress Bar
   ========================================================================== */
.shipping-progress-container {
  background-color: var(--brand-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79, 70, 229, 0.05);
}

.dark-theme .shipping-progress-container {
  background-color: rgba(79, 70, 229, 0.05);
}

.shipping-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shipping-progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dark-theme .shipping-progress-bar-bg {
  background-color: rgba(255, 255, 255, 0.1);
}

.shipping-progress-bar-fill {
  height: 100%;
  background-color: var(--success);
  width: 0%;
  transition: width 0.5s ease;
}

/* ==========================================================================
   Recent Purchase Notifications Card (Social Proof)
   ========================================================================== */
.purchase-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 3500;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 380px;
  width: 90%;
  transform: translateX(-150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.purchase-toast.active {
  transform: translateX(0);
}

.purchase-toast-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-light);
}

.purchase-toast-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--primary-light);
}

.purchase-toast-text b {
  color: var(--brand);
}

.dark-theme .purchase-toast-text b {
  color: var(--accent);
}

.purchase-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px;
}

.purchase-toast-close:hover {
  color: var(--primary);
}

/* ==========================================================================
   Review Locked Badge
   ========================================================================== */
.review-lock-badge {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark-theme .review-lock-badge {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: #ef4444;
  color: #fee2e2;
}

.review-verified-badge {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark-theme .review-verified-badge {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #d1fae5;
}

.review-img-preview-container {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.review-img-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}


/* ==========================================================================
   Settings / Customization Panel
   ========================================================================== */
.settings-trigger {
  position: fixed;
  bottom: 160px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border: none;
  animation: settingsPulse 3s ease-in-out infinite;
}

@keyframes settingsPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5); }
  50% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.8), 0 0 0 8px rgba(102,126,234,0.1); }
}

.settings-trigger:hover {
  transform: scale(1.1) rotate(30deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.settings-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

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

.settings-panel {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: settingsSlidein 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes settingsSlidein {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.dark-theme .settings-panel {
  background: #1e293b;
  color: #e2e8f0;
}

.settings-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.settings-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-body {
  padding: 2rem;
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.dark-theme .settings-section {
  border-bottom-color: rgba(255,255,255,0.1);
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  gap: 1rem;
}

.dark-theme .settings-row {
  background: rgba(255,255,255,0.05);
}

.settings-row label {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
}

.settings-row .row-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--brand);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Color swatch pickers */
.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dark-theme .color-picker-row {
  background: rgba(255,255,255,0.05);
}

.color-picker-row:hover {
  background: var(--brand-light);
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.2);
}

.color-picker-label {
  font-size: 0.82rem;
  font-weight: 500;
  flex: 1;
}

.color-picker-value {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Font select */
.settings-select {
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: white;
  cursor: pointer;
  min-width: 160px;
  color: var(--primary);
  font-family: var(--font-body);
}

.dark-theme .settings-select {
  background: #1e293b;
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.1);
}

.settings-range {
  width: 100%;
  accent-color: var(--brand);
  margin-top: 0.5rem;
}

.settings-footer {
  padding: 1.25rem 2rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dark-theme .settings-footer {
  background: rgba(255,255,255,0.03);
  border-top-color: rgba(255,255,255,0.08);
}

.settings-close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.settings-close-btn:hover {
  opacity: 1;
}

.preset-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.preset-badge:hover {
  transform: translateY(-2px);
}

.preset-badge.active {
  border-color: currentColor;
}

/* ==========================================================================
   Mobile Navigation Drawer & Multi-Viewport Responsiveness
   ========================================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(15, 23, 42, 0.03);
  transition: var(--transition-fast);
  color: var(--primary);
  border: none;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background-color: var(--brand-light);
  color: var(--brand);
}

.dark-theme .mobile-menu-toggle {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85%;
  background-color: var(--bg-white);
  z-index: 9500; /* Higher than settings panel but lower than success modals */
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 1.5rem;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.mobile-nav-links a i {
  color: var(--brand);
}

.mobile-nav-links a:hover {
  background-color: var(--brand-light);
  color: var(--brand);
}

.mobile-nav-section {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.mobile-nav-item i {
  width: 18px;
  height: 18px;
}

.mobile-nav-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

/* Dark theme overrides for Mobile Nav Drawer */
.dark-theme .mobile-nav-drawer {
  background-color: #1e293b;
  color: #e2e8f0;
}
.dark-theme .mobile-nav-links a {
  color: #e2e8f0;
}
.dark-theme .mobile-nav-item {
  color: #e2e8f0;
}
.dark-theme .mobile-nav-links a:hover {
  background-color: rgba(255,255,255,0.05);
}
.dark-theme .mobile-nav-item:hover {
  background-color: rgba(255,255,255,0.03);
}
.dark-theme .mobile-nav-section,
.dark-theme .mobile-nav-header,
.dark-theme .mobile-nav-footer {
  border-color: rgba(255,255,255,0.1);
}

/* Responsiveness adjustments for Tablets and Laptops */
@media (max-width: 992px) {
  .nav-menu {
    display: none !important;
  }
  
  .nav-actions .header-toggle-btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Make header call button icon-only */
  .nav-actions .btn-primary {
    padding: 0 !important;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full) !important;
    justify-content: center;
    font-size: 0 !important;
  }

  .nav-actions .btn-primary i {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }

  /* Layout grids stacking */
  .shop-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .shop-sidebar {
    position: static !important;
    width: 100% !important;
  }

  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .cart-page-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  /* Make floating widgets more compact on smaller screens and avoid overlap */
  .whatsapp-widget {
    bottom: 16px !important;
    right: 16px !important;
  }
  
  .whatsapp-btn {
    width: 48px !important;
    height: 48px !important;
  }

  .floating-cart-btn {
    bottom: 80px !important;
    right: 16px !important;
    width: 46px !important;
    height: 46px !important;
  }
  
  .settings-trigger {
    bottom: 144px !important;
    right: 16px !important;
    width: 46px !important;
    height: 46px !important;
  }
  
  .floating-spin-trigger {
    bottom: 208px !important;
    right: 16px !important;
    width: 46px !important;
    height: 46px !important;
  }
}

/* Responsiveness adjustments for Tablets and Mobile viewports */
@media (max-width: 768px) {
  /* Make main product image container responsive on mobile */
  .gallery-main-wrapper {
    padding: 1rem !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }
  .gallery-main-wrapper img {
    max-height: 280px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Prevent background image circle horizontal overflow */
  .hero-media-bg {
    width: 280px !important;
    height: 280px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Make success toast appear at the top to avoid bottom-left popup overlap */
  .success-toast {
    top: 16px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -100px) !important;
    max-width: 90% !important;
    width: auto !important;
  }
  
  .success-toast.active {
    transform: translate(-50%, 0) !important;
  }

  /* Make search overlay full-screen on mobile devices */
  .search-overlay {
    padding: 0 !important;
    background-color: var(--bg-white) !important;
  }
  
  .dark-theme .search-overlay {
    background-color: #1e293b !important;
  }
  
  .search-card {
    max-width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    padding: 1.5rem !important;
  }
  
  .search-suggestions {
    max-height: calc(100vh - 120px) !important;
  }
}

/* Responsiveness adjustments for Mobile Devices */
@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem !important;
  }

  .nav-actions {
    gap: 0.5rem !important;
  }
  
  .icon-btn, 
  .mobile-menu-toggle, 
  .nav-actions .btn-primary {
    width: 38px !important;
    height: 38px !important;
  }

  /* Stack payment options vertically */
  .payment-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .success-card {
    padding: 2.5rem 1.5rem !important;
  }

  /* Stack checkout buttons vertically */
  .prod-buttons-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  
  .prod-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  /* Scale down headings & text */
  .prod-title {
    font-size: 1.8rem !important;
  }
  
  .showcase-title {
    font-size: 1.75rem !important;
  }

  /* Showcase section fixes */
  .showcase-grid {
    padding: 2rem 1.5rem !important;
  }
  
  .showcase-features {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Promo and trust card padding scale down */
  .promo-card {
    padding: 2rem 1.5rem !important;
    min-height: auto !important;
  }
  
  .promo-desc {
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .trust-card {
    padding: 1.5rem !important;
  }

  .testimonial-card {
    padding: 1.5rem !important;
  }

  /* Stack settings colors and actions vertically */
  .color-grid {
    grid-template-columns: 1fr !important;
  }
  
  .settings-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  
  .settings-footer .btn {
    width: 100% !important;
  }

  /* Stack hero section CTA buttons vertically */
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  
  .hero-ctas .btn {
    width: 100% !important;
  }

  /* Stack abandoned cart banner elements */
  .abandoned-cart-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }
  
  .abandoned-cart-banner div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Product card scale down for premium grid fitting */
  .product-info {
    padding: 1rem !important;
  }
  
  .product-card-title {
    font-size: 0.95rem !important;
  }
  
  .price {
    font-size: 1.05rem !important;
  }
}

/* Adjustments for extremely narrow screens */
@media (max-width: 360px) {
  .wheel-wrapper {
    width: 200px !important;
    height: 200px !important;
  }
  
  .cart-item-title, 
  .wishlist-item-title {
    font-size: 0.85rem !important;
  }
  
  .cart-item-price, 
  .wishlist-item-price {
    font-size: 0.85rem !important;
  }
}

/* ==========================================================================
   Premium Mobile Bottom Navigation Bar Styles
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 8000;
  padding: 0 0.5rem;
}

.dark-theme .mobile-bottom-nav {
  background-color: rgba(15, 23, 42, 0.85);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  position: relative;
}

.mobile-nav-btn i,
.mobile-nav-btn svg {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
  color: inherit !important;
  stroke: currentColor !important;
}

.mobile-nav-btn.active,
.mobile-nav-btn:hover {
  color: var(--brand) !important;
}

.dark-theme .mobile-nav-btn {
  color: #94a3b8;
}

.dark-theme .mobile-nav-btn.active,
.dark-theme .mobile-nav-btn:hover {
  color: var(--bg-white) !important;
}

/* Lock header icons sizes to prevent shrinking or growing across pages */
.site-header .icon-btn svg,
.site-header .icon-btn i,
.site-header .header-toggle-btn svg,
.site-header .header-toggle-btn i,
.site-header .mobile-menu-toggle svg,
.site-header .mobile-menu-toggle i {
  width: 20px !important;
  height: 20px !important;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  body {
    padding-bottom: 64px !important;
  }
  
  /* Shift social proof purchase toasts up to avoid bottom-bar overlap */
  .purchase-toast {
    bottom: 76px !important;
    left: 5% !important;
    width: 90% !important;
  }
  
  /* Shift floating triggers up to prevent overlaps */
  .whatsapp-widget {
    bottom: 76px !important;
  }
  
  .floating-cart-btn {
    bottom: 140px !important;
  }
  
  .settings-trigger {
    bottom: 204px !important;
  }
  
  .floating-spin-trigger {
    bottom: 268px !important;
  }
}

/* ==========================================================================
   Product Card Hover Image Swap Transition
   ========================================================================== */
.product-media-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card-img {
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.product-card-img.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .product-card-img.main-img {
  opacity: 0;
  transform: scale(1.04);
}

.product-card:hover .product-card-img.hover-img {
  opacity: 1;
  transform: scale(1.04);
}


/* ==========================================================================
   MOBILE BUG FIX 1: Cart Drawer Footer — avoid mobile bottom nav overlap
   Problem: drawer-footer was hidden behind the 56px mobile bottom nav bar.
   Fix: add padding-bottom equal to nav height + safe area inset.
   ========================================================================== */
@media (max-width: 768px) {
  .drawer-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Also ensure the drawer itself never extends under the bottom nav */
  .cart-drawer,
  .wishlist-drawer,
  .mobile-nav-drawer {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Make checkout button inside cart drawer more prominent on mobile */
  .drawer-footer .btn-accent {
    font-size: 1rem !important;
    height: 50px !important;
    font-weight: 700 !important;
  }

  .drawer-footer .btn-outline {
    height: 44px !important;
  }
}


/* ==========================================================================
   MOBILE BUG FIX 2: Product Card — touch device interaction
   Problem: .product-card-actions only showed on :hover (desktop only).
   On mobile touch screens, hover never fires, so the add-to-cart overlay
   button was inaccessible.
   Fix: on touch devices always show the action overlay. Also make the
   .btn-add-cart-icon (price row + button) always visible and tappable.
   ========================================================================== */

/* Touch device: always show the overlay action buttons */
@media (hover: none) and (pointer: coarse) {
  /* Show the add-to-cart action overlay always on mobile */
  .product-card-actions {
    transform: translateY(0) !important;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  }

  /* Make action icon buttons bigger and easier to tap */
  .action-icon-btn {
    width: 48px !important;
    height: 48px !important;
  }

  /* Make the whole product image area link to product page */
  .product-media-wrapper {
    cursor: pointer;
  }

  /* Larger add-to-cart circle button in price row */
  .btn-add-cart-icon {
    width: 44px !important;
    height: 44px !important;
    background-color: var(--brand) !important;
    color: var(--bg-white) !important;
    flex-shrink: 0;
  }

  /* Product title link — larger tap target */
  .product-card-title a {
    display: block;
    padding: 0.25rem 0;
  }

  /* Product card full area — prevent accidental text selection on tap */
  .product-card {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
}

/* iPhone safe-area notch support for cart drawer */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .drawer-footer {
      padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    }
  }
}
