/* ========================================
   Collection Showcase — ssc_ prefixed
   ======================================== */

/* ---------- Main Container ---------- */
.ssc_product-main-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

/* ---------- Product Showcase Section ---------- */
.ssc_product-showcase {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 140px;
}

.ssc_product-showcase--featured {
    padding: 0 0 42px 0;
}

.ssc_showcase-container {
    padding: 0;
    max-width: 100%;
}

/* ---------- Product Header ---------- */
.ssc_product-header {
    text-align: center;
    margin: 0 auto 40px;
}

.ssc_product-header h2 {
    font-size: clamp(1.5rem, 1.294rem + 0.784vw, 2rem)!important;
    color: #2D2420!important;
    font-weight: 700!important;
    font-family: "Nanum Myeongjo", serif!important;
    margin-bottom: 6px!important;
}

.ssc_product-header p {
    max-width: 1100px;
    margin: 0 auto 12px!important;
    font-size: clamp(0.875rem, 0.824rem + 0.196vw, 1rem);
    color: #2D2420;
    font-weight: 400;
    line-height: 1.6;
}

.ssc_product-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(0.875rem, 0.824rem + 0.196vw, 1rem);
    color: #2D2420;
    font-weight: 400;
}

/* ---------- Image Grid ---------- */
.ssc_product-image-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}

.ssc_grid-image {
    overflow: hidden;
    /* background-color: #f5f5f5; */
}

.ssc_grid-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ssc_grid-image--full {
    grid-column: 1 / -1;
}

/* Full-width single image variant */
.ssc_product-image-wrapper--full {
    display: block;
}

.ssc_product-image-wrapper--full .ssc_grid-image--full {
}

/* ---------- Product Section (Swiper) ---------- */
.ssc_products-swiper {
    width: 100%;
    overflow: hidden;
}

.ssc_products-swiper .swiper-wrapper {
    display: flex;
}

/* When fewer slides than visible, disable transform so justify-content works */
.ssc_products-swiper .swiper-wrapper[style*="justify-content"] {
    transform: none !important;
}

.ssc_products-swiper .swiper-slide {
    box-sizing: border-box;
}

.ssc_products-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.ssc_products-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.ssc_products-swiper .swiper-pagination-bullet-active {
    background: #2D2420;
    transform: scale(1);
}

/* ---------- Product Card ---------- */
.ssc_product-card {
    text-align: center;
}

.ssc_product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    /* background-color: #f5f5f5; */
}

.ssc_product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Swiper inside product card */
.ssc_card-swiper {
    width: 100%;
    height: 100%;
}

.ssc_card-swiper .swiper-slide {
    overflow: hidden;
}

.ssc_card-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ssc_card-swiper .swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    top: auto !important;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex !important;
    justify-content: center;
}

.ssc_card-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #D9D9D9;
    opacity: 1;
    transition: all 0.3s ease;
}

.ssc_card-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

/* ---------- Product Text ---------- */
.ssc_product-link {
    text-decoration: none;
    color: inherit;
}

.ssc_product-title {
    margin-top: 15px;
    font-size: clamp(1.125rem, 1.074rem + 0.196vw, 1.25rem) !important;
    font-weight: 700 !important;
    color: #2D2420 !important;
    margin-bottom: 0px !important;
}

.ssc_product-price {
    font-size: 0.875rem;
    color: #2D2420;
    margin-top: 5px;
}

.ssc_product-color {
    font-size: 0.875rem;
    font-weight: 400;
    color: #2D2420;
    margin: 4px 0 0;
    padding: 0;
    line-height: 1.4;
}

/* ========================================
   Filter Toolbar + Sidebar — ssc_ prefixed
   ======================================== */

/* ---------- Toolbar ---------- */
.ssc_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 10px;
}

.ssc_product-count {
    font-size: clamp(1rem, 0.897rem + 0.392vw, 1.25rem);
    font-weight: 500;
    color: #2D2420;
}

.ssc_toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ssc_toolbar-btn {
    transition: background 0.2s;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--color-primary) !important;
    cursor: pointer !important;
    padding: 3px 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid !important;
    min-width: 0 !important;
}

/* ---------- Active filter badges ---------- */
.ssc_active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 20px;
}

.ssc_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: #2D2420;
    background: #fff;
    border: 1px solid #e8e4e0;
    border-radius: 0;
    padding: 2px 8px;
    line-height: 5px;
    /* font-family: "Figtree", sans-serif; */
    text-transform: capitalize;
}

.ssc_badge button {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer!important;
    color: #2D2420;
    padding: 0;
}

.ssc_badge button:hover {
    color: #d63638;
}

.ssc_badge-clear-all {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #FF383C;
    cursor: pointer;
    padding: 0;
    font-family: "Figtree", sans-serif;
    text-decoration: underline;
}

/* button#sscShowcaseClearAll {
    background: transparent;
    color: black;
} */

