/* shop.css */

/* --- Hero Section --- */
.shop-hero {
    position: relative;
    height: 419px;
    margin-top: 0;
    background: #FBFAF9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 5px solid #ceb4a1 !important;
}

.hero-bg-rect {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #F0E4D5 10%, #CEB4A1 90%);
    z-index: 0;
}

.hero-bg-ellipse {
    position: absolute;
    width: 870px;
    height: 904px;
    right: -200px;
    top: -200px;
    background: linear-gradient(196.22deg, #CEB4A1 8%, #F0E4D5 92%);
    z-index: 1;
    border-radius: 99999px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-container-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1237px;
    text-align: center;
}

.hero-title-shop {
    width: 100%;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #2B2B2B;
    margin-bottom: 8px;
}

.hero-subtitle-shop {
    width: 100%;
    max-width: 716px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #666666;
    margin-top: 8px;
}

/* Products Page Container Styles */
.products-page-container {
    position: relative;
    min-height: 100vh;
    background: #FBFAF9;
}

.products-flower-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .shop-hero {
        height: 300px;
        padding: 40px 20px;
    }

    .hero-bg-ellipse {
        width: 340px;
        height: 360px;
        right: -100px;
        top: -100px;
        opacity: 0.35;
    }

    .hero-title-shop {
        font-size: 36px;
        padding: 0 10px;
    }

    .hero-subtitle-shop {
        font-size: 16px;
        padding: 0 20px;
    }

    .products-page-container {
        padding: 15px !important;
    }

    .products-flower-top-left {
        width: 60px;
        height: 60px;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        height: 250px;
    }

    .hero-title-shop {
        font-size: 28px;
    }

    .hero-subtitle-shop {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 360px) {
    .products-page-container {
        padding: 10px !important;
    }

    .hero-title-shop {
        font-size: 24px;
    }
}

/* ============================================================
   SKINTORIA FILTER SIDEBAR
   ============================================================ */

/* Sidebar card */
.skintoria-filter-sidebar {
    background: #fff;
    border: 1px solid #e8ddd0;
    border-radius: 14px;
    padding: 24px 20px 20px;
    box-shadow: 0 2px 16px rgba(44,44,44,0.06);
}

/* Sidebar header row */
.skintoria-filter-sidebar .filter-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}
.skintoria-filter-sidebar .filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: 0.2px;
}
.skintoria-filter-sidebar .filter-clear-all {
    font-size: 12px;
    color: #a08060;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.skintoria-filter-sidebar .filter-clear-all:hover { color: #2c2c2c; text-decoration: underline; }

/* Each filter group */
.skintoria-filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e8d8;
}
.skintoria-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.skintoria-filter-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: none;
}

