/* Product List Styles */

.spinner-border {
    width: 3rem;
    height: 3rem;
}

#productResultInfo {
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
    bottom: 10px;
    left: 10px;
}

.product-item {
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.add-cart {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.add-cart:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.product-meta {
    font-size: 0.875rem;
}

.widget-categories a.active {
    color: #007bff;
    font-weight: bold;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar .category-select {
    min-width: 280px;
}

.search-bar .search-product {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-bar .search-product input {
    width: 100%;
    border-radius: 28px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 12px 50px 12px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240, 249, 255, 0.95));
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    height: 48px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.search-bar .search-product input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.search-bar .search-product input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.search-bar .search-product .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #1d4ed8;
    font-size: 1.1rem;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar .category-select {
        min-width: auto;
    }

    .search-bar .search-btn {
        width: 120px;
    }
}

.search-bar .search-btn {
    border-radius: 25px;
    width: 120px;
    height: 48px;
}

/* Select2 custom styling */
.select2-container--default .select2-selection--single {
    height: 48px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 46px;
    padding-left: 18px;
    padding-right: 30px;
}

/* ===== ANEWEX THEME STYLING ===== */
:root {
    --anewex-maroon: #8B1E3F;
    --anewex-gold: #D4AF37;
    --anewex-light-gold: #E8D4B8;
    --anewex-cream: #F5F1ED;
}

/* Form-select styling - Main style */
.form-select {
    border: 2px solid var(--anewex-light-gold);
    border-radius: 6px;
    padding: 11px 38px 11px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1C1E22;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B1E3F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 10px;
    padding-right: 38px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(139, 30, 63, 0.06);
}

.form-select:hover {
    border-color: var(--anewex-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.form-select:focus {
    border-color: var(--anewex-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2);
}

.form-select:active {
    border-color: var(--anewex-maroon);
}

.form-select option {
    color: #1C1E22;
    background-color: #FFFFFF;
    padding: 10px 8px;
}

.form-select option:checked {
    background: linear-gradient(135deg, var(--anewex-gold) 0%, var(--anewex-light-gold) 100%);
    color: #1C1E22;
    font-weight: 700;
}

/* Button styling with theme colors */
.btn-primary {
    background: var(--anewex-gold) !important;
    border-color: var(--anewex-gold) !important;
    color: #1C1E22 !important;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--anewex-light-gold) !important;
    border-color: var(--anewex-light-gold) !important;
    color: #1C1E22 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    background: var(--anewex-maroon) !important;
    border-color: var(--anewex-maroon) !important;
    transform: translateY(0);
}

.btn-outline-secondary {
    color: var(--anewex-maroon);
    border-color: var(--anewex-maroon);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--anewex-maroon);
    border-color: var(--anewex-maroon);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 30, 63, 0.25);
}

.btn-outline-secondary.active {
    background: var(--anewex-maroon);
    border-color: var(--anewex-maroon);
    color: white;
}

/* Search input styling */
.search-bar .search-product input {
    border: 2px solid var(--anewex-light-gold) !important;
    background: linear-gradient(135deg, rgba(245, 241, 237, 0.6), rgba(255, 255, 255, 0.95)) !important;
    color: #1C1E22 !important;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(139, 30, 63, 0.05) !important;
    transition: all 0.3s ease !important;
}

.search-bar .search-product input::placeholder {
    color: #999;
}

.search-bar .search-product input:focus {
    border-color: var(--anewex-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2) !important;
}

.search-bar .search-product .search-icon {
    color: var(--anewex-maroon);
}

/* Select2 dropdown styling - Premium look */
.select2-container--default .select2-selection--single {
    border: 2px solid var(--anewex-light-gold);
    border-radius: 6px;
    height: 48px;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(139, 30, 63, 0.06);
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--anewex-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--anewex-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1C1E22;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 46px;
    padding-left: 16px;
    padding-right: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: var(--anewex-maroon);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
    width: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--anewex-maroon) transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    top: 60%;
    margin-left: -4px;
}

/* Select2 dropdown menu styling */
.select2-container--default .select2-dropdown {
    border: 2px solid var(--anewex-light-gold);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(139, 30, 63, 0.15);
}

.select2-container--default .select2-dropdown.select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.select2-container--default .select2-results__option {
    color: #1C1E22;
    font-weight: 500;
    padding: 10px 16px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--anewex-gold);
    color: #1C1E22;
    font-weight: 700;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--anewex-light-gold);
    color: #1C1E22;
}

