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

@import url('footer.css');
@import url('product-pricing.css');

:root {
  --bg: #f7f1e8;
  --bg-deep: #ede1d2;
  --surface: #fffaf4;
  --ink: #1f1a15;
  --ink-soft: #5a4f43;
  --accent: #d28b3d;
  --accent-dark: #a25c21;
  --sage: #1f3431;
  --mist: #f4d6b8;
  --rose: #c79a95;
  --shadow: 0 24px 48px rgba(35, 31, 26, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll but allow sticky */
}

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

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

main {
  overflow: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 640px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 14px 28px rgba(184, 123, 75, 0.3);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.button.small {
  padding: 4px 12px;
  font-size: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-size: 0.75rem;
  margin-left: 6px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid rgba(31, 26, 21, 0.08);
}

.site-header.scrolled {
  box-shadow: 0 12px 30px rgba(35, 31, 26, 0.12);
  background: rgba(246, 239, 233, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.mobile-sticky-top-bar {
  display: none !important;
}

.mobile-menu-overlay {
  display: none !important;
}

.mobile-menu-sidebar {
  display: none !important;
}

.mobile-brand {
  display: flex;
  align-items: center;
}

.mobile-brand-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

.mobile-nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
  background: rgba(210, 139, 61, 0.1);
}

.mobile-sticky-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mobile-currency-form {
  display: flex;
  align-items: center;
}

.mobile-currency-select {
  padding: 4px 8px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 12px;
  background: white;
}

.mobile-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-welcome {
  font-size: 11px;
  color: var(--ink-soft);
  margin-right: 8px;
}

.mobile-auth-link {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.mobile-auth-link:hover {
  color: var(--accent);
  background: rgba(210, 139, 61, 0.1);
}

.mobile-cart-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-cart-link {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.mobile-cart-link:hover {
  color: var(--accent);
  background: rgba(210, 139, 61, 0.1);
}

.mobile-cart-count {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.mobile-cart-total {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.currency-switch select {
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid rgba(31, 26, 21, 0.2);
  background: #fff;
  font-size: 0.85rem;
}

.auth-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.auth-links a {
  color: var(--ink-soft);
  font-weight: 500;
}

.cart-link {
  font-weight: 500;
}

.cart-total {
  font-weight: 600;
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.hero {
  padding: 60px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 21, 0.08);
}

.hero-media {
  display: grid;
  gap: 20px;
}

.hero-image {
  border-radius: var(--radius-lg);
  height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(214, 168, 162, 0.3), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: grid;
  gap: 14px;
}

.hero-point {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.slide-text {
  max-width: 600px;
  color: white;
}

.slide-subtitle {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

.slide-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slide-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

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

.dot.active {
  background: white;
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255,255,255,0.8);
}

/* Responsive Slider */
@media (max-width: 768px) {
  .slide-title {
    font-size: 2.5rem;
  }
  
  .slide-description {
    font-size: 1rem;
  }
  
  .slide-button {
    padding: 12px 24px;
    font-size: 0.875rem;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .slider-prev {
    left: 10px;
  }
  
  .slider-next {
    right: 10px;
  }
  
  .slider-dots {
    bottom: 20px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-subtitle {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .slide-description {
    font-size: 0.875rem;
  }
  
  .slide-button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-panel {
  background: rgba(255, 255, 255, 0.85);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.category-card,
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(35, 31, 26, 0.15);
}

.category-card p,
.product-card p {
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
  margin-top: 8px;
}

.product-card img {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  height: 200px;
  object-fit: cover;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 500;
}

/* Clean Price Classes - 14px font size */
.price-display-14 {
  font-size: 14px !important;
  color: var(--accent-dark) !important;
  font-weight: 600 !important;
}

.special-price-14 {
  font-size: 14px !important;
  color: var(--accent-dark) !important;
  font-weight: 600 !important;
}

.original-price-14 {
  font-size: 14px !important;
  color: #666 !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
}

/* Price row layout fix */
.price-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 62, 61, 0.12);
  color: var(--sage);
  font-size: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.contact-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 16px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.inline-form .button {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  padding: 8px 12px;
}

.inline-form .button.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.inline-form .button.ghost:hover {
  background: var(--accent);
  color: white;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 31, 26, 0.12);
  font-family: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.filter-bar input,
.filter-bar select {
  max-width: 220px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.filter-toggle input {
  width: auto;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.product-detail img {
  border-radius: var(--radius-lg);
  height: 420px;
  object-fit: cover;
}

.product-detail .price {
  font-size: 1.8rem;
  font-weight: 600;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.cart-table th,
.cart-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(35, 31, 26, 0.1);
  text-align: left;
}

.cart-summary {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.cart-drawer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  min-width: 280px;
}

.cart-drawer.show,
.cart-drawer.active {
  transform: translateY(0);
  opacity: 1;
}

.cart-drawer-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.cart-drawer-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-soft);
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1001;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-drawer-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--ink);
}

.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 45px;
  height: 45px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 40px;
    height: 40px;
    font-size: 18px;
    left: 15px;
    bottom: 15px;
  }
}

.empty-state {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.account-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.account-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.address-list {
  display: grid;
  gap: 16px;
}

.address-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid rgba(31, 26, 21, 0.08);
}

.address-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.address-delete {
  margin-top: 10px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(31, 26, 21, 0.1);
  text-align: left;
}

.status-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(31, 52, 49, 0.12);
  color: var(--sage);
  font-size: 0.75rem;
}

.alert {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(214, 168, 162, 0.2);
  color: var(--sage);
}

.site-footer {
  padding: 60px 0 30px;
  background: var(--sage);
  color: #fff;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 24px;
}

.footer-note {
  text-align: center;
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Mobile: Move back to top button higher to avoid bottom bar overlap */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
  }
}

/* Mega Menu */
.mega-menu {
  position: fixed;
  top: auto;
  left: 0;
  right: auto;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999;
  display: none;
  min-width: 300px;
  max-width: 800px;
  border-radius: 8px;
}

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

.nav-item.dropdown > a.dropdown-toggle {
  z-index: 1003;
  position: relative;
}

.nav-item.dropdown:hover .mega-menu {
  display: block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7em;
}

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

.nav-item.dropdown > a.dropdown-toggle {
  z-index: 1003;
  position: relative;
}

.nav-item.dropdown:hover .mega-menu {
  display: block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7em;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 90vw;
  max-width: 1200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 24px;
  /* Ensure no negative left margin */
  margin-left: 0;
  /* Prevent horizontal overflow */
  box-sizing: border-box;
  /* Add max-width constraint to prevent overflow */
  max-width: min(1200px, calc(100vw - 40px));
  /* Add max-height and scroll for long menus */
  max-height: 80vh;
  overflow-y: auto;
}

/* Custom scrollbar for mega menus */
.mega-menu::-webkit-scrollbar {
  width: 6px;
}

/* Ensure mega menu displays on hover - multiple approaches */
.category-nav .nav-item:hover .mega-menu,
.category-nav .nav-item.dropdown:hover .mega-menu,
.category-nav .nav-item:hover > .mega-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Also try direct dropdown class */
.category-nav .dropdown:hover .mega-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mega-menu::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.mega-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
}

/* Subcategory columns layout */
.mega-menu-column {
  display: block;
}

.subcategory-columns-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  padding-bottom: 60px;
}

body {
  padding-bottom: 60px;
}

.subcategory-column {
  flex: 0 0 180px;
  min-width: 180px;
  flex-shrink: 0;
}

/* More specific styles to override existing mega-menu-column styles */
.subcategory-columns-container .subcategory-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcategory-columns-container .subcategory-column ul li {
  margin-bottom: 6px;
}

.subcategory-columns-container .subcategory-column ul li a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.subcategory-columns-container .subcategory-column ul li a:hover {
  color: var(--accent);
}

/* Custom scrollbar for horizontal scrolling */
.subcategory-columns-container::-webkit-scrollbar {
  height: 6px;
}

.subcategory-columns-container::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.subcategory-columns-container::-webkit-scrollbar-thumb {
  background: var(--ink-soft);
  border-radius: 3px;
}

.subcategory-columns-container::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}

.mega-menu-column h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
}

.mega-menu-column h3 a {
  color: var(--ink);
  text-decoration: none;
}

.mega-menu-column h3 a:hover {
  color: var(--accent);
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column ul li {
  margin-bottom: 8px;
}

.mega-menu-column ul li a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}

.mega-menu-column ul li a:hover {
  color: var(--accent);
}

/* Category Nav Images */
.sticky-mega-menu-column .nav-images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px !important;
  margin-top: 8px;
}

.sticky-mega-menu-column .nav-image-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}

