:root {
    --primary: #1D1D1F;
    /* Almost black, Apple text color */
    --secondary: #FFFFFF;
    /* Clean white for background */
    --background-alt: #F5F5F7;
    /* Very light gray for alternate backgrounds */
    --accent: #0071E3;
    /* Apple blue for primary accent and CTAs */
    --accent-secondary: #30B34A;
    /* Apple green for success states */
    --text: #1D1D1F;
    /* Primary text color */
    --text-secondary: #86868B;
    /* Secondary text color */
    --subtle: #E8E8ED;
    /* Very light gray for subtle elements */
    --border: #D2D2D7;
    /* Light gray for borders */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    --transition: all 0.3s ease;
    --spacing: 24px;
    --header-height: 60px;
    /* Cleaner, minimal header height */
    --radius: 12px;
    /* Rounded corners, Apple-style */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles are provided by the shared header component. Do not override here. */

.customizer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.control-panel {
    background: var(--secondary);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--subtle);
}

.control-panel:hover {
    transform: translateY(-5px);
}

.controls {
    display: grid;
    gap: 24px;
}

.control-group label {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 15px;
    display: block;
}

/* Slider option (option-handlers) */
.slider-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "slider value"
        "labels labels";
    gap: 12px;
    align-items: center;
}

.slider-control {
    grid-area: slider;
    position: relative;
    width: 100%;
}

.slider-value-display {
    grid-area: value;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
}

.slider-container .custom-slider,
.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--subtle);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s ease;
}

.slider-container .custom-slider::-webkit-slider-thumb,
.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.3);
}

.slider-container .custom-slider::-moz-range-thumb,
.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.3);
}

.slider-labels {
    display: none;
}

.slider-labels span {
    display: inline-flex;
    min-width: 32px;
}

/* Global sliders (dimensions section) reuse shared overrides */
input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--subtle);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s ease;
}

input[type="range"]:hover {
    background: var(--accent);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.3);
}

.value-display {
    width: 80px;
    padding: 8px 12px;
    background: var(--accent);
    color: white;
    text-align: center;
    border-radius: 16px;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.value-display .range-limit {
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
    margin-top: 15px;
    background-color: var(--background-alt);
}

.visualization canvas {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.visualization:hover {
    transform: scale(1.02);
}

.info-cards {
    display: grid;
    gap: 24px;
}

.info-card {
    background: var(--secondary);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--subtle);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dimension-item {
    background: var(--background-alt);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.dimension-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.dimension-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.price {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
    margin: 24px 0;
}

/* Footer styles are provided by the shared footer component. Do not override here. */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.product-description {
    padding: 80px var(--spacing);
    background: var(--background-alt);
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.description-item {
    background: var(--secondary);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.description-item:hover {
    transform: translateY(-5px);
}

.description-item h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.description-item ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text);
}

.description-item li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.description-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pop-up Arkaplan Overlay */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000 !important;
    /* Yüksek z-index ile tüm elementlerin üstünde olmasını garanti et */
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    margin: 0 !important;
    padding: 0 !important;
}

/* Pop-up İçerik */
.popup-content {
    background-color: var(--secondary);
    border-radius: var(--radius);
    width: 90%;
    max-width: 750px;
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 10001;
    /* Popup içeriği overlay'in üstünde olmalı */
    margin: auto;
    /* Merkeze hizala */
    max-height: 90vh;
    overflow-y: auto;
}

/* Kapatma Butonu */
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--background-alt);
}

.close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Ürün Bilgileri Container */
.product-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .product-info-container {
        flex-direction: row;
    }

    .product-image {
        flex: 1;
        min-width: 280px;
        height: 380px;
    }

    .product-details {
        flex: 1;
    }
}

/* Mobil görünüm için düzenlemeler */
@media (max-width: 767px) {
    .product-info-container {
        flex-direction: column;
        gap: 15px;
    }

    .product-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

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

    .product-dimensions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }

    .dimension-item {
        padding: 8px;
    }

    .dimension-label {
        font-size: 12px;
    }

    .dimension-value {
        font-size: 15px;
    }

    .product-price-container {
        margin: 15px 0;
        padding: 12px;
    }

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

    .quantity-selector {
        margin: 15px 0;
    }

    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .product-customizations {
        margin: 10px 0;
    }

    .product-customizations h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .product-customizations ul {
        margin-bottom: 10px;
    }
}