/* Form control styling */
.form-control {
    border: 2px solid var(--anewex-light-gold);
    border-radius: 6px;
    color: #1C1E22;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(139, 30, 63, 0.05);
}

.form-control:focus {
    border-color: var(--anewex-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2);
    outline: none;
}

.form-label {
    color: #1C1E22;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== SELECT2 COMPREHENSIVE STYLING (ANEWEX THEME) ===== */

/* Base Select2 container */
.select2-container--default {
    font-family: inherit;
}

/* Single selection container */
.select2-container--default .select2-selection--single {
    background-color: #FFFFFF;
    border: 2px solid var(--anewex-light-gold);
    border-radius: 6px;
    height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(139, 30, 63, 0.06);
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--anewex-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--anewex-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* Selection text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1C1E22;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 46px;
    padding-left: 16px;
    padding-right: 38px;
    letter-spacing: 0.3px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
    font-weight: 500;
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
    width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--anewex-maroon) transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    top: 55%;
    margin-left: -5px;
}

/* Clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: var(--anewex-maroon);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 8px;
    line-height: 1;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--anewex-gold);
}

/* Dropdown menu */
.select2-container--default .select2-dropdown {
    background-color: #FFFFFF;
    border: 2px solid var(--anewex-light-gold);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(139, 30, 63, 0.18);
    margin-top: -2px;
    border-top: none;
}

.select2-container--default .select2-dropdown.select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.select2-container--default .select2-dropdown.select2-dropdown--above {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* Search input in dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid var(--anewex-light-gold);
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: #1C1E22;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 16px;
    height: auto;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--anewex-gold);
    box-shadow: inset 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Results container */
.select2-container--default .select2-results {
    max-height: 400px;
}

.select2-container--default .select2-results__options {
    max-height: 380px;
}

/* Result options */
.select2-container--default .select2-results__option {
    color: #1C1E22;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.select2-container--default .select2-results__option:hover {
    background-color: rgba(212, 175, 55, 0.12);
    transform: translateX(2px);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--anewex-gold);
    color: #1C1E22;
    font-weight: 700;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: linear-gradient(135deg, var(--anewex-gold) 0%, var(--anewex-light-gold) 100%);
    color: #1C1E22;
    font-weight: 700;
}

/* No results message */
.select2-container--default .select2-results__message {
    color: #999;
    font-weight: 500;
    padding: 16px;
    text-align: center;
}

/* Group labels */
.select2-container--default .select2-results__group {
    padding: 0;
    overflow: hidden;
}

.select2-container--default .select2-results__group > .select2-results__option {
    padding-left: 1em;
    color: var(--anewex-maroon);
    font-weight: 700;
    background-color: rgba(245, 241, 237, 0.5);
    cursor: default;
}

/* Loading message */
.select2-container--default .select2-results__option.loading-results {
    text-align: center;
    color: var(--anewex-gold);
    font-weight: 600;
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #F5F5F5;
    border-color: #DDD;
    color: #999;
    cursor: not-allowed;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: #999;
}

/* Open state styling */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--anewex-gold);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(212, 175, 55, 0.2);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--anewex-maroon) transparent;
    border-width: 0 5px 6px 5px;
    top: 50%;
}

/* Dropdown style at product list */
.dropdown-style.select2-hidden-accessible {
    display: none !important;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .select2-container--default .select2-selection--single {
        height: 44px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 42px;
        font-size: 0.9rem;
    }
    
    .select2-container--default .select2-results__option {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

