/* Product Configuration Page Styles */

/* Loading State */
.loading-state {
    padding: 4rem 0;
    text-align: center;
    background: #F8FAFC;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    color: #6B7280;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3B82F6;
}

.loading-spinner p {
    font-size: 1.125rem;
    margin: 0;
}

/* Error State */
.error-state {
    padding: 4rem 0;
    background: #F8FAFC;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: #EF4444;
    margin-bottom: 1.5rem;
}

.error-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

/* Product Page */
.product-page {
    padding: 120px 0 40px 0;
    background: #f8fafc;
    margin-top: 0;
}

/* Scope container to only product page content, not header/footer */
.product-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.product-image-wrapper .product-image {
    margin-bottom: 0;
}

.product-image-prev,
.product-image-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    color: #1e3a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product-image-prev:hover,
.product-image-next:hover {
    background: #fff;
    border-color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-image-prev { left: 12px; }
.product-image-next { right: 12px; }

.product-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .placeholder {
    text-align: center;
    color: #9CA3AF;
}

.product-image .placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #1e3a8a;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 20px;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 20px;
}

.product-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li:last-child {
    border-bottom: none;
}

/* Configuration Section */
.configuration-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 30px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr; /* stack rows vertically */
    gap: 32px; /* Increased gap for better spacing between config sections */
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Make dynamic pricing rows span full width and use a single column */
.form-row.dynamic-pricing-option,
.form-row.dynamic-pricing-option.full-width {
    grid-template-columns: 1fr;
    margin-bottom: 8px; /* Add spacing between config option rows */
    padding-bottom: 24px; /* Add padding at bottom for visual separation */
    border-bottom: 1px solid #f1f5f9; /* Subtle border between sections */
}

.form-row.dynamic-pricing-option:last-child,
.form-row.dynamic-pricing-option.full-width:last-child {
    border-bottom: none; /* Remove border from last item */
    padding-bottom: 0;
}

