/**
 * RajaSkin Catalogue / Shop Page Styling
 */

/* ==========================================================================
   1. Header & Breadcrumb
   ========================================================================== */
.rs-catalogue-page {
    padding: 2rem 0 6rem;
    background: #ffffff;
}

.rs-catalogue-header {
    margin-bottom: 3rem;
}

.rs-catalogue-breadcrumb {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rs-catalogue-breadcrumb a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rs-catalogue-breadcrumb a:hover {
    color: #111111;
}

.rs-catalogue-breadcrumb .sep {
    color: #cccccc;
}

.rs-catalogue-breadcrumb .current {
    color: #222222;
    font-weight: 500;
}

.rs-catalogue-title {
    font-family: var(--font-serif);
    font-size: 3.25rem;
    font-weight: 400;
    color: #111111;
    line-height: 1.15;
    margin: 0 0 0.6rem 0;
    letter-spacing: -0.5px;
}

.rs-catalogue-subtitle {
    font-size: 1.05rem;
    color: #767676;
    margin: 0;
    font-weight: 400;
}

/* ==========================================================================
   2. 2-Column Layout (Sidebar + Grid)
   ========================================================================== */
.rs-catalogue-layout {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
}

/* --- Sidebar --- */
.rs-catalogue-sidebar {
    flex: 0 0 230px;
    position: sticky;
    top: 2rem;
}

.rs-filter-block {
    margin-bottom: 2.25rem;
}

.rs-filter-heading {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: #111111;
    margin: 0 0 1rem 0;
}

.rs-filter-sublabel {
    font-size: 0.8rem;
    color: #888888;
    margin: 0 0 0.85rem 0;
}

.rs-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom Checkbox */
.rs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: #444444;
    transition: color 0.15s ease;
}

.rs-checkbox-label:hover {
    color: #111111;
}

.rs-custom-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.rs-checkbox-custom {
    width: 17px;
    height: 17px;
    border: 1.5px solid #d4d0c7;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.rs-custom-checkbox:checked + .rs-checkbox-custom {
    background: #22c55e;
    border-color: #22c55e;
}

.rs-custom-checkbox:checked + .rs-checkbox-custom::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.rs-checkbox-text {
    line-height: 1.2;
}

/* Price Range Slider */
.rs-price-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rs-price-range {
    width: 100%;
    height: 4px;
    background: #e2ded5;
    border-radius: 2px;
    outline: none;
    accent-color: #111111;
    cursor: pointer;
}

.rs-price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333333;
}

/* ==========================================================================
   3. Product Grid (3 Columns)
   ========================================================================== */
.rs-catalogue-main {
    flex: 1;
    min-width: 0;
}

.rs-catalogue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Product Card */
.rs-cat-prod-card {
    background: #f4f3ee;
    border-radius: 20px;
    padding: 1.15rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.rs-cat-prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.rs-cat-prod-img-box {
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-cat-prod-img-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.rs-cat-prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rs-cat-prod-card:hover .rs-cat-prod-img-box img {
    transform: scale(1.05);
}

/* Wishlist Heart Button */
.rs-cat-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.rs-cat-wishlist-btn:hover {
    background: #ffffff;
    color: #e74c3c;
}

/* Card Bottom Info */
.rs-cat-prod-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.rs-cat-prod-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rs-cat-prod-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rs-cat-prod-name:hover {
    color: #666666;
}

.rs-cat-prod-price {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 500;
}

/* Bag / Add to Cart Button */
.rs-cat-bag-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dfdcd4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rs-cat-bag-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* Pagination */
.rs-shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}

.rs-shop-pagination a,
.rs-shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    color: #222222;
    border: 1px solid #e0ded8;
}

.rs-shop-pagination a:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.rs-shop-pagination .current {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ==========================================================================
   4. Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .rs-catalogue-layout {
        gap: 2rem;
    }

    .rs-catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rs-catalogue-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .rs-catalogue-layout {
        flex-direction: column;
        gap: 2.5rem;
    }

    .rs-catalogue-sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .rs-filter-block {
        margin-bottom: 0;
    }

    .rs-catalogue-title {
        font-size: 2.2rem;
    }

    .rs-catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 520px) {
    .rs-catalogue-sidebar {
        grid-template-columns: 1fr;
    }

    .rs-catalogue-grid {
        grid-template-columns: 1fr;
    }

    .rs-catalogue-title {
        font-size: 1.9rem;
    }
}
