﻿
/* ===== Sol Lasvia product detail ===== */
.sl-product {
    --sl-orange: #E8561A;
    --sl-green: #2F4A1D;
    --sl-dark: #1A1A1A;
    --sl-muted: #6B7280;
    --sl-line: #EAEAEA;
    --sl-soft: #FAFAF8;
    background: #fff;
    color: var(--sl-dark);
    padding: 26px 0 70px;
    font-family: 'Plus Jakarta Sans',-apple-system,Segoe UI,Roboto,sans-serif;
}

.sl-container {
    width: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
}

/* breadcrumb */
.sl-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 14px;
}

    .sl-breadcrumb ul {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin: 0;
        padding: 0;
    }

    .sl-breadcrumb li {
        color: var(--sl-muted);
    }

        .sl-breadcrumb li:not(:last-child)::after {
            content: "/";
            margin-left: 9px;
            color: #D1D5DB;
        }

    .sl-breadcrumb a {
        color: var(--sl-muted);
        text-decoration: none;
    }

        .sl-breadcrumb a:hover {
            color: var(--sl-orange);
        }

    .sl-breadcrumb li.active {
        color: var(--sl-dark);
        font-weight: 600;
    }

.sl-back-link {
    color: var(--sl-muted) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .sl-back-link:hover {
        color: var(--sl-orange) !important;
    }

/* main grid */
.sl-product-main {
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
    gap: 56px;
    align-items: start;
}

/* gallery */
.sl-gallery {
    display: grid;
    grid-template-columns: 90px minmax(0,1fr);
    gap: 18px;
    align-items: start;
}

.sl-thumbs-wrap {
    min-width: 0;
}

.sl-thumbs-swiper {
    height: 560px;
}

    .sl-thumbs-swiper .swiper-slide {
        height: 78px;
        border: 2px solid var(--sl-line);
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        background: #f7f7f4;
        opacity: .7;
        transition: .2s;
    }

        .sl-thumbs-swiper .swiper-slide:hover {
            opacity: .95;
        }

        .sl-thumbs-swiper .swiper-slide.swiper-slide-thumb-active {
            border-color: var(--sl-green);
            opacity: 1;
        }

        .sl-thumbs-swiper .swiper-slide a {
            display: block;
            width: 100%;
            height: 100%;
        }

        .sl-thumbs-swiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

.sl-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #F2F2EE;
}

.sl-main-swiper {
    width: 100%;
    aspect-ratio: 1/1;
}

    .sl-main-swiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F2F2EE;
    }

        .sl-main-swiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .sl-main-swiper .swiper-button-prev, .sl-main-swiper .swiper-button-next {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 3px 12px rgba(0,0,0,.12);
        color: var(--sl-dark);
    }

        .sl-main-swiper .swiper-button-prev:after, .sl-main-swiper .swiper-button-next:after {
            font-size: 17px;
            font-weight: 700;
        }

.sl-wishlist {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    color: var(--sl-orange);
    font-size: 17px;
    cursor: pointer;
}

    .sl-wishlist.active i::before {
        content: "\f004";
    }

.sl-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: #fff;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.sl-zoom-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    color: var(--sl-dark);
}

/* lightbox */
#slLightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.88);
    display: none;
    align-items: center;
    justify-content: center;
}

    #slLightbox.open {
        display: flex;
    }

    #slLightbox img {
        max-width: 92vw;
        max-height: 88vh;
        object-fit: contain;
        border-radius: 8px;
    }

    #slLightbox .sl-lb-close {
        position: absolute;
        top: 24px;
        right: 30px;
        background: none;
        border: none;
        color: #fff;
        font-size: 34px;
        cursor: pointer;
        line-height: 1;
    }

/* info */
.sl-badges-top {
    margin-bottom: 14px;
}

.sl-best-seller {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EAF3E0;
    color: #4A7A2C;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 6px 13px;
    border-radius: 20px;
}

.sl-title {
    font-family: 'Playfair Display',Georgia,serif;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--sl-dark);
    letter-spacing: -.5px;
}

.sl-subtitle {
    color: var(--sl-orange);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 14px;
}

.sl-lead {
    color: var(--sl-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 560px;
}

.sl-rating-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    margin-bottom: 24px;
}

    .sl-rating-row strong {
        color: var(--sl-dark);
    }

.sl-stars {
    color: var(--sl-orange);
    letter-spacing: 1px;
}

    .sl-stars .fa-star-o {
        color: #E2E2DA;
    }

.sl-muted {
    color: var(--sl-muted);
}

.sl-sep {
    color: #D5D5CD;
}

.sl-features {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0;
    padding: 18px 0;
    border-top: 1px solid var(--sl-line);
    border-bottom: 1px solid var(--sl-line);
    margin-bottom: 26px;
}

.sl-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    padding: 0 16px;
}

    .sl-feature + .sl-feature {
        border-left: 1px solid var(--sl-line);
    }

    .sl-feature:first-child {
        padding-left: 0;
    }

    .sl-feature > i {
        color: var(--sl-green);
        font-size: 18px;
        width: 22px;
        text-align: center;
    }

    .sl-feature b {
        display: block;
        font-size: 13px;
        color: var(--sl-dark);
        font-weight: 700;
    }

    .sl-feature span {
        color: var(--sl-muted);
        font-size: 11px;
    }

