/* ================================================================
   SHOP PAGE — page-specific styles
   Only loaded on shop.html. Uses the shared color variables
   (--mg-gold-1, --mg-gold-2, --mg-gold-3, --mg-ivory, --mg-ink, etc.)
   already defined in theme-style.css.
   ================================================================ */

/* ---------- Filter sidebar: fixed page-height, scrolls internally ---------- */
.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;
    transition: color 0.25s ease;
}

.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;
}

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

.shop_keyword_filter .form-control,
.shop_cost_filter {
    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);
}

/* ---------- Product cards ---------- */
#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;
}

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

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

#shop_data .product-item .card-body h6:last-child {
    display: inline-block;
    background: linear-gradient(120deg, var(--mg-gold-3), var(--mg-gold-2));
    color: var(--mg-ink) !important;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

#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);
}

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

#shop_data .product_action_btn i {
    color: var(--mg-gold-2) !important;
}

#shop_data #shop_social_share {
    background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-3));
}

#shop_data #shop_social_share a i {
    color: var(--mg-ink) !important;
}

#shop_data .wishlist_icon {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#shop_data .wishlist_icon:hover,
#shop_data .wishlist_icon.active {
    color: var(--mg-gold-2);
}

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

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

/* ---------- Pagination ---------- */
.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);
}

/* ---------- Filter: collapsible lists (5-6 by default, then "More") ---------- */
.collection_block.collapse_block,
.jewellery_block.collapse_block {
    max-height: 260px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.collection_block.collapse_block::after,
.jewellery_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;
}

/* Expanded: no artificial height cap needed — the OUTER .filter_side_bar
   already scrolls internally (max-height + overflow-y: auto above), so
   this block just grows to its natural height within that scroll area,
   instead of pushing the whole page down. */
.collection_block.expande_block,
.jewellery_block.expande_block {
    max-height: none;
    overflow: visible;
}

.collection_block.expande_block::after,
.jewellery_block.expande_block::after {
    display: none;
}

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

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