/* Product Detail Page Styles - Mobile First */

.product-detail {
    padding: 20px 0 100px 0;
    background: var(--white);
}

/* SECTIONED LAYOUT - Independent sections */
.product-configurator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-configurator.configurator-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
}

.product-configurator.configurator-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.product-configurator.configurator-section .config-section {
    margin-bottom: 16px;
}

.product-configurator.configurator-section .config-section:last-child {
    margin-bottom: 0;
}

/* Adjust spacing within sections */
.product-configurator.configurator-section .config-section {
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.product-configurator.configurator-section .config-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* Price section styling */
.product-configurator.configurator-section.price-section {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Extra options section */
.product-configurator.configurator-section.extra-section {
    background: #fefefe;
}
/* END SECTIONED LAYOUT */

.product-loading,
.product-error {
    text-align: center;
    padding: 60px 20px;
}

.product-error h2 {
    margin-bottom: 20px;
    color: var(--black);
}

.product-error p {
    margin-bottom: 30px;
    color: var(--text);
}

/* Product Title */
.product-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--black);
    line-height: 1.2;
}

/* Trust Signals */
.trust-signals-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8rem;
}

.trust-item svg {
    flex-shrink: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Product Gallery */
.product-gallery {
    width: 100%;
}

.product-main-image {
    position: relative;
    background: #19a7c3;
    border-radius: 12px;
    padding: 20px 0; /* Padding top and bottom only, no side padding */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align panels to the left to prevent gaps */
    height: 400px; /* Fixed height to prevent layout shift on mobile */
    gap: 0; /* No gap between panel images */
    overflow: hidden; /* Prevent images from expanding container */
}

@media (min-width: 768px) {
    .product-main-image {
        min-height: 250px;
        max-height: 500px;
        height: auto; /* Flexible height on desktop */
        overflow: visible;
    }
}

.product-main-image img {
    flex: 1; /* Each image takes equal space */
    width: 0; /* Start with 0 and let flex grow */
    min-width: 0; /* Allow shrinking below content size */
    height: auto;
    max-height: 360px; /* Fit within mobile container: 400px - 40px padding */
    object-fit: contain;
    object-position: center;
    margin: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08))
            drop-shadow(0 4px 16px rgba(0, 0, 0, 0.06));
    position: relative;
    z-index: 1; /* Below measurements */
}

@media (min-width: 768px) {
    .product-main-image img {
        max-height: 450px;
    }
}

/* Single panel - centered with full shadow */
.product-main-image.panel-count-1 img {
    max-width: 100%;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1))
            drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

/* Multiple panels - responsive side by side */
.product-main-image.multiple-panels {
    padding: 20px 0; /* Keep same padding as base on mobile */
}

@media (min-width: 768px) {
    .product-main-image.multiple-panels {
        padding: 15px 10px; /* Different padding on desktop */
    }

    /* Smaller images for 1 or 2 panels on desktop */
    .product-main-image.panel-count-1 img,
    .product-main-image.panel-count-2 img {
        max-height: 350px;
    }
}

.product-main-image.multiple-panels img {
    /* Each panel gets equal width */
    flex: 1 1 0;
    min-width: 0;
}

/* Directional shadows for panel edges - prevents overlap between panels */
.product-main-image.multiple-panels img.panel-first {
    filter: drop-shadow(-3px 0 6px rgba(0, 0, 0, 0.08))
            drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
    object-position: right center; /* Push to right to close gap */
}

.product-main-image.multiple-panels img.panel-last {
    filter: drop-shadow(3px 0 6px rgba(0, 0, 0, 0.08))
            drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
    object-position: left center; /* Push to left to close gap */
}

.product-main-image.multiple-panels img.panel-middle {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
}

/* For exactly 2 panels, both get outer shadows */
.product-main-image.multiple-panels img.panel-first.panel-last {
    filter: drop-shadow(-3px 0 6px rgba(0, 0, 0, 0.08))
            drop-shadow(3px 0 6px rgba(0, 0, 0, 0.08))
            drop-shadow(0 3px 8px rgba(0, 0, 0, 0.06));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-main-image {
        min-height: 200px;
        max-height: 350px;
        padding: 15px;
    }

    .product-main-image img {
        max-height: 320px;
    }

    .product-main-image.multiple-panels {
        padding: 10px 5px;
    }
}

@media (min-width: 1024px) {
    .product-main-image {
        max-height: 600px;
    }

    .product-main-image img {
        max-height: 550px;
    }
}

/* Configurator */
.product-configurator {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.configurator-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--black);
    font-weight: 700;
}

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

/* Extra Options */
.extra-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-option:hover {
    border-color: var(--green);
    background-color: rgba(47, 154, 91, 0.05);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--green);
}

.checkbox-option span {
    font-size: 0.95rem;
    color: var(--text-dark);
    flex: 1;
}

