/**
 * Header navigation overrides (cascade position, mobile tweaks).
 */

/* Cascade category nav — open dropdown toward the left (RTL-friendly) */
.top-menu-menu li.dt-category-cascade {
    position: relative;
}

.top-menu-menu li.dt-category-cascade > ul.level-one {
    right: 0;
    left: auto;
    transform: translateX(-12px);
    min-width: 220px;
    z-index: 1050;
}

.top-menu-menu li.dt-category-cascade > ul.level-one > li.position-relative > ul.level-two {
    right: 100%;
    left: auto;
    top: 0;
}

/* Header mega bar — menu uses leftover width; wrap only after filling the row */
.mega-menu .dt-mega-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    width: 100%;
}

.mega-menu .dt-mega-bar-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.mega-menu .dt-mega-bar-actions {
    flex: 0 0 auto;
    align-items: center;
}

.mega-menu .top-menu-menu {
    width: 100%;
}

.mega-menu .top-menu-menu > ul.navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    column-gap: 0.15rem;
    row-gap: 0.35rem;
}

.mega-menu .top-menu-menu > ul > li {
    margin-left: 0;
    margin-inline-end: 0.85rem;
}

.mega-menu .top-menu-menu > ul > li:last-child {
    margin-inline-end: 0;
}

/* Mobile: larger tap target for submenu arrows */
#responsiveMenu .rm-item-menu .showSubMenu {
    min-width: 44px;
    min-height: 44px;
    line-height: 44px;
    padding: 0 8px;
}

#responsiveMenu .rm-item-menu .showSubMenu i {
    pointer-events: none;
}

/* Prevent RTL + offcanvas from expanding the document horizontally. */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

#primary,
main.dt-main {
    overflow-x: clip;
    max-width: 100%;
}

/* Closed offcanvas must not contribute to layout overflow. */
.offcanvas:not(.show):not(.showing) {
    visibility: hidden !important;
    pointer-events: none;
}

/* Header auth — guest vs logged-in */
.header,
.header .top-header,
.header .top-header-link,
.header .top-header-call,
.auth-link.dt-auth-link--user {
    overflow: visible !important;
}

.auth-link.dt-auth-link--user {
    position: relative;
    z-index: 30;
}

