/* Store specific styles */
.store-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Quick Filter Button Styles - Custom styling without Bootstrap color changes */
.quick-filter {
    cursor: pointer;
    user-select: none;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    font-weight: normal;
    
    /* Custom button styling */
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: transparent !important;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Make all child elements within quick filters clickable and extend click area */
.quick-filter * {
    cursor: pointer;
    user-select: none;
    pointer-events: none; /* Prevent child elements from intercepting clicks */
}

/* Ensure badges show pointer cursor but don't intercept events */
.quick-filter .badge {
    cursor: pointer;
    user-select: none;
}

/* Specific colors for different filter types - static, no hover changes */
.quick-filter[data-filter="all"] {
    border-color: #0d6efd;
    color: #0d6efd;
}

.quick-filter[data-filter="gold"] {
    border-color: #ffc107;
    color: #ffc107;
}

.quick-filter[data-filter="silver"] {
    border-color: #6c757d;
    color: #6c757d;
}

.quick-filter[data-filter="bar"],
.quick-filter[data-filter="in-stock"] {
    border-color: #198754;
    color: #198754;
}

.quick-filter[data-filter="coin"] {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.quick-filter[data-filter="clearance"],
.quick-filter[data-filter="promo"] {
    border-color: #dc3545;
    color: #dc3545;
}

.quick-filter[data-filter="out-of-stock"],
.quick-filter[data-filter^="brand-"] {
    border-color: #212529;
    color: #212529;
}

.quick-filter:hover {
    transform: translateY(-1px);
    background-color: transparent !important;
    /* No color changes on hover */
}

.quick-filter:active {
    transform: translateY(0);
    background-color: transparent !important;
    /* No color changes when clicked */
}

/* Remove any focus states completely */
.quick-filter:focus {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Active state uses bold font instead of color changes */
.quick-filter.active {
    font-weight: bold !important;
    background-color: transparent !important;
    /* Colors stay the same, only font weight changes */
}

/* Ensure text and icons stay visible in all states, except badges */
.quick-filter *:not(.badge) {
    background-color: transparent !important;
}

/* Keep badge backgrounds as they should be */
.quick-filter .badge {
    background-color: #6c757d !important;
    transition: background-color 0.2s ease;
}

/* Change badge color when filter is active */
.quick-filter.active .badge {
    background-color: #0d6efd !important;
    color: white !important;
}

/* Override any possible Bootstrap or browser defaults */
.quick-filter:not(.disabled):not(:disabled) {
    background-color: transparent !important;
}

.quick-filter:not(.disabled):not(:disabled):active {
    background-color: transparent !important;
}

.store-header h1 {
    color: var(--primary-color);
    font-weight: bold;
}

/* Product Card Styles */
.product-card-store {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.product-card-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Promo Badge */
.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

/* Stock Status */
.stock-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

.stock-status.in-stock {
    background: #2ed573;
    color: white;
}

.stock-status.low-stock {
    background: #ffa502;
    color: white;
}

.stock-status.out-of-stock {
    background: #747d8c;
    color: white;
}

.product-image-store {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.product-body-store {
    padding: 20px;
}

.product-metal {
    color: var(--gold-color);
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.product-metal.silver {
    color: var(--silver-color);
}

.product-title-store {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-specs-store {
    color: var(--secondary-color);
    font-size: 0.85em;
    margin-bottom: 8px;
}

.product-condition {
    color: #666;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-style: italic;
}

.product-price-store {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 8px;
}

.product-price-per-gram {
    font-size: 0.85em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.product-premium {
    background: #e8f5e8;
    color: #27ae60;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.product-stock-info {
    font-size: 0.85em;
    margin-bottom: 10px;
    font-weight: 500;
}

.buyback-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
}

.buyback-title {
    font-size: 0.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.buyback-rate {
    font-size: 0.85em;
    color: var(--success-color);
    font-weight: 600;
}

.buyback-price {
    font-size: 0.8em;
    color: var(--secondary-color);
}

.buyback-note {
    font-size: 0.75em;
    color: #999;
    margin-top: 5px;
}

/* Filter and Search Controls */
.form-select, .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

/* Load More Button */
#loadMoreBtn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 30px;
    font-weight: 600;
}

#loadMoreBtn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .store-header .row {
        margin-bottom: 20px;
    }
    
    .store-header .col-md-3 {
        margin-bottom: 10px;
    }
    
    .product-card-store {
        margin-bottom: 20px;
    }
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px;
    color: var(--secondary-color);
}

.no-results i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-color: var(--gold-color);
    border-right-color: transparent;
}

/* Image loading spinner */
.image-loading-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--gold-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-image-store {
    transition: opacity 0.3s ease;
}

.product-image-store.loading {
    opacity: 0;
}

.product-image-store.loaded {
    opacity: 1;
}

/* Enhanced product view button */
.btn-view-product {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateY(-2px);
}

/* List Format Styles */
.product-card-store-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    min-height: 250px;
    max-height: 250px;
}

.product-card-store-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Disabled - using flexbox container instead */
.promo-badge-list {
    display: none !important;
}

/* New vertical badge layout */
.product-badges-container {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex !important;
    gap: 4px;
    z-index: 20;
    flex-direction: column !important; /* Vertical stack: Stock > Promo > Clearance */
    align-items: flex-end;
    justify-content: flex-start;
    width: auto;
}

.badge-item {
    position: static !important;
    display: inline-block !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 75px; /* Ensure consistent width for all badges */
    text-align: center; /* Center text within badges */
}

/* Badge styles */
.stock-badge.in-stock { background: #28a745 !important; color: white !important; }
.stock-badge.low-stock { background: #ffc107 !important; color: #212529 !important; }
.stock-badge.out-of-stock { background: #6c757d !important; color: white !important; }
.promo-badge { background: #ff6b35 !important; color: white !important; position: static !important; }
.clearance-badge { background: #dc3545 !important; color: white !important; position: static !important; }

/* Promotional pricing styles */
.original-price-crossed {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 8px;
}

.promo-price {
    color: #dc3545;
    font-weight: 600;
}

.original-premium-crossed {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.promo-premium {
    color: #dc3545;
    font-weight: 600;
}

/* Disabled - using flexbox container instead */
.clearance-badge-list {
    display: none !important;
}

/* Disabled - using flexbox container instead */
.stock-status-list {
    display: none !important;
}

.stock-status-list.in-stock {
    background: #28a745;
    color: white;
}

.stock-status-list.low-stock {
    background: #ffc107;
    color: #212529;
}

.stock-status-list.out-of-stock {
    background: #6c757d;
    color: white;
}

/* Mobile positioning fix for badges - vertical stack optimized */
@media (max-width: 768px) {
    .product-badges-container {
        gap: 3px !important; /* Reduce gap for vertical stack on mobile */
        top: 6px !important;
        right: 6px !important;
    }
    
    .badge-item {
        font-size: 0.65rem !important; /* Slightly smaller font for mobile */
        padding: 2px 4px !important; /* More compact padding for vertical stack */
        min-width: 70px !important; /* Consistent width, larger to fit CLEARANCE */
        max-width: 70px !important; /* Prevent exceeding container */
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center !important; /* Center text on mobile too */
    }
    
    /* Disabled - using flexbox container instead */
    .product-card-store-list .promo-badge-list,
    .product-card-store-list .clearance-badge-list {
        display: none !important;
    }
    
    /* Disabled - using flexbox container instead */
    .product-card-store-list .stock-status-list {
        display: none !important;
    }
}

.product-list-container {
    display: flex;
    height: 200px;
}

/* Left: Image Section */
.product-image-section-list {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-right: 1px solid #f1f3f4;
}

.image-loading-container-list {
    position: relative;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-list {
    width: 100px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f9fa;
    transition: opacity 0.3s ease;
}

.product-image-list.loading {
    opacity: 0;
}

.product-image-list.loaded {
    opacity: 1;
}

/* Right: Product Details Section */
.product-details-section-list {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.product-info-top {
    grid-column: 1;
}

.product-metal {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-metal.gold {
    color: var(--gold-color);
}

.product-metal.silver {
    color: var(--silver-color);
}

.product-title-list {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-specs-list {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.product-condition {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.product-pricing-section {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

.product-price-list {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 4px;
}

.product-price-per-gram-list {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.product-stock-info {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

.buyback-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--gold-color);
}

.buyback-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.buyback-rate {
    font-size: 0.875rem;
    font-weight: 600;
    color: #198754;
    margin-bottom: 2px;
}

.buyback-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #198754;
    margin-bottom: 4px;
}

.buyback-note {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 2px;
}

.buyback-disclaimer {
    font-size: 0.7rem;
    color: #8b9aa8;
    line-height: 1.2;
}

/* Responsive Design for List Format */
@media (max-width: 768px) {
    .product-card-store-list {
        min-height: auto;
        max-height: none;
    }
    
    .product-list-container {
        flex-direction: column;
        height: auto;
    }
    
    .product-image-section-list {
        flex: none;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .image-loading-container-list {
        width: 100px;
        height: 80px;
    }
    
    .product-image-list {
        width: 100px;
        height: 80px;
    }
    
    .product-details-section-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-info-top,
    .product-pricing-section {
        grid-column: 1;
    }
    
    .stock-status-list {
        position: static;
        margin-bottom: 12px;
        align-self: flex-start;
        display: inline-block;
    }
}

/* Buyback section for list format */
.buyback-section-list {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    border-left: 2px solid var(--gold-color);
    font-size: 0.75rem;
}

.buyback-title-list {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
    font-size: 0.7rem;
}

.buyback-rate-list {
    color: var(--gold-color);
    font-weight: 600;
    margin-bottom: 2px;
}

.buyback-price-list {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 2px;
}

.buyback-note-list {
    font-size: 0.65rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.buyback-disclaimer-list {
    font-size: 0.7rem;
    color: #8b9aa8;
    line-height: 1.2;
}

/* Horizontal layout for buyback section */
.buyback-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.buyback-left {
    flex: 1;
}

.buyback-right {
    flex: 0 0 40%;
    text-align: right;
    padding-left: 8px;
}

/* Small view button positioned below condition */
.btn-view-product-small {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 12px;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
}

.btn-view-product-small:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateY(-1px);
}

/* Force refresh - Wed Sep  3 02:24:44 AM UTC 2025 */
