@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.theme-header-2 {
  position: relative;
  z-index: 150;
}
.theme-header-2__top-navbar {
  width: 100%;
  height: 72px;
}
.theme-header-2__top-navbar-search {
  width: 100%;
  height: 48px;
}
.theme-header-2__top-navbar-search input {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--gray-200) !important;
}
.theme-header-2__top-navbar-search input::-moz-placeholder {
  color: var(--gray-400);
}
.theme-header-2__top-navbar-search input::placeholder {
  color: var(--gray-400);
}
.theme-header-2__top-navbar-search input:focus, .theme-header-2__top-navbar-search input:checked, .theme-header-2__top-navbar-search input:active {
  background-color: transparent !important;
}
.theme-header-2__top-navbar-search .search-icon {
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 16px;
}
.theme-header-2__top-navbar-cart-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--danger);
  border-radius: 50%;
  width: 16px;
  height: 16px;
}
@media (max-width: 991px) {
  .theme-header-2__top-navbar {
    height: auto;
  }
}
.theme-header-2__dropdown-user-verify-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  min-width: 14px;
  height: 14px;
}
.theme-header-2__dropdown:not(:hover) > .header-2-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
}
.theme-header-2__dropdown .header-2-dropdown-menu {
  position: absolute;
  top: 40px;
  left: 0;
  width: 260px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  z-index: 46;
}
.rtl .theme-header-2__dropdown .header-2-dropdown-menu {
  left: auto;
  right: 0;
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu {
  width: 280px;
  top: 40px;
  left: auto;
  right: 0;
}
.rtl .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu {
  left: 0;
  right: auto;
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item {
  transition: all 0.3s ease;
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item, .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item a, .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item .icons {
  color: var(--gray-500);
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item .count-badge {
  min-width: 16px;
  height: 16px;
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item:hover {
  background-color: var(--gray-100);
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item:hover > a {
  transform: translateX(8px);
}
.theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item:hover, .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item:hover a, .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu .header-2-dropdown-menu__item:hover .icons {
  color: var(--primary);
}
@media (max-width: 991px) {
  .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu {
    right: 8px;
    left: auto;
  }
  .rtl .theme-header-2__dropdown .header-2-dropdown-menu.auth-user-info-dropdown-menu {
    left: 8px;
    right: auto;
  }
}
.theme-header-2__dropdown .header-2-dropdown-menu__item {
  color: var(--gray-500);
  border-left: 2px solid transparent;
}
.theme-header-2__dropdown .header-2-dropdown-menu__item > div {
  transition: all 0.3s ease;
}
.theme-header-2__dropdown .header-2-dropdown-menu__item.active {
  border-left: 2px solid var(--primary);
  font-weight: bold;
}
.rtl .theme-header-2__dropdown .header-2-dropdown-menu__item {
  border-left: none;
  border-right: 2px solid transparent;
}
.rtl .theme-header-2__dropdown .header-2-dropdown-menu__item.active {
  border-left: none;
  border-right: 2px solid var(--primary);
}
.theme-header-2__dropdown .header-2-dropdown-menu__item:hover {
  background-color: var(--gray-100);
}
.theme-header-2__dropdown .header-2-dropdown-menu__item:hover > div {
  transform: translateX(8px);
}
.theme-header-2__dropdown .header-2-dropdown-menu__item:hover .header-2-dropdown-menu__item-sign-box {
  background-color: var(--gray-200);
}
.theme-header-2__dropdown .header-2-dropdown-menu__item:hover .header-2-dropdown-menu__sub-menu {
  opacity: 1;
  visibility: visible;
  left: calc(100% + 4px);
}
.rtl .theme-header-2__dropdown .header-2-dropdown-menu__item:hover .header-2-dropdown-menu__sub-menu {
  left: auto;
  right: calc(100% + 4px);
}
.theme-header-2__dropdown .header-2-dropdown-menu__item-sign-box {
  min-width: 32px;
  height: 32px;
  background-color: var(--gray-100);
  color: var(--gray-500);
  font-weight: normal !important;
}
.theme-header-2__dropdown .header-2-dropdown-menu__sub-menu {
  position: absolute;
  top: -8px;
  left: 96%;
  width: 280px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  visibility: hidden;
  opacity: 0;
}
.rtl .theme-header-2__dropdown .header-2-dropdown-menu__sub-menu {
  left: auto;
  right: 96%;
}
.theme-header-2__dropdown .header-2-dropdown-menu__sub-menu li {
  transition: all 0.3s ease;
}
.theme-header-2__dropdown .header-2-dropdown-menu__sub-menu li, .theme-header-2__dropdown .header-2-dropdown-menu__sub-menu li * {
  color: var(--gray-500) !important;
}
.theme-header-2__dropdown .header-2-dropdown-menu__sub-menu li:hover * {
  color: var(--primary) !important;
}
.theme-header-2__dropdown .header-2-dropdown-menu__sub-menu li:hover > a {
  transform: translateX(8px) !important;
}
.theme-header-2__dropdown .header-2-dropdown-menu__flag {
  width: 32px;
  min-width: 32px;
  height: 32px;
}
.theme-header-2__dropdown .header-2-dropdown-menu__flag, .theme-header-2__dropdown .header-2-dropdown-menu__flag img {
  border-radius: 8px;
}
.theme-header-2__main {
  position: relative;
  height: 84px;
}
.theme-header-2__main.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  animation: slideDown 0.5s ease forwards;
}
.theme-header-2__main-mask {
  position: absolute;
  top: 8px;
  bottom: -8px;
  border-radius: 24px;
  opacity: 0.4;
  background: var(--white);
  z-index: 1;
}
@media (max-width: 991px) {
  .theme-header-2__main {
    height: auto;
  }
}
.theme-header-2__logo {
  height: 44px;
}
.theme-header-2__logo img {
  height: 100%;
}
.theme-header-2__categories .cat-dropdown-menu-icon {
  width: 24px;
  max-width: 24px;
  min-width: 24px;
}

/* ========================================================
   GROWO MODERN HEADER
   Uses existing theme color variables.
   Scoped overrides: no effect on original header variants.
   ======================================================== */

.growo-modern-header {
    position: relative;
    width: 100%;
    z-index: 30;
}

.growo-modern-header .theme-header-2__main {
    border-bottom: 1px solid rgba(24, 33, 43, .07);
    box-shadow: 0 5px 24px rgba(20, 32, 46, .045);
}

.growo-modern-header .theme-header-2__main .container {
    max-width: 1320px;
}

.growo-modern-header .theme-header-2__main .row {
    min-height: 82px;
}

.growo-modern-header .theme-header-2__logo img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.growo-modern-header .theme-header-2__main a.text-dark {
    font-weight: 600;
    transition: color .2s ease;
}

.growo-modern-header .theme-header-2__main a.text-dark:hover {
    color: var(--primary) !important;
}

.growo-modern-header .theme-header-2__main .btn-primary {
    border-radius: 12px;
    font-weight: 600;
}

.growo-modern-header__discover {
    background: #fff;
    border-bottom: 1px solid rgba(24, 33, 43, .08);
}

.growo-modern-header__discover .container {
    max-width: 1320px;
}

.growo-modern-header__discover-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.growo-modern-header__intro {
    display: flex;
    flex-direction: column;
    min-width: 230px;
    gap: 4px;
}

.growo-modern-header__eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.growo-modern-header__intro-text {
    color: #384457;
    font-size: 15px;
    font-weight: 600;
}

.growo-modern-header__search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 620px;
    min-width: 0;
    padding: 5px;
    background: #f7f8fa;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
}

.growo-modern-header__search:focus-within {
    border-color: var(--primary);
}

.growo-modern-header__search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
}

.growo-modern-header__search button {
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.growo-modern-header__search button:hover {
    filter: brightness(.94);
}

@media (max-width: 1199px) {
    .growo-modern-header__intro {
        min-width: 180px;
    }

    .growo-modern-header__discover-inner {
        gap: 16px;
    }
}

@media (max-width: 991.98px) {
    .growo-modern-header .theme-header-2__main .row {
        min-height: initial;
    }
}

/* GROWO-LOGO-ALIGNMENT-V1
   Modern Header 3 only.
   Original Rocket LMS theme colors retained.
*/

.growo-modern-header .theme-header-2__logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 64px;
    text-decoration: none;
}

.growo-modern-header .theme-header-2__logo img {
    width: auto;
    max-width: 100%;
    max-height: 64px !important;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.growo-modern-header .theme-header-2__main .row {
    min-height: 88px;
}

@media (max-width: 1199.98px) {
    .growo-modern-header .theme-header-2__logo img {
        max-height: 52px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .growo-modern-header *,
    .growo-modern-header *::before,
    .growo-modern-header *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* GROWO-MODERN-BRANDING-V1 */

.growo-modern-header .growo-modern-brand {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 66px;
    text-decoration: none !important;
}

.growo-modern-header .growo-modern-brand__image {
    display: block !important;
    flex: 0 0 58px;
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain;
    object-position: center;
}

.growo-modern-header .growo-modern-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.12;
    color: var(--primary);
}

.growo-modern-header .growo-modern-brand__text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3px;
}

.growo-modern-header .growo-modern-brand__text small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

@media (max-width: 1199.98px) {
    .growo-modern-header .growo-modern-brand__image {
        flex-basis: 45px;
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }

    .growo-modern-header .growo-modern-brand__text strong {
        font-size: 15px;
    }

    .growo-modern-header .growo-modern-brand__text small {
        font-size: 9px;
    }
}

/* GROWO-COMPACT-HEADER-V1 */
/* Scoped to Header 3. Existing theme color retained. */

.growo-modern-header .growo-modern-header__main {
    background: #fff;
    border-bottom: 1px solid rgba(25, 35, 50, .08);
    box-shadow: 0 3px 15px rgba(25, 35, 50, .035);
}

.growo-modern-header__container {
    max-width: 1440px !important;
}

.growo-modern-header__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    min-height: 94px;
    padding: 12px 0;
}

.growo-modern-header .growo-modern-brand {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 108px;
    width: 108px !important;
    min-height: 72px;
    text-decoration: none;
}

.growo-modern-header .growo-modern-brand__image {
    display: block !important;
    width: 76px !important;
    height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
    object-fit: contain;
}

.growo-modern-header__bar .growo-modern-brand__text {
    display: none !important;
}

.growo-modern-brand__fallback {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.growo-modern-header__categories {
    flex: 0 0 auto;
}

.growo-modern-header__categories
.theme-header-2__dropdown > div:first-child {
    border-radius: 12px;
    padding: 13px 15px !important;
    cursor: pointer;
}

.growo-modern-header__inline-search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    min-width: 165px;
    max-width: 480px;
    height: 48px;
    gap: 10px;
    padding: 5px 5px 5px 14px;
    border: 1px solid #e2e6ec;
    border-radius: 13px;
    background: #f8f9fb;
}

.growo-modern-header__search-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.growo-modern-header__inline-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1d2939;
    font-size: 13px;
}

.growo-modern-header__inline-search:focus-within {
    border-color: var(--primary);
}

.growo-modern-header__inline-search button {
    flex: 0 0 auto;
    height: 38px;
    border: 0;
    border-radius: 9px;
    padding: 0 15px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.growo-modern-header__links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 1 auto;
    min-width: 0;
}

.growo-modern-header__links a {
    color: #263244;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.growo-modern-header__links a:hover {
    color: var(--primary);
}

.growo-modern-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
}

.growo-modern-header__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    color: #344054;
    cursor: pointer;
}

