/* =================================================================
   Shop the Look
   ================================================================= */

/* --- Main wrapper ----------------------------------------------- */
.stl-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 1024px) {
    .stl-wrapper {
        flex-direction: column;
        gap: 28px;
    }
    .stl-image-panel {
        max-width: 100% !important;
        flex: unset !important;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .stl-wrapper {
        gap: 20px;
    }
}

/* --- Image panel ------------------------------------------------ */
.stl-image-panel {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
}

/* Kitify carousel wrapper inherits full height */
.stl-image-panel .kitify-carousel,
.stl-image-panel .kitify-carousel-inner {
    height: 100%;
}

/* Swiper container */
.stl-image-panel .swiper-container {
    height: 560px;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .stl-image-panel .swiper-container {
        height: 460px;
    }
}

@media (max-width: 767px) {
    .stl-image-panel .swiper-container {
        height: 320px;
        border-radius: 12px;
    }
}

/* Slides */
.stl-image-panel .stl-slide {
    width: 100%;
    height: 100%;
}

.stl-image-panel .stl-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Nav arrows (kitify-arrow) ---------------------------------- */
.stl-image-panel .kitify-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: box-shadow .2s ease;
}

.stl-image-panel .kitify-arrow:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.stl-image-panel .kitify-arrow.prev-arrow {
    left: 14px;
}

.stl-image-panel .kitify-arrow.next-arrow {
    right: 14px;
}

.stl-image-panel .kitify-arrow svg {
    display: block;
    pointer-events: none;
}

/* Swiper pagination dots */
.stl-image-panel .swiper-pagination {
    bottom: 16px;
}

.stl-image-panel .swiper-pagination-bullet {
    background: rgba(255,255,255,.6);
    opacity: 1;
    transition: background .2s, transform .2s;
}

.stl-image-panel .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.25);
}

/* --- Products panel --------------------------------------------- */
.stl-products-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Heading */
.stl-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Product list */
.stl-product-list {
    flex: 1;
}

/* Product item row */
.stl-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #ebebeb;
    cursor: pointer;
    transition: opacity .2s ease;
}

.stl-product-item:first-child {
    border-top: none;
    padding-top: 0;
}

/* Dim non-active items when any item is active */
.stl-product-list:has(.stl-product-item--active) .stl-product-item:not(.stl-product-item--active) {
    opacity: 0.45;
}

.stl-product-item--active {
    opacity: 1 !important;
}

/* --- Thumbnail -------------------------------------------------- */
.stl-product-thumb-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.stl-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background-color: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stl-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Info ------------------------------------------------------- */
.stl-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stl-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.stl-product-name {
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: inherit;
    line-height: 1.4;
    transition: opacity .2s ease;
}

.stl-product-name:hover {
    opacity: .7;
}

.stl-product-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    background-color: #f0f0f0;
    color: #555;
    white-space: nowrap;
    line-height: 1.6;
}

.stl-product-price {
    font-size: 0.9375rem;
    font-weight: 500;
    color: inherit;
}

.stl-product-price .woocommerce-Price-amount {
    color: inherit;
}

.stl-product-price ins {
    text-decoration: none;
}

.stl-product-price del {
    opacity: .55;
    font-size: .85em;
    margin-right: 4px;
}

/* --- Actions ---------------------------------------------------- */
.stl-product-actions {
    flex-shrink: 0;
}

/* Pill + circle button */
.stl-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 5px 5px 18px;
    border-radius: 99px;
    border: none;
    background-color: #111;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
    color: #fff;
    line-height: 1;
}

.stl-btn-text {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

/* Icon circle on the right */
.stl-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color .2s ease, transform .2s ease;
    font-size: 14px;
    color: inherit;
}

.stl-btn-icon i,
.stl-btn-icon svg {
    display: block;
    pointer-events: none;
    width: 1em;
    height: 1em;
}

.stl-add-to-cart:hover .stl-btn-icon {
    transform: translateX(2px);
}

/* --- Mobile (max 767px) ----------------------------------------- */
@media (max-width: 767px) {

    /* Heading */
    .stl-heading {
        font-size: 1.0625rem;
        margin-bottom: 4px;
    }

    /* Product items - tighter rows */
    .stl-product-item {
        gap: 12px;
        padding: 12px 0;
    }

    /* Thumbnail - slightly smaller */
    .stl-product-thumb {
        width: 56px;
        height: 56px;
        border-radius: 6px;
    }

    /* Product name - tighter */
    .stl-product-name {
        font-size: 0.875rem;
    }

    .stl-product-price {
        font-size: 0.875rem;
    }

    /* ATC button - icon only on mobile */
    .stl-btn-text {
        display: none;
    }

    .stl-add-to-cart {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        justify-content: center;
    }

    .stl-btn-icon {
        background-color: transparent;
        width: 100%;
        height: 100%;
    }
}