.sl-buy-box {
    background: var(--sl-soft);
    border: 1px solid var(--sl-line);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 20px;
}

.sl-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.sl-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--sl-orange);
    line-height: 1;
}

.sl-unit {
    font-size: 16px;
    color: var(--sl-muted);
    font-weight: 500;
}

.sl-old-price {
    color: #A7AFA0;
    font-size: 17px;
}

.sl-save-badge {
    background: #FCE3D5;
    color: var(--sl-orange);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.sl-min-order {
    margin-left: auto;
    color: var(--sl-muted);
    font-size: 13px;
}

.sl-option-group {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: start;
    gap: 12px;
    margin-bottom: 18px;
}

.sl-option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-dark);
    padding-top: 9px;
}

    .sl-option-label .selected-value {
        display: none;
    }

.sl-option-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

    .sl-option-list li {
        margin: 0;
    }

    .sl-option-list input[type=radio] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.sl-pill {
    display: inline-block;
    min-width: 62px;
    text-align: center;
    padding: 9px 16px;
    border: 1.5px solid var(--sl-line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--sl-dark);
    margin: 0;
    transition: .15s;
}

    .sl-pill:hover {
        border-color: #C7CBC0;
    }

    .sl-pill.sl-color {
        min-width: 30px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        padding: 0;
    }

.sl-option-list input[type=radio]:checked + .sl-pill {
    border-color: var(--sl-dark);
    font-weight: 700;
}

    .sl-option-list input[type=radio]:checked + .sl-pill.sl-color {
        box-shadow: 0 0 0 2px var(--sl-dark);
    }

.sl-qty-row {
    display: grid;
    grid-template-columns: 90px auto auto;
    align-items: center;
    gap: 12px;
    margin: 6px 0 16px;
}

.sl-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-dark);
    margin: 0;
}

.sl-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--sl-line);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

    .sl-qty-control button {
        border: none;
        background: #fff;
        width: 42px;
        height: 42px;
        cursor: pointer;
        color: var(--sl-dark);
        font-size: 13px;
    }

        .sl-qty-control button:hover {
            background: #F1F1EC;
        }

    .sl-qty-control .quantity-field {
        width: 58px;
        height: 42px;
        border: none;
        text-align: center;
        font-weight: 700;
        font-size: 15px;
        background: #fff;
        color: var(--sl-dark);
    }

.sl-qty-unit {
    color: var(--sl-muted);
    font-weight: 500;
}

.sl-note {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--sl-line);
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    font-family: inherit;
}

    .sl-note:focus {
        outline: none;
        border-color: var(--sl-green);
    }

.sl-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 18px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: .15s;
    text-decoration: none;
    font-family: inherit;
}

.sl-btn-primary {
    background: var(--sl-green);
    color: #fff;
}

    .sl-btn-primary:hover {
        background: #26400f;
        color: #fff;
    }

.sl-btn-outline {
    background: #fff;
    border-color: #D6D6D0;
    color: var(--sl-dark);
}

    .sl-btn-outline:hover {
        border-color: var(--sl-green);
        color: var(--sl-green);
    }

.sl-btn-sm {
    padding: 11px 20px;
    font-size: 14px;
}

.sl-tags {
    font-size: 13px;
    color: var(--sl-muted);
}

    .sl-tags a {
        display: inline-block;
        background: #F2F2EE;
        color: #4A7A2C;
        padding: 4px 11px;
        border-radius: 14px;
        margin: 0 4px 4px 0;
        text-decoration: none;
    }

/* lower section */
.sl-lower {
    display: grid;
    grid-template-columns: minmax(0,1fr) 420px;
    gap: 30px;
    margin-top: 56px;
    align-items: start;
}

.sl-tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid var(--sl-line);
    padding: 0;
    margin: 0 0 26px;
}

    .sl-tabs li a {
        display: block;
        padding: 0 0 14px;
        color: var(--sl-muted);
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
    }

        .sl-tabs li.active a, .sl-tabs li a:hover {
            color: var(--sl-green);
            border-color: var(--sl-green);
        }
/* description tab: content + CTA cạnh nhau */
.sl-desc-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 40px;
    align-items: start;
}

.sl-tab-content {
    font-size: 15px;
    line-height: 1.75;
    color: #3F4A35;
    min-height: 120px;
}

    .sl-tab-content img {
        max-width: 100%;
        height: auto;
    }

    .sl-tab-content .sl-pane {
        display: none;
    }

        .sl-tab-content .sl-pane.is-active {
            display: block;
            animation: slFade .2s ease;
        }

@@keyframes slFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sl-tab-content p {
    margin: 0 0 14px;
}

.sl-tab-content ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

    .sl-tab-content ul li {
        position: relative;
        padding: 8px 0 8px 30px;
        color: #3F4A35;
        font-size: 15px;
    }

        .sl-tab-content ul li::before {
            content: "\f05d";
            font-family: 'FontAwesome';
            position: absolute;
            left: 0;
            top: 8px;
            color: #86A06B;
            font-size: 16px;
            line-height: 1.4;
        }