.form-row.dynamic-pricing-option .form-group,
.form-row.dynamic-pricing-option.full-width .form-group {
    grid-column: 1 / -1;
    /* Remove border/background when containing enhanced options for cleaner look */
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Measurement fields should use normal 2-column layout */
.form-row.dynamic-pricing-option.measurement-fields {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0; /* No extra margin for measurement fields */
}

.form-row.dynamic-pricing-option.measurement-fields .form-group {
    grid-column: auto;
    /* Keep styling for measurement field form-groups */
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-group {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-group.required label::after {
    content: " *";
    color: #ef4444;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px; /* Increased margin for better spacing */
    font-size: 15px; /* Slightly larger for better readability */
}

/* Special styling for labels in dynamic pricing options */
.form-row.dynamic-pricing-option .form-group label,
.form-row.dynamic-pricing-option.full-width .form-group label {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px; /* More space before options */
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

/* Error state for invalid inputs */
.form-group input.input-error,
.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    background-color: #FEF2F2;
}

/* Error Messages */
.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Minimum Requirements Info Box */
.minimum-requirements-info {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.minimum-requirements-info .info-icon {
    color: #3B82F6;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.minimum-requirements-info .info-content {
    flex: 1;
}

.minimum-requirements-info .info-content h5 {
    margin: 0 0 0.5rem 0;
    color: #1E40AF;
    font-size: 1rem;
    font-weight: 600;
}

.minimum-requirements-info .info-content p {
    margin: 0;
    color: #1E3A8A;
    font-size: 0.875rem;
    line-height: 1.6;
}

.minimum-requirements-info .info-content strong {
    color: #1E40AF;
    font-weight: 600;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.06s ease;
    flex: 1;
    min-width: 120px;
    position: relative;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.02);
}

.radio-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 2px 6px rgba(30,58,138,0.08);
}

.radio-option input[type="radio"] {
    margin: 0;
    width: auto;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: 500;
    color: #374151;
}

.radio-option input[type="radio"]:checked + label {
    color: #1e3a8a;
    font-weight: 700;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #1e3a8a;
    background: #f0f7ff;
    box-shadow: 0 3px 10px rgba(30,58,138,0.12);
}

.info-note {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    font-size: 14px;
    color: #0c4a6e;
}

/* Price Display */
.price-display {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.price-display .total-label {
    font-size: 18px;
    color: #374151;
    margin-bottom: 5px;
}

.price-display .total-price {
    font-size: 36px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 15px;
}

.price-breakdown {
    font-size: 14px;
    color: #6b7280;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    max-height: 400px;
    overflow-y: auto;
}

.price-breakdown .breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-breakdown .breakdown-item.feature-item {
    justify-content: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 6px;
}

.price-breakdown .breakdown-item.feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.price-breakdown .breakdown-item.feature-item span {
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.price-breakdown .breakdown-item.feature-item i {
    flex-shrink: 0;
}

.price-breakdown .breakdown-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}

/* Cart Section */
.cart-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-selector label {
    font-weight: 600;
    color: #374151;
    margin: 0;
    white-space: nowrap;
}

.quantity-selector input[type="number"] {
    width: 80px;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
}

.cart-price-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.cart-price-display .price-label {
    font-weight: 600;
    color: #64748b;
    font-size: 16px;
}

.cart-price-display .cart-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.request-quote-btn {
    width: 100%;
    margin-top: 0;
}

.inline-cart-price {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

/* Scope button styles to product page only */
.product-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.product-page .btn-primary {
    background: #1e3a8a;
    color: white;
}

.product-page .btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.product-page .btn-secondary {
    background: #6b7280;
    color: white;
}

.product-page .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-option {
        min-width: auto;
    }

    .cart-section {
        gap: 12px;
    }
    
    .cart-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .quantity-selector {
        justify-content: center;
    }

    .cart-price-display {
        justify-content: center;
        padding: 10px 0;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .request-quote-btn {
        width: 100%;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }

    .product-image-prev,
    .product-image-next {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    .product-image-prev { left: 8px; }
    .product-image-next { right: 8px; }
}

/* ===== ENHANCED PRICING OPTIONS STYLES (compact) ===== */
.enhanced-options {
    display: grid;
    gap: 10px;
    margin-top: 0;
    width: 100%;
    /* Default: 2 cols; JS applies grid-1..grid-4 etc. for dynamic column count */
    grid-template-columns: repeat(2, 1fr);
}

/* Ensure dynamic rows span full width */
.dynamic-pricing-option.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

/* Make the inner options container stretch */
.dynamic-pricing-option.full-width .enhanced-options {
    width: 100%;
}

/* Smart grid: 1–4 options = that many columns in one row (fill the line); 5+ = max 4 columns with wrap */
.enhanced-options.grid-1 { grid-template-columns: 1fr; }
.enhanced-options.grid-2 { grid-template-columns: repeat(2, 1fr); }
.enhanced-options.grid-3 { grid-template-columns: repeat(3, 1fr); }
.enhanced-options.grid-4 { grid-template-columns: repeat(4, 1fr); }
.enhanced-options.grid-5,
.enhanced-options.grid-6,
.enhanced-options.grid-7,
.enhanced-options.grid-8,
.enhanced-options.grid-9,
.enhanced-options.grid-10,
.enhanced-options.grid-11-plus { grid-template-columns: repeat(4, 1fr); }

.enhanced-option {
    position: relative;
}

/* Single box only: remove outer box from .radio-option so only .enhanced-option-label shows the border */
.enhanced-options .radio-option.enhanced-option {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
}

.enhanced-options .radio-option.enhanced-option:hover {
    border: none;
    background: transparent;
    box-shadow: none;
}

.enhanced-options .radio-option.enhanced-option:has(input[type="radio"]:checked) {
    border: none;
    background: transparent;
    box-shadow: none;
}

.enhanced-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.enhanced-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.enhanced-option-label:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.enhanced-option input[type="radio"]:checked + .enhanced-option-label {
    border-color: #1e3a8a;
    border-width: 2px;
    background: #dbeafe;
    color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.25), 0 2px 6px rgba(30, 58, 138, 0.15);
}

.enhanced-option input[type="radio"]:checked + .enhanced-option-label::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1e3a8a;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.option-content {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.option-image {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    color: #1e293b;
}

.multiplier-info {
    font-size: 10px;
    background: rgba(30, 58, 138, 0.12);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
}

.enhanced-option input[type="radio"]:checked + .enhanced-option-label .multiplier-info {
    background: rgba(255, 255, 255, 0.35);
}

.option-description {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 0;
    opacity: 0.9;
    color: #64748b;
}

.option-characteristics {
    margin-top: 2px;
}

.option-characteristics ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-characteristics li {
    font-size: 11px;
    margin: 2px 0;
    padding-left: 12px;
    position: relative;
}

.option-characteristics li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.enhanced-option input[type="radio"]:checked + .enhanced-option-label .option-characteristics li::before {
    color: #1e3a8a;
}

.more-indicator {
    font-style: italic;
    opacity: 0.8;
}

/* Technical Specs Icon (compact) */
.tech-specs-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    z-index: 10;
    pointer-events: auto;
}

.tech-specs-icon * {
    pointer-events: none; /* Prevent child elements from blocking clicks */
}

.tech-specs-icon:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.tech-specs-icon i { 
    font-size: 10px; 
}

/* Technical Specs Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
}

.modal-body { padding: 16px 20px; }

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}
.tech-specs-modal .modal-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Option details modal: image + specs */
.tech-specs-modal .option-details-modal-content {
    max-width: 560px;
}

.tech-specs-modal .option-details-modal-content .option-detail-image-wrap {
    text-align: center;
    margin-bottom: 16px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    /* Fixed size desktop */
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-specs-modal .option-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tech-specs-modal .option-detail-specs {
    margin-top: 0;
}

.tech-specs-modal .option-detail-specs-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #1e293b;
}

.tech-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
}

.tech-specs-list li:last-child {
    border-bottom: none;
}

.tech-specs-list li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    margin-right: 8px;
}

/* Responsive Design for Enhanced Options */
@media (max-width: 768px) {
    .form-grid {
        gap: 28px;
    }
    
    .form-row.dynamic-pricing-option,
    .form-row.dynamic-pricing-option.full-width {
        padding-bottom: 20px;
    }
    
    .form-row.dynamic-pricing-option .form-group label,
    .form-row.dynamic-pricing-option.full-width .form-group label {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .enhanced-options {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .option-content {
        gap: 8px;
    }
    
    .enhanced-option-label {
        padding: 12px 14px;
        min-height: 52px;
    }

    .tech-specs-icon {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
        font-size: 12px;
        z-index: 20;
    }

    .tech-specs-icon i {
        font-size: 10px;
    }

    .option-image {
        width: 36px;
        height: 36px;
    }

    /* Modal option image: fixed size on tablet/mobile */
    .tech-specs-modal .option-details-modal-content .option-detail-image-wrap {
        height: 260px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* On tablets, keep same column count (1–4) so options stay in one line */
    .enhanced-options.grid-4,
    .enhanced-options.grid-5,
    .enhanced-options.grid-6,
    .enhanced-options.grid-7,
    .enhanced-options.grid-8,
    .enhanced-options.grid-9,
    .enhanced-options.grid-10,
    .enhanced-options.grid-11-plus {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .product-page .container {
        padding: 0 15px;
    }

    .product-page {
        padding: 100px 0 20px 0;
    }

    .tech-specs-icon {
        top: 5px;
        right: 5px;
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .tech-specs-icon i {
        font-size: 9px;
    }

    /* Modal option image: smaller fixed size on small mobile */
    .tech-specs-modal .option-details-modal-content .option-detail-image-wrap {
        height: 200px;
    }

    .product-image-section,
    .product-info-section,
    .configuration-section {
        padding: 20px;
    }

    /* Keep info section auto height so description/features never overlap minimum requirements */
    .product-info-section {
        height: auto !important;
        min-height: 0;
        overflow: visible;
    }

    .product-image {
        height: 300px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
}
