/* ==========================================================================
   TT-HEADER — Reference Design (BEM, prefix tt-)
   ========================================================================== */

:root {
    --tt-primary-red: #8b0000;
}

.tt-header {
    width: 100%;
    position: relative;
    background-color: #faf6f0;
}

/* Đồng bộ header stacked với Hero: khung nội dung tối đa 1200px. */
.tt-header > .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tt-header__wrapper {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.tt-header__logo-box {
    position: relative;
    width: 250px;
    display: flex;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}

.tt-header__logo-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    z-index: 2;
}

.tt-header__logo-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.tt-header__logo-text {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: var(--tt-primary-red);
    min-height: 80px;
    position: relative;
    z-index: 2;
}

.tt-header__logo-bg-img {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 180px;
    width: auto;
    max-width: max-content;
    object-fit: cover;
    z-index: 1;
}

.tt-header__content {
    flex: 1;
    min-width: 0;
}

.tt-header__top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 0;
}

.tt-header__info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--tt-primary-red);
    font-size: 16px;
}

.tt-header__info-icon {
    color: var(--tt-primary-red);
    flex-shrink: 0;
}

.tt-header__info-label {
    white-space: nowrap;
}

.tt-header__info-highlight {
    color: var(--tt-primary-red);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tt-header__info-highlight:hover {
    color: #f39c12;
}

/* Bottom Row */
.tt-header__bottom-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
}

/* Search Form */
.tt-header__search-form {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.tt-header__search-inner {
    display: flex;
    flex: 1;
    align-items: center;
    border: 1px solid #faa519;
    border-left: none;
    border-right: none;
    background: rgba(255,255,255,0.4);
    padding: 1px;
    position: relative;
    box-shadow: 0 2px 6px rgba(243,156,18,0.08);
    margin-right: 12px;
}

.tt-header__search-bg-left,
.tt-header__search-bg-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    pointer-events: none;
    z-index: 5;
    width: 10px;
}

.tt-header__search-bg-left  { left: -10px; }
.tt-header__search-bg-right { right: -10px; width: 12px; }

.tt-header__search-select-trigger {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.tt-header__search-button {
    width: 120px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-right: 1px solid #faa51933;
    background: transparent;
    color: var(--tt-primary-red);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.tt-header__chevron-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
    opacity: 0.5;
}

.tt-header__search-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 140px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 1050;
    display: none;
    animation: ttFadeInDown 0.2s ease;
    border: 1px solid #efe6da;
}

.tt-header__search-dropdown-menu--show { display: block; }

.tt-header__search-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    color: var(--tt-primary-red);
    cursor: pointer;
    transition: background 0.3s ease;
    list-style: none;
}

