        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { overflow-x: hidden; max-width: 100vw; width: 100%; }
        html { overflow-x: hidden; }
        body { overflow-x: hidden; position: relative; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
        
        .hidden { display: none !important; }
        
        .basket-btn { background: #667eea; color: white; padding: 10px 20px; border-radius: 25px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s; border: none; cursor: pointer; }
        .basket-btn:hover { background: #764ba2; transform: translateY(-2px); }
        @media (max-width: 768px) {
            .basket-btn { display: none; }
            .mobile-basket { display: block; }
            .page-content { padding: 10px 8px !important; max-width: 100% !important; overflow-x: hidden !important; width: 100% !important; }
            .page-header { padding: 30px 10px !important; margin-bottom: 15px !important; }
            .page-header h1 { font-size: 1.5em !important; }
            .page-header p { font-size: 0.95em !important; }
            .calculator-container { padding: 15px 10px !important; border-radius: 12px !important; overflow: hidden !important; }
            /* Staircase Designer mobile layout */
            #staircaseDesignerRoot > div { display: block !important; }
            #staircaseDesignerRoot > div > div { margin-bottom: 20px !important; width: 100% !important; max-width: 100% !important; }
            #staircaseDesignerRoot svg { max-width: 100% !important; height: auto !important; }
            #staircaseDesignerContainer { overflow-x: hidden !important; }
            #staircaseDesignerRoot { overflow-x: hidden !important; }
            .product-tab { padding: 8px 10px !important; font-size: 11px !important; min-width: auto !important; flex: 1 1 auto !important; }
            .product-header { padding: 15px !important; }
            .product-header h2 { font-size: 1.3em !important; }
            .input-section { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
            .input-group { width: 100% !important; min-width: 0 !important; }
            input, select { padding: 10px !important; font-size: 14px !important; }
            .section-card { padding: 12px !important; margin-bottom: 15px !important; overflow: hidden !important; }
            .section-title { font-size: 1em !important; margin-bottom: 12px !important; }
            .color-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
            .color-option { height: 50px !important; min-width: 0 !important; }
            .color-label { font-size: 8px !important; padding: 2px 4px !important; }
            .btn { padding: 10px 14px !important; font-size: 12px !important; white-space: nowrap !important; }
            .btn-large { padding: 12px 20px !important; font-size: 14px !important; width: 100% !important; }
            .total-cost { font-size: 1.8em !important; }
            .cost-section { padding: 15px !important; }
            .cost-section > div:last-child { flex-direction: column !important; gap: 10px !important; }
            .results { gap: 10px !important; display: grid !important; grid-template-columns: 1fr 1fr !important; }
            .result-card { padding: 12px !important; min-width: 0 !important; }
            .result-value { font-size: 1.1em !important; }
            .result-label { font-size: 11px !important; }
            .canvas-container { padding: 10px !important; margin: 10px 0 !important; }
            #glassSvg { max-width: 100% !important; height: auto !important; }
            #glassSvgContainer { background: linear-gradient(135deg, #fafafa 0%, #f0f4f8 100%); }
            .list-item { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; padding: 10px !important; }
            .list-item > div { width: 100% !important; }
            .modal-content { padding: 15px !important; margin: 10px !important; max-width: calc(100vw - 20px) !important; max-height: 90vh !important; overflow-y: auto !important; }
            .modal-title { font-size: 1.2em !important; }
            #categoryButtonsContainer { gap: 8px !important; }
            #categoryButtonsContainer button { padding: 8px 12px !important; font-size: 11px !important; }
        }
        @media (max-width: 480px) {
            .input-section { grid-template-columns: 1fr !important; }
            .color-grid { grid-template-columns: repeat(2, 1fr) !important; }
            .results { grid-template-columns: 1fr !important; }
            .product-tab { font-size: 10px !important; padding: 6px 8px !important; }
            #vintageGrid { grid-template-columns: repeat(2, 1fr) !important; }
            .vintage-color { height: 80px !important; }
            .cutout-form > div:nth-child(2) { grid-template-columns: 1fr !important; }
        }
        
        /* Prevent horizontal scroll */
        .page-content, .calculator-container, .section-card, .input-section, .results, table {
            max-width: 100%;
            overflow-x: hidden;
        }
        input, select, textarea, button {
            max-width: 100%;
        }
        .basket-badge { background: #ff4757; border-radius: 50%; padding: 2px 8px; font-size: 12px; min-width: 20px; text-align: center; }
        
        .page-content { max-width: 1400px; margin: 0 auto; padding: 30px 20px; }
        .page-header { 
            background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('attached_assets/image_1767742183544_opt.jpg'); 
            background-size: cover; 
            background-position: center; 
            background-repeat: no-repeat;
            color: white; 
            padding: 90px 40px; 
            border-radius: 20px; 
            margin-bottom: 30px; 
            text-align: center; 
            box-shadow: 0 10px 40px rgba(0,0,0,0.3); 
        }
        .page-header h1 { font-size: 2.8em; margin-bottom: 10px; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
        .page-header p { font-size: 1.2em; color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
        
        .calculator-container { background: rgba(255,255,255,0.98); border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
        .product-header { background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)); padding: 25px; border-radius: 15px; margin-bottom: 30px; border-left: 5px solid #667eea; }
        .product-header h2 { color: #667eea; margin-bottom: 8px; font-size: 1.8em; }
        
        .input-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
        .input-section.two-col { grid-template-columns: repeat(2, 1fr); }
        .input-section.single-col { grid-template-columns: 1fr; }
        .input-group { display: flex; flex-direction: column; }
        label { margin-bottom: 8px; font-weight: 600; color: #555; font-size: 14px; }
        input, select { padding: 14px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px; transition: all 0.3s ease; background: white; }
        input:focus, select:focus { border-color: #667eea; outline: none; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); }
        
        .section-card { background: rgba(249, 250, 255, 0.8); border: 2px solid #e8eaf6; border-radius: 15px; padding: 25px; margin-bottom: 25px; }
        .section-title { font-size: 1.3em; font-weight: 700; color: #667eea; margin-bottom: 20px; }
        
        .color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; margin-top: 15px; }
        .color-option { height: 70px; border-radius: 12px; cursor: pointer; display: flex; align-items: end; justify-content: center; transition: all 0.3s ease; border: 3px solid #e0e0e0; position: relative; }
        .color-option:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
        .color-option.selected { border-color: #667eea; border-width: 4px; transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
        .color-label { background: rgba(0,0,0,0.7); color: white; padding: 4px 10px; border-radius: 6px; font-size: 11px; margin-bottom: 6px; font-weight: 600; z-index: 1; }
        
        .canvas-container { text-align: center; margin: 30px 0; padding: 30px; border-radius: 15px; background: white; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
        canvas { border: 2px solid #e0e0e0; background: #fafafa; border-radius: 10px; max-width: 100%; }
        
        .results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 30px 0; }
        .result-card { background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05)); padding: 25px; border-radius: 15px; border: 2px solid rgba(102, 126, 234, 0.2); }
        .result-label { font-weight: 600; color: #555; margin-bottom: 8px; font-size: 0.9em; }
        .result-value { font-size: 1.5em; color: #667eea; font-weight: 700; }
        
        .cost-section { margin-top: 30px; padding: 35px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 15px; text-align: center; color: white; }
        .total-cost { font-size: 3em; font-weight: 800; margin: 20px 0; }
        
        .btn { padding: 14px 28px; border: none; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; transition: all 0.3s ease; }
        .btn-primary { background: #667eea; color: white; }
        .btn-success { background: #28a745; color: white; }
        .btn-danger { background: #dc3545; color: white; }
        .btn-large { font-size: 18px; padding: 18px 40px; }
        .btn:hover { transform: translateY(-2px); opacity: 0.9; }
        
        .list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: white; border-radius: 8px; margin-bottom: 10px; border-left: 4px solid #667eea; gap: 10px; }
        .list-item-info { flex: 1; min-width: 0; }
        .list-item-name { font-weight: 600; color: #333; margin-bottom: 4px; }
        .list-item-details { font-size: 12px; color: #666; }
        
        .toast { position: fixed; top: 20px; right: 20px; padding: 18px 25px; border-radius: 12px; color: white; font-weight: 600; z-index: 10001; animation: slideIn 0.3s; }
        @keyframes slideIn { from { transform: translateX(400px); } to { transform: translateX(0); } }
        .toast.success { background: linear-gradient(135deg, #28a745, #20c997); }
        .toast.error { background: linear-gradient(135deg, #ff4757, #ff6348); }
        .toast.info { background: linear-gradient(135deg, #17a2b8, #138496); }
        
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
        .modal-content { background: white; padding: 40px; border-radius: 20px; max-width: 800px; width: 100%; max-height: 85vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 2px solid #e0e0e0; }
        .modal-title { font-size: 1.8em; color: #667eea; font-weight: 700; }
        .modal-close { background: none; border: none; font-size: 32px; cursor: pointer; color: #999; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .modal-close:hover { background: #f0f0f0; color: #333; }
        .basket-item { background: white; border: 2px solid #e0e0e0; border-radius: 15px; padding: 20px; margin-bottom: 20px; }
        .basket-item-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; }
        .basket-item-title { font-size: 1.2em; font-weight: 700; color: #333; }
        .basket-item-price { font-size: 1.4em; font-weight: 700; color: #667eea; }
        .basket-summary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 25px; border-radius: 15px; margin-top: 25px; text-align: center; }
        .basket-empty { text-align: center; padding: 60px 20px; }
        .basket-empty-icon { font-size: 4em; margin-bottom: 20px; }
        
        footer { background-color: rgb(165, 29, 141); color: white; text-align: center; padding: 1.5rem; margin-top: auto; }
