/* Collection Page Styles */

/* Fix scrolling issues */
html, body {
    overflow-x: hidden;
    width: 100%;
   
}

/* FORCE ALL IMAGES TO BE SQUARE - NO BORDER RADIUS - ULTIMATE OVERRIDE */
html * img,
html *[class*="product"] img,
html *[class*="image"] img,
html .product-image,
html .product-image.main-image,
html .product-image.alt-image,
html .product-image-container,
html .product-card img,
html .product-card .product-image,
html .product-card .product-image-container,
html .products-grid .product-card img,
html .products-grid .product-image,
html .products-grid .product-image-container,
html img[src*="vinyl"],
html img[src*="Legends"],
html img[src*="webp"] {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-start-start-radius: 0 !important;
    border-start-end-radius: 0 !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.breadcrumb {
    background-color: #e9ecef;
    padding: 12px 0;
    margin-bottom: 0;
    margin-top: 95px;
    border: none;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline animation effect - starts full, closes on hover */
.breadcrumb a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #0B2341;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.breadcrumb a:hover {
    color: #0B2341;
}

.breadcrumb a:hover::before {
    width: 0;
}

/* Default state - full underline */
.breadcrumb a:not(:hover)::before {
    width: 100%;
    transition: width 0.4s ease;
}

.breadcrumb span {
    color: #6c757d;
    margin: 0 8px;
}

.collection-header {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    margin-top: 0;
}

.collection-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #0B2341;
    margin-bottom: 12px;
}

.collection-header p {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    
}

.collection-main {
    padding: 40px 0;
    background-color: #fff;
}

.collection-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Collection Layout with Filters */
.collection-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .collection-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .filters-sidebar {
        position: static;
    }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #dee2e6;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0B2341;
    margin: 0;
}

.clear-filters {
    background: none;
    border: none;
    color: #0B2341;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s ease;
}

.clear-filters:hover {
    color: #666;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-option span {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.hide-filters-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hide-filters-btn:hover {
    color: #0B2341;
}

@media (min-width: 769px) {
    .hide-filters-btn.sticky {
        position: fixed;
        top: 80px;
        right: 140px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 8px 12px;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border: 1px solid #e9ecef;
    }
}

.filter-section {
    margin-bottom: 32px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0B2341;
    margin-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    position: relative;
    background-color: #fff;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background-color: #0B2341;
    border-color: #0B2341;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.color-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.color-filter-item:hover {
    background-color: #f0f0f0;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.color-swatch:hover,
.color-swatch.active {
    box-shadow: 0 0 0 2px #0B2341;
    transform: scale(1.1);
}

.color-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Products Content */
.products-content {
    min-height: 600px;
}

.sort-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    background: none;
    z-index: 999;
    box-shadow: none;
    border-radius: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}



.results-count {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 0;
}

.results-count button {
    display: block !important;
    visibility: visible !important;
}

.sort-controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 0;
}

/* Filter Toggle Button in Results Count - Override */
.filter-toggle-btn-inline {
    background: none !important;
    color: #666 !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    visibility: visible !important;
    outline: none !important;
}

.filter-toggle-btn-inline:hover {
    background: none !important;
    color: #333 !important;
    transform: none !important;
    box-shadow: none !important;
}

.filter-toggle-btn-inline:focus,
.filter-toggle-btn-inline:active,
.filter-toggle-btn-inline:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

#filterToggle:focus,
#filterToggle:active,
#filterToggle:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.sort-controls label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.sort-controls select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
}

.sort-controls select:focus {
    outline: none;
    border-color: #0B2341;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-video-section {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

.collection-content .products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.collection-content .products-header {
    padding: 20px 0 0;
}

/* Simple Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Product Card Base Styles */
.product-card {
    position: relative;
    overflow: hidden;
}

.simple-product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: transparent !important;
    border: none !important;
}

.simple-product-card:hover {
    transform: scale(1.02);
}

.simple-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
}

.direct-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    border-radius: 0;
    background: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.direct-product-image.alt-image {
    opacity: 0;
    z-index: 2;
}

.simple-image-container:hover .direct-product-image.main-image {
    opacity: 0;
}

.simple-image-container:hover .direct-product-image.alt-image {
    opacity: 1;
}

/* Alt Text Placeholder Styles */
.alt-text-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border: none;
}

.alt-text-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0B2341;
    margin: 0 0 0.5rem 0;
}

.alt-text-placeholder span {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Text-only product cards with no backgrounds */
.text-only-product-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0;
    text-align: center;
}

.text-only-product-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0B2341;
    margin: 0 0 0.5rem 0;
}

.text-only-product-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.text-only-product-card span {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ULTIMATE OVERRIDE - Remove ALL shadows and backgrounds from product elements */
.product-card,
.product-card *,
.simple-product-card,
.simple-product-card *,
.simple-image-container,
.simple-image-container *,
.simple-product-info,
.simple-product-info *,
.products-grid .product-card,
.products-grid .product-card *,
.products-grid img,
img[src*="vinyl"],
img[src*="Select"],
img[src*="webp"],
img[src*="jpg"],
.direct-product-image,
.direct-product-image.main-image,
.direct-product-image.alt-image {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Filter Sidebar Styles */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    border-right: 1px solid #e0e0e0;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px 20px;
}

.filter-sidebar.open {
    left: 0;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
}

.filter-toggle-btn:hover {
    background: #e9ecef;
}

.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.filter-option label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    flex: 1;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    margin-right: 8px;
    border: 1px solid #ddd;
}

.color-swatch.white { background: #ffffff; }
.color-swatch.natural { background: #d4b896; }
.color-swatch.browns { background: #8b4513; }

/* Filtered Products Grid */
.filtered-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.products-container {
    flex: 1;
    transition: margin-left 0.3s ease;
}

.products-container.filtered {
    margin-left: 0;
}

.filtered-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
}

/* Filtered products single image flip */
.filtered-products-grid .simple-product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: transparent !important;
    border: none !important;
}

.filtered-products-grid .simple-product-card:hover {
    transform: scale(1.02);
}

.filtered-products-grid .simple-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
}

.filtered-products-grid .flip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.filtered-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.filtered-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filtered-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.filtered-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.filtered-product-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.filtered-product-overlay p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.see-in-room-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filtered-product-card:hover .see-in-room-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .filter-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .filtered-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

.simple-product-info {
    padding: 1rem 0;
    background: none;
    margin-left:15px;
}

.simple-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.simple-product-collection {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
margin-top:-5px;
    text-align: left;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Responsive adjustments for hero video */
@media (max-width: 768px) {
    .hero-video-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

.product-colors {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 16px;
}

.product-swatches {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.product-info:hover .product-swatches {
    display: flex;
}

.product-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-swatch:hover {
    box-shadow: 0 0 0 2px #0B2341;
    transform: scale(1.2);
}

.product-swatch.active {
    box-shadow: 0 0 0 2px #0B2341;
}

/* Loading States */
.product-card.loading {
    opacity: 0.7;
}

.product-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .product-info {
        padding: 12px 0;
    }
    
    .product-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .sort-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .collection-header h1 {
        font-size: 28px;
    }
    
    .collection-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .collection-main .container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .filters-sidebar {
        padding: 16px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .collection-header {
        padding: 30px 0;
    }
    
    .collection-header h1 {
        font-size: 24px;
    }
}


/* CRITICAL FIX - Force products to display - HIGHEST PRIORITY */
.products-grid,
.products-grid.visible,
.products-grid.filtered,
.products-grid[data-count] {
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
    pointer-events: auto !important;
}

.product-card,
.product-card.visible,
.product-card.active,
.product-card.filtered,
.product-card * {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
