/* ==========================================================
   GLOBAL — BASE STYLES
   ========================================================== */

/* Prevent horizontal page overflow */
html,
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body {
    margin: 0;
}

/* Text selection */
html ::selection,
body ::selection,
body *::selection {
    background: #000000 !important;
    color: #ffffff !important;
}

html ::-moz-selection,
body ::-moz-selection,
body *::-moz-selection {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Paragraphs */
p {
    margin-top: 0;
}

/* Links */
p a,
span a {
    font-size: inherit !important;
}

a:hover {
    text-decoration: none !important;
}

/* Disable product/category tag links */
a[rel="tag"] {
    pointer-events: none;
    cursor: default;
}

/* Disable image selection and pointer interactions */
img {
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}


/* ==========================================================
   RESPONSIVE — UTILITY CLASSES
   ========================================================== */

/* Hide designated line breaks on mobile */
@media (max-width: 768px) {
    br.hide-mobile {
        display: none;
    }
}

/* Show designated line breaks on smaller screens */
br.hide-desktop {
    display: none;
}

@media (max-width: 1280px) {
    br.hide-desktop {
        display: block;
    }
}


/* ==========================================================
   FORMS — INPUTS & FIELDS
   ========================================================== */

/* Remove default focus outlines */
textarea:focus,
input:focus {
    outline: none;
}

/* Radio buttons */
.input-radio {
    color: #D2600E;
}

/* Required field labels */
label abbr,
.required {
    color: #1C1E21 !important;
}

/* Select2 highlighted options */
.select2-results__option--highlighted {
    background-color: #D2600E !important;
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

/* Scrollbar dimensions */
::-webkit-scrollbar {
    width: 8px;
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: #1C1E21;
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #efefef;
}


/* ==========================================================
   ELEMENTOR — GENERAL WIDGETS
   ========================================================== */

/* Hide form loading spinner */
.elementor-form-spinner {
    display: none;
}

/* Align button icons */
.elementor-button-icon {
    display: flex;
    align-items: center;
}

/* Remove form field focus effects */
.elementor-form input:focus,
.elementor-form textarea:focus,
.elementor-form select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Let form groups fit their content */
.elementor-field-group {
    height: fit-content;
}

/* Remove extra spacing around icons */
.elementor-icon-wrapper {
    line-height: 0;
}


/* ==========================================================
   ELEMENTOR — LIGHTBOX & IMAGE GALLERY
   ========================================================== */

/* Blurred lightbox backdrop */
.elementor-lightbox.dialog-type-lightbox {
	background-color: var(--e-global-color-ef8cfd5) !important;
    backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	-moz-backdrop-filter: blur(8px);
}

/* Gallery slide spacing */
.elementor-lightbox .swiper .swiper-slide {
    padding-left: 25px;
    padding-right: 25px;
}

/* Lightbox navigation and close icon colors */
.elementor-lightbox .swiper .elementor-lightbox .dialog-lightbox-close-button svg,
.elementor-lightbox .elementor-swiper-button svg {
    fill: var(--e-global-color-primary) !important;
}

/* Rounded lightbox images */
.elementor-lightbox .elementor-lightbox-image {
    border-radius: 25px !important;
    overflow: hidden !important;
}


/* ==========================================================
   NAVIGATION — SHARED DROPDOWN STYLES
   ========================================================== */

/*
 * Remove Elementor's pointer animation (underline)
 * from menu items containing a submenu.
 *
 * Applies to both desktop and mobile.
 */
.desktop-menu .menu-item-has-children a.elementor-item::before,
.desktop-menu .menu-item-has-children a.elementor-item::after,
.mobile-menu .menu-item-has-children a.elementor-item::before,
.mobile-menu .menu-item-has-children a.elementor-item::after {
    content: none !important;
    display: none !important;
}

/* Elementor / SmartMenus controls submenu display and animations.
   Apply layout to the list items rather than overriding the submenu display. */

/* ==========================================================
   NAVIGATION — DESKTOP DROPDOWN
   ========================================================== */

/* Desktop: 25px panel padding, 15px spacing between list items. */
.desktop-menu .menu-dropdown .sub-menu {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 25px;
    border-radius: 16px;
    box-sizing: border-box;
}

/* Reset Elementor / SmartMenus list styling. */
.desktop-menu .menu-dropdown .sub-menu > li {
    display: block;
    min-width: 0;
    margin: 0 !important;
}

.desktop-menu .menu-dropdown .sub-menu > li + li {
    margin-top: 15px !important;
}

/* Desktop submenu links */
.desktop-menu .menu-dropdown .sub-menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    border-inline-start: none !important;
    box-sizing: border-box;
}


/* ==========================================================
   NAVIGATION — MOBILE POPUP DROPDOWN
   ========================================================== */

/* Mobile: position:static keeps the submenu below its parent even when
   SmartMenus supplies inline offsets. Floated items retain two columns
   without overriding Elementor's display-based slide animation. */
.mobile-menu .menu-dropdown.menu-item-has-children {
    display: block !important;
    width: 100%;
}

.mobile-menu .menu-dropdown .sub-menu {
    position: static !important;
    float: none !important;
    clear: both;
    width: fit-content !important;
    margin: 0 0 15px 0 !important;
    padding: 15px;
    border-radius: 16px;
    box-sizing: border-box;
}

.mobile-menu .menu-dropdown .sub-menu > li {
    float: left;
    display: block;
    width: calc(50% - 5px);
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 10px 0 !important;
}

.mobile-menu .menu-dropdown .sub-menu > li:nth-child(odd) {
    clear: left;
    margin-right: 10px !important;
}

.mobile-menu .menu-dropdown .sub-menu > li:nth-last-child(-n + 2) {
    margin-bottom: 0 !important;
}

.mobile-menu .menu-dropdown .sub-menu::after {
    content: "";
    display: table;
    clear: both;
}

/* Remove default submenu link border */
.mobile-menu .menu-dropdown .sub-menu a {
    border-inline-start: unset !important;
}

/* Keep tablet labels on one line; allow wrapping on small phones. */
@media (min-width: 769px) {
    .mobile-menu .menu-dropdown .sub-menu > li > a {
        white-space: nowrap;
    }
}

/* Full-width submenu on mobile screens */
@media (max-width: 768px) {
    .mobile-menu .menu-dropdown .sub-menu {
        width: 100% !important;
    }
}


/* ==========================================================
   NAVIGATION — RESPONSIVE ICON VISIBILITY
   ========================================================== */
/* Keep the account widget hidden through Elementor's tablet portrait breakpoint.
   Its original visibility must not be overridden by the mobile alignment rules. */
@media (max-width: 1280px) {
    #navbar .menu-icons > .elementor-element-140a159 {
        display: none !important;
    }
}

