/**
 * THE DAB HUT: GLOBAL CUSTOM STYLES
 * Version: 2.0 - Migrated from WordPress Customizer
 * 
 * This file contains site-wide styles that were previously in the Customizer.
 * Upload to: /wp-content/themes/blocksy-child/css/global-custom.css
 * 
 * After uploading, you can EMPTY your WordPress Customizer "Additional CSS" box.
 */

/* =================================================================
   PRODUCT BADGES & SLIDER STYLING
   ================================================================= */
.onsale, 
.out-of-stock-badge,
.ct-share-box[data-type="type-2"] span {
    border-radius: 0;
}

.nickx-slider-nav .nslick-slide img {
    border-radius: 30px;
}

.images.nickx_product_images_with_video .slider.nickx-slider-for .zoom.nslick-slide img {
    border-radius: 90px;
}

[data-products] .product {
    --theme-border-radius: 50px;
}

/* =================================================================
   KADENCE SWIPE COLUMNS (Mobile)
   ================================================================= */
@media (max-width: 768px) {
    .swipe-columns > .kt-row-column-wrap {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .swipe-columns > .kt-row-column-wrap > .wp-block-kadence-column {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: 80%;
    }
}

/* =================================================================
   FOOTER - SHOP COLUMN STYLING
   ================================================================= */
.shop-column {
    font-family: 'Black Han Sans', sans-serif;
    color: white;
}

.shop-column .footer-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    display: block;
    margin-bottom: 10px;
}

.shop-column .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-column .footer-links li {
    margin: 6px 0;
}

.shop-column .footer-links a {
    font-size: 1rem;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: color 0.3s ease;
}

.shop-column .footer-links a:hover {
    color: #fd7200;
}

/* =================================================================
   FOOTER - GENERAL COLUMN STYLING
   ================================================================= */
.footer-column {
    font-family: 'Black Han Sans', sans-serif;
    color: white;
}

.footer-column .footer-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    display: block;
    margin-bottom: 10px;
}

.footer-column .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column .footer-links li {
    margin: 6px 0;
}

.footer-column .footer-links a {
    font-size: 1rem;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-column .footer-links a:hover {
    color: #f6c70a;
}

/* =================================================================
   FOOTER - NEWSLETTER STYLING
   ================================================================= */
.footer-column .wpforms-form input[type="email"],
.footer-column .wpforms-form input[type="text"] {
    width: 100%;
    padding: 8px;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
}

.footer-column .wpforms-form button[type="submit"],
.footer-column .wpforms-form input[type="submit"] {
    background-color: #f6c70a !important;
    color: black !important;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.footer-column .wpforms-form button[type="submit"]:hover,
.footer-column .wpforms-form input[type="submit"]:hover {
    background-color: #e6b700 !important;
}

.footer-column .wpforms-form label {
    display: none;
}

/* Fix for the Subscribe Button (Prevents two-line wrapping) */
.footer-column .wpforms-submit-container button {
    white-space: nowrap !important;
    width: auto !important;
    padding: 10px 25px !important;
}

/* =================================================================
   CUSTOM STORE NOTICE / ANNOUNCEMENT BAR
   ================================================================= */
#custom-store-notice {
    position: relative;
    width: 100%;
    background: transparent;
    overflow: hidden;
    z-index: 9999;
    margin-bottom: -5px;
}

#custom-store-notice span {
    text-shadow: 1px 1px 3px black;
}

.notice-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 5px 0;
    position: relative;
}

.notice-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    touch-action: pan-y;
}

.notice {
    min-width: 100vw;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: transparent;
    padding: 4px 12px;
    border-radius: 0;
}

.notice-arrows {
    position: absolute;
    top: 0;
    right: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-arrows button {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.3s;
}

.notice-arrows button:hover {
    color: #fd7200;
}

@media screen and (max-width: 1024px) {
    #custom-store-notice {
        display: flex !important;
        flex-direction: column;
        position: relative;
        padding: 10px;
    }

    #custom-store-notice .swiper-slide {
        font-size: 14px;
        padding: 6px 12px;
    }

    #custom-store-notice .swiper-button-prev,
    #custom-store-notice .swiper-button-next {
        display: block !important;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    z-index: 10;
    font-size: 24px;
    display: block !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 50%;
}

