@media (max-width: 992px) {
    .grid-column-left,
    .grid-column-right {
        width: 100% !important;
    }
}

/* Home Grid Section */
.home-grid-section {
    padding: 60px 0;
}

.home-grid-section .row {
    align-items: start;
}

.grid-column-left {
    border: 2px solid #d4a76a80;
    /* Subtle gold border */
    border-radius: 12px;
    padding: 15px;
    background-color: #fff;
}

@media(min-width:768px){
    .grid-column-left {
        margin-top: 55px;
    }
}

.grid-column-right .product-slider-section,
.grid-column-right .home-product-grid-section {
    padding: 0 !important;
}

.grid-column-right .section-title {
    text-align: center;
    width: 100%;
}

.featured-single-slider {
    padding: 0 !important;
}

.featured-single-slider .section-header {
    border-bottom: none;
    margin-bottom: 25px;
    padding-bottom: 0;
}


.featured-single-slider .product-card {
    flex: 0 0 100%;
}

.featured-single-slider .product-image-wrapper {
    aspect-ratio: 1/1.2;
    /* Taller image for featured product */
}

.featured-single-slider .product-card-title {
    font-size: 1.25rem;
    margin: 15px 0 10px 0;
}

.featured-single-slider .section-title {
    font-size: 1.5rem;
}

/* Right Column Adjustments */
.grid-column-right .section-header {
    justify-content: center;
    flex-direction: column;
    border-bottom: none;
    gap: 10px;
}

.grid-column-right .section-title {
    font-size: 1.75rem;
}

.grid-column-right .product-tabs-nav {
    justify-content: center;
}

.grid-column-right .tab-link.active::after {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
}

.grid-column-right .product-card {
    flex: 0 0 calc(33.333% - 14px);
}

.grid-column-right .products-async-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.grid-column-right .products-async-grid .product-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 0;
}

.grid-column-right .home-grid-load-more-wrap {
    margin-top: 24px;
}

.grid-column-right .home-grid-load-more-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

@media (max-width: 991px) {
    .home-grid-section .row>div:first-child {
        margin-bottom: 50px;
    }

    .grid-column-right .product-card,
    .grid-column-right .products-async-grid .product-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .grid-column-right .product-card,
    .grid-column-right .products-async-grid .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Home Features Section */
.home-features-section {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.home-features-section .section-title {
    margin-bottom: 60px;
    font-size: 2.2rem;
    font-weight: 800;
}

/* Carrusel «felicidad»: escritorio = grid; móvil = slider con transform */
.home-features-carousel-shell {
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.home-features-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.home-features-carousel__track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.feature-item {
    text-align: center;
    padding: 0 25px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .home-features-carousel__viewport {
        overflow: visible;
    }

    .home-features-carousel__track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.5rem;
        transform: none !important;
        width: auto !important;
        transition: none !important;
    }

    .home-features-carousel__track .feature-item {
        width: auto !important;
        flex: initial !important;
        max-width: none !important;
    }
}

@media (max-width: 767.98px) {
    .home-features-carousel-shell {
        padding: 0 44px 8px;
    }

    .home-features-carousel__viewport {
        overflow: hidden;
        border-radius: 8px;
    }

    .home-features-carousel__track {
        width: calc(var(--slides, 3) * 100%);
        transition: transform 0.42s cubic-bezier(0.25, 0.85, 0.35, 1);
        will-change: transform;
        transform: translateX(calc(-1 * var(--index, 0) * 100% / var(--slides, 3)));
    }

    .home-features-carousel__track .feature-item {
        flex: 0 0 calc(100% / var(--slides, 3));
        width: calc(100% / var(--slides, 3));
        min-width: 0;
        padding: 0 12px;
    }

    .home-features-carousel__btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e5e5e5;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #111;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, box-shadow 0.2s;
    }

    .home-features-carousel__btn:hover,
    .home-features-carousel__btn:focus-visible {
        background: #f8f8f8;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .home-features-carousel__btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    .home-features-carousel__prev {
        left: 4px;
    }

    .home-features-carousel__next {
        right: 4px;
    }
}

.feature-icon-box {
    margin-bottom: 25px;
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon-box svg {
    stroke-width: 1.2px;
}

.feature-subtitle {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: none;
    margin-bottom: 15px;
    color: #111;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0 auto;
}

.feature-description p {
    margin-bottom: 0.65em;
}

.feature-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .home-features-section {
        padding: 60px 0;
    }

    .feature-item {
        margin-bottom: 50px;
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }

    .home-features-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}

/* Puntos del slider de features (móvil) */
@media (max-width: 767.98px) {
    .home-features-section .section-title {
        margin-bottom: 28px;
    }

    .home-features-dots {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 1rem;
        padding: 0 12px;
    }

    .home-features-dots button {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: #ccc;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .home-features-dots button.is-active {
        background: #111;
        transform: scale(1.2);
    }
}

/* Media Slider (Instagram) */
.media-slider-section {
    background-color: #fff;
    padding-bottom: 80px;
}

.media-slider-section .media-slider-container {
    gap: 15px;
}

.media-slider-section .media-card {
    flex: 0 0 calc(25% - 12px);
    /* 4 items visible */
    min-width: 200px;
}

.media-slider-section .media-item-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 9/12;
    /* Insta style */
    background-color: #eeeeee;
}

