/* ===============================================
   PREMIUM E-COMMERCE STYLES
===============================================
*/

:root {
    --brand-gold: #B18E35;
    --brand-gold-hover: #97782d;
    --text-main: #222222;
    --text-muted: #666666;
    --border-light: #eaeaea;
    --bg-light: #f9f9f9;
}

/* --- PRODUCT IMAGE & HOVER --- */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.product-image img,
.product-image .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image:hover img,
.product-image:hover .slider-image.active {
    transform: scale(1.06);
}

/* --- WISHLIST ICON --- */
.wishlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2;
}
.wishlist-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}
.wishlist-icon i {
    color: #444;
    margin-top: 1px;
}
.wishlist-icon .fa-solid {
    color: #ff4757;
}

/* --- SIDEBAR & FILTERS --- */
@media (min-width: 992px) {
    .filterbar-fixed {
        position: sticky;
        top: 85px;
        height: calc(100vh - 85px);
        overflow-y: auto;
    }
    /* Custom thin scrollbar for sidebar */
    .filterbar-fixed::-webkit-scrollbar {
        width: 4px;
    }
    .filterbar-fixed::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border-radius: 4px;
    }
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-widget:last-child {
    border-bottom: none;
}
.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

/* Category Links */
.sidebar-category-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 6px 0 6px 14px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}
.sidebar-category-link::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 4px;
    color: #ccc;
    font-size: 18px;
    transition: all 0.3s ease;
}
.sidebar-category-link:hover {
    color: var(--brand-gold);
    text-decoration: none;
    padding-left: 18px;
}
.sidebar-category-link:hover::before {
    color: var(--brand-gold);
    left: 6px;
}

/* Size Pills (Replaces Checkboxes) */
.size-box {
    margin: 0 8px 10px 0;
}
.size-box input[type="checkbox"] {
    display: none;
}
.size-box .size-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
    background: #fff;
    margin: 0;
}
.size-box input[type="checkbox"]:checked + .size-label {
    background-color: var(--brand-gold);
    color: #fff;
    border-color: var(--brand-gold);
    box-shadow: 0 4px 10px rgba(177, 142, 53, 0.3);
}
.size-box .size-label:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}
.size-box input[type="checkbox"]:checked + .size-label:hover {
    color: #fff;
}

/* Custom Checkbox Colors (Prices) */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(177, 142, 53, 0.25);
}
.custom-control-label {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 15px;
    padding-top: 2px;
}
.custom-control-label:hover {
    color: var(--brand-gold);
}

/* Input Overrides */
.form-control-custom {
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-main);
    width: 100%;
    transition: all 0.2s ease;
}
.form-control-custom:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.2rem rgba(177, 142, 53, 0.15);
    outline: none;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    min-height: 42px;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--brand-gold);
}

/* --- MOBILE FOOTER & BUTTONS --- */
.mobile-footer {
    background-color: #fff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1030;
}
.footer-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.1rem 0;
    font-weight: 600;
    border: none;
    color: var(--brand-gold);
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.2s ease-in-out;
}
.footer-button i {
    font-size: 1.1rem;
    margin-right: 8px;
}
.border-custom-end {
    border-right: 1px solid var(--border-light);
}

/* Select wrapper for mobile sorting */
.sort-select-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.select-over-button {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- SKELETON LOADER --- */
@keyframes shimmer {
    0% { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}
.skeleton-loader-wrapper {
    padding: 2rem 0;
}
.skeleton {
    background-color: #e6e6e6;
    border-radius: 4px;
    animation: shimmer 2s infinite linear;
    background-image: linear-gradient(to right, #e6e6e6 0%, #f4f4f4 20%, #e6e6e6 40%, #e6e6e6 100%);
    background-repeat: no-repeat;
    background-size: 1600px 100%;
}
.skeleton-grid {
    display: grid;
    gap: 1.5rem;
}
.skeleton-card {
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}
.skeleton-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 6;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}
.skeleton-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.skeleton-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.6rem;
    border-radius: 4px;
}
.skeleton-text.title { width: 80%; }
.skeleton-text.price { width: 40%; height: 1.2rem; }

@media (max-width: 767px) {
    .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .skeleton-loader-wrapper { padding-bottom: 70px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- SEO DESC & FAQ --- */
.desc-section, .faq-section {
    margin: 50px auto;
    /* max-width: 1000px; */
}
.desc-item, .faq-item-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
}
.desc-short, .desc-full {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}
.desc-section h2, .full-desc h2, .short-desc h2, .faq-heading {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}
.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--brand-gold);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.2s ease;
}
.read-more-btn:hover {
    color: var(--brand-gold-hover);
    text-decoration: none;
}
.faq-heading {
    text-align: center;
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-title {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: var(--text-main);
}
.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--brand-gold);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding-top: 15px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    display: none;
}

/* ===============================================
   WHITESPACE, GRID & TYPOGRAPHY OVERRIDES
=============================================== */

/* --- WHITESPACE & PADDING FIXES --- */
.skeleton-loader-wrapper {
    padding: 0.5rem 0 1rem 0 !important;
}
.sidebar-widget {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
}

/* --- REDUCE GRID SPACING (GUTTERS) --- */
/* Overrides Bootstrap's default 30px gap for a much tighter layout */
.grid-products .row {
    margin-left: -5px;
    margin-right: -5px;
}
.grid-products .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 15px;
}

/* --- 2-LINE PRODUCT TEXT FIX --- */
/* Forces the title and '(regular)' to sit on the same line by hiding breaks */
/* ===============================================
   RESPONSIVE TYPOGRAPHY (Bootstrap 4 Breakpoints)
=============================================== */

/* Default (Mobile First) */
.grid-products .pName,
.grid-products .product-name,
.grid-products .grid-view-item__title {
    font-size: 14px;
}

.grid-products .price {
    font-size: 14px;
}

.widget-title {
    font-size: 14px;
}

.desc-section h2,
.full-desc h2,
.short-desc h2,
.faq-heading {
    font-size: 18px !important;
}

/* Small devices (≥576px) */
@media (min-width: 576px) {
    .grid-products .pName,
    .grid-products .product-name,
    .grid-products .grid-view-item__title {
        font-size: 15px;
    }

    .grid-products .price {
        font-size: 15px;
    }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
    .grid-products .pName,
    .grid-products .product-name,
    .grid-products .grid-view-item__title {
        font-size: 16px;
    }

    .grid-products .price {
        font-size: 16px;
    }

    .widget-title {
        font-size: 15px;
    }

    .desc-section h2,
    .full-desc h2,
    .short-desc h2,
    .faq-heading {
        font-size: 20px !important;
    }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
    .grid-products .pName,
    .grid-products .product-name,
    .grid-view-item__title {
        font-size: 17px;
    }

    .grid-products .price {
        font-size: 17px;
    }

    .widget-title {
        font-size: 16px;
    }

    .desc-section h2,
    .full-desc h2,
    .short-desc h2,
    .faq-heading {
        font-size: 22px !important;
    }
}

/* Extra Large devices (≥1200px) */
@media (min-width: 1200px) {
    .grid-products .pName,
    .grid-products .product-name,
    .grid-view-item__title {
        font-size: 18px;
    }

    .grid-products .price {
        font-size: 18px;
    }
}
.date-picker-wrapper {
    z-index: 99999999 !important;
}