/* Ürün Görseli - Daha dolu görünüm için güncellenmiş */
.product-image {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Model adı için daha iyi görünüm */
.product-image .model-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(55, 118, 221, 0.9);
    color: white;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Ürün Detayları */
.product-details {
    flex: 2;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.product-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.dimension-item {
    background-color: var(--background-alt);
    padding: 12px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dimension-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dimension-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.dimension-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
}

.product-price-container {
    margin: 20px 0;
    padding: 16px;
    border-radius: var(--radius);
    background-color: var(--background-alt);
}

.product-price {
    font-size: 24px;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: normal;
}

/* Adet Seçici */
.quantity-selector {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.quantity-selector label {
    margin-right: 15px;
    font-weight: 500;
    color: var(--primary);
    font-size: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background-color: var(--background-alt);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    touch-action: manipulation;
}

.quantity-btn:hover {
    background-color: var(--subtle);
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    -moz-appearance: textfield;
    background-color: var(--secondary);
}

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

/* Pop-up Sepete Ekle Butonu */
.add-to-cart-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background-color: #0077ED;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(1px);
}

.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.3);
    animation: loading 1.5s ease-in-out infinite;
    z-index: 1;
}

.add-to-cart-btn.completed {
    background-color: var(--accent-secondary);
}

.cart-icon {
    font-size: 18px;
}

/* Sepet Paneli */
.cart-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: var(--secondary);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    padding: 24px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
}

.cart-panel.active {
    display: block;
    transform: translateX(0);
}

.cart-panel .close-cart {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.cart-panel .close-cart:hover {
    color: var(--accent);
}

.cart-panel h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary);
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-image .model-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 5px;
    background: none;
    padding: 0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-details .dimensions {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.cart-item-details .quantity {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 5px;
}

.cart-item-details .price {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.cart-item .remove-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 13px;
}

.cart-item .remove-btn:hover {
    background: #0077ED;
}

.cart-total {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 24px;
    text-align: right;
    padding: 16px;
    background: var(--background-alt);
    border-radius: var(--radius);
}

/* Sepet içindeki adet kontrolü için stil */
.cart-item-details .quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2px 5px;
    background-color: var(--secondary);
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    height: 28px;
    line-height: 28px;
    overflow: hidden;
}

.cart-item-details .quantity-controls .quantity-btn {
    width: 24px;
    height: 24px;
    background-color: var(--background-alt);
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 24px;
}

.cart-item-details .quantity-controls .quantity-btn:hover {
    background-color: var(--subtle);
}

.cart-item-details .quantity-controls .quantity {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    min-width: 24px;
    text-align: center;
    padding: 0;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cart-item-details .quantity-controls:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 24px;
    font-style: italic;
}

.cart-added-animation {
    animation: cartShake 0.5s ease;
}

@keyframes cartShake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Sepete Git butonu animasyonu */
.cart-btn-animation {
    animation: pulseAndShake 1.5s ease;
}

@keyframes pulseAndShake {
    0% {
        transform: scale(1);
        background-color: var(--accent);
    }

    20% {
        transform: scale(1.05);
        background-color: var(--accent-secondary);
    }

    40% {
        transform: scale(1) translateX(-3px);
        background-color: var(--accent-secondary);
    }

    60% {
        transform: scale(1) translateX(3px);
        background-color: var(--accent-secondary);
    }

    80% {
        transform: scale(1.03) translateX(-2px);
        background-color: var(--accent);
    }

    100% {
        transform: scale(1) translateX(0);
        background-color: var(--accent);
    }
}

.order-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-top: 24px;
    transition: all 0.3s;
}

.order-btn:hover {
    background-color: #0077ED;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.order-btn:active {
    transform: translateY(1px);
}



.product-details-container {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.product-details {
    padding: 10px;
    background-color: var(--background-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-sizing: border-box;
    overflow: hidden;
}

.product-details p {
    margin-bottom: 8px;
    padding-right: 5px;
    word-wrap: break-word;
}

/* Hamburger and language-option styles are provided by the shared header component. Do not override here. */

.progress-bar-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px var(--spacing);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border);
    height: 60px;
}

.progress-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    margin-top: 20px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width 0.5s ease;
}

.progress-steps {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
    position: relative;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--subtle);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    position: relative;
    font-size: 14px;
}

.step-label {
    font-size: 13px;
    color: var(--text-secondary);
    position: absolute;
    bottom: -30px;
    transition: color 0.3s;
    white-space: nowrap;
}

