/*
Theme Name: Base
Theme URI: https://www.invbit.com
Author: Base
Author URI: https://www.invbit.com
Description: Base para Betheme
Template: betheme
Version: 1.6.2
*/

@import './css/variables.css';

/* --- Fonts --- */
@font-face {
    font-family: 'D-DIN';
    src: url('./assets/fonts/din/D-DIN.woff2') format('woff2'),
        url('./assets/fonts/din/D-DIN.woff') format('woff'),
        url('./assets/fonts/din/D-DIN.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN';
    src: url('./assets/fonts/din/D-DIN-Bold.woff2') format('woff2'),
        url('./assets/fonts/din/D-DIN-Bold.woff') format('woff'),
        url('./assets/fonts/din/D-DIN-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@view-transition {
    navigation: auto;
}

.container {
    view-transition-name: page;
}

::view-transition-old(page) {
    animation: fade 0.2s linear forwards;
}

::view-transition-new(page) {
    animation: fade 0.3s linear reverse;
}

@keyframes fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* --- Variables --- */
:root {
    /* Colors - Hex */
    --color-primary-hex: #F08018;
    --color-neutral-1-hex: #1D242C;
    --color-neutral-2-hex: #394656;
    --color-neutral-3-hex: #556981;
    --color-neutral-4-hex: #c7d0db;
    --color-neutral-5-hex: #FFFFFF;

    /* Colors - HSL */
    --color-primary: hsl(29, 88%, 52%);
    --color-neutral-1: hsl(212, 21%, 14%);
    --color-neutral-2: hsl(213, 20%, 28%);
    --color-neutral-3: hsl(213, 21%, 42%);
    --color-neutral-4: hsl(213, 22%, 82%);
    --color-neutral-5: hsl(0, 0%, 100%);

    /* Typography - Mobile First (20% reduction from Figma) */
    --font-size-h1: 4.8rem;
    --line-height-h1: 1.171875;
    --font-size-h2: 3.2rem;
    --line-height-h2: 1.12;
    --font-size-h3: 1.7rem;
    --line-height-h3: 1.2;
    --font-size-h4: 1.4rem;
    --line-height-h4: 1.2;
    --font-size-h-featured: 2.4rem;
    --line-height-h-featured: 1.2;
    --font-size-p-extralarge: 1.2rem;
    --line-height-p-extralarge: 1.2;
    --font-size-p-extralarge-bold: 1.2rem;
    --line-height-p-extralarge-bold: 1.2;
    --font-size-p-large: 1rem;
    --line-height-p-large: 1.2;
    --font-size-p-large-bold: 1rem;
    --line-height-p-large-bold: 1.2;
    --font-size-p-medium: 0.9rem;
    --line-height-p-medium: 1.2;
    --font-size-p-medium-bold: 0.9rem;
    --line-height-p-medium-bold: 1.2;
    --font-size-p-small: 0.8rem;
    --line-height-p-small: 1.2;
    --font-size-p-small-bold: 0.8rem;
    --line-height-p-small-bold: 1.2;
    --font-size-a-nav: 0.8rem;
    --line-height-a-nav: 1.2;
    --font-size-a-btn: 0.9rem;
    --line-height-a-btn: 1.2;
    --font-size-subheading: 0.7rem;
    --line-height-subheading: 1.2;
    --line-paragraph: 1.6;
    --border-radius-small: 4px;

    /* Desktop - Exact Figma values */
    @media (width >=992px) {
        --font-size-h1: 6rem;
        --font-size-h2: 5rem;
        --font-size-h3: 2.125rem;
        --font-size-h4: 1.75rem;
        --font-size-h-featured: 3rem;
        --font-size-p-extralarge: 1.5rem;
        --font-size-p-extralarge-bold: 1.5rem;
        --font-size-p-large: 1.25rem;
        --font-size-p-large-bold: 1.25rem;
        --font-size-p-medium: 1.125rem;
        --font-size-p-medium-bold: 1.125rem;
        --font-size-p-small: 1rem;
        --font-size-p-small-bold: 1rem;
        --font-size-a-nav: 1rem;
        --font-size-a-btn: 1.125rem;
        --font-size-subheading: 0.875rem;
        --line-paragraph: 1.6;
    }
}

/* --- Base Typography --- */
body {
    font-family: 'D-DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* --- Custom Scrollbar --- */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-hex) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-hex);
    border-radius: 6px;
    border: 2px solid transparent;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary);
}

/* --- Utilities --- */
/* Text Colors */
.text-primary {
    color: var(--color-primary);
}

.text-neutral-1 {
    color: var(--color-neutral-1);
}

.text-neutral-2 {
    color: var(--color-neutral-2);
}

.text-neutral-3 {
    color: var(--color-neutral-3);
}

.text-neutral-4 {
    color: var(--color-neutral-4);
}

.text-neutral-5 {
    color: var(--color-neutral-5);
}

/* Background Colors */
.bg-primary {
    background-color: var(--color-primary);
}

.bg-neutral-1 {
    background-color: var(--color-neutral-1);
}

.bg-neutral-2 {
    background-color: var(--color-neutral-2);
}

.bg-neutral-3 {
    background-color: var(--color-neutral-3);
}

.bg-neutral-4 {
    background-color: var(--color-neutral-4);
}

.bg-neutral-5 {
    background-color: var(--color-neutral-5);
}

/* Text Sizes */
.text-h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
}

