[data-theme="light"] .bg-base-200 {
  background-color: var(--third) !important;
}
[data-theme="light"] .bg-base-300 {
  background-color: var(--third) !important;
}

* { box-sizing: border-box; }

html, body { 
  font-family: Montserrat, Segoe UI, system-ui, sans-serif !important;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: #212529;
  background: #ffffff;
  margin: 0;
  padding: 0;
}

body *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
  font-family: Montserrat, Segoe UI, system-ui, sans-serif;
}

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

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.top-banner { 
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 10px 0;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 60;
}

.main-header { 
  background: #000000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mesoud-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  position: relative;
  min-height: 175px;
}

.mesoud-header-logo-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

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

@media (max-width: 1023px) {
  .mesoud-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 16px;
    min-height: auto;
  }
  .mesoud-header-logo-wrap {
    position: static;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
  }
  .mesoud-header-actions {
    display: none;
  }
  .mobile-left-group {
    display: flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
  }
  .mobile-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
    grid-column: 3;
    grid-row: 1;
  }
}

.mesoud-header-nav {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 0;
}

.cat-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-nav-link { 
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.cat-nav-link:hover { 
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Desktop dropdown */
.cat-item {
  position: relative;
  display: inline-block;
}
.cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
}
.cat-item:hover .cat-dropdown {
  display: block;
}
.cat-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.cat-dropdown a:hover {
  background: var(--third);
  color: var(--accent);
  padding-left: 24px;
}
.cat-item .cat-arrow {
  transition: transform 0.2s;
  font-size: 10px;
  opacity: 0.5;
}
.cat-item:hover .cat-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Mobile collapse */
.mob-cat-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mob-cat-children.open {
  max-height: 500px;
}
.mob-cat-toggle {
  transition: transform 0.3s;
}
.mob-cat-toggle.open {
  transform: rotate(180deg);
}

/* Mobile Sidebar */
#mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-sidebar-overlay.sidebar-open {
  opacity: 1;
  visibility: visible;
}
#mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  z-index: 999;
  background: #000000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  overflow: hidden;
}
#mobile-sidebar.sidebar-open {
  transform: translateX(0);
}

.product-card { 
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  background: white;
}

.product-card:hover { 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.product-card img { 
  transition: transform 0.3s;
}

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

.product-card h2 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.product-card .price {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-heading);
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
}

.btn-primary,
.btn.btn-primary,
.btn-primary.btn-lg,
.btn-primary.btn-block,
.btn-primary.btn-sm {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  opacity: 1;
}
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.cat-desc-html,
.cat-desc-html * {
  color: #ffffff !important;
}