.media-slider-section .media-img,
.media-slider-section .media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-slider-section .slider-nav-btn {
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1200px) {
    .media-slider-section .media-card {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 768px) {
    .media-slider-section .media-card {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media (max-width: 576px) {
    .media-slider-section .media-card {
        flex: 0 0 75%;
    }
}

/* Clic en tarjeta con producto relacionado (modal) */
.media-slider-section .media-card__trigger {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    color: inherit;
    border-radius: 0;
}

.media-slider-section .media-card__trigger:focus-visible {
    outline: 2px solid #d4a373;
    outline-offset: 2px;
}

/* Modal Instagram + producto */
.lsktienda-ig-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.lsktienda-ig-modal[hidden] {
    display: none !important;
}

.lsktienda-ig-modal.is-open {
    display: flex !important;
}

.lsktienda-ig-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.lsktienda-ig-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: min(90vh, 720px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.lsktienda-ig-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    cursor: pointer;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ajuste óptico vertical del glifo × dentro del círculo */
.lsktienda-ig-modal__close-icon {
    display: block;
    line-height: 1;
    transform: translateY(-0.08em);
}

.lsktienda-ig-modal__close:hover {
    background: #fff;
}

.lsktienda-ig-modal__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    min-height: min(90vh, 720px);
}

.lsktienda-ig-modal__media {
    background: #111;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
}

.lsktienda-ig-modal__media-inner {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: clamp(280px, 48vh, 560px);
}

.lsktienda-ig-modal__media-img,
.lsktienda-ig-modal__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lsktienda-ig-modal__product {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px 44px;
    overflow-y: auto;
    background: #fafafa;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.lsktienda-ig-modal__product-inner {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.lsktienda-ig-modal__product-thumb-wrap {
    display: block;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lsktienda-ig-modal__product-thumb-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.lsktienda-ig-modal__product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lsktienda-ig-modal__product-heading {
    margin: 28px 0 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.45;
    max-width: 100%;
}

.lsktienda-ig-modal__product-title {
    color: #111;
    text-decoration: none;
    display: inline;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lsktienda-ig-modal__product-title:hover {
    color: #000;
    border-bottom-color: rgba(0, 0, 0, 0.25);
}

.lsktienda-ig-modal__product-price {
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #111;
}

.lsktienda-ig-modal__product-price .woocommerce-Price-amount,
.lsktienda-ig-modal__product-price .amount {
    font-size: inherit;
    font-weight: inherit;
}

.lsktienda-ig-modal__product-price del {
    font-size: 0.55em;
    font-weight: 600;
    opacity: 0.55;
    margin-right: 0.35em;
}

.lsktienda-ig-modal__product-cta {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1.5px solid #111;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.lsktienda-ig-modal__product-cta:hover {
    background: #111;
    color: #fff;
}

.lsktienda-ig-modal__ig-footer {
    margin-top: 36px;
    padding-top: 28px;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.lsktienda-ig-modal__ig-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #5c5c5c;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lsktienda-ig-modal__ig-link:hover {
    color: #111;
}

.lsktienda-ig-modal__ig-link.is-hidden {
    display: none !important;
}

@media (max-width: 767px) {

    /* Scroll completo en el overlay: primero medio, luego producto al bajar */
    .lsktienda-ig-modal {
        display: block;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .lsktienda-ig-modal.is-open {
        display: block !important;
    }

    .lsktienda-ig-modal__backdrop {
        position: fixed;
        inset: 0;
        z-index: 0;
    }

    .lsktienda-ig-modal__dialog {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: none;
        max-height: none;
        min-height: 0;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        margin: 0;
    }

    .lsktienda-ig-modal__close {
        position: fixed;
        top: max(12px, env(safe-area-inset-top, 12px));
        right: max(12px, env(safe-area-inset-right, 12px));
        z-index: 100060;
        margin: 0;
    }

    .lsktienda-ig-modal__grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .lsktienda-ig-modal__media {
        flex: 0 0 auto;
        order: 0;
        min-height: 0;
    }

    .lsktienda-ig-modal__media-inner {
        min-height: min(52vh, 480px);
        width: 100%;
    }

    .lsktienda-ig-modal__media-img,
    .lsktienda-ig-modal__video {
        max-height: none;
    }

    .lsktienda-ig-modal__product {
        flex: 0 0 auto;
        order: 1;
        overflow: visible;
        justify-content: flex-start;
        padding: 40px 24px max(36px, env(safe-area-inset-bottom, 36px));
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .lsktienda-ig-modal__product-inner {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Home Brands Section */
.home-brands-section {
    padding: 60px 0 80px;
    background-color: #fff;
    text-align: center;
    padding-top: 10px;
}

.brands-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    gap: 80px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 65px;
    width: auto;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    background-color: #0b0a08;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-instagram:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .brands-wrapper {
        gap: 40px;
    }

    .brand-logo {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .brands-wrapper {
        gap: 30px;
    }

    .brand-logo {
        max-height: 40px;
    }
}