:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-card: #f5f5f5;
  --bg-grey: #e8e8e8;
  --text: #1a1a1a;
  --text-muted: #666666;
  --accent: #2c3e50;
  --accent-strong: #34495e;
  --border: rgba(0, 0, 0, 0.1);
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Poppins", "Inter", system-ui;
  --transition: 200ms ease;
}

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Poppins:wght@300;400;500;600&display=swap");

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

html {
  background: #ffffff !important;
}

body {
  font-family: var(--font-body);
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text) !important;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* Ensure product images fit properly */
/* .theme-card img, */
.library-card img,
.signature-card img,
.journey-track img,
.signature-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

section {
  padding: 1.5rem clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--border);
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.top-bar {
  background: linear-gradient(120deg, #f0f0f0, #e8e8e8 50%, #f5f5f5);
  color: var(--text);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  overflow: hidden;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  color: var(--text);
}

.marquee-text span {
  margin-right: 2rem;
  display: inline-block;
}

/* Hide mobile wishlist button on desktop by default */
.mobile-wishlist-btn {
  display: none;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Slightly tighter header when search row is hidden on mobile */
@media (max-width: 768px) {
  .main-header.compact-header .header-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  .main-header.compact-header .mobile-categories-nav {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* When search bar is hidden, pull up the first homepage section slightly to remove gap */
  .main-header.compact-header ~ .promo-banner-section {
    margin-top: -4px;
  }
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0.5rem clamp(0.5rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.header-quicklinks {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.60rem;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.brand-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand-container .brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  flex: 0 0 auto;
}

/* Desktop Categories Navigation - Inline in header */
.desktop-categories-nav-inline {
  display: none;
}

@media (min-width: 769px) {
  .brand-container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  .desktop-categories-nav-inline {
    display: flex !important;
    flex: 1;
    margin-left: 2rem;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }

  .desktop-categories-nav-inline ul {
    list-style: none;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
  }

  .desktop-categories-nav-inline ul::-webkit-scrollbar {
    display: none;
  }

  .desktop-categories-nav-inline li {
    flex-shrink: 0;
    display: inline-block;
    white-space: nowrap;
  }

  .desktop-category-link {
    display: inline-block;
    padding: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    transition: color var(--transition);
    white-space: nowrap;
    position: relative;
  }

  .desktop-category-link:hover {
    color: var(--accent);
  }

  .desktop-category-link.active {
    color: var(--accent);
    font-weight: 600;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  margin-right: 1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  font-size: 0.85rem;
  flex-wrap: nowrap;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  padding-right: 0;
}
.main-nav ul li:last-child {
  margin-right: 0;
  padding-right: 0;
}
.main-nav ul::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
  padding: 0.2rem 0.4rem;
  margin: 0;
}

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

/* Dropdown Menu Styles */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(-10px);
  z-index: 100;
  margin-top: 0.5rem;
}

.mobile-category-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-category-chip:hover,
.mobile-category-chip:focus {
  color: var(--text);
  border-color: var(--text);
}

.filters-toolbar {
  padding: 0 clamp(1rem, 5vw, 5rem);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: transparent;
  border: none;
}

@media (max-width: 768px) {
  .filters-toolbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

@media (max-width: 560px) {
  .filters-toolbar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
}

.filters-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafaff 100%);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.08);
}

.filters-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: fit-content;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.filter-label i {
  font-size: 1rem;
  color: rgba(138, 43, 226, 0.7);
}

.filter-divider {
  width: 1px;
  height: 32px;
  background: rgba(138, 43, 226, 0.15);
  flex-shrink: 0;
}

.chip-group-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip-compact {
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: #ffffff;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip-compact:hover {
  border-color: rgba(138, 43, 226, 0.4);
  background: rgba(138, 43, 226, 0.05);
  transform: translateY(-1px);
}

.chip-compact.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(138, 43, 226, 0.3);
}

/* Legacy chip styles for backward compatibility */
.filters-stack {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-segment {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.segment-heading {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  text-align: center;
}

.segment-heading i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(138, 43, 226, 0.13);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.segment-heading > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.segment-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.segment-heading span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  justify-content: center;
  align-items: center;
}

.chip {
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.15);
  backdrop-filter: blur(4px);
}

.chip.active,
.chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(138, 43, 226, 0.25);
}

.filters-note {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

.product-row {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.scroll-row {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x;
  /* Show more products by default */
  scroll-padding: 0.5rem;
}

/* Multi-row product display for better visibility */
.scroll-track.multi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: auto;
  gap: 1rem;
  min-width: unset;
  width: 100%;
  overflow: visible;
}

.scroll-row.multi-row {
  overflow: visible;
  padding-bottom: 0;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-track {
  display: flex;
  gap: 0.5rem;
  min-width: 100%;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.row-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.row-controls .carousel-control {
  position: static;
  transform: none;
}

.carousel-indicator-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator-dot.active {
  background: var(--accent);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

.indicator-dot:hover {
  background: rgba(138, 43, 226, 0.5);
  transform: scale(1.1);
}

.carousel-shell {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 36, 84, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(27, 38, 89, 0.05);
}

.product-section.hidden {
  display: block;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem auto;
  max-width: 1000px;
}

.section-tab {
  border: 1px solid rgba(138, 43, 226, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 18px rgba(82, 67, 170, 0.18);
}

.section-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 180px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  height: 100%;
  min-height: 420px;
}

/* Make the outer product-card link fill area and keep default text styles */
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card-media {
  position: relative;
  height: 160px;
  background: #f1f1f1;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-grey);
}

.image-placeholder.large {
  height: 520px;
}

.product-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  border: 1px solid var(--border);
  text-transform: uppercase;
  font-weight: 600;
  z-index: 5;
}

.price-pill {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
  box-shadow: 
    0 2px 8px rgba(102, 126, 234, 0.3),
    0 1px 4px rgba(118, 75, 162, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  white-space: nowrap;
}

.price-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-pill:hover::before {
  opacity: 1;
}

.product-card:hover .price-pill {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 
    0 6px 18px rgba(102, 126, 234, 0.45),
    0 3px 10px rgba(118, 75, 162, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-card-body {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-height: 0;
}

.product-card-category {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.product-card h3 {
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0.15rem 0 0.2rem 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--text);
}

.product-card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: 2.8em;
  min-height: 2.8em;
  margin: 0;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex-shrink: 0;
}

.product-card-meta .price {
  font-size: 0.95rem;
}

.product-card-meta .stock {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card-meta .stock.low-stock {
  color: #d35400;
}

.product-card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.product-card .pill-button {
  width: 100%;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
}

/* Ensure View Product button is purple in all sections */
.product-card .pill-button.view-product-btn,
.product-card .view-product-btn,
.vp-btn-view,
.pill-button.view-product-btn {
  background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3) !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  width: 100% !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.product-card .pill-button.view-product-btn:hover,
.product-card .view-product-btn:hover,
.vp-btn-view:hover,
.pill-button.view-product-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4) !important;
  background: linear-gradient(135deg, #9a3bf2 0%, #ca78d8 100%) !important;
}

.product-card .pill-button.view-product-btn:active,
.product-card .view-product-btn:active,
.vp-btn-view:active,
.pill-button.view-product-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(138, 43, 226, 0.3) !important;
}

/* Enhanced View Product Button */
.product-card .view-product-link,
.product-card .pill-button.view-product-link {
  background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.65rem;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
  display: inline-block;
}

.product-card .view-product-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.product-card .view-product-link:hover::before {
  left: 100%;
}

.product-card .view-product-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.3);
  background: linear-gradient(135deg, #9a3bf2 0%, #ca78d8 100%);
}

.product-card .view-product-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(138, 43, 226, 0.2);
}

/* Dark theme support for View Product button */
body.dark-theme .product-card .view-product-link {
  background: linear-gradient(135deg, #4a9eff 0%, #5ab0ff 100%);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3);
}

body.dark-theme .product-card .view-product-link:hover {
  background: linear-gradient(135deg, #5aafff 0%, #6ac0ff 100%);
  box-shadow: 0 10px 30px rgba(74, 158, 255, 0.4);
}

.explore-section {
  background: #fafafa;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  min-height: 400px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  row-gap: 0.75rem;
}

/* Load More Button */
.load-more-container {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem 0;
}

.load-more-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.3);
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
}

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

.load-more-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateY(2px);
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
  padding: 1rem;
}

.loading-spinner i {
  font-size: 1.2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Product Grid Layout for Best Deals, New Arrivals, Popular Items */
.product-grid-section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.product-grid-container {
  margin-top: 0.75rem;
}

.product-grid-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  }

.product-grid-scroll::-webkit-scrollbar {
  display: none;
}

  .product-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: max-content;
  align-items: stretch;
}

