/* ================================================================
   CATALOGUE PAGE — page-specific styles
   Only loaded on cateloge.html. Uses the shared color variables
   already defined in theme-style.css.
   ================================================================ */

/* ---------- Filter sidebar (same look as shop page) ---------- */
.filter_side_bar {
    background: linear-gradient(160deg, #fff 0%, rgba(242, 221, 154, 0.20) 100%);
    border: 1px solid rgba(217, 181, 102, 0.35);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(14, 25, 50, 0.08);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

.filter_side_bar::-webkit-scrollbar {
    width: 6px;
}

.filter_side_bar::-webkit-scrollbar-thumb {
    background: var(--mg-gold-2);
    border-radius: 10px;
}

.filter_side_bar h5 {
    color: var(--mg-ink);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.filter_side_bar h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--mg-gold-2), var(--mg-gold-3));
}

.filter_side_bar .border-bottom {
    border-bottom: 1px dashed rgba(217, 181, 102, 0.4) !important;
}

.filter_side_bar .custom-control-label {
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter_side_bar .custom-control-input:checked ~ .custom-control-label {
    color: var(--mg-gold-1);
    font-weight: 600;
}

.filter_side_bar .cat_block_toggle {
    background: linear-gradient(120deg, var(--mg-gold-3), var(--mg-gold-2));
    color: var(--mg-ink);
    border: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter_side_bar .cat_block_toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.35);
}

.filter_toggle_btn {
    background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-1)) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
}

/* Collapsible lists: show ~5-6 by default, "More" reveals rest,
   sidebar itself scrolls (see .filter_side_bar overflow-y above) */
.categorey_block.collapse_block {
    max-height: 260px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.categorey_block.collapse_block::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 90%);
    pointer-events: none;
}

.categorey_block.expande_block {
    max-height: none;
    overflow: visible;
}

.categorey_block.expande_block::after {
    display: none;
}

@media (max-width: 991.98px) {
    .filter_side_bar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* ---------- Search bar ---------- */
.shop_keyword_filter {
    border-radius: 30px !important;
    border: 1.5px solid rgba(14, 25, 50, 0.15) !important;
    overflow: hidden;
}

.shop_keyword_filter .form-control {
    border: none !important;
}

.shop_keyword_filter:focus-within {
    border-color: var(--mg-gold-2) !important;
    box-shadow: 0 0 0 3px rgba(217, 181, 102, 0.2);
}

/* ---------- 3 x 3 Catalogue grid ---------- */
#shop_data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#shop_data .product-item {
    border-radius: 14px !important;
    overflow: hidden;
    border-color: rgba(217, 181, 102, 0.35) !important;
    transition: transform 0.35s cubic-bezier(.22, .9, .32, 1), box-shadow 0.35s ease;
    margin-bottom: 0 !important;
}

#shop_data .product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(212, 175, 55, 0.22);
}

#shop_data .product-item .product-img {
    overflow: hidden;
}

#shop_data .product-item .product-img img {
    transition: transform 0.5s cubic-bezier(.22, .9, .32, 1);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#shop_data .product-item:hover .product-img img {
    transform: scale(1.08);
}

#shop_data .product-item .card-body h6 {
    color: var(--mg-ink);
    font-weight: 600;
}

@media (max-width: 991.98px) {
    #shop_data {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    #shop_data {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    #shop_data .product-item {
        position: relative;
        border-radius: 10px !important;
    }

    #shop_data .product-item .product-img {
        position: relative;
        aspect-ratio: 3 / 4;
    }

    #shop_data .product-item .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: unset;
    }

    #shop_data .product-item .card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-1));
        border: none !important;
        padding: 8px 10px !important;
        text-align: center;
    }

    #shop_data .product-item .card-body h6 {
        color: #fff !important;
        margin: 0 !important;
        font-size: 0.85rem;
    }
}

/* ---------- No Product Found ---------- */
#no_product_found i {
    color: var(--mg-gold-2);
}

#no_product_found h4 {
    color: var(--mg-ink);
    margin-top: 10px;
}

/* ---------- Pagination (same look as shop page) ---------- */
.pagination {
    gap: 6px;
}

.pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid rgba(217, 181, 102, 0.4);
    color: var(--mg-ink);
    font-weight: 600;
    min-width: 42px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-1)) !important;
    border-color: var(--mg-gold-1) !important;
    color: #fff !important;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
}

.pagination .page-link:hover {
    background: rgba(217, 181, 102, 0.15);
}

@media (max-width: 767.98px) {
    .filter_side_bar {
        border-radius: 12px;
        padding: 18px 16px;
    }
}