/* =====================================================================
   Custom Sections — banner video & two-row category carousel
   ---------------------------------------------------------------------
   Loaded via wp_enqueue_style in functions.php after rutadomar-style,
   OUTSIDE the Webpack/SCSS build pipeline. Safe to edit directly on
   the server without running `npm run build`.
   ===================================================================== */

/* -----------------------------------------------------------
   Banner slide — right-column video (replaces banner_image)
   (template-parts/components/home_page_banner.php)
   -----------------------------------------------------------
   The .banner-slide__video-frame is a fixed-aspect cropping
   window. The iframe inside is OVERSIZED to 316% (the square of
   16:9 ratio) in both dimensions, so:
     - For any video aspect ratio, the video content covers the
       visible frame without letterbox/pillarbox bars.
     - YouTube's title bar (top of iframe) and "More videos" /
       YouTube logo (bottom of iframe) are pushed off-screen and
       cropped out by overflow:hidden.
*/

.banner-slide__video-column {
    position: relative;
}

.banner-slide__video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* mobile / tablet default */
    overflow: hidden;
    background: #000;
}

/* On desktop: video frame fills the full height of the slide
   (parent is flex; column stretches to slide's min-height: 700px).
   We drop the aspect-ratio constraint and use height:100% instead
   so the video covers the whole right column. */
@media (min-width: 1024px) {
    .banner-slide__video-column,
    .banner-slide__video-frame {
        height: 100%;
    }
    .banner-slide__video-frame {
        aspect-ratio: auto;
        min-height: 700px;
    }
}

.banner-slide__video-frame .banner-slide__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 316%;
    height: 316%;
    transform: translate(-50%, -50%);
    border: 0;
    /* Block all pointer events so YouTube can't surface hover-state UI. */
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .banner-slide__video-frame {
        display: none;
    }
}


/* -----------------------------------------------------------
   Two-Row Category Carousel — pure CSS scroll-snap
   (template-parts/components/products_categories_two_rows.php)
   ----------------------------------------------------------- */

.category-carousel-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .category-carousel-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.cat-carousel {
    position: relative;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .cat-carousel {
        margin-bottom: 2.5rem;
    }
}

.cat-carousel__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.cat-carousel__track::-webkit-scrollbar {
    display: none;
}

.cat-carousel__card {
    flex: 0 0 80%; /* mobile: ~1 card visible + peek of the next */
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .cat-carousel__card {
        flex: 0 0 calc((100% - 14px) / 2); /* 2 cards with 14px gap */
    }
}

@media (min-width: 1024px) {
    .cat-carousel__card {
        flex: 0 0 calc((100% - 28px) / 3); /* 3 cards with 14px gaps — final, more prominent */
    }
}

.cat-carousel__link {
    display: block;
}

.cat-carousel__thumb {
    aspect-ratio: 1 / 1;
    background: #E9E4E0;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.cat-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-carousel__link:hover .cat-carousel__thumb img {
    transform: scale(1.05);
}

.cat-carousel__no-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #171D4C;
    font-size: 0.875rem;
}

.cat-carousel__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "century_gothic_bold", "Century Gothic", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #171D4C;
}

.cat-carousel__label svg {
    transition: transform 0.2s ease;
}

.cat-carousel__link:hover .cat-carousel__label svg {
    transform: translateX(4px);
}

/* Line-style pagination dots */
.cat-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 0 0;
}

.cat-carousel__dots .dot {
    width: 18px;
    height: 2px;
    background: rgba(23, 29, 76, 0.2); /* primary @ 20% */
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 2px;
    transition: width 0.35s ease, background 0.35s ease;
}

.cat-carousel__dots .dot.active {
    width: 36px;
    background: #171D4C; /* primary */
}