﻿/* Page-specific styles for Products page */

.color-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 0; /* Flat design: sharp edges */
    margin-right: 5px;
    border: 2px solid var(--border-color);
    vertical-align: middle;
    cursor: pointer;
}

.color-circle.selected {
    border: 3px solid var(--primary-color);
}

.overlay-container {
    position: relative;
    display: inline-block;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Allows clicks to pass through */
}

.column.product {
    gap: 0;
    cursor: pointer;
}

.column.product img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: center;
}

.column.product h3 {
    background-color: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
    margin: 0;
    padding: 8px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all ease-in 0.2s;
}

.column.product:hover h3 {
    background: url("/img/concrete-texture.png");
    color: var(--secondary-color);
}


#panel {
    width: 0;
    min-width: 0;
    overflow: hidden;
    flex-grow: 0;
    flex-shrink: 0;
    transition: width 0.3s ease-in-out,
    min-width 0.3s ease-in-out,
    border 0.2s ease-in-out;
}

#panel.open {
    width: 800px;
    overflow: visible;
    border: 3px solid var(--primary-color);
}

.panel-header {
    background-color: var(--border-color);
}

.panel-header i {
    flex-grow: 0;
    font-size: 3rem;
    align-self: center;
}

#panel img {
    width: 300px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .column.product h3 {
        width: 100%;
        padding: 0;
    }
}

.product {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.product:hover {
    transform: translateY(-4px);
}
