/* COLOR SWATCHES FOR VINYL ACCESSORIES - MATCHING PRODUCT PAGES */

/* Product Image Link - clickable wrapper */
.product-image-link {
    display: block;
    text-decoration: none !important;
    cursor: pointer;
}

/* Product Title Link - clickable title, NO styling changes */
.product-title-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.product-title-link:hover,
.product-title-link:hover .product-name {
    text-decoration: none !important;
    color: inherit;
}

/* View Details Button - NO underline */
.view-details-btn {
    text-decoration: none !important;
}

.view-details-btn:hover,
.view-details-btn:focus,
.view-details-btn:active {
    text-decoration: none !important;
}

/* CRITICAL FIX - Force product info to be always visible on vinyl accessories pages */
body .products-grid .product-card .product-info,
body[data-collection-name] .products-grid .product-card .product-info,
.products-grid .product-card .product-info {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    pointer-events: auto !important;
    position: static !important;
}

/* Force ALL child elements of product-info to be visible */
.products-grid .product-card .product-info *,
.products-grid .product-card .product-brand,
.products-grid .product-card .product-name,
.products-grid .product-card .color-swatches,
.products-grid .product-card .swatch-section-title,
.products-grid .product-card .view-details-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

.products-grid .product-card .product-brand,
.products-grid .product-card .product-name,
.products-grid .product-card .swatch-section-title,
.products-grid .product-card .view-details-btn {
    display: block !important;
}

/* Swatch grid needs grid display, not block */
.products-grid .product-card .swatch-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.products-grid .product-card .swatch-item {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Color Swatches Container - EXPLICIT DISPLAY */
.color-swatches {
    display: block !important;
    margin-top: 1rem;
    padding: 1.75rem 1rem 1rem 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    position: relative;
}

/* Color name label - FIXED at TOP LEFT, updates on swatch hover */
.current-color-label {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    background: transparent;
    color: rgba(8, 26, 48, 0.95);
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show label when hovering over any swatch */
.current-color-label.show {
    opacity: 1;
    visibility: visible;
}

.swatch-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Swatch Grid - Matching product pages */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.25rem;
    max-height: none;
    overflow: visible;
}

/* Individual Swatch Item - Matching product pages */
.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0.25rem;
    border-radius: 0;
    background: transparent;
    border: none;
}

.swatch-item:hover {
    transform: translateY(-2px);
}

.swatch-item.active {
    background: transparent;
}

.swatch-item.single {
    cursor: default;
    pointer-events: none;
}

/* Swatch Image - SQUARE with aspect-ratio - NO BORDER RADIUS */
.swatch-image {
    width: 30px;
    height: 30px;
    aspect-ratio: 1;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.swatch-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Swatch items - no individual tooltips */
.swatch-item {
    cursor: pointer;
}

/* Swatch Name - HIDDEN (tooltips show on hover instead) */
.swatch-name {
    display: none;
}

/* View More Details Button Styling - SUPER STRONG */
.products-grid .product-card .view-details-btn,
button.view-details-btn,
.view-details-btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    margin-top: 1rem !important;
    background: white !important;
    background-color: white !important;
    color: #081a30 !important;
    border: 1px solid #081a30 !important;
    border-style: solid !important;
    border-color: #081a30 !important;
    border-width: 1px !important;
    border-radius: 1px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
    text-align: center !important;
    outline: none !important;
}

.products-grid .product-card .view-details-btn:hover,
button.view-details-btn:hover,
.view-details-btn:hover {
    background: #081a30 !important;
    background-color: #081a30 !important;
    color: white !important;
    box-shadow: 0 5px 10px rgba(8, 26, 48, 0.4) !important;
    transform: translateY(-3px) !important;
    border-color: #081a30 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swatch-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 0.2rem;
    }
    
    .swatch-image {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .swatch-grid {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        gap: 0.2rem;
    }
    
    .swatch-image {
        width: 25px;
        height: 25px;
    }
}

.collection-section-header {
    grid-column: 1 / -1;
    padding: 1rem 0 0.5rem 0;
    margin-top: 1.5rem;
    border-bottom: 2px solid #0B2341;
}

.collection-section-header:first-child {
    margin-top: 0;
}

.collection-section-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #0B2341;
    transition: color 0.3s ease;
}

.collection-section-link:hover {
    color: #1a4a7a;
    text-decoration: none;
}

.collection-section-link h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

.collection-section-count {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

.collection-section-arrow {
    font-size: 1.4rem;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.collection-section-link:hover .collection-section-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .collection-section-link h2 {
        font-size: 1.3rem;
    }
    
    .collection-section-header {
        margin-top: 1rem;
    }
}

.footer .social-links a {
    color: #b8c5d1;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #ffffff;
}

.footer .social-links a svg {
    fill: currentColor;
}
