/**
 * Shree Ganesh E-Commercio Header & Navigation Styles
 * Sinocare-inspired Two-Level Header & Mega Menu
 */

/* Top Utility Bar */
.sgec-topbar {
  background-color: var(--sgec-secondary);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--sgec-text-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0;
  transition: all var(--sgec-transition-base);
}

.sgec-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sgec-topbar__items {
  display: flex;
  align-items: center;
  gap: var(--sgec-space-6);
}

.sgec-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--sgec-transition-fast);
}

.sgec-topbar__item:hover {
  color: var(--sgec-accent);
}

.sgec-topbar__icon {
  width: 14px;
  height: 14px;
  stroke: var(--sgec-accent);
  flex-shrink: 0;
}

.sgec-topbar__badge {
  background: rgba(34, 166, 213, 0.2);
  color: var(--sgec-accent);
  padding: 0.15rem 0.5rem;
  border-radius: var(--sgec-radius-full);
  font-weight: 600;
  font-size: 11px;
}

/* Main Header */
.sgec-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--sgec-white);
  box-shadow: var(--sgec-shadow-sm);
  z-index: var(--sgec-z-header);
  transition: all var(--sgec-transition-base);
}

.sgec-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(18, 59, 93, 0.08);
  border-bottom: 1px solid var(--sgec-border);
}

.sgec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

/* Brand Logo */
.sgec-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sgec-brand__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.sgec-brand__text {
  display: flex;
  flex-direction: column;
}

.sgec-brand__name {
  font-family: var(--sgec-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sgec-secondary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sgec-brand__tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sgec-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Main Navigation */
.sgec-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.sgec-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
}

.sgec-nav__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.sgec-nav__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  color: var(--sgec-text-main);
  font-size: var(--sgec-text-sm);
  font-weight: 600;
  border-radius: var(--sgec-radius-md);
  transition: all var(--sgec-transition-fast);
  text-decoration: none;
}

.sgec-nav__link:hover,
.sgec-nav__item:hover > .sgec-nav__link,
.sgec-nav__item.is-active > .sgec-nav__link {
  color: var(--sgec-primary);
  background-color: var(--sgec-primary-light);
}

.sgec-nav__chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--sgec-transition-fast);
}

.sgec-nav__item:hover .sgec-nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.sgec-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--sgec-white);
  border: 1px solid var(--sgec-border);
  border-radius: var(--sgec-radius-md);
  box-shadow: var(--sgec-shadow-lg);
  padding: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--sgec-transition-base);
  z-index: var(--sgec-z-dropdown);
}

.sgec-nav__item:hover .sgec-dropdown,
.sgec-nav__item:focus-within .sgec-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sgec-dropdown__link {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  color: var(--sgec-text-main);
  border-radius: var(--sgec-radius-sm);
  text-decoration: none;
  transition: all var(--sgec-transition-fast);
}

.sgec-dropdown__link:hover {
  background-color: var(--sgec-bg-pale);
  color: var(--sgec-primary);
}

.sgec-dropdown__title {
  font-weight: 600;
  font-size: var(--sgec-text-sm);
}

.sgec-dropdown__desc {
  font-size: var(--sgec-text-xs);
  color: var(--sgec-text-muted);
}

/* Mega Menu */
.sgec-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 900px;
  background-color: var(--sgec-white);
  border: 1px solid var(--sgec-border);
  border-radius: var(--sgec-radius-lg);
  box-shadow: 0 20px 48px rgba(18, 59, 93, 0.14);
  padding: 1.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--sgec-transition-smooth);
  z-index: var(--sgec-z-dropdown);
  display: grid;
  grid-template-columns: repeat(3, 1fr) 260px;
  gap: 1.5rem;
}

.sgec-nav__item:hover .sgec-megamenu,
.sgec-nav__item:focus-within .sgec-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sgec-megamenu__col-title {
  font-size: var(--sgec-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sgec-primary);
  font-weight: 800;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sgec-border-light);
}

.sgec-megamenu__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--sgec-radius-sm);
  text-decoration: none;
  transition: all var(--sgec-transition-fast);
}

