:root {
    --venus-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__top {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: var(--header-background-color, #ffffff) !important;
}

.header__top .ps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__top .ps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

/* Let the inline style (set via Theme Options → Logo height) win */
.ps-logo img {
    width: auto;
}

.ps-form--quick-search {
    background: var(--header-background-color, #ffffff) !important;
    border: 1px solid var(--header-diliver-border-color, rgba(0,0,0,0.15)) !important;
    border-radius: 4px !important;
    padding: 0 !important;
    max-width: 600px !important;
    flex-grow: 1;
    margin: 0 50px !important;
    display: flex !important;
    overflow: hidden;
}

.ps-form--quick-search .form-group--icon {
    display: flex;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
}

.ps-form--quick-search .product-cat-label {
    font-size: 13px;
    color: var(--header-text-color, #333);
    white-space: nowrap;
}

.ps-form--quick-search .product-category-select {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    color: var(--header-text-color, #333);
    max-width: 130px;
}

.ps-form--quick-search .input-search-product {
    border: none !important;
    height: 52px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    color: var(--header-text-color, #333);
}

.ps-form--quick-search .input-search-product::placeholder {
    color: var(--header-diliver-border-color, rgba(0,0,0,0.4));
}

.ps-form--quick-search button{
    background-color: var(--header-button-background-color, #222222) !important;
    color: var(--header-button-text-color, #ffffff) !important;
    width: 85px !important;
    height: 52px !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    margin: 0 !important;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}

/* ─────────────────────────────────────────────
   Right actions area
   ───────────────────────────────────────────── */
.header__right {
    flex-shrink: 0;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Icon links (wishlist, compare, cart) */
.header__extra {
    color: var(--header-text-color, #333) !important;
    font-size: 32px !important;
    position: relative;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    transition: var(--venus-transition);
}

.header__extra:hover,
.header__extra:hover i {
    color: var(--header-text-accent-color, #222222) !important;
    transform: translateY(-2px);
}

/* Badge / count bubble */
.header__extra span {
    position: absolute;
    top: -5px;
    right: -12px;
    background-color: var(--primary-color, #fcb800) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-background-color, #ffffff) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ─────────────────────────────────────────────
   User account block
   ───────────────────────────────────────────── */
.ps-block--user-header {
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.ps-block--user-header .ps-block__left i {
    font-size: 26px;
    color: var(--header-text-color, #333) !important;
    transition: var(--venus-transition);
}

.ps-block--user-header:hover .ps-block__left i {
    color: var(--header-text-accent-color, #222222) !important;
}

.ps-block--user-header .ps-block__right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.ps-block--user-header .ps-block__right a {
    color: var(--header-text-color, #333);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ps-block--user-header .ps-block__right a + a {
    border-left: 1px solid var(--header-diliver-border-color, rgba(0,0,0,0.15));
    padding-left: 6px;
}

.ps-block--user-header .ps-block__right a:hover {
    color: var(--header-text-accent-color, #222222) !important;
}

/* ─────────────────────────────────────────────
   Category hamburger (next to logo)
   ───────────────────────────────────────────── */
.header__left .menu--product-categories .menu__toggle {
    background: none !important;
    color: var(--header-text-color, #333) !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 30px !important;
}
/* Click-driven open state (matches existing :hover styles so the dropdown
   stays visible after a tap on touch devices). */
.menu--product-categories.is-open .menu__content {
    opacity: 1 !important;
    transform: scaleX(1) translateY(0) !important;
    visibility: visible !important;
}

.header__left .menu--product-categories .menu__toggle span {
    display: none; /* keep layout clean — icon only */
}

/* ─────────────────────────────────────────────
   Navigation bar (lower sticky row)
   ───────────────────────────────────────────── */
.navigation {
    border: none !important;
    padding: 5px 0 !important;
    backdrop-filter: none !important;
}

.navigation .ps-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 14px;
}

.navigation .menu > li > a {
    color: var(--header-text-color, #1a1a1a) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    padding: 15px 22px !important;
    transition: var(--venus-transition);
    background: transparent !important;
}

/* Hide the default arrow after nav links — but keep a chevron on items
   that have a submenu so users know they can expand. */
.navigation .menu > li > a:after {
    display: none !important;
}
.navigation .menu > li.menu-item-has-children > a:after {
    border-color: currentColor;
    border-style: solid;
    border-width: 0 1.5px 1.5px 0;
    content: '';
    display: inline-block !important;
    height: 7px;
    margin-left: 8px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
    vertical-align: middle;
    width: 7px;
}
.navigation .menu > li.menu-item-has-children:hover > a:after {
    transform: rotate(225deg) translateY(1px);
}

/* Navigation extra links (track order, currency, language) */
.navigation .navigation__extra > li > a {
    color: var(--header-text-color, #1a1a1a) !important;
    font-size: 13px;
    transition: color 0.2s ease;
}

.navigation .navigation__extra > li > a:hover {
    color: var(--header-text-hover-color, var(--primary-color, #fcb800)) !important;
}

/* ─────────────────────────────────────────────
   Sticky header shadow when scrolled
   ───────────────────────────────────────────── */
.header.header--sticky {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* ─────────────────────────────────────────────
   Homepage overlay — ONLY the navigation row floats
   over the hero; the top row (logo / search / icons)
   keeps its standard look.
   ───────────────────────────────────────────── */
body[data-page-template="homepage"] .header {
    position: relative;
}
/* Pull the nav out of the document flow and anchor it just below the top
   row, so the hero that follows can slide up underneath it. */
body[data-page-template="homepage"] .navigation {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
}
/* On the homepage Botble marks many top-level items as
   .current-menu-item, so reserve the red hover color for actual :hover
   only. All other states (including .current-menu-item) stay white. */
body[data-page-template="homepage"] .navigation .menu > li > a,
body[data-page-template="homepage"] .navigation .menu > li.current-menu-item > a,
body[data-page-template="homepage"] .navigation .menu > li.current-menu-ancestor > a {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
body[data-page-template="homepage"] .navigation .menu > li > a:hover,
body[data-page-template="homepage"] .navigation .menu > li.current-menu-ancestor > a:hover {
    color: var(--header-text-hover-color, var(--primary-color, #fcb800)) !important;
}
body[data-page-template="homepage"] .navigation .navigation__extra > li > a {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
body[data-page-template="homepage"] .navigation .navigation__extra > li > a:hover {
    color: var(--header-text-hover-color, var(--primary-color, #fcb800)) !important;
}
/* Shop by Category toggle should match the menu's color treatment. The
   parent theme's style.css sets color directly on the inner <i> and <span>
   (not just the parent div) so the cascade alone isn't enough — we target
   the children too. */
body[data-page-template="homepage"] .header__left .menu--product-categories .menu__toggle,
body[data-page-template="homepage"] .header__left .menu--product-categories .menu__toggle i,
body[data-page-template="homepage"] .header__left .menu--product-categories .menu__toggle span,
body[data-page-template="homepage"] .navigation .menu--product-categories .menu__toggle,
body[data-page-template="homepage"] .navigation .menu--product-categories .menu__toggle i,
body[data-page-template="homepage"] .navigation .menu--product-categories .menu__toggle span {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
body[data-page-template="homepage"] .header__left .menu--product-categories .menu__toggle:hover,
body[data-page-template="homepage"] .header__left .menu--product-categories .menu__toggle:hover i,
body[data-page-template="homepage"] .header__left .menu--product-categories .menu__toggle:hover span,
body[data-page-template="homepage"] .navigation .menu--product-categories .menu__toggle:hover,
body[data-page-template="homepage"] .navigation .menu--product-categories .menu__toggle:hover i,
body[data-page-template="homepage"] .navigation .menu--product-categories .menu__toggle:hover span {
    color: var(--header-text-hover-color, var(--primary-color, #fcb800)) !important;
}
/* When the header turns sticky on scroll, snap the nav back to a solid bg
   so the menu stays readable against the page below the hero. */
body[data-page-template="homepage"] .header.header--sticky .navigation {
    background: var(--header-background-color, #ffffff) !important;
    position: static;
    border-bottom: none !important;
}
body[data-page-template="homepage"] .header.header--sticky .navigation .menu > li > a,
body[data-page-template="homepage"] .header.header--sticky .navigation .navigation__extra > li > a {
    color: var(--header-text-color, #1a1a1a) !important;
    text-shadow: none;
}

/* Navigation Menu Wrapping Fix: Keep all items in one row */
@media (min-width: 1200px) {
    .navigation > .ps-container,
    .navigation > .container {
        display: flex !important;
        flex-flow: row nowrap !important;
    }

    .navigation .navigation__left {
        flex: 0 0 260px !important;
        max-width: 260px !important;
    }

    .navigation .navigation__right {
        flex: 1 !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 20px !important;
    }

    .navigation .menu {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navigation .menu > li {
        display: block !important;
        flex: 0 0 auto !important;
    }

    .navigation .menu > li > a {
        padding: 15px 12px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .navigation .navigation__extra {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .navigation .navigation__extra > li {
        display: block !important;
        flex: 0 0 auto !important;
        margin-right: 12px !important;
        padding-right: 12px !important;
    }
}

/* Micro-adjustments for medium desktops to prevent any navbar wrapping on narrower desktop viewports */
@media (min-width: 1200px) and (max-width: 1366px) {
    .navigation .navigation__left {
        flex: 0 0 220px !important;
        max-width: 220px !important;
    }

    .navigation .menu > li > a {
        padding: 15px 8px !important;
        font-size: 13px !important;
    }

    .navigation .navigation__extra > li {
        margin-right: 8px !important;
        padding-right: 8px !important;
        font-size: 12px !important;
    }
}

/* Global Mobile Responsiveness Enhancements */
@media (max-width: 767px) {
    /* Product additional information table responsiveness */
    .tp-product-details-additional-info table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .tp-product-details-additional-info table td {
        padding: 8px 15px !important;
        font-size: 14px !important;

        &:first-child {
            width: auto !important;
            min-width: 120px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
        }
    }

    /* Mega menu column layout on mobile */
    .menu--dropdown > li.has-mega-menu {
        .mega-menu {
            .mega-menu__column {
                width: 100% !important;
                margin-bottom: 20px !important;
            }
        }
    }
}

@media (max-width: 768px) {
    /* Standard document tables responsiveness */
    .ps-document table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Ensure notifications never overflow narrow mobile viewports */
.toastify.toastify-right {
    max-width: 100vw !important;
}

/* Swiper Studio embeds: keep homepage slider full-width and prevent mobile clipping */
#homepage-1 .swiper-slider-wrapper {
    box-sizing: border-box;
    clear: both;
    margin: 0 auto 30px;
    max-width: 100%;
    overflow-x: clip;
    padding-inline: 0;
    width: 100%;
}

#homepage-1 .swiper-slider-wrapper *,
#homepage-1 .swiper-slider-wrapper *::before,
#homepage-1 .swiper-slider-wrapper *::after {
    box-sizing: border-box;
}

#homepage-1 .swiper-slider-embed-container,
#homepage-1 .swiper-responsive-container {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    display: block;
    max-height: min(75vh, 760px);
    max-width: 100%;
    min-height: 420px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

#homepage-1 .swiper-slider-embed-container iframe,
#homepage-1 .swiper-responsive-container iframe,
#homepage-1 .swiper-slider-iframe {
    border: 0;
    display: block;
    height: 100% !important;
    inset: 0;
    max-width: 100%;
    position: absolute;
    width: 100% !important;
}

@media (max-width: 991px) {
    #homepage-1 .swiper-slider-wrapper {
        margin: 0 auto 24px;
        padding-inline: 0;
    }

    #homepage-1 .swiper-slider-wrapper.ps-container {
        padding-inline: 0;
    }

    #homepage-1 .swiper-slider-embed-container,
    #homepage-1 .swiper-responsive-container {
        aspect-ratio: 4 / 3;
        max-height: none;
        min-height: clamp(420px, 72vw, 620px);
    }
}

@media (max-width: 767px) {
    #homepage-1 .swiper-slider-wrapper {
        margin: 0 auto 20px;
        padding-inline: 0;
    }

    #homepage-1 .swiper-slider-wrapper.ps-container {
        padding-inline: 0;
    }

    #homepage-1 .swiper-slider-embed-container,
    #homepage-1 .swiper-responsive-container {
        aspect-ratio: 4 / 5;
        border-radius: 0;
        min-height: clamp(430px, 122vw, 620px);
    }
}

@media (max-width: 480px) {
    #homepage-1 .swiper-slider-wrapper {
        padding-inline: 0;
    }

    #homepage-1 .swiper-slider-wrapper.ps-container {
        padding-inline: 0;
    }

    #homepage-1 .swiper-slider-embed-container,
    #homepage-1 .swiper-responsive-container {
        min-height: clamp(410px, 128vw, 580px);
    }
}

/* ─────────────────────────────────────────────
   Responsive breakpoints
   ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .ps-form--quick-search {
        margin: 0 20px !important;
    }
}

@media (max-width: 991px) {
    .header__top,
    .navigation {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .ps-block--user-header .ps-block__right {
        display: none;
    }
}
