/* Products Section */
#products-section {
    padding: 1rem 0;
    background-color: #f8f9fa;
}

#products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2%;
}

/* Single Product Container - Horizontal Layout */
.single-product-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.product-image-side {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
}

.product-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Pridi', sans-serif;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.product-price {
    font-size: 1.5rem;
    color: black;
    font-weight: bold;
    font-family: 'Lexend Deca', sans-serif;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.product-description {
    display: none !important;
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Lexend Deca', sans-serif;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-color-selector {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.color-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.color-palette-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.color-option.active {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

.color-option.active i {
    color: white;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.color-option-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    position: relative;
}

.color-option-disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.color-option-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 2px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.color-option-disabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 2px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.color-option-disabled i {
    display: none;
}

.color-unavailable-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Lexend Deca', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-to-cart-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.add-to-cart-btn.added-to-cart {
    animation: addedToCartAnimation 0.6s ease-out;
    pointer-events: none;
}

.add-to-cart-btn.added-to-cart .add-to-cart-icon {
    opacity: 0;
    transform: scale(0);
}

@keyframes addedToCartAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single-product-container {
        flex-direction: column;
        gap: 0rem;
        padding: 1.5rem;
    }
    
    .product-image-side {
        max-width: 100%;
    }
    
    .product-main-image {
        max-width: 100%;
    }
    
    .product-title-price-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .product-color-selector {
        padding: 0.75rem;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
}