/* Ensure all product cards in grids have equal height */
.product-grid .product-card,
.product-grid-section .product-card,
.products-grid .product-card,
section .product-card,
.featured-products-grid .product-card,
.vp-product-card,
.vp-products-grid .product-card,
.trending-section .product-card,
.best-deals-section .product-card,
.new-arrivals-section .product-card,
.popular-section .product-card {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

/* Ensure product card body takes available space */
.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Ensure product card actions stay at bottom */
.product-card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
  flex-shrink: 0;
}

/* Ensure all product grids align items properly */
.product-grid,
.products-grid,
.featured-products-grid,
.vp-products-grid,
.trending-section,
.best-deals-section,
.new-arrivals-section,
.popular-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .product-grid,
  .products-grid,
  .featured-products-grid,
  .vp-products-grid,
  .trending-section,
  .best-deals-section,
  .new-arrivals-section,
  .popular-section {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }
}

/* See More Card */
.see-more-card {
  min-width: 180px;
  width: 180px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(186, 104, 200, 0.08) 100%);
  border: 2px dashed rgba(138, 43, 226, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  height: 100%;
  min-height: 380px;
}

.see-more-card:hover {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(186, 104, 200, 0.12) 100%);
  border-color: rgba(138, 43, 226, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

.see-more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.see-more-content i {
  font-size: 2.5rem;
  color: #8a2be2;
  transition: transform 0.3s ease;
}

.see-more-card:hover .see-more-content i {
  transform: scale(1.1) translateX(5px);
}

.see-more-text {
  font-size: 1rem;
  font-weight: 700;
  color: #8a2be2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.see-more-count {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  }
  
@media (max-width: 479px) {
  .product-grid-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .load-more-btn {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 300px;
  }
  
  .see-more-card {
    min-width: 160px;
    width: 160px;
    min-height: 360px;
  }
  
  .see-more-content i {
    font-size: 2rem;
  }
  
  .see-more-text {
    font-size: 0.9rem;
  }
}

/* Scroll to Top Button (Mobile) */
.scroll-to-top-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.scroll-to-top-btn:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.4);
}

.scroll-to-top-btn i {
  font-size: 1.2rem;
}

.explore-section .product-card {
  width: 100%;
  min-width: unset;
  max-width: 100%;
}

.empty-state {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
}

.hero-price {
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 1rem;
}

/* Category sections styling */
.category-section {
  margin-bottom: 1.5rem;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.category-section-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Old view-all-link styling (keeping for backward compatibility) */
.category-section-header .view-all-link,
.section-header-row .view-all-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
  white-space: nowrap;
}