.tt-header__search-dropdown-item:hover { background: #f7f3ed; color: #222; }
.tt-header__search-dropdown-item--selected { background: #f5f0e8; }

.tt-header__search-dropdown-check {
    width: 16px;
    height: 16px;
    color: #555;
    display: none;
    flex-shrink: 0;
}

.tt-header__search-dropdown-item--selected .tt-header__search-dropdown-check { display: block; }

.tt-header__search-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.tt-header__search-input {
    width: 100%;
    height: 36px;
    border: none;
    outline: none;
    background: transparent;
    padding: 4px 12px;
    font-size: 14px;
    color: var(--tt-primary-red);
    font-weight: 500;
}

.tt-header__search-input::placeholder {
    color: var(--tt-primary-red);
    font-weight: 500;
    opacity: 0.7;
}

.tt-header__search-btn {
    display: inline-flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #faa519;
    color: var(--tt-primary-red);
    border: none;
    outline: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tt-header__search-btn:hover { background: #e89510; }

.tt-header__search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

/* Account */
.tt-header__account { cursor: pointer; }

.tt-header__account-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.tt-header__icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #f39c12;
    background: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-primary-red);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tt-header__account-sub {
    display: block;
    color: var(--tt-primary-red);
    font-size: 14px;
    white-space: nowrap;
}

.tt-header__account-main {
    display: flex;
    align-items: center;
    margin: 0;
    color: #795e2f;
    font-size: 12px;
    font-weight: 500;
}

.tt-header__caret-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Cart */
.tt-header__cart { position: relative; }

.tt-header__cart-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.tt-header__cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--tt-primary-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.tt-header__cart-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 1050;
    display: none;
    animation: ttFadeInDown 0.2s ease;
    border: 1px solid #efe6da;
}

.tt-header__cart-popup--show { display: block; }

.tt-header__cart-total-text {
    font-size: 16px;
    font-weight: 700;
    color: #f39c12;
    text-align: right;
    margin-bottom: 16px;
}

.tt-header__cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: #f39c12;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.tt-header__cart-checkout-btn:hover { background: var(--tt-primary-red); color: #fff; }

/* Mobile menu button */
.tt-header__mobile-menu-btn {
    background: transparent;
    border: 2px solid #f39c12;
    color: var(--tt-primary-red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    flex-shrink: 0;
}

/* Mobile Search */
.tt-header__mobile-search-form { display: none; }

/* Auth Modal */
.tt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tt-modal--show { opacity: 1; visibility: visible; }

.tt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.tt-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 515px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: auto;
    background: #fbf8f4 url("../images/bg_login.9bfd1cb8.png") repeat center center;
    background-size: auto;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
    padding: 20px 24px;
    z-index: 10;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1);
    border: 1px solid #eae1d3;
}

.tt-modal--show .tt-modal__dialog { transform: translateY(0); }

.tt-modal__close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.tt-modal__close-btn:hover { color: var(--tt-primary-red); }

.tt-modal__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 1px solid #ede4d7;
}

.tt-modal__tab {
    font-size: 20px;
    font-weight: 700;
    color: #5c4a3f;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    padding: 0 4px 8px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tt-modal__tab--active {
    color: var(--tt-primary-red);
    font-weight: 800;
    border-bottom-color: var(--tt-primary-red);
}

.tt-modal__form-group { margin-bottom: 8px; }

.tt-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3d312a;
    margin-bottom: 3px;
}

.tt-modal__required {
    color: var(--tt-primary-red);
    font-weight: 700;
}

.tt-modal__heading {
    margin: 0 0 20px;
    padding-right: 28px;
    font-size: 22px;
    font-weight: 800;
    color: var(--tt-primary-red);
    line-height: 1.3;
    text-align: left;
}

.tt-modal__dialog--forgot {
    max-width: 440px;
}

.tt-modal__input-wrapper { position: relative; width: 100%; }

.tt-modal__input {
    width: 100%;
    height: 38px;
    background: #fff;
    border: 1px solid #d8d0c6;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    color: #2c231e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tt-modal__input::placeholder { color: #94887e; }

.tt-modal__input:focus {
    border-color: #9e9e9e;
    box-shadow: 0 0 0 3px rgba(160,160,160,0.35);
}

.tt-modal__input-wrapper .tt-modal__input {
    padding-right: 36px;
}

.tt-modal__radio-group {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 2px 0;
}

.tt-modal__radio-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #3d312a;
    cursor: pointer;
    user-select: none;
}

.tt-modal__radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.tt-modal__radio-custom {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #d4c8b8;
    background-color: #fff;
    display: inline-block;
    position: relative;
    margin-right: 6px;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.tt-modal__radio:checked ~ .tt-modal__radio-custom {
    border-color: var(--tt-primary-red);
}

.tt-modal__radio:checked ~ .tt-modal__radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--tt-primary-red);
}

.tt-modal__eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.tt-modal__calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    font-size: 14px;
}

