/* Gallery Product Page Styles */

.gallery-product-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Room Simulation Display Styles */
.room-simulation-display {
    position: relative;
    width: 100%;
}

#mainSimulationContainer {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#mainSimulationContainer img,
#mainSimulationContainer video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.simulation-thumbnail {
    position: relative;
    transition: all 0.3s ease;
}

.simulation-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.simulation-thumbnail.active {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3) !important;
}

#simulationThumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

#simulationThumbnails .col-3,
#simulationThumbnails .col-md-2 {
    padding: 0 5px;
}

.room-controls {
    margin-top: 20px;
}

/* Room Visualization Container */
.room-visualization-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.room-display {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.room-template {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Room Wall Styles */
.room-wall {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
}

/* Room Furniture Templates */
.room-furniture {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Lounge Template */
.room-template.lounge .room-furniture::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 40%;
    height: 30%;
    background: #9e9e9e;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.room-template.lounge .room-furniture::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 40%;
    height: 25%;
    background: #757575;
    border-radius: 8px 8px 0 0;
}

/* Bedroom Template */
.room-template.bedroom .room-furniture::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 35%;
    height: 35%;
    background: #bdbdbd;
    border-radius: 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.room-template.bedroom .room-furniture::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 35%;
    height: 30%;
    background: #9e9e9e;
    border-radius: 4px;
}

/* Hall Template */
.room-template.hall .room-furniture::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 30%;
    height: 25%;
    background: #8d6e63;
    border-radius: 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* Product Frame Overlay */
.product-frame-overlay {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: white;
    border: 8px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-frame-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Room Controls */
.room-controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Configuration Panel */
.gallery-product-config {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-product-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.gallery-product-artist {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.wishlist-btn {
    font-size: 1.5rem;
    color: #666;
    text-decoration: none;
}

.wishlist-btn:hover {
    color: #dc3545;
}

.price-range {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.price-display {
    color: #333;
}

/* Configuration Steps */
.config-step {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #333;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Attribute Options - Enhanced Styles */
.attribute-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attribute-option {
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    position: relative;
    min-height: 60px;
}

.attribute-option:hover {
    border-color: #999;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.attribute-option.selected {
    border-color: #333;
    background: #f5f5f5;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.attribute-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex: 1;
}

.attribute-label {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

.attribute-option.selected .attribute-label {
    color: #333;
    font-weight: 600;
}

.attribute-price {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-left: auto;
}

.attribute-price.included {
    color: #28a745;
    font-weight: 500;
    font-size: 0.9rem;
}

.attribute-option.selected .attribute-price {
    color: #333;
    font-weight: 700;
}

.attribute-checkmark {
    color: #28a745;
    font-size: 1.25rem;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Frame Options - Special styling with preview images */
.attribute-option.frame-option {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.frame-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.frame-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attribute-option.frame-option:hover .frame-preview-image img {
    transform: scale(1.05);
}

.attribute-option.frame-option.selected .frame-preview-image {
    border-bottom: 3px solid #333;
}

.attribute-option.frame-option .attribute-option-content {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
}

.attribute-option.frame-option .attribute-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Size Options - Yellow Korner Style */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Finish Options */
.finish-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finish-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.finish-option:hover {
    border-color: #666;
    background: #f5f5f5;
}

.finish-option.selected {
    border-color: #333;
    background: #333;
    color: white;
}

.finish-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.finish-description {
    font-size: 0.85rem;
    color: #666;
}

.finish-option.selected .finish-description {
    color: #ccc;
}

/* Final Price Display Section */
.final-price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-top: 2px solid #e0e0e0 !important;
}

.final-price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* Selected Variant Info */
.selected-variant-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.variant-details {
    display: flex;
    justify-content: space-between;
}

/* Price Display Section */
.price-display-section {
    padding: 1rem 0;
    text-align: center;
}

.price-display-section .text-center {
    text-align: center !important;
}

.final-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    display: inline-block;
    line-height: 1.2;
}

/* Add to Cart Section */
.add-to-cart-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-cta-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.gallery-cta-row .wishlist-toggle,
.gallery-cta-row .compare-toggle {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #e5e5e5 !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.gallery-cta-row .wishlist-toggle:hover,
.gallery-cta-row .compare-toggle:hover {
    background-color: #f8f9fa !important;
    border-color: #d0d0d0 !important;
    color: #000000 !important;
}

.gallery-cta-row .wishlist-toggle.active,
.gallery-cta-row .compare-toggle.active {
    background-color: #2c2c2c !important;
    border-color: #2c2c2c !important;
    color: #ffffff !important;
}

.gallery-cta-row .wishlist-toggle i,
.gallery-cta-row .compare-toggle i {
    font-size: 1rem;
}

.gallery-cta-row #addToCartBtn {
    flex: 1 1 auto;
    min-width: 200px;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem;
    font-weight: 600;
    background-color: #2c2c2c !important;
    border-color: #2c2c2c !important;
    color: #ffffff !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.gallery-cta-row #addToCartBtn:hover:not(:disabled) {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

.gallery-cta-row #addToCartBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gallery-cta-row #addToCartBtn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .room-display {
        height: 400px;
    }
    
    .gallery-product-config {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .room-display {
        height: 300px;
    }
    
    .product-frame-overlay {
        width: 80%;
        top: 15%;
    }
}