.sgec-megamenu__item:hover {
  background-color: var(--sgec-primary-light);
}

.sgec-megamenu__item-text {
  display: flex;
  flex-direction: column;
}

.sgec-megamenu__item-name {
  font-size: var(--sgec-text-sm);
  font-weight: 700;
  color: var(--sgec-secondary);
}

.sgec-megamenu__item:hover .sgec-megamenu__item-name {
  color: var(--sgec-primary);
}

.sgec-megamenu__item-sub {
  font-size: var(--sgec-text-xs);
  color: var(--sgec-text-secondary);
}

.sgec-megamenu__featured {
  background: linear-gradient(135deg, var(--sgec-bg-pale) 0%, var(--sgec-primary-light) 100%);
  padding: 1.25rem;
  border-radius: var(--sgec-radius-md);
  border: 1px solid rgba(8, 121, 185, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sgec-megamenu__featured-badge {
  display: inline-block;
  background: var(--sgec-primary);
  color: var(--sgec-white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--sgec-radius-full);
  margin-bottom: 0.5rem;
}

.sgec-megamenu__featured-title {
  font-size: var(--sgec-text-sm);
  font-weight: 800;
  color: var(--sgec-secondary);
  margin-bottom: 0.35rem;
}

.sgec-megamenu__featured-desc {
  font-size: var(--sgec-text-xs);
  color: var(--sgec-text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Header Actions */
.sgec-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sgec-header__action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--sgec-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sgec-bg-pale);
  color: var(--sgec-secondary);
  border: 1px solid var(--sgec-border);
  cursor: pointer;
  position: relative;
  transition: all var(--sgec-transition-fast);
}

.sgec-header__action-btn:hover {
  background-color: var(--sgec-primary-light);
  color: var(--sgec-primary);
  border-color: var(--sgec-primary);
}

.sgec-header__badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--sgec-primary);
  color: var(--sgec-white);
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sgec-white);
}

/* Mobile Toggle */
.sgec-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.sgec-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--sgec-secondary);
  border-radius: 2px;
  transition: all var(--sgec-transition-fast);
}

.sgec-mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sgec-mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.sgec-mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.sgec-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--sgec-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: var(--sgec-z-drawer);
  overflow-y: auto;
  transition: right var(--sgec-transition-smooth);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.sgec-drawer.is-open {
  right: 0;
}

.sgec-drawer__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 59, 93, 0.45);
  backdrop-filter: blur(4px);
  z-index: calc(var(--sgec-z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--sgec-transition-base);
}

.sgec-drawer__backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

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

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

.sgec-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: var(--sgec-text-base);
  color: var(--sgec-secondary);
  border-radius: var(--sgec-radius-md);
  text-decoration: none;
}

.sgec-drawer__link:hover,
.sgec-drawer__link.is-active {
  background-color: var(--sgec-primary-light);
  color: var(--sgec-primary);
}

.sgec-drawer__contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sgec-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--sgec-text-sm);
}

/* Footer Styles */
.sgec-footer {
  background-color: var(--sgec-secondary);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--sgec-text-sm);
  padding-top: var(--sgec-space-20);
  border-top: 4px solid var(--sgec-primary);
}

.sgec-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.6fr;
  gap: var(--sgec-space-8);
  margin-bottom: var(--sgec-space-16);
}

.sgec-footer__col-title {
  color: var(--sgec-white);
  font-size: var(--sgec-text-base);
  font-weight: 700;
  margin-bottom: var(--sgec-space-4);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.5rem;
}

.sgec-footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--sgec-accent);
}

.sgec-footer__about {
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.sgec-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sgec-footer__link {
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--sgec-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sgec-footer__link:hover {
  color: var(--sgec-accent);
  transform: translateX(3px);
}

.sgec-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.sgec-footer__contact-icon {
  width: 18px;
  height: 18px;
  stroke: var(--sgec-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.sgec-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: var(--sgec-text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.sgec-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sgec-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sgec-footer__legal-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--sgec-transition-fast);
}

.sgec-footer__legal-link:hover {
  color: var(--sgec-white);
}

