/* Premium Products Page Styling - BLUE THEME Update */
/* ensure priority override */

/* 1. Global Section Background */
.product-listing {
    background-color: #fcfcfc !important;
    background-image: url('images/bg/paper bg .png') !important;
    background-repeat: repeat !important;
    background-size: 500px auto !important;
    background-blend-mode: multiply !important;
    padding-top: 80px !important;
}

/* 2. Container Adjustment */
.product-listing .container-fluid {
    padding-left: 0% !important;
    padding-right: 0% !important;
    max-width: 1600px !important;
}

/* Sidebar Styling Refined */
.product-sidebar {
    padding-right: 40px !important;
    border-right: 1px dashed #e0e0e0;
    height: 100%;
}

@media(max-width: 991px) {
    .product-sidebar {
        border-right: none;
        padding-right: 0 !important;
        margin-bottom: 50px;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px !important;
    border-bottom: 2px solid #4B3B87;
    /* LOGO BLUE */
    padding-bottom: 10px;
}

.sidebar-title {
    font-family: 'Cinzel', serif !important;
    color: #4B3B87 !important;
    /* LOGO BLUE */
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0;
}

.clear-all {
    color: #4B3B87 !important;
    /* LOGO BLUE */
    font-family: 'Roboto', sans-serif;
    font-size: 14px !important;
    text-transform: uppercase;
    font-weight: 600 !important;
    text-decoration: none;
    opacity: 0.8;
}

.clear-all:hover {
    color: #e8983b !important;
    /* Orange accent on hover */
    opacity: 1;
}

.widget-title {
    font-family: 'Cinzel', serif !important;
    color: #4B3B87 !important;
    /* LOGO BLUE */
    font-size: 18px !important;
    margin-bottom: 20px !important;
    display: block;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(57, 50, 127, 0.2);
    padding-bottom: 5px;
}

.filter-group {
    margin-bottom: 45px !important;
}

/* 4. Radio Buttons - Hidden as requested */
.custom-radio input {
    display: none !important;
}

.checkmark {
    display: none !important;
}

.custom-radio {
    display: block !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    color: #444 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 5px;
}

.custom-radio:hover {
    color: #4B3B87 !important;
    padding-left: 20px !important;
    background: rgba(57, 50, 127, 0.05);
}

.custom-radio::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 60%;
    background: #e8983b;
    transition: transform 0.3s ease;
    transform-origin: left;
    border-radius: 0 4px 4px 0;
}

.custom-radio:hover::before {
    transform: translateY(-50%) scaleX(1);
}

/* indicate active state with color and background */
.custom-radio:has(input:checked) {
    color: #4B3B87 !important;
    font-weight: 700 !important;
    background: rgba(57, 50, 127, 0.08);
    padding-left: 20px !important;
}

.custom-radio:has(input:checked)::before {
    transform: translateY(-50%) scaleX(1);
    background: #4B3B87;
}

/* 5. Top Bar */
.product-top-bar {
    margin-bottom: 30px !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px !important;
}

.results-count {
    color: #4B3B87 !important;
    /* LOGO BLUE */
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.search-mini input {
    border: 1px solid #e0e0e0 !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s;
}

.search-mini input:focus {
    border-color: #4B3B87 !important;
    box-shadow: 0 4px 20px rgba(57, 50, 127, 0.15) !important;
}

/* 6. Product Cards - Blue Premium Scaling */
.tnpl-product-card {
    background: #fff;
    border: 1.2px solid #f7941d !important;
    /* LOGO BLUE */
    border-radius: 18px !important;
    padding: 35px 20px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.tnpl-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(247, 148, 29, 0.2);
    border-color: #e8983b !important;
    /* Orange highlight on card hover */
}

.card-img-area {
    height: 200px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-area a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-area img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.4s ease;
}

.tnpl-product-card:hover .card-img-area img {
    transform: scale(1.02);
}

.card-title-link {
    font-family: inherit !important;
    color: #000000 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    text-transform: none !important;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    text-decoration: none;
}

.card-title-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #e8983b;
    /* Orange underline */
    transition: all 0.3s;
    transform: translateX(-50%);
}

.tnpl-product-card:hover .card-title-link::after {
    width: 100%;
}

/* Adjust grid gutters */
.row#productGrid {
    margin-left: -15px;
    margin-right: -15px;
}

#productGrid > [class*="col-"] {
    display: flex;
}

.tnpl-product-card .title {
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: none !important;
    margin-bottom: 8px;
}

.tnpl-product-card p {
    min-height: 63px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: #333333 !important;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Desktop/laptop layout stabilization (keeps structure consistent across zoom levels) */
@media (min-width: 992px) {
    .product-listing .container-fluid {
        max-width: 1280px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .product-listing .row {
        --bs-gutter-x: 24px;
    }

    .product-sidebar {
        padding-right: 28px !important;
    }

    .sidebar-header {
        margin-bottom: 32px !important;
    }

    .filter-group {
        margin-bottom: 34px !important;
    }

    .product-top-bar {
        margin-bottom: 26px !important;
        padding-bottom: 18px !important;
    }

    #productGrid {
        margin-left: -12px !important;
        margin-right: -12px !important;
        row-gap: 24px;
    }

    #productGrid > [class*="col-"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .tnpl-product-card {
        padding: 30px 18px !important;
        min-height: 100%;
    }

    .card-img-area {
        height: 220px !important;
    }
}

/* Tablet alignment refinements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-listing .container-fluid {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .product-listing .row {
        align-items: flex-start;
    }

    .product-sidebar {
        border-right: 1px dashed #e0e0e0 !important;
        padding-right: 20px !important;
        margin-bottom: 0 !important;
    }

    .sidebar-header {
        margin-bottom: 28px !important;
    }

    .filter-group {
        margin-bottom: 28px !important;
    }

    .custom-radio {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .product-top-bar {
        margin-bottom: 24px !important;
        padding-bottom: 16px !important;
    }

    #productGrid {
        margin-left: -12px !important;
        margin-right: -12px !important;
        row-gap: 24px;
    }

    #productGrid > [class*="col-"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .tnpl-product-card {
        padding: 26px 16px !important;
        min-height: 100%;
    }

    .card-img-area {
        height: 210px !important;
        margin-bottom: 16px !important;
    }

    .card-title-link {
        font-size: 16px !important;
    }
}