.option-price {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

/* Radio buttons - global styling */
input[type="radio"] {
    accent-color: var(--green);
    cursor: pointer;
}

/* Handle Recess Position Buttons */
.handle-position-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.handle-position-btn:hover {
    border-color: var(--green);
    background: rgba(47, 154, 91, 0.05);
}

.handle-position-btn.active {
    background: rgba(47, 154, 91, 0.08);
    color: var(--green);
    border-color: var(--green);
    border-width: 2px;
    font-weight: 600;
}

/* Unit Selector - Compact version below inputs */
.unit-selector {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-start;
}

.unit-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    font-size: 0.75rem;
    background: white;
}

.unit-option input[type="radio"] {
    display: none;
}

.unit-option:hover {
    border-color: var(--green);
    background: rgba(47, 154, 91, 0.05);
}

.unit-option input[type="radio"]:checked + span {
    color: var(--green);
}

.unit-option:has(input[type="radio"]:checked) {
    border-color: var(--green);
    border-width: 2px;
    background: rgba(47, 154, 91, 0.08);
    color: var(--text-dark);
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.dimension-input label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.3s;
}

.input-field::placeholder {
    opacity: 0;
    visibility: hidden;
}

.input-field::-webkit-input-placeholder {
    opacity: 0;
    visibility: hidden;
}

.input-field::-moz-placeholder {
    opacity: 0;
    visibility: hidden;
}

.input-field::-ms-input-placeholder {
    opacity: 0;
    visibility: hidden;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.dimension-help {
    margin-top: 8px;
    color: var(--text);
    font-size: 0.75rem;
    text-align: center;
}

.config-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
    font-size: 0.9rem;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-selected:hover {
    border-color: var(--primary);
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-text {
    flex: 1;
}

.dropdown-arrow {
    transition: transform 0.2s;
    color: var(--text);
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: rgba(47, 154, 91, 0.05);
    color: var(--green);
}

.dropdown-item.selected {
    background: rgba(47, 154, 91, 0.08);
    color: var(--green);
    border-left: 3px solid var(--green);
    font-weight: 600;
}

/* Panel Options */
.panel-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.panel-option {
    padding: 14px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.panel-option:hover {
    border-color: var(--green);
    background: rgba(47, 154, 91, 0.05);
}

.panel-option.selected {
    border-color: var(--green);
    border-width: 2px;
    background: rgba(47, 154, 91, 0.08);
    color: var(--text-dark);
}

.panel-option-main {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.panel-option-price {
    font-size: 0.85rem;
    opacity: 0.8;
}

.panel-option.selected .panel-option-price {
    opacity: 1;
    color: var(--green);
}

.panel-option.selected .panel-option-main {
    color: var(--green);
}

.panel-option-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Panel Width Slider */
.panel-width-slider-container {
    padding: 0;
    background: transparent;
}

.panel-width-track {
    position: relative;
    height: 48px;
    background: transparent;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: visible;
}

.panel-segment {
    position: absolute;
    top: 0;
    height: 100%;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #9ca3af;
    transition: all 0.2s;
}

.panel-segment:last-child {
    border-right: 2px solid #d1d5db;
}

.panel-segment:hover {
    background: #f3f4f6;
    border-color: var(--green);
    border-width: 2px;
}

.panel-segment-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
}

.panel-segment-width {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 700;
}

.panel-divider {
    position: absolute;
    top: -5px;
    width: 20px;
    height: 56px;
    margin-left: -10px;
    background: white;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.panel-divider:hover {
    background: rgba(47, 154, 91, 0.05);
    border-color: var(--green);
    border-width: 3px;
    transform: scale(1.1);
}

.panel-divider.dragging {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.15);
}

.panel-divider::after {
    content: '⋮';
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
}

.panel-divider.dragging::after {
    color: white;
}

.panel-widths-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #6b7280;
}

.panel-width-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.panel-width-input-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    margin: 0;
}

.panel-width-input {
    width: 70px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s;
}

.panel-width-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #f0f9ff;
}

.panel-width-input-group .unit-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.panel-width-validation {
    margin-top: 10px;
    display: none;
}

.validation-warning {
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Rod Position Selection */
.rod-position-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rod-panel-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rod-panel-label {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 80px;
    color: var(--text);
}

.rod-options {
    display: flex;
    gap: 8px;
    flex: 1;
}

.rod-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.rod-option:hover {
    border-color: var(--green);
    background: rgba(47, 154, 91, 0.05);
}

.rod-option.selected {
    border-color: var(--green);
    border-width: 2px;
    background: rgba(47, 154, 91, 0.08);
    color: var(--green);
    font-weight: 600;
}

/* Price Calculation */
.price-calculation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.calc-row.total {
    border-top: 2px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
}

.calc-row.total span:last-child {
    color: var(--primary);
    font-size: 1.4rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.quantity-btn {
    background: white;
    border: none;
    padding: 0 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    transition: background 0.2s;
    height: 100%;
    min-height: 48px;
}

.quantity-btn:hover {
    background: #f8f9fa;
}

.quantity-input {
    border: none;
    width: 50px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-large {
    padding: 14px 20px;
    font-size: 1rem;
    flex: 1;
}

.validation-message {
    margin-top: 10px;
}

.validation-message .error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
}

.add-to-cart-message {
    min-height: 24px;
}

/* USPs Section */
.usps-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.usp-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.usp-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usp-content strong {
    color: var(--black);
    font-size: 0.95rem;
}

.usp-content span {
    color: var(--text);
    font-size: 0.85rem;
}

/* Payment Methods */
.payment-methods {
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.payment-methods-image {
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

/* Product Tabs Section */
.product-tabs-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--black);
}

/* How to Measure Tab */
.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.tab-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text);
}