/* ==========================================================
   NAVIGATION — TABLET & MOBILE STICKY MENU ICONS
   ========================================================== */
@media (max-width: 1280px) {
    #navbar .menu-icons {
        position: fixed !important;
        /* The initial value is aligned to the rendered logo by scripts.js. */
        top: var(--kf-mobile-initial-top, 40px) !important;
        right: 15px !important;
        left: auto !important;
        z-index: 1000;
        width: auto !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;

        /* Initially identical to the existing, transparent icon row. */
        padding: 0;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 999px;
        box-shadow: none;

        /* Avoid backdrop-filter on this ancestor: it would change the
           containing block of Elementor's fixed mini-cart. */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        transition: top 250ms ease, padding 250ms ease, border-color 250ms ease;
    }

    /* Give the scrolled state an 8px blur without trapping the cart overlay. */
    #navbar .menu-icons::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 250ms ease;
    }

    /* Center visible widgets; never force hidden Elementor widgets to display. */
    #navbar .menu-icons > .cart,
    #navbar .menu-icons > .elementor-element-56cbb59,
    #navbar .menu-icons > .cart > .elementor-widget-container,
    #navbar .menu-icons > .elementor-element-56cbb59 > .elementor-widget-container,
    #navbar .menu-icons .elementor-icon-wrapper,
    #navbar .menu-icons .elementor-icon-wrapper .elementor-icon,
    #navbar .menu-icons .elementor-menu-cart__toggle_button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #navbar .menu-icons > .cart,
    #navbar .menu-icons > .elementor-element-56cbb59 {
        align-self: center !important;
        margin-block: 0 !important;
    }

    #navbar .menu-icons .elementor-icon-wrapper {
        line-height: 0;
    }

    /* Optical balance: cart artwork is taller and visually heavier than
       the hamburger. Adjust artwork only, not widget/tap-target boxes. */
    #navbar .menu-icons > .cart .elementor-button-icon {
        transform: translate(1px, 3px) scale(0.92);
        transform-origin: center center;
    }


    /* Frosted pill that follows the viewport, never the header. */
    #navbar .menu-icons.is-scrolled {
        top: var(--kf-mobile-sticky-top, 15px) !important;
        padding: 9px 11px;
        border-color: #E1E4E8;
    }

    #navbar .menu-icons.is-scrolled::before {
        opacity: 1;
    }

    /* On admin sessions, scripts.js accounts for the toolbar when visible. */
}