.tt-modal__submit-btn {
    width: 100%;
    height: 42px;
    background: var(--tt-primary-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.tt-modal__submit-btn:hover { background: #6b0000; }

.tt-modal__submit-btn:disabled {
    opacity: 0.85;
    cursor: wait;
}

.tt-modal__submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tt-modal__footer-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #555;
}

.tt-modal__link {
    color: var(--tt-primary-red);
    font-weight: 700;
    cursor: pointer;
}

.tt-modal__link:hover { text-decoration: underline; }

.tt-modal__forgot-link {
    display: block;
    margin-top: 8px;
    color: var(--tt-primary-red);
    font-weight: 700;
    text-decoration: none;
}

.tt-modal__forgot-link:hover { text-decoration: underline; }

@keyframes ttFadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .tt-header { padding: 4px 0 10px; }

    .tt-header__wrapper {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0;
    }

    .tt-header__content { display: contents; }

    .tt-header__top-row {
        order: 1;
        width: 100%;
        flex: 0 0 100%;
        justify-content: space-between;
        padding: 6px 4px 8px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        background: rgba(247,243,237,0.95);
    }

    /* Ẩn hotline trên mobile */
    .tt-header__top-row > .tt-header__info-item:first-child { display: none; }

    .tt-header__top-row .tt-header__info-item {
        flex-shrink: 0;
        gap: 3px;
        font-size: 12px;
    }

    .tt-header__top-row .tt-header__info-icon {
        width: 13px;
        height: 13px;
    }

    .tt-header__top-row .tt-header__info-highlight {
        font-size: 13px;
        font-weight: 700;
    }

    /* Hiện mobile search ở top-row */
    .tt-header__mobile-search-form {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        gap: 6px;
        justify-content: flex-end;
    }

    .tt-header__mobile-search-box {
        background: #eee8df;
        border: 1px solid #dcd4c8;
        border-radius: 8px;
        padding: 2px 10px;
        height: 32px;
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        max-width: 220px;
    }

    .tt-header__mobile-search-input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        color: #4a3832;
        width: 100%;
        min-width: 0;
    }

    .tt-header__mobile-search-input::placeholder { color: #6b0000; font-weight: 400; }

    .tt-header__mobile-search-btn {
        background: transparent;
        border: none;
        color: #6b0000;
        font-size: 16px;
        cursor: pointer;
        padding: 0 4px;
        display: flex;
        align-items: center;
    }

    .tt-header__logo-box {
        order: 2;
        width: auto;
        padding: 0 4px;
    }

    .tt-header__logo-img { height: 70px; width: auto; object-fit: contain; }

    .tt-header__logo-bg-img { display: none; }

    .tt-header__bottom-row {
        order: 3;
        width: auto;
        gap: 10px;
        padding-bottom: 0;
    }

    .tt-header__search-form { display: none; }

    .tt-header__account-info { display: none; }

    .tt-header__icon-circle {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Phần còn lại: TGWV-HEADER-STACKED (nav + offcanvas)
   ========================================================================== */

@keyframes tgwv-header-stacked-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tgwv-header-stacked {
    background-color: var(--tgwv-color-light);
    position: relative;
    z-index: auto;
}

.tgwv-header-stacked__main {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.tgwv-header-stacked__logo img {
    max-height: 60px;
    display: block;
}

.tgwv-header-stacked__search {
    max-width: 600px;
}

.tgwv-header-stacked__search .input-group {
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #ced4da;
}

.tgwv-header-stacked__search-input {
    border: none !important;
    box-shadow: none !important;
}

.tgwv-header-stacked__search-input:focus {
    border-color: var(--tgwv-header-stacked-accent, #198754) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--tgwv-header-stacked-accent, #198754) 15%, transparent) !important;
}

.tgwv-header-stacked__search-btn {
    border: none !important;
    border-radius: 0 25px 25px 0 !important;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--tgwv-header-stacked-accent, #198754) !important;
    border-color: var(--tgwv-header-stacked-accent, #198754) !important;
}

.tgwv-header-stacked__search-btn:hover {
    background-color: var(--tgwv-header-stacked-accent, #198754);
    color: #ffffff !important;
}

.tgwv-header-stacked__search .form-control {
    border-color: var(--tgwv-header-stacked-accent, #198754);
}

.tgwv-header-stacked__action-btn {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--tgwv-color-dark);
    border-radius: 50%;
    color: var(--tgwv-color-dark);
    font-size: 16px;
    transition: all 0.3s ease;
}

.tgwv-header-stacked__action-btn:hover {
    background-color: var(--tgwv-header-stacked-accent, #198754);
    border-color: var(--tgwv-header-stacked-accent, #198754);
    color: #ffffff !important;
}

.tgwv-header-stacked__lang button::after {
    display: none;
}

.tgwv-header-stacked__login-text-sm {
    font-size: 13px;
}

.tgwv-header-stacked__cart-badge {
    font-size: 10px;
}

.tgwv-header-stacked__empty-cart-icon {
    font-size: 26px;
}

.tgwv-header-stacked__cart-btn-action {
    font-size: 12px;
    padding: 6px 0;
}

.tgwv-header-stacked__flag-icon {
    display: block;
    width: 20px;
    height: 14px;
    object-fit: cover;
}

.tgwv-header-stacked .dropdown-menu {
    background-color: var(--tgwv-color-light);
}

.tgwv-header-stacked__lang:hover .dropdown-menu {
    display: block;
    animation: tgwv-header-stacked-fade-in 0.2s ease-in-out;
    z-index: 1030;
}

.tgwv-header-stacked__lang .tgwv-header-stacked__action-btn img {
    display: block;
    border-radius: 0;
}

.tgwv-header-stacked__account {
    position: relative;
}

.tgwv-header-stacked__login-box {
    width: 280px;
    background-color: var(--tgwv-color-light);
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px;
    margin-top: 10px !important;
    right: 0 !important;
    left: auto !important;
}

.tgwv-header-stacked__login-box::before {
    content: "";
    position: absolute;
    top: -15px;
    right: 0;
    width: 100%;
    height: 15px;
    background-color: transparent;
}

.tgwv-header-stacked__account:hover .tgwv-header-stacked__login-box,
.tgwv-header-stacked__account:focus-within .tgwv-header-stacked__login-box {
    display: block;
    animation: tgwv-header-stacked-fade-in 0.2s ease-in-out;
    z-index: 1030;
}

.tgwv-header-stacked__login-input {
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tgwv-header-stacked__login-input:focus {
    border-color: var(--tgwv-header-stacked-accent, #198754);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--tgwv-header-stacked-accent, #198754) 15%, transparent);
}

.tgwv-header-stacked__cart {
    position: relative;
}

.tgwv-header-stacked__cart-box {
    width: 320px;
    background-color: var(--tgwv-color-light);
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px;
    margin-top: 10px !important;
    right: 0 !important;
    left: auto !important;
}

.tgwv-header-stacked__cart-box::before {
    content: "";
    position: absolute;
    top: -15px;
    right: 0;
    width: 100%;
    height: 15px;
    background-color: transparent;
}

.tgwv-header-stacked__cart:hover .tgwv-header-stacked__cart-box,
.tgwv-header-stacked__cart:focus-within .tgwv-header-stacked__cart-box {
    display: block;
    animation: tgwv-header-stacked-fade-in 0.2s ease-in-out;
    z-index: 1030;
}

.tgwv-header-stacked__nav-desktop {
    --tgwv-header-stacked-menu-accent: var(--tgwv-header-stacked-accent, #198754);
    background-color: var(--tgwv-header-bg, #cecece);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tgwv-header-stacked__menu-desktop .nav-link {
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.tgwv-header-stacked__menu-desktop .nav-link:hover,
.tgwv-header-stacked__menu-desktop .nav-link:focus {
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-desktop .nav-link.active,
.tgwv-header-stacked__menu-desktop .nav-link.active:hover,
.tgwv-header-stacked__menu-desktop .nav-link.active:focus {
    background-color: transparent !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-desktop .dropdown-item {
    font-size: 14px;
    text-transform: none;
    padding: 0.5rem 1rem;
    color: var(--tgwv-color-dark);
}

.tgwv-header-stacked__menu-desktop .dropdown-item:hover,
.tgwv-header-stacked__menu-desktop .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-desktop .dropdown-item.active,
.tgwv-header-stacked__menu-desktop .dropdown-item.active:hover,
.tgwv-header-stacked__menu-desktop .dropdown-item.active:focus,
.tgwv-header-stacked__menu-desktop .dropdown-item:active {
    background-color: #f8f9fa !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-desktop .dropdown-toggle::after {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.tgwv-header-stacked__menu-desktop .dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

.tgwv-header-stacked__menu-desktop .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: tgwv-header-stacked-fade-in 0.2s ease-in-out;
}

.tgwv-header-stacked__menu-desktop .dropend {
    position: relative;
}

.tgwv-header-stacked__menu-desktop .dropend:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -8px;
}

.tgwv-header-stacked__menu-desktop .dropend .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.tgwv-header-stacked__menu-desktop .dropend .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: auto;
}

.tgwv-header-stacked__menu-desktop .dropend:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

.tgwv-header-stacked .offcanvas-header,
.tgwv-header-stacked__offcanvas-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: var(--tgwv-color-light);
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

.tgwv-header-stacked__offcanvas {
    --tgwv-header-stacked-menu-accent: var(--tgwv-header-stacked-accent, #198754);
}

.tgwv-header-stacked__offcanvas-title {
    color: var(--tgwv-header-stacked-menu-accent, var(--tgwv-header-stacked-accent, #198754)) !important;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.tgwv-header-stacked__offcanvas-body {
    padding-top: 1rem;
}

.tgwv-header-stacked__mobile-toolbar {
    margin-bottom: 1.5rem !important;
}

.tgwv-header-stacked__mobile-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.tgwv-header-stacked__mobile-search .form-control.border-success,
.tgwv-header-stacked__mobile-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
    border-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    font-size: 14px;
    padding: 0.5rem 0.75rem;
    box-shadow: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.tgwv-header-stacked__mobile-search .form-control.border-success:focus {
    border-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    box-shadow: none !important;
    z-index: 3;
}

.tgwv-header-stacked__mobile-search .tgwv-header-stacked__mobile-search-btn,
.tgwv-header-stacked__mobile-search .btn-success {
    flex: 0 0 auto;
    --bs-btn-bg: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    --bs-btn-border-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    --bs-btn-hover-bg: color-mix(in srgb, var(--tgwv-header-stacked-menu-accent, #198754) 85%, #000) !important;
    --bs-btn-hover-border-color: color-mix(in srgb, var(--tgwv-header-stacked-menu-accent, #198754) 85%, #000) !important;
    --bs-btn-active-bg: color-mix(in srgb, var(--tgwv-header-stacked-menu-accent, #198754) 75%, #000) !important;
    --bs-btn-active-border-color: color-mix(in srgb, var(--tgwv-header-stacked-menu-accent, #198754) 75%, #000) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-color: #fff !important;
    background-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    border-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    color: #ffffff !important;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.tgwv-header-stacked__language {
    font-size: 14px;
    color: var(--tgwv-color-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.tgwv-header-stacked__mobile-lang {
    align-items: flex-start;
}

@media (min-width: 360px) {
    .tgwv-header-stacked__mobile-lang {
        align-items: center;
    }
}

.tgwv-header-stacked__mobile-lang-options {
    flex: 1;
    min-width: 0;
}

.tgwv-header-stacked__mobile-lang-link {
    font-size: 13px;
    line-height: 1.2;
    padding: 0.35rem 0.55rem !important;
    border-color: #dee2e6 !important;
    background-color: var(--tgwv-color-light);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tgwv-header-stacked__mobile-lang-link:hover,
.tgwv-header-stacked__mobile-lang-link:focus {
    border-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__mobile-lang-link.is-current {
    border-color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-mobile {
    --tgwv-header-stacked-menu-accent: var(--tgwv-header-stacked-accent, #198754);
}

.tgwv-header-stacked__menu-mobile .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
    color: var(--tgwv-color-dark) !important;
    text-transform: uppercase;
    font-size: 16px;
}

.tgwv-header-stacked__menu-mobile .nav-link:hover,
.tgwv-header-stacked__menu-mobile .nav-link:focus {
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-mobile .nav-link.active,
.tgwv-header-stacked__menu-mobile .nav-link.active:hover,
.tgwv-header-stacked__menu-mobile .nav-link.active:focus {
    background-color: transparent !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-mobile .dropdown-item {
    font-size: 14px;
    text-transform: none;
    padding: 10px 1rem;
    transition: color 0.2s ease;
    color: var(--tgwv-color-dark);
}

.tgwv-header-stacked__menu-mobile .dropdown-item:hover,
.tgwv-header-stacked__menu-mobile .dropdown-item:focus {
    background-color: transparent !important;
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
}

.tgwv-header-stacked__menu-mobile .nav-link:active,
.tgwv-header-stacked__menu-mobile .dropdown-item:active,
.tgwv-header-stacked__menu-mobile .nav-link.text-active,
.tgwv-header-stacked__menu-mobile .dropdown-item.text-active,
.tgwv-header-stacked__menu-mobile .dropdown-item.active,
.tgwv-header-stacked__menu-mobile .dropdown-item.active:hover,
.tgwv-header-stacked__menu-mobile .dropdown-item.active:focus {
    color: var(--tgwv-header-stacked-menu-accent, #198754) !important;
    background-color: transparent !important;
}

.tgwv-header-stacked__menu-mobile .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    border: none;
    box-shadow: none !important;
    background-color: transparent;
    padding-left: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: none;
}

.tgwv-header-stacked__menu-mobile .dropend .dropdown-menu {
    border-left: 2px solid #e9ecef;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__menu-item-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0f0f0;
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__menu-item-row > .nav-link,
.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__menu-item-row > .dropdown-item {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: none;
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__submenu-toggle {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tgwv-color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__submenu-toggle:hover,
.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__submenu-toggle:focus {
    color: var(--tgwv-header-stacked-menu-accent, #198754);
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__submenu-toggle:focus {
    outline: none;
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__submenu-toggle:focus-visible {
    outline: 2px solid var(--tgwv-header-stacked-menu-accent, #198754);
    outline-offset: -2px;
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__submenu-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: rotate(0deg);
}

.tgwv-header-stacked__menu-mobile .tgwv-header-stacked__open-mobile > .tgwv-header-stacked__menu-item-row .tgwv-header-stacked__submenu-toggle i {
    transform: rotate(180deg);
    color: var(--tgwv-header-stacked-menu-accent, #198754);
}

.tgwv-header-stacked-widgets {
    position: relative;
    z-index: 1031;
}

.tgwv-header-stacked .btn-success,
.tgwv-header-stacked .btn-outline-success {
    --bs-btn-bg: var(--tgwv-header-stacked-accent, #198754);
    --bs-btn-border-color: var(--tgwv-header-stacked-accent, #198754);
    --bs-btn-hover-bg: color-mix(in srgb, var(--tgwv-header-stacked-accent, #198754) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--tgwv-header-stacked-accent, #198754) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--tgwv-header-stacked-accent, #198754) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--tgwv-header-stacked-accent, #198754) 75%, #000);
}

.tgwv-header-stacked .btn-outline-success {
    --bs-btn-color: var(--tgwv-header-stacked-accent, #198754);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: var(--tgwv-color-light);
}

.tgwv-header-stacked .text-success {
    color: var(--tgwv-header-stacked-accent, #198754) !important;
}

.tt-header__account--logged-in {
    text-decoration: none;
    color: inherit;
}

.tt-header__account--logged-in:hover {
    color: inherit;
    opacity: 0.92;
}

.tt-modal__alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.tt-modal__alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tt-modal__alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tt-modal__error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #b91c1c;
}

.tt-modal__input--error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

.tt-modal__form-group--error .tt-modal__label {
    color: #b91c1c;
}

@media (max-width: 991.98px) {
    .tgwv-header-stacked {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1020;
        background-color: var(--tgwv-color-light);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .tgwv-header-stacked__main {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .tgwv-header-stacked__logo img {
        max-height: 55px;
        padding-right: 15px;
    }

    .tgwv-header-stacked__login-box {
        display: none !important;
    }

    .tgwv-header-stacked__cart-box {
        display: none !important;
    }
}