.placeholder-image {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text);
    border: 2px dashed #e5e7eb;
}

.tip-box {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 5px;
}

.tip-box strong {
    color: var(--primary);
}

/* Installation Steps */
.installation-steps {
    max-width: 700px;
}

.install-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.install-step:last-of-type {
    border-bottom: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 8px;
    color: var(--black);
}

.step-content p {
    color: var(--text);
    line-height: 1.6;
}

/* Tech Specs */
.specs-table {
    max-width: 800px;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--black);
}

.spec-value {
    color: var(--text);
}

/* Product Details Section */
.product-details-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.product-details-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--black);
}

.details-content {
    line-height: 1.8;
    color: var(--text);
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
    .product-detail {
        padding: 30px 0 100px 0;
    }

    .product-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .trust-signals-mobile {
        gap: 20px;
        margin-bottom: 30px;
    }

    .trust-item {
        font-size: 0.9rem;
    }

    .trust-item svg {
        width: 18px;
        height: 18px;
    }

    /* Side-by-side layout */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .product-main-image {
        min-height: 400px;
        padding: 30px;
    }

    .product-main-image img {
        max-height: 500px;
    }

    .product-configurator {
        padding: 25px;
    }

    .configurator-title {
        font-size: 1.5rem;
    }

    .usps-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tab-content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .spec-row {
        grid-template-columns: 250px 1fr;
    }
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
    .product-detail {
        padding: 40px 0 100px 0;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-grid {
        gap: 40px;
    }

    .product-main-image {
        min-height: 500px;
    }

    .product-main-image img {
        max-height: 600px;
    }

    .product-configurator {
        padding: 30px;
    }

    .configurator-title {
        font-size: 1.6rem;
    }
}

/* Sticky Bottom Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 50;
    padding: 8px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.sticky-bottom-bar[style*="display: none"] {
    opacity: 0;
    transform: translateY(100%);
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 15px;
}

.sticky-bar-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 0 0 auto;
}

.sticky-price-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.1;
}

.sticky-price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.sticky-bottom-bar .btn-large {
    margin: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex: 1 1 auto;
    max-width: 200px;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 480px) {
    .sticky-bar-content {
        gap: 12px;
    }

    .sticky-price-amount {
        font-size: 1.4rem;
    }

    .sticky-bottom-bar .btn-large {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .sticky-bottom-bar {
        padding: 10px 0;
    }

    .sticky-bar-content {
        gap: 16px;
        padding: 0;
    }

    .sticky-price-label {
        font-size: 0.8rem;
    }

    .sticky-price-amount {
        font-size: 1.6rem;
    }

    .sticky-bottom-bar .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
        max-width: 240px;
    }
}

@media (min-width: 1024px) {
    .sticky-bottom-bar .btn-large {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* Info Sidebar */
/* Info Backdrop */
.info-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Info Sidebar - slides from left */
.info-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--white);
    box-shadow: 5px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.info-sidebar.active {
    transform: translateX(0);
}

.info-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    background: var(--white);
}

.info-sidebar-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--black);
    font-weight: 700;
}

.info-sidebar-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s;
    border-radius: 50%;
}

.info-sidebar-close:hover {
    color: var(--orange);
    background: #f5f5f5;
}

.info-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 20px;
    line-height: 1.6;
}

.info-sidebar-content h4 {
    color: var(--black);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-sidebar-content p {
    margin-bottom: 15px;
    color: var(--text);
}

.info-sidebar-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-sidebar-content li {
    margin-bottom: 8px;
    color: var(--text);
}

.info-sidebar-content strong {
    color: var(--black);
}

/* Info Icon */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.info-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Simple Product View (for non-configurable products) */
.simple-product-view {
    padding: 20px;
}

.product-image-simple {
    margin-bottom: 25px;
    text-align: center;
}

.product-image-simple img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-price-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

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

.price-label {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.price-amount {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.product-quantity-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-label {
    font-weight: 600;
    color: var(--black);
}

.product-actions {
    margin-bottom: 25px;
}

.product-actions .btn-large {
    width: 100%;
}

.product-description {
    line-height: 1.8;
    color: var(--text);
}

.product-description p {
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .simple-product-view {
        padding: 30px;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .product-actions .btn-large {
        width: auto;
        min-width: 300px;
    }
}