.text-h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
}

.text-h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
}

.text-h4 {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
}

.text-h-featured {
    font-size: var(--font-size-h-featured);
    line-height: var(--line-height-h-featured);
}

.text-p-extralarge {
    font-size: var(--font-size-p-extralarge);
    line-height: var(--line-height-p-extralarge);
}

.text-p-extralarge-bold {
    font-size: var(--font-size-p-extralarge-bold);
    line-height: var(--line-height-p-extralarge-bold);
    font-weight: bold;
}

.text-p-large {
    font-size: var(--font-size-p-large);
    line-height: var(--line-height-p-large);
}

.text-p-large-bold {
    font-size: var(--font-size-p-large-bold);
    line-height: var(--line-height-p-large-bold);
    font-weight: bold;
}

.text-p-medium {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
}

.text-p-medium-bold {
    font-size: var(--font-size-p-medium-bold);
    line-height: var(--line-height-p-medium-bold);
    font-weight: bold;
}

.text-p-small {
    font-size: var(--font-size-p-small);
    line-height: var(--line-height-p-small);
}

.text-p-small-bold {
    font-size: var(--font-size-p-small-bold);
    line-height: var(--line-height-p-small-bold);
    font-weight: bold;
}

.text-a-nav {
    font-size: var(--font-size-a-nav);
    line-height: var(--line-height-a-nav);
}

.text-a-btn {
    font-size: var(--font-size-a-btn);
    line-height: var(--line-height-a-btn);
}

.text-subheading {
    font-size: var(--font-size-subheading);
    line-height: var(--line-height-subheading);
}

/* --- Component: Arrow Button --- */
.arrow-button::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.2173 13.3335H5.33301V12.2668H18.2173L12.0391 6.0887L12.7997 5.3335L20.2663 12.8002L12.7997 20.2668L12.0391 19.5116L18.2173 13.3335Z' fill='%231D242C'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.validate_email_against_bot {
    display: none;
}

body #cmplz-manage-consent .cmplz-manage-consent {
    background-image: url(imagenes/fondo-ajustes.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    right: unset !important;
    left: 0px;
    font-size: 0px;
    color: var(--negro) !important;
    width: 140px;
    background-color: transparent !important;
    box-shadow: unset !important;
    bottom: -2px !important;
    padding: 0 !important;
}

body #cmplz-manage-consent .cmplz-manage-consent:before {
    content: "";
    background-image: url(imagenes/icono-ajustes.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    width: 28px;
    height: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -webkit-transition: all 0.8s ease;
    -moz-transition: all 0.8s ease;
    -ms-transition: all 0.8s ease;
    -o-transition: all 0.8s ease;
}

body #cmplz-manage-consent .cmplz-manage-consent:hover:before {
    transform: translate(-50%, -54%);
    -webkit-transform: translate(-50%, -54%);
    -moz-transform: translate(-50%, -54%);
    -ms-transform: translate(-50%, -54%);
    -o-transform: translate(-50%, -54%);
}

/* Arregla padding al abrir popup deshabilitando scroll de la web */
html.mfn-popup-browser-scroll-disabled {
    padding-right: 0;
}


/*********************************\
            COPYRIGHT
\*********************************/
body #Footer .copyright a:hover {
    text-decoration: none;
}