.step.active .step-number {
    background: var(--accent);
    color: white;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 500;
}

.main-section {
    width: 90%;
    max-width: 1920px;
    height: calc(100vh - 119px);
    background-color: var(--secondary);
    display: flex;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 24px auto;
    margin-top: 0;
}

.left-side {
    width: 70%;
    padding: 32px;
    padding-top: 10px;
    background-color: var(--secondary);
    color: var(--primary);
    position: relative;
}

.right-side {
    width: 30%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--background-alt);
    padding: 32px 24px;
    border-left: 1px solid var(--border);
    color: var(--primary);
    display: block;
    /* Flex yerine Block kullanıyoruz, bu sayede çakışmalar önlenir */
}

h2 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 22px;
    color: var(--primary);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 24px;
    color: var(--primary);
    text-align: center;
}

h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.content-item {
    margin-bottom: 20px;
    padding: 16px;
    background-color: var(--secondary);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

.scroll-item {
    margin-bottom: 16px;
    padding: 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.scroll-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.product-actions {
    position: absolute;
    bottom: 30px;
    display: flex;
    width: calc(100% - 64px);
    justify-content: space-between;
    align-items: center;
}

.buy-button {
    background-color: var(--accent);
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.buy-button:hover {
    background-color: #0077ED;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.buy-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 12px;
}

.price-tag {
    background-color: var(--background-alt);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}



.product-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.product-card {
    position: relative;
    /* Resmin üzerine card-bottom'u yerleştirmek için relative pozisyon */
    width: 100%;
    height: 250px;
    /* Sabit bir yükseklik tanımlıyoruz, kartların görünmesi için */
    max-width: 100%;
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 100%;
    /* Resmin kapsayıcı div'in tamamını kaplamasını sağlar */
    object-fit: cover;
    /* Resmin oranını koruyarak div'i doldurmasını sağlar */
    display: block;
    position: absolute;
    /* Resmi kapsayıcı div'in tamamına yaymak için absolute pozisyon */
    top: 0;
    left: 0;
    z-index: 1;
    /* Resmin card-bottom'un altında kalmasını sağlar */
}

.card-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
    /* Gradyan arka plan */
    position: absolute;
    /* Resmin üzerinde sabit durması için absolute pozisyon */
    bottom: 0;
    /* Kartın alt kısmına yerleştirir */
    left: 0;
    right: 0;
    z-index: 2;
    /* card-bottom'un resmin üzerinde görünmesini sağlar */
}

.buy-now {
    background-color: var(--background-alt);
    color: var(--primary);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-now:hover {
    background-color: var(--accent);
    color: white;
}

.arrow-icon {
    margin-left: 5px;
    font-size: 12px;
}

.price {
    font-weight: 600;
    font-size: 15px;
    color: var(--accent);
}

.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.card-selected {
    border: 2px solid var(--accent);
}

.section-container {
    width: 100%;
    margin-bottom: 24px;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

/* Model seçim bölümü için özel stil */
#model-selection-section {
    max-height: none;
    height: auto;
    overflow: visible;
}

/* Özelleştirme bölümü için taşma düzeltmesi */
#customization-section {
    height: auto !important;
    min-height: fit-content;
    overflow: visible !important;
    flex-shrink: 0;
    display: block;
}

#customization-section .scroll-item {
    height: auto;
    overflow: visible;
}

#model-selection-section .product-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    overflow: visible;
}

.color-box {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #E0E0E5;
    transition: border 0.2s ease;

}

.color-box.selected {
    border: 2px solid var(--accent);
}

.dropdown-container {
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    position: relative;
}

.dropdown-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
    font-size: 15px;
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--secondary);
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dropdown::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 12px;
}

.dropdown select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(0, 113, 227, 0.3);
}