.category-section-header .view-all-link:hover,
.section-header-row .view-all-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* New stylish purple View All button */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.view-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.view-all-btn:hover::before {
  left: 100%;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.view-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

/* Dark theme support */
body.dark-theme .view-all-btn {
  background: linear-gradient(135deg, #4a9eff 0%, #5ab0ff 100%);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

body.dark-theme .view-all-btn:hover {
  box-shadow: 0 6px 18px rgba(74, 158, 255, 0.4);
}

body.dark-theme .view-all-btn:active {
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .view-all-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .view-all-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .filters-stack {
    flex-direction: column;
  }

  .product-card {
    width: calc(45vw - 0.75rem);
    min-width: calc(45vw - 0.75rem);
    max-width: calc(45vw - 0.75rem);
  }
  
  .product-card-media {
    height: 140px;
  }

  .scroll-track {
    gap: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .image-placeholder.large {
    height: 320px;
  }
  
  .category-section-header h3 {
    font-size: 1.1rem;
  }
  
  .category-section {
    margin-bottom: 1.25rem;
  }
  
  .product-grid {
    gap: 0.4rem;
    row-gap: 0.6rem;
  }
  
  section {
    padding: 1rem clamp(0.75rem, 2vw, 2rem);
  }
}

body.dark-theme .filters-toolbar {
  background: var(--bg-soft);
}

body.dark-theme .product-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .filters-toolbar {
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .filters-card {
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.15);
  }

  .filters-compact {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
  }

  .filters-compact::-webkit-scrollbar {
    display: none;
  }
  
  .filter-group {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-width: fit-content;
  }
  
  .filter-label {
    font-size: 0.75rem;
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .filter-label i {
    font-size: 0.85rem;
  }

  .filter-label span {
    display: none;
  }
  
  .filter-divider {
    display: none;
  }

  .chip-group-compact {
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .chip-compact {
    padding: 0.28rem 0.65rem;
    font-size: 0.7rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #ffffff 0, #ffffff 40%, rgba(138, 43, 226, 0.15) 60%) ,
                linear-gradient(135deg, #8a2be2 0%, #ba68c8 50%, #f093fb 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(138, 43, 226, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
  }
  
  .chip-compact.active {
    box-shadow: 0 3px 10px rgba(138, 43, 226, 0.4);
    transform: translateY(-1px);
  }

  /* Mobile search: smooth hide/show on scroll */
  .header-actions .search-container {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .header-actions .search-container.search-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
  }

  .header-actions .search-container.search-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

/* Hide browser clear (×) icon inside search input on all major engines */
.search-bar::-ms-clear,
.search-bar::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.search-bar::-webkit-search-decoration,
.search-bar::-webkit-search-cancel-button,
.search-bar::-webkit-search-results-button,
.search-bar::-webkit-search-results-decoration {
  display: none;
}
  
@media (max-width: 768px) {
  .header-actions {
    transition: transform 0.25s ease, opacity 0.25s ease, max-height 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease, margin-bottom 0.25s ease;
    overflow: hidden;
  }

  /* Completely collapse the white bar when hidden */
  .header-actions.search-hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .header-actions.search-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    max-height: 200px; /* enough to show search + icons */
  }
  }
  
  .filters-stack {
    flex-direction: column;
  }
  .product-card {
    width: calc(85vw - 2rem);
    min-width: calc(85vw - 2rem);
    max-width: calc(85vw - 2rem);
  }
  .product-card-media {
    height: 200px;
  }
  .carousel-shell {
    padding: 1rem;
  }
  .scroll-track {
    gap: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .category-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 560px) {
  .filters-toolbar {
    padding: 0 0.5rem;
  }

  .filters-card {
    padding: 0.4rem 0.6rem;
  }

  .filters-compact {
    gap: 0.4rem;
  }

  .filter-group {
    gap: 0.3rem;
  }

  .filter-label {
    font-size: 0.7rem;
  }

  .chip-compact {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .product-card {
    width: calc(48vw - 0.5rem);
    min-width: calc(48vw - 0.5rem);
    max-width: calc(48vw - 0.5rem);
  }
  .product-card-media {
    height: 120px;
  }
  .product-card-body {
    padding: 0.5rem;
  }
  .product-card h3 {
    font-size: 0.8rem;
  }
  .product-card-desc {
    font-size: 0.65rem;
    line-height: 1.35;
    height: 2.7em;
    min-height: 2.7em;
  }
  .price-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .section-tabs {
    justify-content: flex-start;
  }
  .scroll-track {
    gap: 0.4rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .category-section-header h3 {
    font-size: 1rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    row-gap: 0.5rem;
  }
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Touch support for mobile/tablet */
@media (hover: none) and (pointer: coarse) {
  .nav-item-dropdown .dropdown-menu {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 500px;
    margin-top: 0.5rem;
  }
  
  .nav-item-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.dropdown-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.dropdown-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dropdown-column a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  transition: color var(--transition);
}

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

.header-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0;
  padding-left: 0;
}

/* Search Bar Styles */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
  max-width: 250px;
}

.search-bar {
  width: 100%;
  padding: 0.45rem 3.2rem 0.45rem 0.85rem; /* tighter inner padding for compact look */
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.search-bar:focus {
  border-color: var(--accent);
  background: var(--bg);
}

.search-bar::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  right: 1rem;
  color: #666666 !important;
  pointer-events: none;
  font-size: 1rem !important;
  font-family: "bootstrap-icons" !important;
  font-weight: normal !important;
  font-style: normal !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.search-icon-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  transition: color 0.2s ease;
  z-index: 2;
}

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

.search-icon-btn .search-icon {
  position: static;
  pointer-events: auto;
}

.search-clear-btn {
  position: absolute;
  right: 2.5rem;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  transition: color 0.2s ease;
  z-index: 2;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.search-clear-btn:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.search-clear-btn i {
  font-size: 0.9rem !important;
  font-family: "bootstrap-icons" !important;
}

.pill-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.pill-button.icon-only {
  padding: 0.55rem;
  width: 40px;
  height: 40px;
  justify-content: center;
}

.pill-button:hover {
  background: var(--bg-soft);
}

.pill-button .action-text {
  display: none;
}

.pill-button.icon-only .action-text {
  display: none;
}

.header-quicklinks {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  color: var(--text);
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}

.header-icon-link:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.header-icon-link i,
.mobile-menu-btn i,
.pill-button i,
.search-icon {
  font-size: 1.3rem !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  color: #666666 !important;
  transition: color var(--transition);
  font-style: normal !important;
  font-weight: normal !important;
  font-family: "bootstrap-icons" !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure all Bootstrap Icons are visible */
i.bi {
  font-family: "bootstrap-icons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  display: inline-block !important;
  color: #666666 !important;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-icon-link i.bi,
.mobile-menu-btn i.bi,
.pill-button i.bi {
  font-family: "bootstrap-icons" !important;
  font-style: normal !important;
  color: #666666 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-block !important;
}

.header-icon-link:hover i,
.pill-button:hover i {
  color: #8a2be2 !important;
}

.header-icon-link:hover {
  color: #8a2be2 !important;
}

.header-icon-link .icon-text {
  display: none !important;
}

/* Tooltip styles */
.header-icon-link[title]:hover::after,
.pill-button[title]:hover::after,
.mobile-menu-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

.header-icon-link[title]:hover::before,
.pill-button[title]:hover::before,
.mobile-menu-btn[title]:hover::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: #1a1a1a;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background var(--transition);
  width: 40px;
  height: 40px;
  position: relative;
}

.mobile-menu-btn.icon-only {
  width: 40px;
  height: 40px;
}

.mobile-menu-btn:hover {
  background: var(--bg-soft);
}

.mobile-menu-btn .icon-text {
  display: none !important;
}


/* Mobile Categories Navigation - Shows before search bar on mobile */
.mobile-categories-nav {
  display: none;
}

/* Show mobile categories nav on mobile */
@media (max-width: 768px) {
  .mobile-categories-nav {
    display: block !important;
  }
}

.mobile-categories-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-categories-nav ul::-webkit-scrollbar {
  display: none;
}

.mobile-categories-nav li {
  flex-shrink: 0;
  position: relative;
}

.mobile-nav-item-dropdown {
  position: relative;
}

.mobile-categories-nav a,
.mobile-categories-nav button {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  background: var(--bg-soft);
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mobile-categories-nav a:hover,
.mobile-categories-nav a:active,
.mobile-categories-nav button:hover,
.mobile-categories-nav button:active {
  background: var(--bg-grey);
  color: var(--accent);
}

/* Mobile Categories Dropdown Menu */
.mobile-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  min-width: 300px;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.mobile-nav-item-dropdown:hover .mobile-nav-dropdown-menu,
.mobile-nav-item-dropdown.active .mobile-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-nav-dropdown-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mobile-nav-dropdown-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-dropdown-column a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  transition: color var(--transition);
  background: transparent;
  border-radius: 0;
  white-space: normal;
}

.mobile-nav-dropdown-column a:hover {
  color: var(--accent);
  background: transparent;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 50;
}

.mobile-nav.active {
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-inner {
  background: #ffffff !important;
  background-color: #ffffff !important;
  width: min(320px, 80vw);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow-y: auto;
  max-height: 100vh;
}

.mobile-nav-inner > p {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block !important;
  visibility: visible !important;
}

.mobile-nav-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-categories-list {
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-dropdown-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  transition: all var(--transition);
}

.mobile-category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}

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

.mobile-category-toggle i {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  transition: transform var(--transition);
}

.mobile-dropdown-item.active .mobile-category-toggle i {
  transform: rotate(180deg);
  color: var(--accent) !important;
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.mobile-dropdown-item.active .mobile-dropdown-content {
  max-height: 1000px;
  padding: 0.75rem 0 0.5rem 0;
}

.mobile-dropdown-section {
  margin-bottom: 1rem;
}

.mobile-dropdown-section:last-child {
  margin-bottom: 0;
}

.mobile-dropdown-section h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-dropdown-section a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: none;
  transition: all var(--transition);
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.mobile-dropdown-section a:hover,
.mobile-dropdown-section a:active {
  color: var(--text);
  background: var(--bg-grey);
  padding-left: 1rem;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
}

.mobile-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

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

.mobile-links i {
  width: 20px;
  text-align: center;
  font-family: "bootstrap-icons" !important;
  font-weight: normal !important;
  font-style: normal !important;
  color: #666666 !important;
}

.mobile-nav-categories {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-categories h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.mobile-nav-categories a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-nav-categories a:hover {
  color: var(--text);
}

.close-mobile {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  align-self: flex-end;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem 0.5rem auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
}

.close-mobile:hover {
  background: var(--bg-soft);
}

/* Compact Promotional Banner */
.promo-banner-section {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa366 100%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0;
  margin-top: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
  height: 300px; /* Fixed height */
  border-top: 1px solid var(--border);
}

.promo-banner-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 300px; /* Fixed height */
}

.promo-banner-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  width: 100%;
  height: 300px; /* Fixed height */
}

.promo-banner-track {
  position: relative;
  width: 100%;
  height: 300px; /* Fixed height */
}

.promo-banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  z-index: 1;
}

.promo-banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.promo-banner-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.promo-banner-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain; /* Display image in current size without cropping */
  object-position: center; /* Center the image */
  display: block;
  margin: 0 auto;
}

.promo-banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa366 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  gap: 0.5rem;
  position: absolute;
  top: 0;
  left: 0;
}

.promo-banner-fallback i {
  font-size: 3rem;
  color: #ffffff;
}

.promo-banner-fallback span {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.promo-banner-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 75px;
  position: relative;
  overflow: hidden;
}

.promo-banner-text {
  flex: 1;
}

.promo-banner-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6b35;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
}

.promo-banner-text p {
  font-size: 0.8rem;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  font-weight: 500;
}

.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.promo-banner-visual {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.35);
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.promo-banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.promo-banner-visual i {
  position: relative;
  z-index: 1;
}

.promo-banner-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.promo-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6b35;
  text-shadow: 0 1px 2px rgba(255, 107, 53, 0.2);
}

.promo-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ff6b35;
  flex-shrink: 0;
}

.promo-nav-btn:hover {
  background: #ffffff;
  border-color: #ff6b35;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.promo-nav-btn i {
  font-size: 1rem;
}

.promo-banner-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

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

.promo-dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .promo-banner-section {
    height: 200px; /* Fixed height for mobile */
  }
  
  .promo-banner-container {
    height: 200px; /* Fixed height for mobile */
  }
  
  .promo-banner-wrapper {
    height: 200px; /* Fixed height for mobile */
  }
  
  .promo-banner-track {
    height: 200px; /* Fixed height for mobile */
  }
  
  .promo-banner-slide {
    height: 100%; /* Use 100% of track height */
  }
  
  .promo-banner-image-wrapper {
    height: 100%; /* Use 100% of slide height */
  }
  
  .promo-banner-fallback {
    height: 200px; /* Fixed height for mobile */
  }
  
  .promo-banner-fallback i {
    font-size: 2rem;
  }
  
  .promo-banner-fallback span {
    font-size: 1rem;
  }
  
  .promo-banner-dots {
    bottom: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .promo-dot {
    width: 8px;
    height: 8px;
  }
  
  .promo-dot.active {
    width: 20px;
  }
}

/* Category Navigation Section */
.category-nav-section {
  background: #ffffff;
  border-bottom: none;
  padding: 0.75rem 0;
  overflow: hidden;
  margin-bottom: 0;
}

.category-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.category-nav-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 100px;
  max-width: 100px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(186, 104, 200, 0.03) 100%);
  border: 1.5px solid rgba(138, 43, 226, 0.15);
}

.category-nav-item:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(186, 104, 200, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

.category-nav-item.active {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(186, 104, 200, 0.12) 100%);
  border-color: rgba(138, 43, 226, 0.4);
}

.category-nav-item.active .category-nav-image {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(138, 43, 226, 0.25) 100%);
  border-color: rgba(138, 43, 226, 0.4);
}