.sl-tab-content ol {
    padding-left: 20px;
    margin: 14px 0 0;
}

.sl-cta-box {
    background: #F4F6EF;
    border-radius: 14px;
    padding: 26px;
}

    .sl-cta-box h4 {
        font-family: 'Playfair Display',Georgia,serif;
        margin: 0 0 8px;
        font-size: 21px;
        font-weight: 700;
        color: var(--sl-dark);
    }

    .sl-cta-box p {
        margin: 0 0 20px;
        color: var(--sl-muted);
        font-size: 14px;
        line-height: 1.6;
    }

    .sl-cta-box .sl-btn {
        width: auto;
    }

.sl-info-card {
    border: 1px solid var(--sl-line);
    border-radius: 14px;
    padding: 6px 22px;
}

.sl-info-row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #F2F2EC;
    font-size: 14px;
}

    .sl-info-row:last-child {
        border-bottom: none;
    }

.sl-info-label {
    color: var(--sl-dark);
    font-weight: 700;
}

.sl-info-value {
    color: var(--sl-muted);
}

.sl-cert {
    padding: 16px 0 8px;
    border-top: 1px solid #F2F2EC;
    margin-top: 4px;
}

.sl-cert-label {
    font-weight: 700;
    color: var(--sl-dark);
    font-size: 14px;
    margin-bottom: 12px;
}

.sl-cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sl-cert-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1.5px solid #D8D8D2;
    color: #8A8F86;
    background: #fff;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    box-sizing: border-box;
    transition: .15s;
}

    .sl-cert-badge:hover {
        border-color: var(--sl-green);
        color: var(--sl-green);
    }

.sl-social {
    margin-top: 20px;
}

/* related (slider) */
.sl-related {
    margin-top: 60px;
}

.sl-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

    .sl-related-head h2 {
        font-family: 'Playfair Display',Georgia,serif;
        font-size: 28px;
        font-weight: 800;
        color: var(--sl-dark);
        margin: 0;
    }

.sl-related-nav {
    display: flex;
    gap: 10px;
}

.sl-rel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--sl-line);
    background: #fff;
    color: var(--sl-dark);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
}

    .sl-rel-btn:hover {
        border-color: var(--sl-green);
        color: var(--sl-green);
    }

    .sl-rel-btn.swiper-button-disabled {
        opacity: .4;
        cursor: default;
    }

.sl-related-swiper {
    overflow: hidden;
}

.sl-related-item {
    border: 1px solid var(--sl-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: .2s;
    height: auto;
}

    .sl-related-item:hover {
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
        transform: translateY(-3px);
    }

.sl-related-img {
    position: relative;
    display: block;
}

    .sl-related-img img {
        width: 100%;
        height: 230px;
        object-fit: contain;
        background: #fff;
        display: block;
        padding: 14px;
        box-sizing: border-box;
    }

.sl-related-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E03131;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 2;
}

.sl-related-body {
    padding: 14px 16px 18px;
}

.sl-related-name {
    display: block;
    color: var(--sl-dark);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    margin-bottom: 10px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .sl-related-name:hover {
        color: var(--sl-orange);
    }

.sl-related-price .price {
    color: var(--sl-dark);
    font-weight: 700;
    font-size: 16px;
}

    .sl-related-price .price.sale {
        color: #E03131;
    }

.sl-related-price del {
    color: #A7AFA0;
    font-size: 13px;
    margin-left: 6px;
    font-weight: 400;
    display: block;
}

/* trust bar */
.sl-trust-bar {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-top: 56px;
    padding: 26px;
    border: 1px solid var(--sl-line);
    border-radius: 14px;
}

.sl-trust {
    display: flex;
    align-items: center;
    gap: 13px;
}

    .sl-trust > i {
        color: var(--sl-green);
        font-size: 23px;
        width: 28px;
        text-align: center;
    }

    .sl-trust b {
        display: block;
        font-size: 14px;
        color: var(--sl-dark);
    }

    .sl-trust span {
        color: var(--sl-muted);
        font-size: 12px;
    }

@@media (max-width:1100px) {
    .sl-features {
        grid-template-columns: repeat(2,1fr);
        gap: 14px 0;
    }

    .sl-feature:nth-child(3) {
        padding-left: 0;
        border-left: none;
    }
}

@@media (max-width:992px) {
    .sl-product-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .sl-lower {
        grid-template-columns: 1fr;
    }

    .sl-desc-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sl-trust-bar {
        grid-template-columns: repeat(2,1fr);
    }

    .sl-related-head h2 {
        font-size: 22px;
    }

    .sl-title {
        font-size: 34px;
    }
}

@@media (max-width:576px) {
    .sl-actions {
        grid-template-columns: 1fr;
    }

    .sl-option-group, .sl-qty-row {
        grid-template-columns: 1fr;
    }

    .sl-gallery {
        grid-template-columns: 70px minmax(0,1fr);
    }
}

.collapse {
    display: none !important;
}

.product-variation {
    display: block;
}