/* ---------- Filter overlay + sidebar ---------- */
.ssc_filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.ssc_filter-overlay--active {
    opacity: 1;
    pointer-events: auto;
}

.ssc_filter-sidebar {
    position: fixed;
    top: 0;
    right: -460px;
    width: 460px;
    max-width: 100%;
    height: 100vh;
    background: var(--color-bg, #FBFAF7);
    z-index: 9999;
    overflow-y: auto;
    padding: 28px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: "Figtree", sans-serif;
}

.ssc_filter-sidebar--open {
    right: 0;
}

.ssc_filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.ssc_filter-header h2 {
    font-family: "Figtree", sans-serif!important;
    font-size: 1.25rem!important;
    font-weight: 500!important;
    color: #2D2420!important;
    margin: 0!important;
}

.ssc_filter-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #2D2420;
    background: transparent !important;
    padding: 0;
}

/* ---------- Filter sections ---------- */
.ssc_filter-section {
    margin-bottom: 28px;
}

.ssc_filter-section h3 {
    font-size: 0.875rem!important;
    font-weight: 600!important;
    color: #2D2420!important;
    margin: 0 0 14px!important;
}

.ssc_filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ssc_filter-section-header h3 {
    margin: 0;
}

.ssc_price-label {
    font-size: 0.875rem;
    color: #000000;
}

/* ---------- Price slider ---------- */
.ssc_price-slider {
    position: relative;
    height: 6px;
    background: #EDE6DC;
    border-radius: 0;
    margin-bottom: 12px;
    --min-pct: 0%;
    --max-pct: 100%;
}

.ssc_price-slider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--min-pct);
    right: calc(100% - var(--max-pct));
    background: #2D2420;
    pointer-events: none;
}

.ssc_price-slider input[type="range"] {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    height: 13px;
    margin: 0;
    transform: translateY(-50%);
}

.ssc_price-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
    height: 13px;
}

.ssc_price-slider input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
    height: 13px;
}

.ssc_price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border: 3px solid #2D2420;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: all;
    margin-top: 0;
}

.ssc_price-slider input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 3px solid #2D2420;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: all;
}

.ssc_price-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #000;
    margin-top: 4px;
}

/* ---------- Checkbox filters ---------- */
.ssc_filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ssc_filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #2D2420;
    cursor: pointer;
}

.ssc_filter-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0px;
    border: 1px solid #292D32;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ssc_filter-checkbox input[type="checkbox"]:checked {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.ssc_filter-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ssc_filter-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #2D2420;
    outline-offset: 2px;
}

/* ---------- Filter actions ---------- */
.ssc_filter-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ssc_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Figtree", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    width: auto;
    min-width: 140px;
    text-align: center;
}

.ssc_btn-outline, .ssc_btn-outline:hover {
    background: transparent!important;
    border: 1px solid #2D2420!important;
    color: #2D2420!important;
}


.ssc_btn-primary, .ssc_btn-primary:hover {
    background: #2D2420!important;
    border: 1px solid #2D2420!important;
    color: #fff!important;
}


button#sscShowcaseFilterApply:hover,
button#sscShowcaseFilterApply:active,
button#sscShowcaseFilterApply:focus {
    background: #2D2420!important;
    border: 1px solid #2D2420!important;
    color: #fff!important;
}

button#sscShowcaseFilterReset:hover,
button#sscShowcaseFilterReset:active,
button#sscShowcaseFilterReset:focus {
    background: transparent;
    border: 1px solid #2D2420;
    color: #2D2420;
}



@media (max-width: 768px) {
    .ssc_filter-actions .ssc_btn {
        padding: 10px 24px;
    }
}



/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ssc_products-swiper .swiper-pagination {
        display: block;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ssc_filter-sidebar {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 90vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        padding: 15px 16px 27px;
    }

    .ssc_filter-sidebar--open {
        right: 0;
        transform: translateY(0);
    }

    #sscShowcaseFilterReset,
    #sscShowcaseFilterApply {
        width: 50%;
        min-width: unset;
    }

    .ssc_product-header {
        margin: 40px auto 40px;
        padding: 0 15px;
    }

    .ssc_toolbar {
        padding: 12px 20px 0;
        margin-bottom: 10px;
    }

    .ssc_active-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 20px;
    }

    .ssc_products-swiper .swiper-pagination {
        margin-top: 15px;
        display: none;
    }

    .ssc_product-showcase {
        gap: 80px;
    }

    .ssc_product-image {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 600px) {
    .ssc_products-swiper .swiper-pagination {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .ssc_product-main-container {
        gap: 40px;
    }

    .ssc_product-showcase {
        gap: 60px;
        margin-top: 48px;
    }

    .ssc_product-showcase--featured {
        padding: 0 0 20px 0;
    }

    .ssc_product-header {
        margin: 0 auto 24px;
        padding: 0 15px;
    }
}