@media (max-width: 1280px) and (prefers-reduced-motion: reduce) {
    #navbar .menu-icons,
    #navbar .menu-icons::before {
        transition: none;
    }
}


/* ==========================================================
   WOOCOMMERCE — GENERAL
   ========================================================== */

/* Rounded product thumbnails */
.size-woocommerce_thumbnail {
    border-radius: 16px !important;
}

/* Hide default WooCommerce notices */
.woocommerce-notices-wrapper {
    display: none !important;
}


/* ==========================================================
   WOOCOMMERCE — CUSTOMER ACCOUNT
   ========================================================== */

/* Login and registration container */
#customer_login {
    margin-top: 0;
}

/* Remove spacing below account forms */
#customer_login .woocommerce-form {
    margin-bottom: 0;
}

/* Match Elementor global typography */
#customer_login .woocommerce-form p {
    font-size: var(--e-global-typography-94bf374-font-size);
    font-family: var(--e-global-typography-94bf374-font-family), Sans-serif;
    font-weight: var(--e-global-typography-94bf374-font-weight);
}


/* ==========================================================
   WOOCOMMERCE — CHECKOUT & PAYMENT
   ========================================================== */

/* Hide payment gateway logos */
#add_payment_method #payment ul.payment_methods li img,
.woocommerce-cart #payment ul.payment_methods li img,
.woocommerce-checkout #payment ul.payment_methods li img {
    display: none;
}



/* ==========================================================
   WOOCOMMERCE — MENU CART
   ========================================================== */
.cart #elementor-menu-cart__toggle_button {
    background-color: transparent;
    border: none;
    padding: 0
} 
.cart #elementor-menu-cart__toggle_button .elementor-button-icon-qty {
    font-size: 15px !important;
}

.cart .elementor-button-text {
    white-space: nowrap;
}


.cart .elementor-menu-cart__main {
    width: 450px !important;
}
.cart .elementor-menu-cart__main .widget_shopping_cart_content {
	justify-content: center;
}

.cart .elementor-menu-cart__main .elementor-menu-cart__products {
	overflow-y: hidden;
}

.cart .elementor-menu-cart__main .elementor-menu-cart__product {
	display: flex;
    flex-direction: column;
	gap: 10px;
}
.cart .elementor-menu-cart__main .elementor-menu-cart__product > div {
	 padding: 0
}
.cart .elementor-menu-cart__main .elementor-menu-cart__product-image {
	display: none
}
.cart .elementor-menu-cart__main .elementor-menu-cart__subtotal {
	display: flex;
    justify-content: space-between;
	padding-bottom: 0
}

.cart .elementor-menu-cart__main .elementor-menu-cart__footer-buttons {
	display: flex;
    flex-direction: column-reverse;
}
.cart .elementor-menu-cart__main .elementor-button--checkout {
	background-color: #1c1e21;
    color: #fff;
}

.cart .elementor-menu-cart__main .elementor-button--view-cart::hover {
	background-color: #FFF;
	color: #1c1e21
}


/* Mobile cart: anchor the overlay to the viewport; scripts.js places
   the 275px popover 5px below the icon group and 15px from the right.
   Elementor retains control of the cart's animation and visibility. */
@media (max-width: 1280px) {
    #navbar .menu-icons .cart .elementor-menu-cart__container {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
    }

    /* The closed full-screen overlay must not intercept icon clicks. */
    #navbar .menu-icons .cart .elementor-menu-cart__container[aria-hidden="true"],
    #navbar .menu-icons .cart .elementor-menu-cart__container[aria-hidden="true"] * {
        pointer-events: none !important;
    }

    #navbar .menu-icons .cart .elementor-menu-cart__container[aria-hidden="false"] {
        pointer-events: auto !important;
    }

    #navbar .menu-icons .cart .elementor-menu-cart__main {
        position: absolute !important;
        top: var(--kf-mobile-cart-top, 125px) !important;
        right: 15px !important;
        bottom: auto !important;
        left: auto !important;
        margin: 0 !important;
        width: min(275px, calc(100vw - 30px)) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - var(--kf-mobile-cart-top, 125px) - 15px) !important;
        overflow-y: auto;
        box-sizing: border-box;
    }
}


/* ==========================================================
   ELEMENTOR POPUPS — LOCK BACKGROUND SCROLL
   ========================================================== */
/* Body stays anchored to the user's scroll position while Elementor's
   popup remains open. Popup content can still scroll inside its dialog. */
body.kf-popup-scroll-locked {
    position: fixed !important;
    top: var(--kf-popup-locked-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box;
    padding-right: var(--kf-popup-scrollbar-width, 0px) !important;
}