.category-nav-item:active {
  transform: translateY(0);
  background: rgba(138, 43, 226, 0.1);
}

.category-nav-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid rgba(138, 43, 226, 0.2);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.1);
  transition: all 0.3s ease;
  position: relative;
  order: 1;
  cursor: pointer;
}

.category-nav-item:hover .category-nav-image {
  border-color: rgba(138, 43, 226, 0.35);
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.25);
  transform: scale(1.08) translateY(-2px);
}

.category-nav-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.category-nav-item:hover .category-nav-image img {
  transform: scale(1.08);
}

.category-nav-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a2be2;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(186, 104, 200, 0.08) 100%);
  border-radius: 10px;
}

.category-nav-item:hover .category-nav-placeholder {
  transform: scale(1.1);
}

.category-nav-placeholder.all-products {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(186, 104, 200, 0.12) 100%);
  border-radius: 10px;
}

.category-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.4;
  word-wrap: break-word;
  max-width: 100%;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  order: 2;
  margin-top: 0;
  padding: 0 0.25rem;
}

.category-nav-item:hover .category-nav-label {
  color: #8a2be2;
  font-weight: 700;
}

@media (min-width: 768px) {
  .category-nav-item {
    min-width: 110px;
    max-width: 110px;
    gap: 0.85rem;
    padding: 1.25rem 0.85rem;
  }
  
  .category-nav-image {
    width: 90px;
    height: 90px;
  }
  
  .category-nav-label {
    font-size: 0.8rem;
  }
  
  .category-nav-placeholder {
    font-size: 2rem;
  }
  
  .category-nav-scroll {
    gap: 1.25rem;
    padding: 1.25rem 0.75rem;
  }
}

/* Featured Products Grid */
.featured-products-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  row-gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 1400px) {
  .featured-products-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .featured-products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .featured-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .featured-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 479px) {
  .featured-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .category-nav-section {
    padding: 0.5rem 0;
  }
  
  .category-nav-container {
    padding: 0 0.5rem;
  }
  
  .category-nav-scroll {
    gap: 0.4rem;
    padding: 0.25rem 0;
  }
  
  .category-nav-item {
    min-width: 60px;
    max-width: 60px;
    gap: 0.25rem;
  }
  
  .category-nav-image {
    width: 45px;
    height: 45px;
  }
  
  .category-nav-label {
    font-size: 0.6rem;
  }
  
  .category-nav-placeholder {
    font-size: 1.2rem;
  }
}

.hero {
  padding: 0 clamp(1rem, 6vw, 5rem);
  background: #ffffff !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
  background-color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: clamp(300px, 40vw, 450px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.hero-content-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 244, 255, 0.95));
  border-radius: 16px;
  border: 1px solid rgba(26, 36, 84, 0.1);
  padding: 1.5rem;
  margin: 0.75rem;
  box-shadow:
    0 8px 24px rgba(27, 38, 89, 0.1),
    inset 0 0 40px rgba(255, 255, 255, 0.3);
  perspective: 1200px;
  transform-style: preserve-3d;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-bottom: 1rem;
  color: var(--text);
  transform: translateZ(20px);
}

.hero-copy .subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
  transform: translateZ(15px);
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  transform: translateZ(10px);
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  transform: translateZ(20px);
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateZ(15px);
}

.hero-price-badge {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
  transform: translateZ(15px);
}

.hero-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%);
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 
    0 12px 30px rgba(138, 43, 226, 0.35),
    0 0 0 3px rgba(138, 43, 226, 0.1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.hero-price-pill:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 18px 45px rgba(138, 43, 226, 0.45),
    0 0 0 5px rgba(138, 43, 226, 0.2);
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: none;
  color: #ffffff;
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dots button.active {
  background: var(--accent);
  width: 12px;
  height: 12px;
}

/* Ensure only one dot is active at a time */
.hero-dots button:not(.active) {
  background: rgba(0, 0, 0, 0.2);
}

.hero-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  font-size: 0.85rem;
}

.hero-footer span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-header {
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.section-header span {
  font-size: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
}

.section-header p,
.section-header span {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.section-header-row h2 {
  margin-bottom: 0.15rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.promise-grid article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
}

.promise-grid i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: "bootstrap-icons" !important;
  font-style: normal !important;
  display: inline-block !important;
}

.signature-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.signature-large {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-grey);
}