/* Auth must remain clickable even when mega bar disables pointer-events */
.mega-menu .auth-link {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.mega-menu .auth-link.dt-auth-link--user,
.mega-menu .auth-link.dt-auth-link--user .dt-auth-trigger--user {
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.auth-link .dt-auth-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    border: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.auth-link button.dt-auth-trigger:not(.auth-btn) {
    background: transparent;
}

.auth-link .dt-auth-trigger--guest:hover {
    color: var(--main-color-one, #3a3b9c);
}

.auth-link .dt-auth-trigger--user:not(.auth-btn) {
    color: var(--main-color-one, #3a3b9c);
    pointer-events: auto;
}

.auth-link .dt-auth-trigger--user.dropdown-toggle::after {
    margin-inline-start: 0.25rem;
    vertical-align: middle;
}

/* Mobile compact chip — keep visible chrome (do not wipe auth-btn bg) */
.auth-link .dt-auth-trigger--user.auth-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--main-color-two, #ffc107) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-link .dt-auth-trigger--user.auth-btn i {
    color: #fff !important;
    font-size: 1.25rem;
    line-height: 1;
}

.auth-link .dt-auth-trigger--user.auth-btn.dropdown-toggle::after {
    display: none;
}

.auth-link.dt-auth-link--user.show .dt-auth-trigger--user.auth-btn {
    background-color: var(--main-color-one, #3a3b9c) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color-one, #3a3b9c) 28%, transparent);
}

.auth-link.dt-auth-link--user.show .dt-auth-trigger--user:not(.auth-btn) {
    color: var(--main-color-one, #3a3b9c);
    opacity: 0.85;
}

.dt-auth-menu {
    --bs-dropdown-min-width: 12.5rem;
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: calc(100% + 0.4rem);
    display: none !important;
    flex-direction: column;
    min-width: 12.5rem;
    max-width: min(16rem, calc(100vw - 1.25rem));
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    z-index: 1080;
    text-align: start;
}

/* Compact (mobile header): keep panel inside viewport near the chip */
.auth-link.dt-auth-link--compact .dt-auth-menu {
    inset-inline-start: 0;
    inset-inline-end: auto;
}

.auth-link.dt-auth-link--user:not(.dt-auth-link--compact) .dt-auth-menu {
    inset-inline-end: 0;
    inset-inline-start: auto;
}

/* Use is-open — mega-menu's `ul.show { display:flex !important }` breaks Bootstrap .show */
ul.dt-auth-menu.is-open,
.dt-auth-menu.is-open {
    display: block !important;
}

.dt-auth-menu__head {
    padding: 0.55rem 1rem 0.45rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 0.25rem;
}

.dt-auth-menu__head-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-auth-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    color: #1e293b;
    text-decoration: none;
    background: transparent;
    border: 0;
    width: 100%;
}

.dt-auth-menu .dropdown-item:hover,
.dt-auth-menu .dropdown-item:focus {
    background-color: rgba(58, 59, 156, 0.08);
    color: var(--main-color-one, #3a3b9c);
}

.dt-auth-menu .dropdown-item i {
    font-size: 1rem;
    opacity: 0.85;
}

.dt-auth-menu .dropdown-divider {
    margin: 0.3rem 0;
    border-color: rgba(15, 23, 42, 0.08);
}

.dt-auth-menu .dt-auth-menu__logout {
    color: #dc3545;
}

.dt-auth-menu .dt-auth-menu__logout:hover,
.dt-auth-menu .dt-auth-menu__logout:focus {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.top-header-logo .dt-site-logo,
.top-header-logo .dt-brand-logo,
.footer-contact-image .dt-site-logo,
.footer-contact-image .dt-brand-logo {
    max-height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.footer-contact-image .dt-site-logo,
.footer-contact-image .dt-brand-logo {
    max-height: 64px;
}

/* —— Footer polish —— */
.footer {
    margin-top: 2.5rem;
    padding: 2rem 0 1.25rem;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #fff 42%),
        #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: none;
}

.footer .container-fluid {
    max-width: 1440px;
}

.footer-contact {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-contact-image {
    width: auto;
    max-width: 180px;
}

.footer-contact .go-to-top {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-color: rgba(15, 23, 42, 0.18) !important;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-contact .go-to-top:hover {
    border-color: var(--main-color-one) !important;
    color: var(--main-color-one);
    background: color-mix(in srgb, var(--main-color-one) 8%, #fff);
}

.footer-contact-call .navbar-nav {
    gap: 0.5rem 0.75rem;
}

.footer-contact-call .nav-link {
    padding: 0.4rem 0.75rem;
    margin: 0;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-contact-call .nav-link .fw-bold {
    color: #0f172a;
    margin-inline-end: 0.25rem;
}

.footer-contact-call a.nav-link:hover {
    border-color: color-mix(in srgb, var(--main-color-one) 35%, transparent);
    color: var(--main-color-one);
}

.footer-col {
    margin-bottom: 0.5rem;
}

.footer-col-item .nav-link.font-16.f-800,
.footer-col-item > .nav-link.font-16.f-800,
.footer-col-item .title-col-social {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0 0 0.85rem;
    padding: 0 0 0.55rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    border-bottom: 2px solid color-mix(in srgb, var(--main-color-one) 55%, transparent);
}

.footer-col-item .navbar-nav .nav-link {
    padding: 0.28rem 0;
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

.footer-col-item .navbar-nav a.nav-link:hover {
    color: var(--main-color-one);
    padding-inline-start: 0.2rem;
}

.footer-licenses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.footer-licenses-list li {
    list-style: none;
    margin: 0;
}

.footer-licenses-list a,
.footer-licenses-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 108px;
    padding: 0.55rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-licenses-list a:hover {
    border-color: color-mix(in srgb, var(--main-color-one) 40%, transparent);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.footer-licenses-list img {
    width: auto;
    max-width: 96px;
    height: 88px;
    object-fit: contain;
}

.footer-licenses-empty {
    padding: 0.35rem 0;
}

.footer-app {
    margin: 1.75rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--main-color-one) 0%,
        color-mix(in srgb, var(--main-color-one) 72%, #0f172a) 100%
    );
    box-shadow: 0 12px 28px color-mix(in srgb, var(--main-color-one) 28%, transparent);
}

.footer-app h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-app .navbar-nav {
    gap: 0.35rem;
}

.footer-app .nav-link {
    padding: 0.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-app .nav-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.footer-app img {
    width: auto;
    max-width: 140px;
    height: 40px;
    object-fit: contain;
}

.footer-description {
    padding: 1.25rem 0 0.5rem;
}

.footer-description h5 {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.75rem !important;
}

.footer-description p {
    margin: 0;
    line-height: 1.85;
    color: #64748b !important;
}

.footer-copyright {
    margin-top: 1.25rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-copyright p {
    margin: 0;
    color: #94a3b8 !important;
    font-size: 0.8125rem !important;
    line-height: 1.7;
    text-align: center;
}

.footer-copyright .footer-credit-link {
    color: var(--main-color-one);
    font-weight: 700;
    text-decoration: none;
}

.footer-copyright .footer-credit-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .footer {
        padding-bottom: 5.5rem;
    }
}

@media (max-width: 575.98px) {
    .footer-app {
        padding: 1rem;
    }

    .footer-app h5 {
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .footer-contact .go-to-top {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Product cards: equal height + hover image only when a second photo exists */
.product-slider .swiper-slide,
.pro-slider .swiper-slide,
.free-swiper-two .swiper-slide {
    height: auto;
    display: flex;
}

/*
 * Vendor style.css sets `.product-slider .swiper-slide { width: 100% }` which
 * stretches related/home product cards full-bleed if Swiper fails to init.
 * pro-slider widths must stay under Swiper control.
 */
.product-slider .pro-slider .swiper-slide {
    width: auto;
}

.product-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-box > a {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    color: inherit;
}

.product-box .product-title {
    min-height: 58px;
    height: auto;
}

.product-box .product-title .rating {
    min-width: 3rem;
    min-height: 1.25rem;
}

.product-box .product-action {
    margin-top: auto;
    min-height: 4.25rem;
    align-items: flex-end;
}

.product-box .product-action .discount {
    min-width: 48px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.product-box .product-action .price {
    min-height: 3.1em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: end;
}

/* Compact / sidebar cards (htmlcss suggetMoment): price row */
.product-box .product-action .price.justify-content-between {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    min-height: 0;
    width: 100%;
    text-align: start;
}

.product-box .product-action .price .old-price--empty {
    visibility: hidden;
}

.product-box:hover .one-image {
    opacity: 1;
    visibility: visible;
}

.product-box:has(.two-image):hover .one-image {
    opacity: 0;
    visibility: hidden;
}