.growo-modern-header__login {
    color: #263244;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.growo-modern-header__register,
.growo-modern-header__custom-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.growo-modern-header__account {
    max-width: 180px;
}

.growo-modern-header__account .text-gray-500 {
    max-width: 105px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 1350px) {
    .growo-modern-header__links {
        display: none;
    }

    .growo-modern-header__bar {
        gap: 12px;
    }
}

@media (max-width: 991.98px) {
    .growo-modern-header__bar {
        flex-wrap: wrap;
        padding: 12px 0;
        min-height: initial;
    }

    .growo-modern-header__inline-search {
        order: 5;
        flex: 1 0 100%;
        max-width: none;
    }

    .growo-modern-header .growo-modern-brand {
        flex-basis: 85px;
        width: 85px !important;
    }

    .growo-modern-header .growo-modern-brand__image {
        width: 62px !important;
        height: 62px !important;
        max-height: 62px !important;
    }
}

@media (max-width: 575.98px) {
    .growo-modern-header__bar {
        gap: 8px;
    }

    .growo-modern-header__actions {
        gap: 6px;
    }

    .growo-modern-header__register,
    .growo-modern-header__custom-cta {
        padding: 0 9px;
        font-size: 12px;
    }
}


/* GROWO-MENU-ACCESSIBILITY-V1 */

.growo-modern-header__inline-search .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.growo-modern-header__links .growo-header-exit {
    color: #a02626;
    font-weight: 700;
}

.growo-modern-header__links .growo-header-exit:hover {
    color: var(--primary);
}

/* Keep navigation available on narrower desktop screens */
@media (min-width: 992px) and (max-width: 1350px) {
    .growo-modern-header__bar {
        flex-wrap: wrap;
    }

    .growo-modern-header__links {
        display: flex;
        flex-wrap: wrap;
        order: 5;
        flex: 1 0 100%;
        padding-bottom: 8px;
    }
}


/* GROWO-SEARCH-LABEL-FIX-V1 */

.growo-modern-header__inline-search label.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
}

@media (min-width: 992px) and (max-width: 1350px) {
    .growo-modern-header__bar {
        flex-wrap: wrap;
    }

    .growo-modern-header__links {
        display: flex !important;
        order: 5;
        flex: 1 0 100%;
        flex-wrap: wrap;
        padding-bottom: 8px;
    }
}