/* Radio / checkbox option rows */
.skintoria-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
}
.skintoria-filter-option:last-child { margin-bottom: 0; }
.skintoria-filter-option input[type="radio"],
.skintoria-filter-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #c8b89a;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.skintoria-filter-option input[type="checkbox"] {
    border-radius: 4px;
}
.skintoria-filter-option input[type="radio"]:checked,
.skintoria-filter-option input[type="checkbox"]:checked {
    border-color: #2c2c2c;
    background: #2c2c2c;
}
.skintoria-filter-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
}
.skintoria-filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
}
.skintoria-filter-option label {
    font-size: 13.5px;
    color: #3c3c3c;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.3;
    margin: 0;
}
.skintoria-filter-option:hover label { color: #2c2c2c; }
.skintoria-filter-option input:checked + label { font-weight: 600; color: #2c2c2c; }

/* Price range radio options */
.skintoria-filter-price-options { display: flex; flex-direction: column; gap: 8px; }

/* Sort select */
.skintoria-filter-select {
    width: 100%;
    height: 38px;
    border: 1.5px solid #e0cba8;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    color: #2c2c2c;
    background: #faf8f4;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a08060'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    outline: none;
}
.skintoria-filter-select:focus { border-color: #b89060; box-shadow: 0 0 0 3px rgba(184,144,96,0.12); }

/* Category links */
.skintoria-filter-cat-link {
    display: block;
    font-size: 13.5px;
    color: #3c3c3c;
    padding: 5px 0;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.15s;
    cursor: pointer;
}
.skintoria-filter-cat-link:hover,
.skintoria-filter-cat-link.active { color: #2c2c2c; font-weight: 600; }

/* Scrollable list cap */
.skintoria-filter-scroll {
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e0cba8 transparent;
}
.skintoria-filter-scroll::-webkit-scrollbar { width: 4px; }
.skintoria-filter-scroll::-webkit-scrollbar-thumb { background: #e0cba8; border-radius: 4px; }

/* Apply filters button */
.skintoria-filter-apply-btn {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}
.skintoria-filter-apply-btn:hover { background: #4a3f35; }

/* Price min/max inputs */
.skintoria-filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.skintoria-filter-price-inputs .skintoria-price-input-wrap {
    flex: 1;
}
.skintoria-filter-price-inputs label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #7a6a55;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.skintoria-filter-price-inputs input[type="number"] {
    width: 100%;
    height: 34px;
    border: 1.5px solid #e0cba8;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 13px;
    color: #2c2c2c;
    background: #faf8f4;
    outline: none;
    -moz-appearance: textfield;
}
.skintoria-filter-price-inputs input[type="number"]::-webkit-inner-spin-button,
.skintoria-filter-price-inputs input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.skintoria-filter-price-inputs input[type="number"]:focus { border-color: #b89060; }
.skintoria-filter-price-inputs .price-sep {
    font-size: 13px;
    color: #9c8a70;
    padding-top: 18px;
    flex-shrink: 0;
}
.skintoria-price-go-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: #2c2c2c;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    transition: background 0.15s;
}
.skintoria-price-go-btn:hover { background: #4a3f35; }

/* Price range slider */
#price_range_slider {
    position: relative;
    height: 4px;
    background: #e8ddd0;
    border-radius: 4px;
    margin: 8px 6px 18px;
}
#price_range_slider .slider-range {
    position: absolute;
    height: 100%;
    background: #2c2c2c;
    border-radius: 4px;
}
#price_range_slider .slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #2c2c2c;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.15s;
    z-index: 2;
}
#price_range_slider .slider-thumb:hover { border-color: #a08060; }

/* Category accordion inside sidebar */
.skintoria-cat-accordion .menu--caret-accordion { border: none; }
.skintoria-cat-accordion .card-header {
    background: none;
    border: none;
    padding: 5px 0;
    font-size: 13.5px;
    color: #3c3c3c;
}
.skintoria-cat-accordion .card-header label {
    font-size: 13.5px;
    color: #3c3c3c;
    cursor: pointer;
    transition: color 0.15s;
    margin: 0;
}
.skintoria-cat-accordion .card-header label:hover,
.skintoria-cat-accordion .card-header label.text-primary { color: #2c2c2c !important; font-weight: 600; }
.skintoria-cat-accordion .card-body { padding: 0 0 0 10px !important; }
.skintoria-cat-accordion .menu--caret i { font-size: 10px; color: #9c8a70; }
.skintoria-cat-accordion img { border-radius: 50%; }

/* Brands and Badges list inside sidebar */
.skintoria-filter-group .attribute-list,
.skintoria-filter-group .__brands-cate-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skintoria-filter-group .brand {
    list-style: none;
    margin: 0;
    padding: 0;
}
.skintoria-filter-group .brand li {
    font-size: 13.5px;
    color: #3c3c3c;
    padding: 5px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    transition: color 0.15s;
}
.skintoria-filter-group .brand li:hover,
.skintoria-filter-group .brand li.text-primary { color: #2c2c2c !important; font-weight: 600; }
.skintoria-filter-group .__brands-cate-badge {
    font-size: 11px;
    color: #9c8a70;
    font-weight: 500;
}
/* Hide badge search box on desktop sidebar */
#shop-sidebar .input-group-overlay { display: none; }

/* Override old cz-sidebar styles */
#shop-sidebar { background: #fff; }