/* =========================================
   PREMIUM MOTORCYCLE LISTING STYLES
   Milestone 1: Unified Experience (Restored)
   ========================================= */

:root {
    --listing-bg: #ffffff;
    --listing-card-bg: #ffffff;
    --listing-accent: #111111;
    --listing-text: #111111;
    --listing-muted: #888888;
}

/* --- HERO SECTION --- */
.cinematic-hero {
    height: 20vh;
    min-height: 200px;
    /* Premium Gradient Matching Menu */
    background: linear-gradient(135deg, #212529 0%, #2c3238 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.cinematic-hero video,
.cinematic-hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.cinematic-overlay {
    position: absolute;
    /* Soft, diffused gradient */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.cinematic-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cinematic-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.cinematic-text {
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: #ccc;
    text-transform: uppercase;
}

/* --- CATEGORY NAVIGATION --- */
.category-nav-wrapper {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f2f2f2;
}

.cat-nav-scroll {
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-nav-scroll::-webkit-scrollbar {
    display: none;
}

.cat-nav-items {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cat-nav-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: #f8f8f8;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.cat-nav-btn.active {
    background: #111;
    color: #fff;
}

/* --- PRODUCT GRID --- */
.product-grid-container {
    display: grid;
    /* Default grid calculation (fallback) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 5%;
    transition: all 0.5s ease;
}

/* Grid System Controls */
.product-grid-container.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid-container.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-grid-container.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.product-grid-container.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1600px) {
    .product-grid-container.grid-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {

    .product-grid-container.grid-6,
    .product-grid-container.grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {

    .product-grid-container.grid-4,
    .product-grid-container.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-toggler-float {
        display: none !important;
    }

}

/* --- PRODUCT CARD (MILESTONE 1 REV) --- */
.category-card-wrapper {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.category-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    /* Ultra soft shadow */
    border-color: #e5e5e5;
}

.category-image-box {
    position: relative;
    padding: 30px;
    background: #fbfbfc;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.category-title-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bento-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 !important;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.moto-slogan {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #f8f8f8;
}

.interactive-dots {
    display: flex;
    gap: 8px;
}

.color-dot-inter {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    cursor: pointer;
}

.btn-inspect {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FLOATING GRID TOGGLER - LEFT VERTICAL MINIMAL */
.grid-toggler-float {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-100px);
    /* Initially hidden or just off-canvas logic if needed, but simple is display flex */
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 8px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease;
    transform: translateY(-50%) translateX(0);
}

.grid-toggler-float:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.grid-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 5px;
    transform: rotate(180deg);
}

.grid-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.grid-btn.active {
    background: #111;
    color: #fff;
}

/* ACTION BAR */
.product-action-bar {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-5px);
    /* Slide down effect */
    transition: all 0.4s ease;
}

.category-card-wrapper:hover .product-action-bar {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BADGE */
.license-badge-premium {
    position: absolute;
    bottom: 15px;
    /* Moved to bottom */
    right: 15px;
    /* Moved to right */
    top: auto;
    left: auto;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 5;
}