body #Footer .footer_copy {
    border: 0;
    background: black;
    color: white;
}

body #Footer .footer_copy a {
    color: white;
}

body #Footer .footer_copy a:hover {
    color: var(--primary);
}

body #Footer .footer_copy .one {
    --mfn-column-gap-bottom: 15px;
    padding-top: 15px;
    margin-bottom: 0;
}

body #Footer .footer_copy .mcb-column-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body #Footer .menu {
    list-style: none;
    padding: 0;
    background: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

body #Footer .copyright .menu {
    gap: 0 10px;
    flex-direction: row;
}

body #Footer .menu li:after {
    content: none;
}

body #Footer .menu a {
    padding: 5px 0;
}

body #Footer .footer_copy .copyright {
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: .02em;
    float: none;
    text-align: left;
}

body #Footer .footer_copy .copyText {
    margin: 0 0 5px;
}

body #Footer .footer_copy .social {
    line-height: 0;
}

body #Footer .footer_copy .social li a {
    font-size: 22px;
    line-height: 1;
}

@media only screen and (max-width: 959px) {
    body .animate {
        animation-delay: 0ms !important;
    }

    body #Footer .footer_copy .mcb-column-inner {
        flex-direction: column;
    }

    body #Footer .copyright .menu {
        justify-content: center;
    }

    body #Footer .footer_copy .copyright {
        text-align: center;
    }

    body #Footer .footer_copy .social {
        margin-top: 15px;
    }
}


/*********************************\
            KIT DIGITAL
\*********************************/
body #Footer .footer_action {
    background: none;
}

body #Footer .footer_action .one {
    margin-bottom: 0;
}

body #Footer .footer_action .financiacion {
    display: grid;
    grid-template-columns: 1fr 1fr 5fr;
    gap: 20px;
    text-align: left;
    align-items: center;
}

body #Footer .footer_action .financiacion>div {
    line-height: 0;
}

body #Footer .footer_action .financiacion>div img {
    max-height: 50px;
    width: auto;
}

body #Footer .footer_action .financiacion>div p {
    font-size: 13px;
    line-height: 15px;
    margin-bottom: 0;
}

@media only screen and (max-width: 959px) {
    body #Footer .footer_action .financiacion {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 5px;
    }

    body #Footer .footer_action .financiacion>div:last-child {
        grid-column: 1 / span 2;
    }
}

@media only screen and (max-width: 767px) {
    body #Footer .footer_action .financiacion>div img {
        max-height: unset;
        width: 100%;
    }
}

body #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay p.pojo-a11y-toolbar-title {
    line-height: 1.2;
}

