/**
 * vaughn Hockey Shop Styles
 * 
 * Dark theme with red accents matching VX1 branding
 */

/* =================================================================
   CSS VARIABLES
   ================================================================= */

.vaughn-shop-wrapper {
    --vaughn-red: #ED3438;
    --vaughn-red-dim: rgba(237, 52, 56, 0.6);
    --vaughn-dark: #1a1a1a;
    --vaughn-darker: #111;
    --vaughn-gray: #8B8F91;
    --vaughn-light: #f5f5f5;
    
    --filter-gap: 0.75rem;
    --filter-padding: 0.5rem 1rem;
    --filter-radius: 4px;
    
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-bg-hover: rgba(255, 255, 255, 0.08);
    --color-bg-active: rgba(237, 52, 56, 0.15);
    
    background: var(--vaughn-dark);
    color: var(--color-text);
    min-height: 100vh;
}


/* =================================================================
   LAYOUT
   ================================================================= */

.vaughn-shop-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* =================================================================
   HERO CONTEXT ZONE
   ================================================================= */

.vaughn-hero-context {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vaughn-darker);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
}

.vaughn-hero-context .hero-inner {
    text-align: center;
    max-width: 800px;
}

.vaughn-hero-context h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.vaughn-hero-context .hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Line-specific hero styling */
.vaughn-hero-context.hero--vx1 {
    border-bottom-color: var(--vaughn-red);
}

.vaughn-hero-context.hero--ion {
    border-bottom-color: var(--vaughn-gray);
}


/* =================================================================
   FILTER BAR
   ================================================================= */

.vaughn-filter-section {
    background: var(--vaughn-darker);
    border-bottom: 1px solid var(--color-border);
}

.vaughn-filter-bar {
    padding: 1rem 0;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: var(--filter-gap);
    padding: 0.75rem 0;
}

.filter-row + .filter-row {
    border-top: 1px solid var(--color-border);
}

.filter-row--standalone {
    border-top-style: dashed;
}

/* Fade line/level rows when viewing standalone category */
.filter-row.is-faded {
    opacity: 0.4;
/*    pointer-events: none;*/
}

.filter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    min-width: 5rem;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    gap: var(--filter-gap);
    align-items: center;
    flex-wrap: wrap;
}

/* Horizontal scroll with fade edges (mobile) */
.filter-options--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.filter-options--scroll::-webkit-scrollbar {
    display: none;
}

/* Fade edges on scroll containers */
@media (max-width: 768px) {
    .filter-options--scroll {
        mask-image: linear-gradient(
            to right,
            transparent,
            black 0.75rem,
            black calc(100% - 0.75rem),
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 0.75rem,
            black calc(100% - 0.75rem),
            transparent
        );
        padding: 0 0.75rem;
        margin: 0 -0.75rem;
    }
}


/* =================================================================
   FILTER BUTTONS
   ================================================================= */

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--filter-padding);
    border-radius: var(--filter-radius);
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

.filter-btn.is-active {
    background: var(--color-bg-active);
    border-color: var(--vaughn-red);
    color: var(--vaughn-red);
}

.filter-btn.is-dimmed {
    opacity: 0.35;
}

.filter-btn.is-dimmed:hover {
    opacity: 0.6;
}

/* Logo buttons (VX1, ION) */
.filter-btn--logo {
    padding: 0.5rem 0.75rem;
    min-width: 4.5rem;
}

.filter-btn--logo svg,
.filter-btn--logo .logo-vx1 {
    height: 1.25rem;
    width: auto;
    fill: currentColor;
}

.filter-btn--logo .logo-ion {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.filter-btn--logo.is-active svg,
.filter-btn--logo.is-active .logo-ion {
    color: var(--vaughn-red);
}

/* Badge buttons (Pro Carbon, SELECT) */
.filter-btn--badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Standalone type buttons */
.filter-btn--standalone {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.filter-btn--standalone:hover {
    color: var(--color-text);
}

.filter-btn--standalone.is-active {
    color: var(--vaughn-red);
}


/* =================================================================
   RESULTS SUMMARY
   ================================================================= */

.vaughn-products-section {
    padding: 2rem 0 4rem;
}

.vaughn-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.results-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.results-clear {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--filter-radius);
    transition: all 0.15s ease;
}

.results-clear:hover {
    color: var(--vaughn-red);
    background: var(--color-bg-hover);
}


/* =================================================================
   PRODUCT GRID
   ================================================================= */

.vaughn-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vaughn-product-card {
    background: var(--vaughn-darker);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.vaughn-product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    aspect-ratio: 1;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.vaughn-product-card:hover .product-card-image img {
    transform: scale(1.03);
}

.product-card-placeholder {
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.product-card-info {
    padding: 1rem;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.product-card-meta {
/*    display: flex;*/
    display: none;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.product-line-badge,
.product-level-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
}

.product-line-badge--vx1 {
    background: rgba(237, 52, 56, 0.2);
    color: var(--vaughn-red);
}

.product-line-badge--ion {
    background: rgba(139, 143, 145, 0.2);
    color: var(--vaughn-gray);
}

.product-card-price {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}


/* =================================================================
   NO PRODUCTS STATE
   ================================================================= */

.vaughn-no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.vaughn-no-products p {
    margin: 0 0 1.5rem;
}

.vaughn-no-products .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--vaughn-red);
    color: #fff;
    text-decoration: none;
    border-radius: var(--filter-radius);
    font-weight: 500;
    transition: background 0.15s ease;
}

.vaughn-no-products .btn:hover {
    background: #c92a2e;
}


/* =================================================================
   LOADING STATES
   ================================================================= */

.vaughn-filter-bar.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.vaughn-product-grid.is-loading {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}


/* =================================================================
   SCREEN READER ONLY
   ================================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .vaughn-hero-context {
        min-height: 150px;
        padding: 1.5rem 1rem;
    }
    
    .vaughn-hero-context h1 {
        font-size: 1.75rem;
    }
    
    .filter-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .filter-row {
        flex-wrap: wrap;
    }
    
    .filter-row--lines .filter-options {
        width: 100%;
        justify-content: flex-start;
    }
    
    .vaughn-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card-info {
        padding: 0.75rem;
    }
    
    .product-card-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .vaughn-product-grid {
        grid-template-columns: 1fr;
    }
}
