/* ============================================================================
   LUMAPRINTS INTERFACE STYLING - EXACT MATCH TO OFFICIAL DESIGN
   ============================================================================ */

/* Main Lumaprints Interface Container */
.lumaprints-interface {
    display: flex;
    width: 100%;
    min-height: 500px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Left Sidebar - Categories (Lumaprints Style) */
.lumaprints-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px;
    flex-shrink: 0;
}

.lumaprints-categories h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.category-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.category-item.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.category-icon {
    margin-right: 10px;
    font-size: 16px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

/* Right Panel - Main Content (Lumaprints Style) */
.lumaprints-main-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
}

/* Product Category Sections */
.product-category-section {
    display: none;
}

.product-category-section.active {
    display: block;
}

.product-category-section h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Products Grid (Lumaprints Style) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.product-option.selected {
    border-color: #007bff;
    background: #f0f8ff;
}

/* Product Thumbnails */
.product-thumbnail {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
}

.product-preview {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    position: relative;
}

.canvas-preview {
    background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
}

.framed-preview {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border: 3px solid #654321;
}

.paper-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid #ddd;
}

.metal-preview {
    background: linear-gradient(135deg, #C0C4CC 0%, #9C99A3 100%);
    border: 1px solid #888;
}

/* Product Info */
.product-info {
    margin-bottom: 15px;
}

.product-info h5 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.product-info p {
    color: #666;
    margin: 0;
    font-size: 12px;
}

/* Select Product Button */
.btn-select-product {
    width: 100%;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-select-product:hover {
    background: #0056b3;
}

/* Size Selection Section */
.size-selection-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.size-selection-section h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.size-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: #007bff;
}

.size-option.selected {
    border-color: #007bff;
    background: #f0f8ff;
}

.size-display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.size-price {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
}

/* Order Summary Panel */
.order-summary-panel {
    position: sticky;
    top: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.quantity-section {
    margin-bottom: 20px;
}

.quantity-section h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #007bff;
    color: white;
}

#quantity {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

/* Price Display */
.price-display {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    text-align: center;
}

.price-info {
    color: #666;
    font-size: 14px;
}

/* Proceed Button */
.btn-proceed-order {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-proceed-order:hover {
    background: #218838;
}

.btn-proceed-order:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lumaprints-interface {
        flex-direction: column;
    }
    
    .lumaprints-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 15px;
    }
    
    .category-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .category-item {
        flex-shrink: 0;
        min-width: 120px;
        padding: 15px 20px; /* Larger touch targets */
        font-size: 14px;
    }
    
    .lumaprints-main {
        padding: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        padding: 15px;
        min-height: 120px; /* Larger touch targets */
    }
    
    .sizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .size-option {
        padding: 15px 10px; /* Larger touch targets */
        font-size: 14px;
    }
    
    /* Mobile cart and order controls */
    .order-controls {
        padding: 20px 15px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 2px solid #e9ecef;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .quantity-controls {
        gap: 15px;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .quantity-btn {
        width: 50px;
        height: 50px; /* Larger touch targets */
        font-size: 20px;
    }
    
    .quantity-input {
        width: 80px;
        height: 50px;
        font-size: 18px;
        text-align: center;
    }
    
    .add-to-cart-btn,
    .checkout-btn {
        padding: 15px 25px;
        font-size: 16px;
        min-height: 50px; /* Larger touch targets */
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .lumaprints-sidebar {
        padding: 10px;
    }
    
    .category-item {
        min-width: 100px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .lumaprints-main {
        padding: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .product-card {
        padding: 12px;
        min-height: 100px;
    }
    
    .sizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .size-option {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .order-controls {
        padding: 15px 10px;
    }
    
    .quantity-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .quantity-input {
        width: 70px;
        height: 45px;
        font-size: 16px;
    }
}