.dimensions-container {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.dimensions-container>div>div {
    padding: 12px;
    text-align: center;
    background-color: var(--background-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow: hidden;
}

.product-preview {
    width: 90%;
    height: 89%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: var(--background-alt);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transform-origin: center center;
    position: relative;
    /* Galeri için relative positioning */
    overflow: visible;
    /* Galeri için overflow visible */
}

.product-preview img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    object-fit: contain;
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: var(--radius);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Ürün Galerisi Stilleri - Güncellenmiş Tasarım */
.product-gallery-container {
    position: absolute;
    bottom: 20px;
    left: 15px;
    /* Sola alındı */
    width: auto;
    max-width: calc(100% - 30px);
    padding: 12px;
    /* Padding artırıldı */
    overflow: hidden;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    /* Daha şeffaf ve modern */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    /* Daha oval, kapsül formunda */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s ease;
    /* Genişlik değişimini animasyonlu yap */
}

.gallery-wrapper {
    position: relative;
    width: auto;
    max-width: 100%;
    overflow: visible;
    /* Gölge ve efektlerin kesilmemesi için */
    padding: 0;
}

.gallery-track {
    display: flex;
    gap: 12px;
    /* Boşluk */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Daha yumuşak animasyon */
    will-change: transform;
    align-items: center;
    /* Dikey ortala */
    padding: 4px 0;
    /* Üst alt taşmalar için güvenli alan */
}

.gallery-item {
    flex-shrink: 0;
    width: 64px;
    /* Biraz daha büyük */
    height: 64px;
    border-radius: 14px;
    /* Yumuşak köşeler */
    overflow: hidden;
    cursor: pointer;
    position: relative;
    opacity: 1;
    /* Görseller tam opak */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--subtle);
    /* Pikselleşme önlemi ve performans */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-item.active {
    opacity: 1;
    /* Mavi border yerine estetik gölge ve ring */
    box-shadow: 0 0 0 2px var(--primary), 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    /* Hafif büyüme */
    z-index: 2;
    border-radius: 14px;
    /* Radius korunsun */
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Fade efekti kaldırıldı - Kullanıcı isteği üzerine temizlendi */
.gallery-wrapper::before,
.gallery-wrapper::after {
    display: none;
    content: none;
}

/* Galeri item'ları için fade efekti */
.gallery-item.fade-left {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.fade-right {
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.fade-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.order-cta-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 0;
    width: 100%;
    max-width: 220px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s;
}

.order-cta-button svg {
    margin-right: 8px;
}

.order-cta-button:hover {
    transform: translateY(-2px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    background-color: #0077ED;
}

/* Mobil Uyarlama */
@media (max-width: 900px) {

    /* Ana bölüm düzenlemeleri */
    .main-section {
        display: flex !important;
        flex-direction: column;
        height: auto;
        width: 100%;
        margin: 0;
        margin-top: 0 !important;
        overflow: visible !important;
        /* Sticky için gerekli */
    }

    .left-side {
        display: block;
        width: 100%;
        order: -1;
        /* En üste taşımak için */
        padding: 12px;
        margin-bottom: 0;
    }

    /* Sağ sütunu tam genişlikte göster */
    .right-side {
        width: 100%;
        height: 55svh !important;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 11;
        overflow-y: auto !important;
        /* Enable internal scrolling */
        overscroll-behavior-y: contain;
        /* Contain scroll within this element */
        -webkit-overflow-scrolling: touch;
        /* smooth scroll on iOS */
        /* Scroll sorununu çözer */
        display: block;
        /* Flex yerine block */
    }

    /* Canvas'ı section-container'ın altına taşı */
    .product-preview-mobile {
        display: block;
        width: 100%;
        height: 300px;
        margin: 20px 0;
        background-color: var(--background-alt);
        border-radius: var(--radius);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-top: 10px;
        /* Yeni kural: Üst boşluğu 10px yap */
    }

    .product-preview-mobile {
        display: none;
    }

    /* Canvas ve önizleme için stil */
    .product-preview-mobile #designCanvas,
    .product-preview-mobile #preview-image {
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
        position: absolute;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        margin: auto;
    }

    /* Mobil için galeri stilleri */
    .product-preview .product-gallery-container {
        bottom: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 8px;
    }

    .product-preview-mobile .product-gallery-container {
        bottom: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 8px;
    }

    .gallery-item {
        width: 50px;
        height: 50px;
    }

    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100%;
        min-height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
    }

    .gallery-wrapper {
        padding: 0;
    }

    .gallery-wrapper::before,
    .gallery-wrapper::after {
        width: 25px;
    }

    .section-title {
        margin-bottom: 0;
    }

    #customization-section {
        margin-bottom: 24px;
        /* Diğer section-container'lar gibi boşluk */
        height: auto !important;
        overflow: visible !important;
    }

    .controls {
        display: grid;
        gap: 2px;
    }



    /* Left-side mobilde en üste taşınır ve sticky yapılır */
    .left-side {
        width: 100% !important;
        padding: 0 12px 12px 12px !important;
        overflow-x: hidden;
        display: block !important;
        order: -1 !important;
        margin-bottom: 0;
        position: sticky;
        top: 120px;
        /* Header (69px) + Arama çubuğu (~71px) = ~140px */
        z-index: 100;
        background-color: var(--secondary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }



    /* Mobilde model adını gizle */
    .left-side>div:first-child {
        display: none !important;
    }

    /* Ürün önizleme alanı */
    .product-preview {
        width: 100%;
        height: 300px;
        /* Mobil için sabit yükseklik */
        padding: 10px;
        margin: 0 auto;
    }

    /* Header styles are provided by the shared header component. Do not override here. */

    /* İlerleme çubuğu bölümü */
    .progress-bar-section {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        /* veya belirli bir yükseklik: 60px gibi */
        max-height: 60px;
        z-index: 999;
    }

    /* İlerleme adımları */
    .progress-steps {
        display: flex;
        justify-content: space-between;
    }

    .step {
        width: 25%;
    }

    .step-label {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        text-align: center;
        display: none;

    }

    /* Boyut ayarlama kontrolleri */

    .slider-container {
        display: flex;
        flex-direction: row;
        /* Yatayda hizalanmasını sağlar */
        align-items: center;
        gap: 15px;
        /* Aradaki boşluğu azalttık */
    }

    input[type="range"] {
        flex: 1;
        height: 6px;
    }

    .value-display {
        margin-left: 10px;
        min-width: 70px;
    }

    /* Model kartları */
    .product-card {
        height: 200px;
    }

    /* Özelleştirme seçenekleri */
    .scroll-item {
        padding: 12px;
    }

    /* Sepet paneli */
    .cart-panel {
        width: 100%;
        right: -100%;
        transition: all 0.3s ease;
    }

    .cart-panel.active {
        right: 0;
    }

    /* Footer styles are provided by the shared footer component. Do not override here. */

    /* Popup düzenlemesi */
    .popup-content {
        padding: 20px;
        padding-top: 40px;
        /* Kapatma butonu için daha fazla yer */
        max-height: 90vh;
        /* Ekran yüksekliğinin %90'ını kullan */
        overflow-y: auto;
        /* İçerik fazla gelirse scroll ekle */
    }

    .product-info-container {
        flex-direction: column;
        gap: 15px;
    }

    /* Language button styles are provided by the shared header component. Do not override here. */

    /* CTA butonları - sadece sayfa gövdesindeki butonlar (header'ı etkilemesin) */
    .main-section .kcta-button,
    .main-section .cta-button {
        order: 4;
        /* Sağda, dil seçiminden sonra */
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Hamburger styles are provided by the shared header component. Do not override here. */

    /* Ürün detayları bölümü */
    .dimensions-container {
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    .dimensions-container>div {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .dimensions-container>div>div {
        padding: 8px;
        font-size: 14px;
        margin: 0;
    }

    #detail-width-title,
    #detail-depth-title,
    #detail-height-title,
    #detail-planter-depth-title {
        font-size: 12px;
        margin-bottom: 3px;
    }

    #detail-width,
    #detail-depth,
    #detail-height,
    #detail-planter-depth {
        font-size: 14px;
    }

    /* Ürün açıklama bölümü */
    .product-description {
        padding: 40px 15px;
    }

    .description-container {
        grid-template-columns: 1fr;
    }

    /* Ürün özellikleri bölümü için düzenlemeler */
    .product-details-container {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
        overflow-x: hidden;
        /* Yatay taşmayı engeller */
    }

    .product-details {
        padding: 8px;
        /* Daha küçük padding */
        margin: 0;
    }

    .product-details p {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler (telefon) */
@media (max-width: 480px) {

    /* Ana başlık ve açıklamalar */
    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
        margin: 15px 0;
    }

    /* Ürün detayları */
    .dimension-item {
        padding: 8px;
    }

    #detail-width-title,
    #detail-depth-title,
    #detail-height-title,
    #detail-planter-depth-title {
        font-size: 12px;
    }

    #detail-width,
    #detail-depth,
    #detail-height,
    #detail-planter-depth {
        font-size: 15px;
    }

    /* Ürün Özelleştirme */
    .dropdown-container {
        max-width: 100%;
    }

    /* İlerleme çubuğu */
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    /* Canvas ve Önizleme görüntüsü */
    #designCanvas,
    #preview-image {
        max-width: 90%;
        max-height: 90%;
    }

    .dimensions-container>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        width: 100%;
    }

    .dimensions-container>div>div {
        padding: 5px;
    }

    .product-details {
        padding: 5px;
    }

    .product-details p {
        font-size: 13px;
        margin-bottom: 5px;
    }
}

/* Animasyon düzeltmeleri */
#designCanvas,
#preview-image {
    transition: all 0.5s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cart-item-details .customizations {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    /* İkincil metin renginiz yoksa #666 gibi bir renk kullanabilirsiniz */
}

.cart-item-details .customizations div {
    margin-bottom: 5px;
}

.product-customizations {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    /* Alternatif arka plan rengi */
    border-radius: 8px;
    border: 1px solid #ddd;
}

.product-customizations h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

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

.product-customizations li {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
}


/* Mevcut animasyonlar (giriş için) */
@keyframes slideOutRightFade {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

@keyframes slideInLeftFade {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeftFade {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-20px);
        opacity: 0;
    }
}

@keyframes slideInRightFade {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.previewImage-exit {

    animation: slideOutRightFade 0.5s ease forwards;
}

.designCanvas-enter {
    animation: slideInLeftFade 0.5s ease forwards;
}

.designCanvas-exit {
    animation: slideOutLeftFade 0.5s ease forwards;
}

.previewImage-enter {
    animation: slideInRightFade 0.5s ease forwards;
}

/* Ürün Kartı Fiyat Stili - Minimal Apple Tarzı */
.product-card .price {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    background-color: rgba(55, 118, 221, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 3;
    letter-spacing: 0.02em;
    margin: 0;
    border: 1px solid rgba(55, 118, 221, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card .price::before {
    content: "";
    margin-right: 0;
    font-weight: 400;
}

.product-card .price:hover {
    background-color: rgba(28, 85, 180, 0.95);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border-color: rgba(28, 85, 180, 0.4);
}

/* İndirimli fiyatlar için ek stil */
.product-card .price.discounted {
    color: #fff;
    background-color: rgba(255, 59, 48, 0.9);
    border-color: rgba(255, 59, 48, 0.3);
}

.product-card .price.discounted::after {
    content: "İndirimli";
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #fff;
    color: #FF3B30;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    transform: rotate(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Card-bottom içeriğini düzenle */
.product-card .card-bottom {
    justify-content: flex-end;
    padding: 15px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Dikey kaydırma çubuğu stilini güzelleştirme */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Option buttons for 'click' type options */
.option-button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.option-button:hover {
    background-color: var(--background-alt);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.option-button.selected {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

/* Özelleştirme seçenekleri konteyneri için alt boşluk */
.customization-options-container {
    position: relative;
    /* İçindeki price-tag için gerekli olabilir */
    padding-bottom: 60px;
    /* Varsayılan alt boşluk (fiyat etiketi için) */
}

/* Mobil cihazlar için özelleştirme seçenekleri konteyneri */
@media (max-width: 900px) {
    .customization-options-container {
        padding-bottom: 0;
        /* Mobil için alt boşluğu kaldır */
    }
}

/* Visual Card Options - New Module */
.visual-card-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.visual-card-option {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visual-card-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.visual-card-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.visual-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: var(--background-alt);
}

.visual-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.visual-card-option:hover .visual-card-image img {
    transform: scale(1.05);
}

.visual-card-info {
    padding: 15px;
}

.visual-card-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}

.visual-card-desc {
    font-size: 14px;
}

/* ========================================= */
/* MOBILE WIZARD SPLIT-SCREEN LAYOUT         */
/* ========================================= */

@media (max-width: 900px) {

    /* LOCK VIEWPORT - Prevent global scrolling */
    html,
    body {
        width: 100% !important;
        height: 100svh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: fixed !important;
        /* Force lock */
        overscroll-behavior: none !important;
        /* Prevent rubber-banding/bounce */
        touch-action: pan-x pan-y !important;
        /* Disable double-tap zoom */
    }

    /* Hide default layout elements on mobile */
    .progress-bar-section,
    footer,
    #footer,
    .footer {
        display: none !important;
    }

    /* Reveal Header */
    header,
    #header,
    .header-container {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 2000 !important;
        /* Extremely high to sit over everything */
        background: #fff;
    }

    /* Main Layout - Fix viewport height stability (prevent jump on scroll) */
    .main-section {
        display: flex !important;
        flex-direction: column !important;
        height: 100svh !important;
        /* Use small viewport height */
        max-height: 100svh !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        position: fixed !important;
        /* Fix to viewport */
        top: 0;
        left: 0;
        z-index: 1000;
        background: #fff;
        padding-top: 60px !important;
        /* Push content down for header */
    }

    /* RESET Header Placeholder to avoid displacement */
    #header-placeholder {
        display: block !important;
        height: 60px;
        width: 100%;
    }

    /* Static-compact header mode için düzeltmeler */
    body.static-compact #header-placeholder {
        height: 46px !important;
    }

    body.static-compact .main-section {
        padding-top: 46px !important;
    }

    body.static-compact .header-container {
        height: 46px !important;
        max-height: 46px !important;
        overflow: hidden !important;
    }

    body.static-compact .header-container .site-top-bar {
        height: 46px !important;
    }

    /* Top Panel: Fixed Preview */
    /* Force reset of position and z-index to avoid sticky conflicts */
    .left-side {
        width: 100% !important;
        height: 35vh !important;
        /* Top 35% of screen */
        padding: 1px !important;
        z-index: 10 !important;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        background-color: var(--secondary);
        position: relative !important;
        /* Override sticky */
        top: auto !important;
        order: 0 !important;
        margin: 0 !important;
    }

    /* Adjust Preview Elements */
    .product-preview {
        height: 100%;
        margin: 0;
        padding: 5px;
        border: none;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .product-preview img,
    .product-preview canvas {
        position: absolute !important;
        left: 5px !important;
        top: 5px !important;
        right: 5px !important;
        bottom: 5px !important;
        width: calc(100% - 10px) !important;
        height: calc(100% - 10px) !important;
        object-fit: cover !important;
        transform: none !important;
        margin: auto !important;
    }


    /* Bottom Panel: Wizard Content */
    .right-side {
        width: 100% !important;
        height: calc(65vh - 60px) !important;
        /* Subtract header height */
        /* Remaining space */
        padding: 0 !important;
        background-color: var(--background-alt);
        position: relative !important;
        overflow: hidden !important;
        /* Hide horizontal scroll */
        display: block !important;
        order: 1 !important;
        border: none;
    }

    /* Wizard Container */
    #mobile-wizard-container {
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* Wizard Steps */
    .wizard-step {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px 20px 80px 20px;
        /* Bottom padding for nav buttons */
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(50px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        background-color: var(--background-alt);
        z-index: 1;
    }

    .wizard-step.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        z-index: 5;
    }

    /* Make section containers transparent / full width inside steps */
    .wizard-step .section-container {
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-bottom: 0;
    }

    /* Floating Navigation Controls */
    #mobile-wizard-nav {
        display: flex !important;
        position: absolute;
        bottom: 20px;
        left: 0;
        width: 100%;
        padding: 0 20px;
        justify-content: space-between;
        align-items: center;
        z-index: 20;
        pointer-events: none;
        /* Let clicks pass through empty space */
        height: 50px;
    }

    .wizard-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: var(--accent);
        color: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        pointer-events: auto;
        /* Re-enable clicks */
        transition: transform 0.2s, background-color 0.2s;
    }

    .wizard-nav-btn:active {
        transform: scale(0.95);
    }

    .wizard-nav-btn.prev {
        background-color: var(--secondary);
        color: var(--text);
        border: 1px solid var(--border);
    }

    .wizard-steps-indicator {
        display: flex;
        gap: 8px;
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.8);
        padding: 8px 12px;
        border-radius: 20px;
        backdrop-filter: blur(4px);
    }

    .wizard-step-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--border);
        transition: background-color 0.3s;
    }

    .wizard-step-dot.active {
        background-color: var(--accent);
        width: 20px;
        /* Active dot is wider */
        border-radius: 4px;
    }

    /* Adjust specific section styles for mobile */
    .dimensions-container>div>div {
        padding: 10px;
    }

    .dimension-value {
        font-size: 16px;
    }

    /* Fix Gallery Position */
    .product-gallery-container {
        bottom: 10px;
        left: 10px;
        transform: scale(0.8);
        transform-origin: bottom left;
    }

    /* Ensure inputs are easy to tap */
    .color-box {
        width: 45px;
        height: 45px;
    }

    /* Hide desktop version specific overrides if any */



    .product-preview-mobile {
        display: none !important;
    }

    .left-side {
        padding: 2px !important;
    }

    .product-preview {
        padding: 2px !important;
    }
}