/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212;
    color: #b0b0b0;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #00b0b0;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #00d4d4;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 212, 0.5);
}

.btn-dark {
    background-color: #1c1c1c;
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-outline {
    border: 1px solid #00b0b0;
    color: #00b0b0;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 176, 176, 0.15);
    color: #00d4d4;
    border-color: #00d4d4;
    box-shadow: 0 5px 20px rgba(0, 212, 212, 0.3);
}

/* ========== INVENTORY HERO SECTION ========== */
.inventory-hero-section {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(18, 18, 18, 0.88) 100%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre-v2.png');
    background-size: auto, 300px 300px;
    min-height: 32vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid rgba(0, 176, 176, 0.4);
    overflow: hidden;
}

.inventory-hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 800px 400px at 50% 50%, 
        rgba(0, 176, 176, 0.15) 0%, 
        transparent 50%
    );
    z-index: 1;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.inventory-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 212, 212, 0.08) 100px,
            rgba(0, 212, 212, 0.08) 101px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(0, 176, 176, 0.06) 100px,
            rgba(0, 176, 176, 0.06) 101px
        );
    z-index: 1;
    pointer-events: none;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(100px) translateY(100px);
    }
}

.inventory-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 176, 176, 0.10) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
    animation: glow 10s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.8;
    }
}

.inventory-hero-section .hero-viewport {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 50px;
}

.inventory-hero-section .hero-content {
    max-width: 900px;
    text-align: center;
}

.inventory-hero-section .hero-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 212, 212, 0.3);
}

/* ========== INVENTORY SECTION WITH SIDEBAR ========== */
.inventory-section {
    background: #f5f7fa;
    padding: 80px 0;
}

.inventory-section .container {
    max-width: 1500px;
    padding-left: 20px;
    padding-right: 50px;
}

.inventory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 45px;
    position: relative;
}

/* ========== SIDEBAR FILTERS ========== */
.inventory-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-left: -20px;
}

.inventory-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00b0b0, #00d4d4, #00b0b0);
    border-radius: 16px 16px 0 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f5;
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #00b0b0;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