/* =================================================================
   MOBILE FOOTER ACCORDION
   ================================================================= */
.mobile-footer-accordion {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop footer columns */
    .footer-column {
        display: none;
    }

    /* Show mobile accordion */
    .mobile-footer-accordion {
        display: block;
        font-family: 'Black Han Sans', sans-serif;
        color: white;
        margin-top: 20px;
    }

    .mobile-footer-accordion details {
        margin-bottom: 15px;
        border-bottom: 1px solid #fff;
    }

    .mobile-footer-accordion summary {
        font-size: 1.1rem;
        text-transform: uppercase;
        cursor: pointer;
        padding: 8px 0;
        color: white;
    }

    .mobile-footer-accordion ul {
        margin: 0;
        padding-left: 15px;
        list-style: none;
    }

    .mobile-footer-accordion li {
        margin-bottom: 8px;
    }

    .mobile-footer-accordion a {
        text-decoration: none;
        color: white;
        font-size: 0.95rem;
    }

    .mobile-footer-accordion a:hover {
        text-decoration: underline;
    }
}

/* =================================================================
   MOBILE NEWSLETTER
   ================================================================= */
.newsletter-desktop {
    display: block;
}

@media (max-width: 768px) {
    .newsletter-desktop {
        display: none;
    }

    .mobile-newsletter {
        margin-top: 10px;
        font-family: 'Black Han Sans', sans-serif;
        color: white;
    }

    .mobile-newsletter p {
        font-size: 1rem;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .mobile-newsletter input[type="email"],
    .mobile-newsletter input[type="text"],
    .mobile-newsletter input[type="submit"],
    .mobile-newsletter button {
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-newsletter input[type="submit"],
    .mobile-newsletter button[type="submit"] {
        background-color: #f6c70a !important;
        color: black !important;
        border: none;
        padding: 8px 12px;
        text-transform: uppercase;
        font-family: 'Black Han Sans', sans-serif;
    }

    .mobile-newsletter input[type="submit"]:hover,
    .mobile-newsletter button[type="submit"]:hover {
        opacity: 0.9;
    }
}

/* =================================================================
   MOBILE HEADER TRANSPARENCY
   ================================================================= */
@media (max-width: 768px) {
    .site-header,
    .ct-header,
    .ct-header-main,
    .ct-header-inner {
        background-color: transparent !important;
    }

    body:not(.home) .site-header {
        position: absolute !important;
        width: 100%;
        z-index: 99;
    }
}

/* =================================================================
   DESKTOP DROPDOWN MENU
   ================================================================= */
@media (min-width: 1024px) {
    /* Style the container of the dropdown */
    .ct-header .menu-item-has-children > .sub-menu {
        width: 800px;
        max-width: 90vw;
        padding: 2rem;
        margin: 0 auto;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        background: #fd7200;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
    }

    /* Adjust the items inside */
    .ct-header .sub-menu li {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .ct-header .sub-menu li a {
        display: block;
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
        padding: 0.25rem 0;
        transition: color 0.2s ease;
    }

    .ct-header .sub-menu li a:hover {
        color: #573096;
    }
}

/* =================================================================
   DESKTOP FOOTER ALIGNMENT
   ================================================================= */
@media (min-width: 1024px) {
    /* Targets the footer container to spread items out */
    .site-footer .footer-container-inner, 
    .site-footer .widgets-grid,
    .wp-block-kadence-column.footer-inner-container { 
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        max-width: 1200px;
        margin: 0 auto !important;
        gap: 40px;
    }

    /* Prevents the columns from squishing or shifting left */
    .footer-column, 
    .footer-column-links,
    .newsletter-desktop {
        flex: 1 !important;
        text-align: left !important;
    }
}