.nav-image-item:hover {
  transform: translateY(-2px);
}

.nav-image-item a {
  text-decoration: none;
  display: block;
}

.nav-image {
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
}

.sticky-mega-menu-column .nav-image-title {
  display: block !important;
  padding: 8px 0 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center !important;
  margin-top: 4px !important;
}

.nav-image-item:hover .nav-image-title {
  color: var(--accent);
}

/* Mega Menu Products */
.mega-menu-products {
  min-width: 280px;
}

.featured-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu-product {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mega-menu-product:hover {
  box-shadow: var(--shadow);
}

.mega-menu-product a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: var(--ink);
}

.mega-menu-product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mega-menu-product-info {
  flex: 1;
  min-width: 0;
}

.mega-menu-product-info h4 {
  margin: 0 0 4px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-menu-product-price {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.no-products {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 76px;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 24px;
    width: min(280px, 90%);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }

  .nav.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .cart-link {
    display: none;
  }

  .cart-total {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  /* Hide top bar on mobile with maximum specificity */
  .top-bar,
  div.top-bar,
  header .top-bar,
  .main-header .top-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Ultra-specific top bar hiding for mobile */
  .top-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    opacity: 0 !important;
    z-index: -9999 !important;
  }
}

@media (max-width: 768px) {
  /* Hide desktop top bar on mobile, show mobile sticky top bar */
  .top-bar,
  div.top-bar,
  header .top-bar,
  .main-header .top-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .mobile-sticky-top-bar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 60px;
    margin-bottom: 5px;
  }

  .mobile-sticky-top-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    height: 100%;
    font-size: 16px;
    max-width: 100%;
    gap: 5px;
  }

  .mobile-sticky-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 36px;
    background: transparent;
    border: 1px dashed transparent;
  }

  .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--accent);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(0,0,0,0.1);
  }

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

  .mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1003;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .mobile-menu-sidebar.active {
    left: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: var(--surface);
  }

  .mobile-menu-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .mobile-menu-close:hover {
    background-color: rgba(0,0,0,0.1);
  }

  .mobile-menu-content {
    padding: 0;
  }

  .mobile-menu-section {
    margin-bottom: 20px;
  }

  .mobile-menu-section h4 {
    padding: 15px 20px;
    margin: 0;
    background: #f8f9fa;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
  }

  .mobile-category-list,
  .mobile-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-category-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .mobile-category-header:hover {
    background-color: #f8f9fa;
  }

  .mobile-category-header span {
    font-weight: 500;
    color: var(--ink);
  }

  .mobile-category-header i {
    color: var(--ink-soft);
    transition: transform 0.3s ease;
  }

  .mobile-category-header.active i {
    transform: rotate(180deg);
  }

  .mobile-subcategory-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
  }

  .mobile-subcategory-list.active {
    display: block;
  }

  .mobile-subcategory-item {
    border-bottom: 1px solid #f0f0f0;
  }

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

  .mobile-subcategory-item a {
    display: block;
    padding: 12px 20px 12px 30px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .mobile-subcategory-item a:hover {
    background-color: #f0f0f0;
    color: var(--accent);
  }

  .mobile-links-list li {
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-links-list li:last-child {
    border-bottom: none;
  }

  .mobile-links-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .mobile-links-list li a:hover {
    background-color: #f8f9fa;
    color: var(--accent);
  }

  .mobile-top-bar {
    display: none !important;
  }

  .mobile-brand img {
    max-height: 36px;
    max-width: 36px;
    object-fit: contain;
    display: block;
  }

  .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--accent);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(0,0,0,0.1);
  }

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

  .mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1003;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .mobile-menu-sidebar.active {
    left: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: var(--surface);
  }

  .mobile-menu-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .mobile-menu-close:hover {
    background-color: rgba(0,0,0,0.1);
  }

  .mobile-menu-content {
    padding: 0;
  }

  .mobile-menu-section {
    margin-bottom: 20px;
  }

  .mobile-menu-section h4 {
    padding: 15px 20px;
    margin: 0;
    background: #f8f9fa;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
  }

  .mobile-category-list,
  .mobile-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-category-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .mobile-category-header:hover {
    background-color: #f8f9fa;
  }

  .mobile-category-header span {
    font-weight: 500;
    color: var(--ink);
  }

  .mobile-category-header i {
    color: var(--ink-soft);
    transition: transform 0.3s ease;
  }

  .mobile-category-header.active i {
    transform: rotate(180deg);
  }

  .mobile-subcategory-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
  }

  .mobile-subcategory-list.active {
    display: block;
  }

  .mobile-subcategory-item {
    border-bottom: 1px solid #f0f0f0;
  }

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

  .mobile-subcategory-item a {
    display: block;
    padding: 12px 20px 12px 30px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .mobile-subcategory-item a:hover {
    background-color: #f0f0f0;
    color: var(--accent);
  }

  .mobile-links-list li {
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-links-list li:last-child {
    border-bottom: none;
  }

  .mobile-links-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .mobile-links-list li a:hover {
    background-color: #f8f9fa;
    color: var(--accent);
  }

  .mobile-brand img {
    max-height: 36px;
    max-width: 36px;
    object-fit: contain;
    display: block;
  }

  .mobile-brand:has(img) {
    border: 1px dashed #ccc;
    background: rgba(255,255,255,0.5);
  }

  .mobile-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mobile-auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-auth-link {
    font-size: 12px;
    text-decoration: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-welcome {
    font-size: 12px;
    color: var(--ink-soft);
  }

  .mobile-currency-form {
    display: flex;
    align-items: center;
  }

  .mobile-currency-select {
    padding: 4px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
  }

  .mobile-cart-section {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-top-bar {
    display: none !important;
  }

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

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

  .hero-points {
    margin-top: 24px;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input,
  .filter-bar select {
    max-width: 100%;
  }

  .cart-drawer {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-width: unset;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .address-list {
    flex-direction: column;
  }

  .address-card {
    width: 100%;
  }

  .order-table {
    font-size: 0.9rem;
  }

  .order-table th,
  .order-table td {
    padding: 8px 4px;
  }

  .order-table img {
    width: 40px;
    height: 40px;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 12px;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav.open .mega-menu {
    display: block;
  }

  .nav:not(.open) .mega-menu {
    display: none;
  }
}

/* Category Content Styles */
.category-content {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.category-content h1,
.category-content h2,
.category-content h3,
.category-content h4,
.category-content h5,
.category-content h6 {
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 16px;
}

.category-content h1 { font-size: 2rem; }
.category-content h2 { font-size: 1.5rem; }
.category-content h3 { font-size: 1.25rem; }

.category-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.category-content ul,
.category-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.category-content li {
  margin-bottom: 8px;
}

.category-content a {
  color: var(--accent);
  text-decoration: underline;
}

.category-content a:hover {
  color: var(--accent-dark);
}

.category-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.category-content .content-box {
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  border-left: 4px solid var(--accent);
}

/* Top Bar Styles */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--ink);
  width: 100%;
  height: 32px; /* Reduced from 40px */
}

.top-bar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  height: 32px; /* Match parent height */
  gap: 40px;
}

/* Sticky Menu Bar Styles */
.sticky-menu-bar {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  height: 40px; /* Reduced height */
  position: sticky;
  top: 32px; /* Position below top bar */
  z-index: 1000;
  width: 100%;
}

.sticky-menu-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.sticky-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  width: 100%;
}

.sticky-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.sticky-nav-link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  height: 100%;
  white-space: nowrap;
}

.sticky-nav-link:hover {
  background: var(--bg);
  color: var(--accent);
}

.sticky-nav-item.dropdown:hover .sticky-nav-link {
  background: var(--bg);
  color: var(--accent);
}

/* Sticky Mega Menu Styles */
.sticky-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 280px;
  max-width: 400px;
  z-index: 1002;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.sticky-nav-item.dropdown:hover .sticky-mega-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-mega-menu-column {
  padding: 20px;
}

.sticky-mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sticky-mega-menu-column ul li {
  margin-bottom: 8px;
}

.sticky-mega-menu-column ul li a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 4px;
  display: block;
  transition: all 0.2s ease;
}

.sticky-mega-menu-column ul li a:hover {
  background: var(--bg);
  color: var(--accent);
}

.sticky-mega-menu-column h3 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-left .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  margin-left: 20px;
}