.btn-reset {
    background: rgba(0, 176, 176, 0.1);
    border: 1px solid rgba(0, 176, 176, 0.3);
    color: #00b0b0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-reset:hover {
    color: #ffffff;
    background: #00b0b0;
    border-color: #00b0b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 176, 176, 0.3);
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label::before {
    content: '';
    width: 3px;
    height: 12px;
    background: #00b0b0;
    border-radius: 2px;
}

.filter-control {
    width: 100%;
    border: 2px solid #dee2e6;
    font-size: 0.95rem;
    padding: 12px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-control:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.filter-control:focus {
    outline: none;
    border-color: #00b0b0;
    box-shadow: 0 0 0 4px rgba(0, 176, 176, 0.1);
    background: #ffffff;
}

.filter-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

select.filter-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23495057' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 44px;
}

select.filter-control:hover {
    border-color: #adb5bd;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%2300b0b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

select.filter-control:focus {
    border-color: #00b0b0;
    box-shadow: 0 0 0 4px rgba(0, 176, 176, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%2300b0b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

select.filter-control option {
    background: #ffffff;
    color: #1a1a1a;
    padding: 12px;
}

select.filter-control option:checked {
    background: rgba(0, 176, 176, 0.1);
    color: #00b0b0;
}

/* Custom scrollbar for select dropdown on webkit browsers */
select.filter-control::-webkit-scrollbar {
    width: 8px;
}

select.filter-control::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

select.filter-control::-webkit-scrollbar-thumb {
    background: #00b0b0;
    border-radius: 4px;
}

select.filter-control::-webkit-scrollbar-thumb:hover {
    background: #00d4d4;
}

.sidebar-filters .btn-primary {
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 16px rgba(0, 176, 176, 0.2);
}

.sidebar-filters .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 176, 176, 0.3);
}

.mobile-filter-toggle {
    display: none;
}

/* ========== MAIN CONTENT AREA ========== */
.inventory-content {
    min-width: 0;
    max-width: 100%;
}

.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.results-count {
    font-size: 1rem;
    color: #00b0b0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pagination-select-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-select-wrapper label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pagination-select {
    border: 2px solid #dee2e6;
    padding: 10px 40px 10px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.pagination-select:hover {
    border-color: #00b0b0;
    box-shadow: 0 2px 8px rgba(0, 176, 176, 0.1);
}

.pagination-select:focus {
    outline: none;
    border-color: #00b0b0;
    box-shadow: 0 0 0 4px rgba(0, 176, 176, 0.1);
}

/* ========== ENHANCED INVENTORY GRID ========== */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    width: 100%;
}

.inventory-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.inventory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00b0b0, #00d4d4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.inventory-card:hover {
    transform: translateY(-8px);
    border-color: #00b0b0;
    box-shadow: 0 12px 32px rgba(0, 176, 176, 0.15);
}

.inventory-card:hover::before {
    opacity: 1;
}

.inventory-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.inventory-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.inventory-card:hover .inventory-card-image::after {
    opacity: 1;
}

.inventory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.inventory-card:hover .inventory-card-image img {
    transform: scale(1.08);
}

.memorabilia-banner {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.inventory-card-content {
    padding: 24px;
    position: relative;
}

.inventory-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.inventory-card:hover .inventory-card-title {
    color: #00b0b0;
}

.inventory-card-details {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.8;
}

.inventory-card-details strong {
    color: #495057;
    font-weight: 700;
    font-size: 0.85rem;
}

.inventory-card-footer {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.inventory-card-footer .btn {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.loading-state,
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: #6c757d;
    font-size: 1.1rem;
    background: #ffffff;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
}

/* ========== ENHANCED PAGINATION ========== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 32px 0;
}

.pagination-btn {
    min-width: 40px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #495057;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: #00b0b0;
    border-color: #00b0b0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 176, 176, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #00b0b0;
    border-color: #00b0b0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 176, 176, 0.2);
}

.pagination-ellipsis {
    padding: 10px 8px;
    color: #adb5bd;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* ========== SALE PRICE BANNER (for Results page) ========== */
.sale-price-banner {
    background: linear-gradient(135deg, #00b0b0, #00d4d4);
    color: #ffffff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 16px 20px;
    margin-top: auto;
    border-radius: 0 0 16px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 -4px 12px rgba(0, 176, 176, 0.2);
}

.sale-price-banner.not-sold {
    background: linear-gradient(135deg, #6c757d, #868e96);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 2000px) {
    .inventory-section .container {
        padding-left: 20px;
        padding-right: 70px;
    }
}

@media (max-width: 1800px) {
    .inventory-section .container {
        padding-left: 20px;
        padding-right: 60px;
    }
    
    .inventory-layout {
        gap: 50px;
    }
    
    .inventory-grid {
        gap: 45px;
    }
}

@media (max-width: 1600px) {
    .inventory-section .container {
        padding-left: 20px;
        padding-right: 40px;
    }
    
    .inventory-layout {
        gap: 45px;
    }
    
    .inventory-grid {
        gap: 40px;
    }
}

@media (max-width: 1500px) {
    .inventory-section .container {
        padding-left: 20px;
        padding-right: 40px;
    }
    
    .inventory-layout {
        gap: 40px;
    }
    
    .inventory-grid {
        gap: 28px;
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 24px;
    }
    
    .inventory-section .container {
        max-width: 1400px;
        padding-left: 20px;
        padding-right: 35px;
    }
    
    .inventory-layout {
        grid-template-columns: 260px 1fr;
        gap: 36px;
    }
    
    .inventory-grid {
        gap: 32px;
    }
}

@media (max-width: 1200px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .inventory-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .inventory-section {
        padding: 60px 0;
    }
    
    .inventory-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .inventory-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.4s ease;
        border-radius: 0;
        overflow-y: auto;
    }
    
    .inventory-sidebar.active {
        left: 0;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: linear-gradient(135deg, #00b0b0, #00d4d4);
        color: #0d0d0d;
        border: none;
        padding: 14px 24px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 6px 20px rgba(0, 176, 176, 0.4);
        transition: all 0.3s ease;
    }
    
    .mobile-filter-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 176, 176, 0.5);
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .pagination-select-wrapper {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .inventory-hero-section .hero-title {
        font-size: 1.8rem;
    }
    
    .inventory-card-title {
        font-size: 1.2rem;
    }
    
    .inventory-card-image {
        height: 220px;
    }
}
