/* ========================================
   PRODUCT CAROUSEL - HOVER EFFECTS & PAUSE
======================================== */

/* Hide Add to Cart button by default, show on hover */
.product-swiper .views-row .views-field-add-to-cart,
.product-swiper .views-row .views-field-variations-target-id {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.product-swiper .views-row:hover .views-field-add-to-cart,
.product-swiper .views-row:hover .views-field-variations-target-id {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Pause carousel on hover */
.product-swiper:hover .swiper-wrapper {
    animation-play-state: paused !important;
}

.product-swiper.swiper-container-autoplay:hover {
    pointer-events: auto;
}

/* ========================================
   CATEGORIES BLOCK - VIEW ALL BUTTON ALWAYS VISIBLE
======================================== */

/* Make View All button visible at all times */
.categories-carousal .views-field-nothing {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    transform: translateY(0);
}

/* Add enhanced hover effect */
.categories-carousal .views-view-responsive-grid__item-inner:hover .views-field-nothing {
    transform: translateY(-2px);
    opacity: 1;
}

/* ========================================
   RESPONSIVE BURGER MENU
======================================== */

/* Burger menu toggle button */
.navbar-toggler {
    display: none;
    background: transparent;
    border: 2px solid #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

/* Backdrop for mobile menu */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    display: none;
}

.navbar-backdrop.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Mobile responsive navigation */
@media (max-width: 992px) {

    /* Ensure navbar has blue background on mobile at all times */
    .navbar,
    nav.navbar {
        flex-wrap: wrap;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        padding: 12px 20px !important;
        position: relative;
        z-index: 1001;
    }

    /* Ensure header/nav wrapper also has the background */
    header,
    .site-header,
    nav[role="navigation"] {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-toggler {
        display: block;
        order: 2;
        margin-left: auto;
        padding: 10px 12px;
        position: relative;
        z-index: 1002;
    }

    .navbar-brand {
        order: 1;
        padding: 12px 0;
        color: #ffffff !important;
    }

    /* Ensure site title is white on mobile */
    .navbar-brand a,
    .site-branding a {
        color: #ffffff !important;
    }

    .cart-block--summary__icon {
        order: 3;
        margin-left: 15px;
        padding: 12px 0;
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }

    .navbar-nav .nav-link {
        width: 100%;
        text-align: left;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0;
        border-radius: 0;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Dropdown arrow indicator - Clickable */
    .navbar-nav .nav-item {
        position: relative;
        /* Ensure positioning context */
    }

    .dropdown-toggle-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        /* Large clickable area */
        height: 100%;
        /* Full height of item */
        position: absolute;
        right: 0;
        top: 0;
        cursor: pointer;
        z-index: 10;
        background: rgba(255, 255, 255, 0.05);
        /* Slight highlight to show it's separate */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-toggle-arrow::after {
        content: '';
        border: solid white;
        border-width: 0 2px 2px 0;
        padding: 4px;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-bottom: 2px;
    }

    .dropdown-toggle-arrow.active::after {
        transform: rotate(-135deg);
        margin-bottom: -2px;
    }

    /* Remove old CSS arrow */
    .navbar-nav .dropdown-toggle::after,
    .navbar-nav .nav-item.dropdown>.nav-link::after {
        display: none !important;
    }

    .navbar .dropdown .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        margin-top: 0 !important;
        box-shadow: none;
        border-left: 3px solid #4ecdc4;
        background: rgba(0, 0, 0, 0.2);
        display: none;
        /* Hidden by default */
        opacity: 1;
        visibility: visible;
        padding: 0;
    }

    .navbar .dropdown.show .dropdown-menu,
    .navbar .dropdown-menu.show {
        display: block;
        /* Show when toggled */
    }

    .navbar .dropdown .dropdown-item {
        padding: 12px 35px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    /* Disable hover on mobile */
    .navbar .dropdown:hover .dropdown-menu {
        display: none;
    }

    .navbar .dropdown.show:hover .dropdown-menu {
        display: block;
    }
}

/* ========================================
   PRODUCT CARDS - MORE COMPACT
======================================== */

/* .product-swiper .views-row {
    max-width: 280px;
    margin: 0 auto;
}

.product-swiper .field--name-field-iamge {
    height: 220px !important;
}

.product-swiper .field--name-field-iamge img {
    height: 220px !important;
} */

/* ========================================
   ADD TO CART BUTTON - FULL TEXT DISPLAY
======================================== */

/* Ensure full text for Add to Cart button */
.product-swiper .button--add-to-cart,
.product-swiper .commerce-order-item-add-to-cart-form button[type="submit"],
.view--category-menu .views-field-add-to-cart input[type="submit"],
.view-hproducts .views-field-add-to-cart input[type="submit"],
.view-category-page .views-field-add-to-cart input[type="submit"],
.page-taxonomy-term .views-field-add-to-cart input[type="submit"] {
    white-space: nowrap !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: 100% !important;
    padding: 8px 20px !important;
    font-size: 11px !important;
    display: inline-block !important;
    text-align: center !important;
}