#header-contact-btn {
    .button_icon {
        --size: 2.25rem;
        width: var(--size);
        height: var(--size);
        border-radius: 8px;
        background-color: var(--color-neutral-1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/*********************************\
    PRODUCT SHORTCODES - ACF
\*********************************/

#product-gallery,
#product-menu {
    @media (width >=992px) {
        position: sticky;
        top: 4rem;
    }
}

.product-mechanical-power__title,
.product-working-width__title,
.product-characteristics__title,
.product-flow__title,
.product-excavator-tonnage__title,
.product-material-diameter__title {
    font-size: var(--font-size-p-extralarge);
    line-height: var(--line-height-p-extralarge);
    font-weight: bold;
    color: var(--color-neutral-1);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.product-mechanical-power,
.product-working-width,
.product-flow,
.product-excavator-tonnage,
.product-material-diameter,
.product-characteristics {
    margin-bottom: 1.5rem;
}

/* --- Component: Product Mechanical Power --- */
.product-mechanical-power__value {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    color: var(--color-neutral-2);
    margin: 0;
}

@media (width >=992px) {
    .product-mechanical-power {
        margin-bottom: 2rem;
    }

    .product-mechanical-power__value {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

/* --- Component: Product Working Width --- */
.product-working-width {
    margin-bottom: 1.5rem;
}

.product-working-width__value {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    color: var(--color-neutral-2);
    margin: 0;
}

@media (width >=992px) {
    .product-working-width__value {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

/* --- Component: Product Flow --- */
.product-flow__value {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    color: var(--color-neutral-2);
    margin: 0;
}

@media (width >=992px) {
    .product-flow__value {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

/* --- Component: Product Excavator Tonnage --- */
.product-excavator-tonnage__value {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    color: var(--color-neutral-2);
    margin: 0;
}

@media (width >=992px) {
    .product-excavator-tonnage__value {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

/* --- Component: Product Material Diameter --- */
.product-material-diameter__value {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    color: var(--color-neutral-2);
    margin: 0;
}

@media (width >=992px) {
    .product-material-diameter__value {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

/* --- Component: Product Characteristics --- */
.product-characteristics__content {
    p {
        font-size: var(--font-size-p-medium);
        line-height: var(--line-paragraph);
        color: var(--color-neutral-2);
        margin: 0 0 1rem;

        &:last-child {
            margin-bottom: 0;
        }
    }

    ul,
    ol {
        margin-left: 1.5rem;
        margin-bottom: 1rem;

        li {
            margin-bottom: 0.5rem;
            font-size: var(--font-size-p-medium);
            line-height: var(--line-height-p-medium);
            color: var(--color-neutral-2);
            margin: 0;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

/* --- Component: Product Spec Sheet --- */
.product-spec-sheet__link {
    --pd: 12px 20px;
    padding: var(--pd);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    color: var(--color-neutral-1);
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: var(--color-neutral-1);
    color: #fff;
    border: 1px solid var(--color-neutral-1);
    border-radius: var(--border-radius-small);
    font-weight: bold;
    width: 100%;

    &::after {
        background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.2173 13.3335H5.33301V12.2668H18.2173L12.0391 6.0887L12.7997 5.3335L20.2663 12.8002L12.7997 20.2668L12.0391 19.5116L18.2173 13.3335Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    }

    &:hover {
        background-color: var(--color-primary);
        color: var(--color-neutral-1);
        border-color: var(--color-primary);
        text-decoration: none;

        &::after {
            background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.2173 13.3335H5.33301V12.2668H18.2173L12.0391 6.0887L12.7997 5.3335L20.2663 12.8002L12.7997 20.2668L12.0391 19.5116L18.2173 13.3335Z' fill='%231D242C'/%3E%3C/svg%3E");
        }
    }
}

@media (width >=992px) {
    .product-spec-sheet__link {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
        gap: 0.75rem;
    }
}

/* --- Component: Product Videos Section --- */
.product-videos-section {
    --py: 2rem;
    padding-top: var(--py);
    padding-bottom: var(--py);
    background-color: var(--color-primary);

    @media (width >=992px) {
        --py: 3rem;
    }

    @media (width >=1200px) {
        --py: 4rem;
    }

    @media (width >=1400px) {
        --py: 6rem;
    }
}

.product-videos-section__title {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: bold;
    color: var(--color-neutral-1);
    margin: 0 0 2rem;
    text-align: left;
}

.product-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0;
}

.product-videos-grid__column {
    margin-bottom: 0;
}

.product-videos-grid__item {
    display: flex;
    flex-direction: column;
}

.product-videos-grid__iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--color-neutral-4);
    margin-bottom: 1rem;
}

.product-videos-grid__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.product-videos-grid__title {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    font-weight: bold;
    color: var(--color-neutral-1);
    margin: 0;
    text-align: left;
}

@media (width >=768px) {
    .product-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (width >=992px) {
    .product-videos-section__title {
        margin-bottom: 3rem;
    }

    .product-videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .product-videos-grid__title {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

/* --- Component: Product Name Subcategory --- */

.product-name-subcategory__separator {
    margin: 0 0.25rem;
    color: var(--color-neutral-1);
}

.product-name-subcategory__subcategory {
    color: var(--color-neutral-1);
}

@media (width >=992px) {
    .product-name-subcategory__separator {
        margin: 0 0.5rem;
    }
}

/* --- Component: Product Category Menu --- */
#product-page-menu {
    @media (width >=992px) {
        .product-category-menu {
            gap: 1rem;
            display: flex;
            flex-direction: column;
        }

        .product-category-menu__item--parent {
            .product-category-menu__link {
                font-size: var(--font-size-p-extralarge);
                line-height: var(--line-height-p-extralarge);
            }
        }

        .product-category-menu__link {
            font-size: var(--font-size-p-medium);
            line-height: var(--line-height-p-medium);
            height: 100%;
            border: none;
            padding: .25rem 0;
            text-align: left;
            justify-content: flex-start;
            transition: all .3s ease-in-out;

            &:hover {
                color: var(--color-primary);
                transform: translateX(.5rem);
            }
        }
    }
}

.product-category-menu {
    --gap: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--gap);
}

.product-category-menu__item {
    margin: 0;

    &:first-child {
        grid-column: span 2;
    }

    @media (width >=992px) {
        height: 100%;
    }
}

.product-category-menu__link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-p-large);
    line-height: var(--line-height-p-large);
    color: var(--color-neutral-1);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    border-radius: var(--border-radius-small);
    padding: 0.5rem 1rem;
    background-color: var(--color-neutral-5);
    border: 1px solid var(--color-neutral-4);
    transition: background-color 0.3s ease, border-color 0.3s ease;

    &.product-category-menu__link--active {
        color: var(--color-primary) !important;
        border-color: var(--color-primary) !important;
        font-weight: bold !important;
    }
}

.product-category-menu__item--parent .product-category-menu__link {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-category-menu__item--child .product-category-menu__link {
    font-weight: normal;
    color: var(--color-neutral-2);
    font-size: var(--font-size-p-small);
    line-height: var(--line-height-p-small);

    @media (width >=992px) {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

.product-category-menu__link:hover {
    text-decoration: none;
    border-color: var(--color-neutral-1);
}


@media (width >=992px) {
    .product-category-menu {
        gap: 1rem;
        display: flex;
        flex-wrap: nowrap;
    }

    .product-category-menu__link {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
        height: 100%;
    }
}

/* --- Component: Product Card --- */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-neutral-5);
    border: 1px solid var(--color-neutral-4);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-neutral-4);
}

.product-card__name {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
    font-weight: bold;
    color: var(--color-neutral-1);
    margin: 0;
    flex: 1;
}

.product-card__category {
    font-size: var(--font-size-p-small);
    line-height: var(--line-height-p-small);
    color: var(--color-neutral-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1rem;
    text-align: right;
}

.product-card__image-wrapper {
    --height: 200px;
    position: relative;
    width: 100%;
    background-color: var(--color-neutral-5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--height);
}

.product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.product-card__image-link:hover {
    opacity: 0.9;
}

.product-card__image {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

.product-card__specs {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-neutral-4);
    border-bottom: 1px solid var(--color-neutral-4);
}

.product-card__spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-neutral-4);
}

.product-card__spec-item:last-child {
    border-bottom: none;
}

.product-card__spec-label {
    font-size: var(--font-size-p-small);
    line-height: var(--line-height-p-small);
    color: var(--color-neutral-2);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-card__spec-value {
    font-size: var(--font-size-p-medium);
    line-height: var(--line-height-p-medium);
    font-weight: bold;
    color: var(--color-neutral-1);
    text-align: right;
}

.product-card__footer {
    padding: 1.25rem;
    margin-top: auto;
}

.product-card__button {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-p-small);
    line-height: var(--line-height-p-small);
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-neutral-1);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.product-card__button:hover {
    background-color: var(--color-neutral-1);
    color: var(--color-neutral-5);
    border-color: var(--color-neutral-1);
    text-decoration: none;
}

@media (width >=992px) {
    .product-card__header {
        padding: 1.5rem 1.75rem;
    }

    .product-card__name {
        font-size: var(--font-size-h4);
        line-height: var(--line-height-h4);
    }

    .product-card__image-wrapper {
        --height: 280px;
    }

    .product-card__spec-item {
        padding: 1rem 1.75rem;
    }

    .product-card__spec-label {
        font-size: var(--font-size-p-medium);
        line-height: var(--line-height-p-medium);
    }

    .product-card__spec-value {
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }

    .product-card__footer {
        padding: 1.75rem;
    }

    .product-card__button {
        padding: 1rem 2rem;
        font-size: var(--font-size-p-medium);
        line-height: var(--line-height-p-medium);
    }
}

.product-category-grid {
    --gap: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    margin: 0;
}

.product-category-grid__total {
    --grid-column: span 1;
    font-size: var(--font-size-p-large);
    line-height: var(--line-height-p-large);
    color: var(--color-neutral-2);
    grid-column: var(--grid-column);
    margin-bottom: 0;
}

@media (width >=768px) {
    .product-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        --gap: 1.5rem;
    }

    .product-category-grid__total {
        --grid-column: span 2;
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

@media (width >=1200px) {
    .product-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        --gap: 2rem;
    }

    .product-category-grid__total {
        --grid-column: span 3;
        font-size: var(--font-size-p-large);
        line-height: var(--line-height-p-large);
    }
}

@media (width >=1400px) {
    .product-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-category-grid__total {
        --grid-column: span 4;
        font-size: var(--font-size-p-extralarge);
        line-height: var(--line-height-p-extralarge);
    }
}

.woocommerce-product-gallery {
    .flex-viewport {
        --mb: 1rem;
        margin-bottom: var(--mb);
        height: auto !important;
    }

    img {
        aspect-ratio: 16/13;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid var(--color-neutral-4);
    }

    .flex-control-thumbs {
        display: flex;
        gap: .75rem;
    }
}

.home-categories-wrap {
    .mfn-queryloop-item-wrapper {
        &:nth-child(even) {
            --mt: 0;
            margin-top: var(--mt);

            @media (width >=992px) {
                --mt: 4rem;
            }
        }
    }
}

/* --- Component: Homepage Product Carousel --- */
.homepage-product-carousel {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.homepage-product-carousel__navigation {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.homepage-product-carousel__arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-neutral-1);
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
        opacity: 0.7;
    }

    &:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    svg {
        width: 24px;
        height: 24px;
    }
}

.homepage-product-carousel__dots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.homepage-product-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-neutral-3);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;

    &:hover {
        background: var(--color-neutral-2);
    }

    &--active {
        background: var(--color-primary);
        transform: scale(1.2);
    }
}

.homepage-product-carousel__wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.homepage-product-carousel__track {
    position: relative;
    width: 100%;
}

.homepage-product-carousel__slides {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.homepage-product-carousel__slide {
    flex-shrink: 0;
    width: 100%;
}

.homepage-product-carousel__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    min-height: 400px;
}

.homepage-product-carousel__text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homepage-product-carousel__label {
    font-size: var(--font-size-subheading);
    line-height: var(--line-height-subheading);
    color: var(--color-neutral-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.homepage-product-carousel__heading {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: bold;
    color: var(--color-neutral-1);
    margin: 0;
}

.homepage-product-carousel__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-neutral-1);
    border-radius: var(--border-radius-small);
    background: transparent;
    color: var(--color-neutral-1);
    text-decoration: none;
    font-size: var(--font-size-a-btn);
    line-height: var(--line-height-a-btn);
    transition: background-color 0.2s ease, color 0.2s ease;
    width: fit-content;

    &:hover {
        background: var(--color-neutral-1);
        color: var(--color-neutral-5);
    }

    svg {
        width: 16px;
        height: 16px;
    }
}

.homepage-product-carousel__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
}

.homepage-product-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homepage-product-carousel__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 2;

    &:hover {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }

    svg {
        width: 64px;
        height: 64px;
        display: block;
    }
}

/* Modal */
.homepage-product-carousel__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.homepage-product-carousel__modal--active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.homepage-product-carousel__modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.homepage-product-carousel__modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    z-index: 1;
}

.homepage-product-carousel__modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-neutral-5);
    z-index: 2;
    transition: opacity 0.2s ease;

    &:hover {
        opacity: 0.7;
    }

    svg {
        width: 24px;
        height: 24px;
    }
}

.homepage-product-carousel__modal-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.homepage-product-carousel__modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.homepage-product-carousel-modal-open {
    overflow: hidden;
}

/* Desktop styles */
@media (width >=992px) {
    .homepage-product-carousel__navigation {
        left: 1rem;
    }

    .homepage-product-carousel__content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        padding: 3rem 4rem 3rem 6rem;
        min-height: 600px;
    }

    .homepage-product-carousel__text {
        flex: 0 0 40%;
        max-width: 500px;
    }

    .homepage-product-carousel__media {
        flex: 1;
        aspect-ratio: 16 / 10;
    }

    .homepage-product-carousel__arrow {
        svg {
            width: 32px;
            height: 32px;
        }
    }

    .homepage-product-carousel__play {
        svg {
            width: 80px;
            height: 80px;
        }
    }
}

/* Glide.js overrides */
.glide__track {
    overflow: visible;
}

.glide__slides {
    align-items: stretch;
}

.glide__slide {
    height: auto;
}