.top-bar-left .brand:hover {
  color: var(--accent);
}

.top-bar-left .brand img {
  height: 32px;
  width: auto;
}

.top-bar-left .brand-name {
  color: white;
  font-weight: 600;
}

.top-bar-left .brand:hover .brand-name {
  color: var(--accent);
}

.nav-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin: 0 8px;
}

.top-bar-left a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.75rem;
}

.top-bar-left a:hover {
  color: white;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.top-bar .currency-switch select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  min-width: 80px;
}

.top-bar .currency-switch select option {
  background: var(--ink);
  color: white;
}

.top-bar .auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.top-bar .auth-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.75rem;
}

.top-bar .auth-links a:hover {
  color: white;
}

.top-bar .welcome-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  margin-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.top-bar .cart-link {
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.top-bar .cart-link:hover {
  opacity: 0.8;
}

.top-bar .cart-total {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Scrolling Text Styles */
.scrolling-text {
  display: inline-block;
  padding: 4px 12px;
  background: transparent;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 350px;
  height: 24px;
  line-height: 16px;
  vertical-align: middle;
  margin: 0 8px;
}

.scrolling-text span {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  animation: scroll-text 20s linear infinite;
}

.scrolling-text[data-speed="slow"] span {
  animation-duration: 20s;
}

.scrolling-text[data-speed="medium"] span {
  animation-duration: 10s;
}

.scrolling-text[data-speed="fast"] span {
  animation-duration: 5s;
}

@keyframes scroll-text {
  0% {
    transform: translateX(350px);
  }
  100% {
    transform: translateX(-100%);
  }
}

.top-bar .pill {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Main Header */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.main-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.header-center {
  flex: 1;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  display: none; /* Hide the site title */
}

/* Search Dropdown Styles */
.search-dropdown {
  position: relative;
  display: inline-block;
}

.search-dropdown .dropdown-toggle {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem; /* Reduced font size */
  padding: 6px 10px; /* Reduced padding */
  border-radius: 4px;
  transition: all 0.2s ease;
}

.search-dropdown .dropdown-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }
  
  .top-bar-left {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .top-bar-left .brand {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .nav-separator {
    display: none;
  }
  
  .top-bar-right {
    order: 1;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .category-nav .nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .main-header .header-inner {
    padding: 12px 0;
  }
  
  .site-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .top-bar-left {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .top-bar-left .brand {
    margin-bottom: 4px;
  }
  
  .top-bar-right {
    gap: 8px;
  }
  
  .category-nav .nav {
    gap: 8px;
  }
  
  .category-nav .dropdown-toggle {
    font-size: 0.875rem;
    padding: 6px 8px;
  }
  
  .site-title {
    font-size: 1.125rem;
  }
}
@media (max-width: 768px) {
  .mobile-menu-sidebar {
    display: block !important;
  }
}
