/* ============================================
   ITEMS PAGE - PROFESSIONAL REDESIGN
   Modern E-Commerce Jewelry Store
   ============================================ */

/* ===== BASE & LAYOUT ===== */
.items-page {
    padding: 0;
    background: #F8F8F8;
    min-height: 100vh;
}

/* Full-Width Container */
.container-wide {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.items-page-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
    padding: 0.45rem 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb a:hover {
    color: #8B0000;
}

.breadcrumb a i {
    font-size: 0.9rem;
}

.breadcrumb .separator {
    color: #CCCCCC;
}

.breadcrumb .current {
    color: #333333;
    font-weight: 600;
}

.breadcrumb .current-category {
    color: #8B0000;
    font-weight: 700;
}

/* ===== SLIDING SHOWCASE SECTION ===== */
.sliding-showcase {
    padding: 0.75rem 0 1rem;
    background: linear-gradient(160deg, #0d0500 0%, #1c0d02 50%, #0a0300 100%);
    position: relative;
    overflow: hidden;
}

/* Ambient gold glow */
.sliding-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Marquee Container */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

/* Fade-out edges */
.sliding-showcase .marquee-container::before,
.sliding-showcase .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}

.sliding-showcase .marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #0d0500, transparent);
}

.sliding-showcase .marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #0d0500, transparent);
}

/* Marquee Track - Seamless Infinite Loop */
.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Showcase Card — Premium Dark */
.sliding-showcase .showcase-card {
    flex-shrink: 0;
    width: 155px;
    height: 200px;
    background: #1a0e04;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(201, 162, 39, 0.18);
    transition: all 0.4s ease;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(201, 162, 39, 0.06);
}

.sliding-showcase .showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sliding-showcase .showcase-card:hover::before {
    opacity: 1;
}

.sliding-showcase .showcase-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(201, 162, 39, 0.2),
        0 0 20px rgba(201, 162, 39, 0.1);
}

/* Card Image */
.sliding-showcase .card-image {
    width: 100%;
    height: 75%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.sliding-showcase .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(10, 3, 0, 0.65));
    pointer-events: none;
    z-index: 1;
}

.sliding-showcase .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.sliding-showcase .showcase-card:hover .card-image img {
    transform: scale(1.08);
}