.signature-large img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.signature-info {
  position: absolute;
  inset: auto 0 0;
  padding: 1.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #ffffff;
}

.signature-info a {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.signature-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding-bottom: 1.5rem;
  background: var(--bg-grey);
}

.signature-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.signature-card div {
  padding: 0 1.25rem;
}

/* Perfume Themes Carousel */
.perfume-themes {
  background: var(--bg-soft);
}

.themes-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.themes-carousel .carousel-viewport {
  overflow: visible;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.themes-carousel .carousel-viewport:active {
  cursor: grabbing;
}

.themes-carousel .carousel-viewport::-webkit-scrollbar {
  display: none;
}

.themes-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.themes-track.scroll-row {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.themes-track.scroll-row::-webkit-scrollbar {
  display: none;
}

.theme-card {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: 250px;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.theme-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.theme-card div {
  padding: 1.25rem;
}

.theme-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.theme-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.theme-count {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Library Carousel */
.library-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.library-carousel .carousel-viewport {
  overflow: visible;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.library-carousel .carousel-viewport:active {
  cursor: grabbing;
}

.library-carousel .carousel-viewport::-webkit-scrollbar {
  display: none;
}

.library-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.library-track.scroll-row {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.library-track.scroll-row::-webkit-scrollbar {
  display: none;
}

.library-card {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: 250px;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-grey);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.library-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.library-card img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.library-card div {
  padding: 1.25rem;
  background: var(--bg-grey);
}

.library-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.library-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.library-card .price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.layering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.layering-grid article {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  background: var(--bg-card);
}

.layering-grid span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journey-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.journey-carousel .carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.journey-carousel .carousel-viewport:active {
  cursor: grabbing;
}

.journey-carousel .carousel-viewport::-webkit-scrollbar {
  display: none;
}

.journey-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
  width: max-content;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.journey-track article {
  flex: 0 0 calc(33.333% - 0.667rem);
  min-width: 280px;
  max-width: 350px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-grey);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.journey-track img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.journey-track div {
  padding: 1.25rem;
  background: var(--bg-grey);
}

.carousel-control {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.carousel-control i {
  font-family: "bootstrap-icons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  color: #666666 !important;
  font-size: 1rem !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.carousel-control:hover i {
  color: #1a1a1a !important;
}

.carousel-control:hover {
  background: var(--bg-soft);
  transform: scale(1.1);
}

.carousel-control:active {
  transform: scale(0.95);
}

.atelier-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.atelier-grid article,
.review-grid article {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  background: var(--bg-card);
}

.review-grid h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.cta-banner {
  background: #f8f9fa !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8e8e8 100%) !important;
  background-color: #f8f9fa !important;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.cta-inner form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-inner input {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--text);
  min-width: 220px;
  font-size: 0.9rem;
}

.cta-inner input::placeholder {
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  padding: 3rem clamp(1rem, 5vw, 5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column h4 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}

.footer-socials a:hover {
  background: var(--bg-card);
  transform: scale(1.1);
}

/* Mobile Responsive Styles */
@media (max-width: 1400px) {
  .theme-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
  
  .library-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
  }
  
  .main-nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .main-nav a {
    font-size: 0.75rem;
  }
  
  .dropdown-menu {
    min-width: 350px;
    padding: 1.25rem;
  }
  
  .dropdown-content {
    gap: 1.5rem;
  }

  .header-actions {
    order: 2;
  }
  
  .search-container {
    min-width: 200px;
  }

  .header-quicklinks {
    order: 4;
    grid-column: 1 / -1;
    justify-content: center;
  }
  
  .signature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signature-large {
    grid-column: 1 / -1;
  }
  
  .theme-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 220px;
  }
  
  .library-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 220px;
  }

  .journey-track article {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 250px;
  }
}

@media (max-width: 968px) {
  .dropdown-menu {
    min-width: 300px;
    padding: 1rem;
  }
  
  .dropdown-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .theme-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 200px;
  }
  
  .library-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 200px;
  }

  .journey-track article {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 250px;
  }
  
  .signature-grid {
    grid-template-columns: 1fr;
  }
  
  .signature-large {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }

  .dropdown-menu {
    display: none !important;
  }

  .desktop-categories-nav-inline {
    display: none !important;
  }
  
  /* Show mobile categories navigation before search bar */
  .mobile-categories-nav {
    display: block !important;
    grid-column: 1 / -1;
    margin-bottom: 0.0rem;
    padding-bottom: 0.0rem;
    border-bottom: none; /* remove dividing line above search bar on mobile */
  }
  
  /* Mobile categories dropdown - single column on small screens */
  .mobile-nav-dropdown-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mobile-nav-dropdown-menu {
    min-width: 250px;
    max-width: 85vw;
    padding: 1rem;
  }
  
  /* Ensure mobile menu button is visible on mobile only */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
  }
  
  /* Hide mobile menu button on desktop */
  @media (min-width: 769px) {
    .mobile-menu-btn {
      display: none !important;
    }
  }
  
  /* Ensure mobile categories are visible */
  .mobile-categories-list {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Mobile dropdown cards - attractive design */
  .mobile-dropdown-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--bg-grey);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow var(--transition);
  }
  
  .mobile-dropdown-item:active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-category-toggle {
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg);
    margin: 0;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-dropdown-item.active .mobile-category-toggle {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-dropdown-content {
    background: var(--bg);
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    padding: 0 !important;
  }
  
  .mobile-dropdown-item.active .mobile-dropdown-content {
    padding: 1rem !important;
  }
  
  .mobile-dropdown-section {
    background: var(--bg-soft);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
  }
  
  .mobile-dropdown-section:last-child {
    margin-bottom: 0;
  }
  
  .mobile-dropdown-section h5 {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  
  .mobile-dropdown-section a {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: all var(--transition);
  }
  
  .mobile-dropdown-section a:hover,
  .mobile-dropdown-section a:active {
    background: var(--bg-grey);
    color: var(--text);
    padding-left: 1rem;
  }

  .header-inner {
    padding: 0.5rem clamp(0.5rem, 2vw, 1rem);
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
  }

  .brand-container {
    grid-column: 1;
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
  }

  .brand-container .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
  }
  
  .brand-name {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  
  .brand-tagline {
    font-size: 0.7rem;
  }
  
  .brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .mobile-menu-dropdown-container.mobile-top-menu {
    flex-shrink: 0;
    margin-left: auto;
    order: 2;
  }

  .mobile-categories-nav {
    order: 2;
    width: 100%;
  }

  .header-actions {
    grid-column: 2;
    justify-content: flex-end;
    gap: 0.5rem;
    order: 3;
    width: 100%;
  }
  
  .search-container {
    flex: 1;
    display: flex !important;
  }
  
    .header-actions .pill-button.icon-only {
    width: 38px;
    height: 38px;
    padding: 0.4rem;
  }

  /* Hide Order History dropdown on mobile */
  .order-dropdown-container {
    display: none !important;
  }

  /* Show mobile wishlist button on mobile */
  .mobile-wishlist-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
    padding: 0.4rem;
    align-items: center;
    justify-content: center;
  }

  .header-quicklinks {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
    order: 4;
    width: 100%;
  }
  
  .header-icon-link {
    width: 38px;
    height: 38px;
    padding: 0.4rem;
  }
  
  .header-icon-link i {
    font-size: 1.1rem !important;
  }

  .header-icon-link .icon-text,
  .action-text,
  .mobile-menu-btn .icon-text {
    display: none !important;
  }

  /* Hide desktop-only links on mobile */
  .desktop-only-link {
    display: none !important;
  }

  /* Show mobile 3-dot menu button on mobile */
  .mobile-menu-dots-btn {
    display: flex !important;
  }
  
  /* Ensure mobile menu button is visible and properly sized */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .header-icon-link {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0.5rem;
  }

  .header-icon-link i {
    font-size: 1.3rem;
  }

  .pill-button.icon-only {
    width: 44px;
    height: 44px;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
    margin: 1rem;
  }

  .hero-copy {
    padding: 0;
    margin: 0;
  }

  .hero-media {
    order: -1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-price-badge {
    justify-content: center;
  }

  .hero-price-pill {
    font-size: 1.1rem;
    padding: 0.5rem 1.25rem;
  }

  .hero-media {
    order: -1;
  }

  .theme-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 180px;
  }
  
  .library-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 180px;
  }

  .journey-track article {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .carousel-control {
    width: 36px;
    height: 36px;
  }

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

  .signature-large {
    min-height: 400px;
  }
}

@media (max-width: 540px) {
  .top-bar-inner {
    padding: 0.5rem 1rem;
  }
  
  .marquee-text {
    font-size: 0.75rem;
  }

  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .brand {
    justify-content: center;
  }
  
  .brand-name {
    font-size: 0.85rem;
  }
  
  .brand-tagline {
    font-size: 0.65rem;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    justify-content: center;
    grid-column: 1;
    width: 100%;
  }
  
  .search-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
  
  .search-bar {
    width: 100%;
    padding: 0.5rem 3.5rem 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
  
  .search-clear-btn {
    right: 2rem;
  }

  .header-quicklinks {
    justify-content: center;
    width: 100%;
  }
  
  .header-icon-link,
  .pill-button.icon-only {
    width: 36px;
    height: 36px;
    padding: 0.35rem;
  }
  
  .header-icon-link i,
  .pill-button.icon-only i {
    font-size: 1rem !important;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .hero {
    padding: 0 1rem;
  }
  
  .hero-slider {
    min-height: 400px;
  }
  
  .hero-content-wrapper {
    padding: 1.25rem;
    margin: 0.75rem;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-price-pill {
    font-size: 1rem;
    padding: 0.45rem 1rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-inner form {
    width: 100%;
    flex-direction: column;
  }

  .cta-inner input {
    width: 100%;
    min-width: unset;
  }

  .theme-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
  
  .library-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .theme-card img,
  .library-card img {
    height: 180px;
  }
  
  .signature-card img {
    height: 200px;
  }
  
  .signature-large {
    min-height: 300px;
  }
  
  .library-card img {
    height: 250px;
  }
  
  .journey-track img {
    height: 180px;
  }

  .promise-grid,
  .layering-grid,
  .atelier-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 400px) {
  .top-bar-inner {
    padding: 0.4rem 0.75rem;
  }
  
  .marquee-text {
    font-size: 0.7rem;
  }
  
  .header-inner {
    padding: 0.5rem 0.75rem;
  }
  
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  
  .brand-name {
    font-size: 0.8rem;
  }
  
  .brand-tagline {
    font-size: 0.6rem;
  }

  .hero-content-wrapper {
    padding: 1rem;
    margin: 0.5rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-price-pill {
    font-size: 0.95rem;
    padding: 0.4rem 0.9rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .header-icon-link,
  .pill-button.icon-only {
    width: 32px;
    height: 32px;
    padding: 0.3rem;
  }
  
  .header-icon-link i,
  .pill-button.icon-only i {
    font-size: 0.9rem !important;
  }
  
  .search-bar {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .search-icon {
    right: 0.75rem;
    font-size: 0.9rem !important;
  }
  
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem;
  }
  
  .theme-card,
  .library-card {
    min-width: 100%;
    max-width: 100%;
  }
  
  .carousel-control {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem;
  }
}

/* Floating Review Widget - Fixed to viewport, never scrolls */
.floating-review-wrapper {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.75rem !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  isolation: isolate !important;
  contain: layout style paint !important;
  scroll-margin: 0 !important;
  scroll-padding: 0 !important;
  /* Ensure it's always on top of other fixed elements */
  will-change: auto;
}

/* Ensure floating buttons are not affected by any parent transforms or containers */
body .floating-review-wrapper,
html .floating-review-wrapper,
* .floating-review-wrapper,
body > .floating-review-wrapper,
.main-header ~ .floating-review-wrapper,
.header ~ .floating-review-wrapper,
section ~ .floating-review-wrapper,
.container ~ .floating-review-wrapper,
.wrapper ~ .floating-review-wrapper {
  position: fixed !important;
  transform: none !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  top: auto !important;
  left: auto !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.75rem !important;
}

.floating-review-wrapper.visible {
  opacity: 1;
  transform: none !important;
  pointer-events: auto;
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  top: auto !important;
  left: auto !important;
  z-index: 99999 !important;
}

@media (max-width: 768px) {
  .floating-review-wrapper,
  body .floating-review-wrapper,
  html .floating-review-wrapper,
  * .floating-review-wrapper,
  body > .floating-review-wrapper,
  .main-header ~ .floating-review-wrapper,
  .header ~ .floating-review-wrapper {
    bottom: 1rem !important;
    right: 1rem !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .floating-review-wrapper,
  body .floating-review-wrapper,
  html .floating-review-wrapper,
  * .floating-review-wrapper,
  body > .floating-review-wrapper,
  .main-header ~ .floating-review-wrapper,
  .header ~ .floating-review-wrapper {
    bottom: 0.75rem !important;
    right: 0.75rem !important;
    gap: 0.75rem !important;
  }
}

.floating-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #8a2be2 0%, #b06ffb 50%, #d4a5f7 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4), 0 0 0 0 rgba(138, 43, 226, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.floating-review-btn i {
  font-size: 1.2rem;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.floating-review-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(138, 43, 226, 0.5), 0 0 0 4px rgba(138, 43, 226, 0.15);
  background: linear-gradient(135deg, #9a3bf2 0%, #c07ffb 50%, #e4b5f7 100%);
}

.floating-review-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Desktop: Centered Modal */
.review-panel {
  position: fixed !important;
  top: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) scale(0.95) !important;
  right: auto !important;
  bottom: auto !important;
  width: min(550px, calc(100vw - 2rem)) !important;
  max-width: 90vw !important;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 7, 41, 0.3), 0 0 0 1px rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.2);
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  z-index: 100000 !important;
  visibility: hidden;
}

.review-panel.open {
  transform: translateX(-50%) scale(1) !important;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.review-panel::-webkit-scrollbar {
  width: 8px;
}

.review-panel::-webkit-scrollbar-track {
  background: rgba(138, 43, 226, 0.05);
  border-radius: 10px;
}

.review-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8a2be2, #b06ffb);
  border-radius: 10px;
}

.review-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #9a3bf2, #c07ffb);
}

.review-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(138, 43, 226, 0.2);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
  padding-top: 0;
}

.review-panel-header .eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a2be2;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.review-panel-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.2;
}

.review-panel-header .subtext {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.panel-close-btn {
  border: none;
  background: rgba(138, 43, 226, 0.1);
  color: #8a2be2;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 1.25rem;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.panel-close-btn:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.panel-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

.review-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form input[type="file"],
.review-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid rgba(138, 43, 226, 0.25);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.2s ease;
  font-family: inherit;
}

.review-form input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: #8a2be2;
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
  background: #fafaff;
}

.review-form textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.profile-reminder {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(138, 43, 226, 0.08);
  border-radius: 12px;
  border: 1px dashed rgba(138, 43, 226, 0.3);
  margin-bottom: 1rem;
  align-items: center;
}

.profile-reminder i {
  font-size: 1.5rem;
  color: #8a2be2;
}

.profile-reminder a {
  font-weight: 600;
  color: #8a2be2;
}

.review-questions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.question-block > span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.rating-options label {
  border: 1.5px solid rgba(138, 43, 226, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.rating-options input[type="radio"] {
  accent-color: #8a2be2;
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.rating-options label:hover {
  border-color: #8a2be2;
  background: rgba(138, 43, 226, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.15);
}

.rating-options input[type="radio"]:checked + span,
.rating-options label:has(input[type="radio"]:checked) {
  border-color: #8a2be2;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(176, 111, 251, 0.08));
  color: #8a2be2;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

.suggestion-block {
  border-top: 1px solid rgba(138, 43, 226, 0.15);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.suggestion-block h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #1a1a1a;
}

.review-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #8a2be2 0%, #b06ffb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.review-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
  background: linear-gradient(135deg, #9a3bf2 0%, #c07ffb 100%);
}

.review-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.review-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.review-submit-btn i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.review-feedback {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e8449;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(30, 132, 73, 0.1);
}

.review-feedback.error {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.1);
}

.review-panel-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 7, 41, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999 !important;
  visibility: hidden;
}

.review-panel-overlay.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Prevent body scrolling when review modal is open */
body:has(.review-panel.open),
body:has(.review-panel-overlay.show) {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Fallback for browsers that don't support :has() */
body.review-modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

.review-panel-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

body.dark-theme .review-panel {
  background: #111a2f;
  border-color: rgba(74, 158, 255, 0.2);
  color: #e0e0e0;
}

body.dark-theme .review-panel-header {
  background: #111a2f !important;
  border-bottom-color: rgba(74, 158, 255, 0.2) !important;
}

body.dark-theme .review-panel-header h3 {
  background: linear-gradient(135deg, #4a9eff 0%, #5ab0ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.dark-theme .question-block > span,
body.dark-theme .suggestion-block h4 {
  color: #f5f5ff;
}

body.dark-theme .panel-close-btn {
  background: rgba(74, 158, 255, 0.12);
  color: #4a9eff;
}

body.dark-theme .review-form label {
  color: #cfd8ff;
}

body.dark-theme .review-form input[type="text"],
body.dark-theme .review-form input[type="email"],
body.dark-theme .review-form input[type="file"],
body.dark-theme .review-form textarea {
  background: rgba(17, 26, 47, 0.8);
  border-color: rgba(74, 158, 255, 0.3);
  color: #fff;
}

body.dark-theme .rating-options label {
  border-color: rgba(74, 158, 255, 0.3);
}

body.dark-theme .profile-reminder {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.3);
}

@media (max-width: 640px) {
  .floating-review-wrapper {
    position: fixed !important;
    right: 1rem !important;
    bottom: 1rem !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 99999 !important; /* Higher than header */
    margin: 0 !important;
    scroll-margin: 0 !important;
  }

  .floating-review-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .floating-review-btn span {
    display: none;
  }

  .floating-review-btn i {
    margin: 0;
  }

  /* Mobile: Bottom Sheet (like filter sheet) */
  .review-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: translate3d(0, 100%, 0) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    z-index: 100000 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease !important;
  }
  
  .review-panel.open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .review-panel-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
  }

  .review-panel-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .rating-options {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .rating-options label {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .question-block {
    margin-bottom: 1rem;
  }

  .suggestion-block {
    padding-top: 1rem;
    margin-top: 0.75rem;
  }
}

/* File Upload Styling */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.file-input-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.file-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.4);
  background: linear-gradient(135deg, #9a3bf2 0%, #ca78d8 100%);
}

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

.file-upload-btn i {
  font-size: 1.1rem;
}

.file-name {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.image-preview-container {
  position: relative;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(138, 43, 226, 0.2);
  background: #f8f9fa;
  max-width: 300px;
}

.image-preview-container img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: contain;
}

.remove-image-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(231, 76, 60, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-image-btn:hover {
  background: rgba(192, 57, 43, 1);
  transform: scale(1.1);
}

.remove-image-btn i {
  font-size: 1rem;
}

/* Share Button Styling */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
}

.share-btn i {
  font-size: 1rem;
}

.share-btn.product-card-share {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.9);
  backdrop-filter: blur(4px);
}

.share-btn.product-card-share:hover {
  background: rgba(52, 152, 219, 1);
  transform: scale(1.1);
}

.share-btn.product-card-share span {
  display: none;
}

/* Share Notification */
.share-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-weight: 500;
  max-width: 300px;
}

.share-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.share-notification.error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

/* Amazing AI Chat Widget */
.floating-chat-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-end;
  width: auto;
}

.floating-review-btn.floating-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, #00c853 0%, #00e676 45%, #69f0ae 100%);
  color: #0d3b27;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 200, 83, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.floating-review-btn.floating-chat-btn:hover,
.floating-review-btn.floating-chat-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 200, 83, 0.45);
  filter: brightness(1.05);
  outline: none;
}

.floating-review-btn.floating-chat-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-review-btn.floating-chat-btn i {
  font-size: 1.05rem;
}

.chat-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 340px;
  max-height: calc(100vh - 8rem);
  background: linear-gradient(160deg, #ffffff 0%, #f9f4ff 55%, #f1e4ff 100%);
  color: #1a1a1a;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(118, 60, 197, 0.25);
  border: 1px solid rgba(138, 43, 226, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 130;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.chat-panel-header,
.chat-panel-footer {
  padding: 1.1rem 1.25rem;
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(138, 43, 226, 0.12);
}

.chat-panel-body {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.chat-messages {
  min-height: 110px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(138, 43, 226, 0.12);
  padding: 0.75rem;
}

.chat-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.35;
  width: fit-content;
  max-width: 95%;
  border: 1px solid rgba(138, 43, 226, 0.15);
  background: rgba(138, 43, 226, 0.08);
  color: #2d1c49;
}

.chat-bubble.user {
  align-self: flex-end;
  background: rgba(208, 189, 250, 0.6);
  border-color: rgba(138, 43, 226, 0.25);
}

.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(138, 43, 226, 0.1);
}

.chat-meta {
  display: block;
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 0.3rem;
}

.chat-empty {
  text-align: center;
  font-size: 0.85rem;
  color: #6a4f95;
  padding: 0.5rem 0;
}

.chat-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.chat-option-btn {
  border: 1px solid rgba(138, 43, 226, 0.25);
  background: #ffffff;
  color: #6a1b9a;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-option-btn:hover,
.chat-option-btn:focus-visible {
  background: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.4);
  outline: none;
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.15);
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #fff;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(138, 43, 226, 0.15);
  box-shadow: inset 0 0 0 1px rgba(138, 43, 226, 0.05);
}

.chat-form.hidden {
  display: none;
}

.chat-form textarea,
.chat-form input[type="text"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(138, 43, 226, 0.25);
  background: rgba(248, 244, 255, 0.7);
  color: #2d1c49;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  resize: vertical;
}

.chat-form textarea:focus,
.chat-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.chat-panel-footer small {
  color: #6a4f95;
  display: block;
  text-align: center;
}

.chat-feedback {
  font-size: 0.85rem;
  color: #6a1b9a;
  min-height: 1rem;
}

.chat-feedback.error {
  color: #c62828;
}

.chat-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 6, 60, 0.25);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chat-panel-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.pill-button.full-width {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.form-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 768px) {
  .file-upload-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .file-upload-btn {
    width: 100%;
    justify-content: center;
  }

  .image-preview-container {
    max-width: 100%;
  }

  .share-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }

  /* Mobile Floating Buttons - Right corner bottom, icons only - Fixed to viewport */
  .floating-review-wrapper {
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.75rem !important;
    width: auto !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
    contain: layout style paint !important;
    isolation: isolate !important;
    /* Position above filter button (z-index: 998) */
    will-change: auto;
  }
  

  .floating-chat-wrapper {
    width: auto;
    align-items: flex-end;
    gap: 0;
  }

  .floating-review-btn,
  .floating-review-btn.floating-chat-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 0;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .floating-review-btn span,
  .floating-review-btn.floating-chat-btn span {
    display: none !important;
  }

  .floating-review-btn i,
  .floating-review-btn.floating-chat-btn i {
    font-size: 1.5rem !important;
    margin: 0;
    display: block;
  }

  .chat-panel {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    min-width: 0 !important;
    bottom: 5rem !important;
    top: auto !important;
    transform: translateX(-50%) translateY(10px) !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 6rem) !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .chat-panel.open {
    transform: translateX(-50%) translateY(0) !important;
  }

  /* Mobile: Bottom Sheet (like filter sheet) */
  .review-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: translate3d(0, 100%, 0) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    max-height: 90vh !important;
    padding: 1rem !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
    will-change: transform;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease !important;
  }

  .review-panel.open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Ensure chat panel stays centered when open */
  .chat-panel.open {
    transform: translateX(-50%) translateY(0) !important;
  }

  .floating-chat-btn {
    width: 100%;
    justify-content: center;
  }

  .chat-panel-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .chat-panel-body {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
  }

  .chat-panel-header h3,
  .chat-panel-header p,
  .chat-panel-body p,
  .chat-panel-body span {
    text-align: left !important;
  }

  .chat-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .chat-messages {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
  }

  .chat-bubble {
    width: fit-content !important;
    max-width: 85% !important;
    word-wrap: break-word !important;
    text-align: left !important;
    align-self: flex-start !important;
  }

  .chat-bubble.user {
    align-self: flex-end !important;
    text-align: left !important;
  }

  .chat-bubble.ai {
    align-self: flex-start !important;
    text-align: left !important;
  }

  .chat-panel-header h3,
  .chat-panel-header p {
    text-align: left !important;
  }

  .chat-empty {
    text-align: center !important;
    width: 100% !important;
  }

  .chat-option-btn {
    text-align: left !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .rating-options {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0.5rem !important;
  }

  .review-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  .review-panel-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2) !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .review-panel-header h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .review-form {
    display: flex !important;
    flex-direction: column !important;
  }

  .review-questions {
    display: flex !important;
    flex-direction: column !important;
  }

  .question-block {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 480px) {
  /* Ensure floating buttons are in right corner on small screens - Fixed to viewport */
  .floating-review-wrapper {
    position: fixed !important;
    right: 0.75rem !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    bottom: 0.75rem !important;
    width: auto !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
    isolation: isolate !important;
    contain: layout style paint !important;
    will-change: auto;
  }
  

  .floating-review-btn,
  .floating-review-btn.floating-chat-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .floating-review-btn span,
  .floating-review-btn.floating-chat-btn span {
    display: none !important;
  }

  .floating-review-btn i,
  .floating-review-btn.floating-chat-btn i {
    font-size: 1.4rem !important;
  }

  .chat-panel {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    min-width: 0 !important;
    bottom: 4rem !important;
    top: auto !important;
    max-height: calc(100vh - 5rem) !important;
    transform: translateX(-50%) translateY(10px) !important;
    padding: 0.75rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .chat-panel.open {
    transform: translateX(-50%) translateY(0) !important;
  }

  .chat-panel-header,
  .chat-panel-footer {
    padding: 0.75rem;
  }

  .chat-panel-body {
    padding: 0.75rem;
    text-align: left !important;
  }

  .chat-panel-header {
    text-align: left !important;
  }

  .chat-panel-header h3,
  .chat-panel-header p {
    text-align: left !important;
  }

  .chat-messages {
    text-align: left !important;
    align-items: stretch !important;
  }

  .chat-bubble {
    width: fit-content !important;
    max-width: 85% !important;
    word-wrap: break-word !important;
    text-align: left !important;
  }

  .chat-bubble.user {
    align-self: flex-end !important;
    text-align: left !important;
  }

  .chat-bubble.ai {
    align-self: flex-start !important;
    text-align: left !important;
  }

  .chat-empty {
    text-align: center !important;
    width: 100% !important;
  }

  .chat-option-btn {
    text-align: left !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .review-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    min-width: 0 !important;
    padding: 0.75rem !important;
    margin: 0 auto !important;
    max-height: calc(100vh - 1.5rem) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .review-panel.open {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .review-panel-header {
    padding: 0.5rem 0 1rem 0 !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2) !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
  }

  .review-panel-header h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #8a2be2 0%, #ba68c8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .review-form {
    font-size: 0.9rem;
  }

  .review-form .form-field {
    margin-bottom: 0.75rem;
  }

  .review-questions {
    gap: 0.75rem;
  }

  .rating-options label {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .chat-options {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0.5rem !important;
  }

  .rating-options {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0.4rem !important;
  }
}

/* Hide login/logout elements on mobile view only */
@media (max-width: 768px) {
  /* Hide login/logout icons in header quicklinks */
  .header-quicklinks a[title="Login"],
  .header-quicklinks a[title="Logout"],
  .header-quicklinks a[href*="customer_password_login"] {
    display: none !important;
  }
  
  /* Hide login/logout links in mobile menu */
  .mobile-links a[title="Login"],
  .mobile-links a[title="Logout"],
  .mobile-links a[href*="customer_password_login"],
  .mobile-links a[onclick*="logoutUser"] {
    display: none !important;
  }
  
  /* Show login/logout items in mobile menu dropdown - they should be visible */
  .mobile-menu-dropdown-item[href*="customer_password_login"],
  .mobile-menu-dropdown-item[onclick*="logoutUser"],
  .mobile-menu-dropdown a[onclick*="logoutUser"],
  .mobile-menu-dropdown a.mobile-menu-dropdown-item:last-child,
  a.mobile-menu-dropdown-item[onclick*="logoutUser"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure logout button is always visible in mobile menu - multiple selectors for maximum compatibility */
  #mobileMenuDropdown a.mobile-menu-dropdown-item[onclick*="logoutUser"],
  #mobileMenuDropdown a[onclick*="logoutUser"],
  .mobile-menu-dropdown-container a[onclick*="logoutUser"],
  .mobile-top-menu a[onclick*="logoutUser"],
  /* Target by ID and class */
  #mobileLogoutBtn,
  .logout-menu-item,
  /* Target the 4th item when user is logged in (Profile, Order history, Settings, Logout) */
  #mobileMenuDropdown a.mobile-menu-dropdown-item:nth-child(4),
  .mobile-menu-dropdown a.mobile-menu-dropdown-item:nth-child(4) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}