/* Badge — premium crimson */
.card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.48rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.card-badge.new {
    background: linear-gradient(135deg, #8B0000, #c0392b);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: naBadgePulse 3s ease-in-out infinite;
}

/* Card Info — dark glass */
.card-info {
    padding: 0.4rem 0.6rem 0.4rem;
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    background: linear-gradient(135deg, #1e1008 0%, #140a03 100%);
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    position: relative;
}

.card-category {
    font-size: 0.48rem;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-category::before {
    content: '';
    width: 10px;
    height: 1.5px;
    background: linear-gradient(90deg, #c9a227, transparent);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    color: #f7efdf;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sliding-showcase .showcase-card:hover .card-title {
    color: #f0c840;
}

.card-price {
    font-size: 0.75rem;
    color: #8B0000;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-price::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

/* Hide extras */
.card-desc {
    display: none;
}

.card-link {
    display: none;
}

/* ===== LAYOUT ===== */
.items-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1920px;
    margin: 0 auto;
    background: #FFFFFF;
}

/* ===== FILTER SIDEBAR - REFERENCE DESIGN ===== */
.filter-sidebar {
    background: #FFFFFF;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 90px;
    border-right: 1px solid #E0E0E0;
}

/* Filter Sections */
.filter-section {
    padding: 1rem;
    border-bottom: 1px solid #F0F0F0;
    background: #FFFFFF;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Input */
.filter-search {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #DDDDDD;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.filter-search:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: #FFFFFF;
}

/* Filter Options - Clean Radio Buttons */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333333;
    padding: 0.4rem 0;
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    color: #8B0000;
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
    margin-right: 0.6rem;
    cursor: pointer;
    accent-color: #8B0000;
    width: 16px;
    height: 16px;
}

.filter-checkbox span {
    font-weight: 400;
}

.filter-checkbox:hover span {
    font-weight: 500;
}

/* Price Range Slider */
.price-range-container {
    margin-bottom: 1rem;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #333333;
    font-weight: 600;
}

.price-slider-wrapper {
    position: relative;
    height: 40px;
    margin-bottom: 0.5rem;
}

.price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #E5E5E5;
    outline: none;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #8B0000;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #8B0000;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider::-webkit-slider-thumb:hover {
    background: #6B0F1A;
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb:hover {
    background: #6B0F1A;
    transform: scale(1.1);
}

/* Price Inputs (fallback) */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem 0.6rem;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

.apply-price-btn {
    width: 100%;
    padding: 0.6rem;
    background: #8B0000;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.apply-price-btn:hover {
    background: #6B0F1A;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

/* ===== ITEMS CONTENT ===== */
.items-content {
    padding: 2rem 2.5rem;
    background: #F8F8F8;
}

/* Toolbar Wrapper - White Background Like Header */
.items-toolbar-wrapper {
    padding: 0;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    max-width: 1920px;
    margin: 0 auto;
    border-bottom: 1px solid #E5E5E5;
}

/* Toolbar - Compact Four Column Layout */
.items-toolbar {
    display: grid;
    grid-template-columns: 280px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    background: #FFFFFF;
    border: none;
    box-shadow: none;
    max-width: 1920px;
    min-height: 50px;
}

/* Filter Header in Toolbar - Maroon Background */
.filter-header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #8B0000;
    height: 100%;
}

.filter-header-toolbar h3 {
    font-size: 0.7rem;
    color: #FFFFFF;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-header-toolbar .clear-filters {
    font-size: 0.65rem;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: transparent;
}

.filter-header-toolbar .clear-filters:hover {
    background: #FFFFFF;
    color: #8B0000;
}

/* Search Form in Toolbar - Centered */
.toolbar-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 0.6rem 0;
}

.toolbar-search {
    width: 100%;
    padding: 0.5rem 0.85rem;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.toolbar-search:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

/* Right Side Controls */
.items-count {
    font-weight: 600;
    color: #333333;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-right: 1.5rem;
}

.items-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding-right: 2.5rem;
}

.items-sort label {
    font-weight: 600;
    color: #333333;
    font-size: 0.8rem;
}

.sort-select {
    padding: 0.45rem 0.7rem;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    background: #FFFFFF;
    font-weight: 500;
    color: #333333;
    transition: all 0.3s ease;
    min-width: 140px;
}

.sort-select:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

.sort-select:hover {
    border-color: #8B0000;
}

/* ===== ITEMS GRID ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== ITEM CARD - ENHANCED ===== */
.item-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E5E5E5;
    position: relative;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #D4AF37;
}

/* Image Wrapper */
.item-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #F8F8F8;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover .item-image {
    transform: scale(1.1);
}

/* Quick Action Buttons */
.quick-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.item-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quick-action-btn i {
    font-size: 0.9rem;
    color: #333333;
}

.quick-action-btn:hover {
    background: #8B0000;
    transform: scale(1.1);
}

.quick-action-btn:hover i {
    color: #FFFFFF;
}

/* Badges */
.item-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.featured-badge {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #8B0000;
}

.sold-badge {
    background: rgba(0, 0, 0, 0.85);
    color: white;
}

.discount-badge {
    background: #FF4444;
    color: white;
}

.stock-badge {
    top: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
}

.stock-badge.in-stock {
    background: #28A745;
    color: white;
}

.stock-badge.low-stock {
    background: #FFA500;
    color: white;
}

/* Item Details - Compact */
.item-details {
    padding: 0.75rem;
}

.item-category {
    display: inline-block;
    font-size: 0.65rem;
    color: #D4AF37;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.4rem;
}

.item-name {
    font-size: 0.95rem;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide rating - too cluttered */
.item-rating {
    display: none;
}

/* Hide description - too cluttered */
.item-description {
    display: none;
}

/* Hide meta info - too cluttered */
.item-meta {
    display: none;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #F0F0F0;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #8B0000;
    font-family: Arial, sans-serif;
}

/* Inquire Button - Compact */
.inquire-btn {
    padding: 0.45rem 0.7rem;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.inquire-btn:hover {
    background: linear-gradient(135deg, #A52A2A 0%, #8B0000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.item-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #8B0000 0%, #6B0F1A 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.2);
}

.item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.35);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #D4AF37;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.75rem;
    color: #333333;
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 1024px) {
    .items-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid #E5E5E5;
    }

    .items-content {
        padding: 1.5rem 2rem;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .category-quick-filters {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-quick-filters::-webkit-scrollbar {
        display: none;
    }

    .items-content {
        padding: 1.25rem 1.5rem;
    }

    .items-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .items-sort {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .item-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .items-page-header {
        padding: 1.25rem 0 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .items-content {
        padding: 1rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .item-image-wrapper {
        height: 240px;
    }
}