/* Perde Hesaplama - Ultra Minimal Tasarım */

/* Reset */
* {
    box-sizing: border-box;
}

/* Container - Ultra Minimal */
.perde-hesaplama-container,
.perde-calculator-product {
    max-width: 100%;
    margin: 0;
    padding: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

@media (min-width: 768px) {
    .perde-hesaplama-container,
    .perde-calculator-product {
        padding: 10px;
    }
}

/* Header - Ultra Minimal */
.perde-hesaplama-header,
.perde-calculator-product h3 {
    text-align: left;
    margin-bottom: 10px;
}

.perde-hesaplama-header h3,
.perde-calculator-product h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 2px 0;
    letter-spacing: -0.025em;
}

.perde-hesaplama-header p,
.calculator-description {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Progress - Ultra Minimal */
.perde-progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 1px;
    background: #f3f4f6;
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
}

.progress-step {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.progress-step.active {
    color: #10b981;
    font-weight: 500;
}

/* Steps */
.perde-step {
    display: none;
}

.perde-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px;
}

.step-number {
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 10px;
    flex-shrink: 0;
}

.step-header h4 {
    margin: 0;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
}

.btn-back {
    background: #6b7280;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 400;
    transition: background 0.2s ease;
    min-height: 24px;
}

.btn-back:hover {
    background: #4b5563;
}

/* Form - Ultra Minimal */
.olcu-form,
.calculator-form {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.form-row,
.calculator-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .form-row,
    .calculator-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group,
.calculator-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-group.full-width,
.calculator-field.full-width {
    grid-column: 1 / -1;
}

/* Labels - Ultra Minimal */
.form-group label,
.calculator-field label {
    color: #374151;
    font-weight: 500;
    font-size: 10px;
    margin-bottom: 1px;
}

/* Input ve Select - Ultra Minimal */
.form-group input,
.form-group select,
.calculator-field input,
.calculator-field select,
.calculator-field .height-select {
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 11px;
    transition: border-color 0.2s ease;
    background: white;
    min-height: 26px;
    font-weight: 400;
    line-height: 1.3;
}

.form-group input:focus,
.form-group select:focus,
.calculator-field input:focus,
.calculator-field select:focus,
.calculator-field .height-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.calculator-field input:hover,
.calculator-field select:hover,
.calculator-field .height-select:hover {
    border-color: #9ca3af;
}

/* Placeholder - Ultra Minimal */
.form-group input::placeholder,
.calculator-field input::placeholder {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 400;
}

/* Dropdown - Ultra Düzeltilmiş */
.form-group select,
.calculator-field select,
.calculator-field .height-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 8px;
    appearance: none;
    cursor: pointer;
    padding-right: 18px;
}

/* Ürün Seçenekleri Dropdown - Özel Düzeltme */
select[name="product_variation"],
select[name="renk"],
select[name="urun_secenegi"],
.product-variations select,
.variation-selector select,
#product-variations select,
.woocommerce-variation-selection select,
.variations select,
.variations_form select,
.variation-select,
.variation-options select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 4px center !important;
    background-repeat: no-repeat !important;
    background-size: 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    padding-right: 18px !important;
    padding: 4px 18px 4px 6px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    min-height: 26px !important;
    background-color: white !important;
    transition: border-color 0.2s ease !important;
}

.variation-select:focus,
.variation-options select:focus {
    outline: none !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1) !important;
}

.variation-select:hover,
.variation-options select:hover {
    border-color: #9ca3af !important;
}

/* Variation Field - Ultra Minimal */
.variation-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.variation-field label {
    color: #374151;
    font-weight: 500;
    font-size: 10px;
    margin-bottom: 1px;
}

.variation-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Small Text - Ultra Minimal */
.form-group small,
.calculator-field small {
    font-size: 9px;
    color: #6b7280;
    margin-top: 1px;
}

/* Pile Seçenekleri - Ultra Minimal */
.pile-secenekleri,
.pile-options {
    margin-bottom: 8px;
}

.pile-secenekleri label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 10px;
}

.pile-buttons,
.pile-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 3px;
}

.pile-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 4px 2px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 9px;
    font-weight: 400;
    text-align: center;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pile-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pile-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.pile-btn small {
    display: block;
    font-size: 8px;
    margin-top: 1px;
    opacity: 0.8;
}

/* Etek Seçenekleri - Ultra Minimal */
.etek-secenekleri {
    margin-bottom: 8px;
}

.etek-secenekleri label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 10px;
}

.etek-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.etek-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 60px;
    text-align: center;
    min-height: 26px;
    justify-content: center;
}

.etek-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.etek-btn.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.etek-btn.active[data-etek="hayir"] {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

.etek-icon {
    font-size: 12px;
    line-height: 1;
}

.etek-text {
    font-weight: 400;
    line-height: 1.2;
}

.etek-aciklama {
    margin: 2px 0 0 0;
    font-size: 8px;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Varyasyon - Ultra Minimal */
.varyasyon-secenekleri {
    margin-bottom: 8px;
}

.varyasyon-secenekleri label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
    font-size: 10px;
}

.varyasyon-grid {
    display: grid;
    gap: 3px;
}

.varyasyon-card {
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 26px;
    display: flex;
    align-items: center;
}

.varyasyon-card:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.varyasyon-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.varyasyon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.varyasyon-desc {
    color: #374151;
    font-weight: 400;
    font-size: 10px;
}

.varyasyon-fiyat {
    color: #dc2626;
    font-weight: 500;
    font-size: 10px;
}

/* Hesaplama Butonu - Ultra Minimal */
.btn-hesapla {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.btn-hesapla:hover {
    background: #059669;
}

.btn-hesapla:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Kategori Grid - Ultra Minimal */
.kategori-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .kategori-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kategori-card {
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kategori-card:hover {
    border-color: #9ca3af;
}

.kategori-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.kategori-icon {
    font-size: 14px;
    margin-bottom: 2px;
}

.kategori-card h5 {
    margin: 1px 0;
    color: #111827;
    font-size: 11px;
    font-weight: 500;
}

.kategori-card p {
    font-size: 9px;
    color: #6b7280;
    margin: 1px 0 2px 0;
}

.kategori-info {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.fiyat-birimi,
.pile-badge {
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 400;
}

.fiyat-birimi {
    background: #ecfdf5;
    color: #047857;
}

.pile-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Ürün Grid - Ultra Minimal */
.urun-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .urun-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.urun-card {
    border: 1px solid #d1d5db;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.urun-card:hover {
    border-color: #9ca3af;
}

.urun-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.urun-image {
    height: 60px;
    overflow: hidden;
    background: #f9fafb;
}

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

.urun-info {
    padding: 6px;
}

.urun-info h5 {
    margin: 0 0 2px 0;
    color: #111827;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.urun-price {
    color: #dc2626;
    font-weight: 500;
    font-size: 11px;
}

.urun-type {
    background: #f59e0b;
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 400;
    display: inline-block;
    margin-top: 2px;
}

/* Sonuç - Ultra Minimal */
.hesaplama-sonuc {
    background: white;
    border-radius: 3px;
    padding: 8px;
    border: 1px solid #d1d5db;
}

.sonuc-urun {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.sonuc-urun h4 {
    margin: 0 0 2px 0;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
}

.sonuc-urun p {
    margin: 0;
    color: #6b7280;
    font-size: 9px;
}

.hesaplama-detay {
    margin-bottom: 8px;
}

.detay-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 9px;
}

.detay-satir:last-child {
    border-bottom: none;
}

.detay-satir .label {
    color: #6b7280;
}

.detay-satir .value {
    color: #111827;
    font-weight: 400;
}

.toplam-fiyat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    padding: 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.toplam-fiyat .fiyat {
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}

/* Sonuç Actions - Ultra Minimal */
.sonuc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
}

@media (min-width: 640px) {
    .sonuc-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-yeni-hesaplama,
.btn-sepete-ekle {
    padding: 4px 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 10px;
    font-weight: 500;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.btn-yeni-hesaplama {
    background: #3b82f6;
    color: white;
}

.btn-yeni-hesaplama:hover {
    background: #2563eb;
}

.btn-sepete-ekle {
    background: #f59e0b;
    color: white;
}

.btn-sepete-ekle:hover {
    background: #d97706;
}

/* Seçili Ürün - Ultra Minimal */
.secili-urun {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 3px;
    padding: 6px;
    margin-bottom: 6px;
    border: 1px solid #e5e7eb;
}

.secili-urun img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 6px;
}

.urun-detay h4 {
    margin: 0 0 1px 0;
    color: #111827;
    font-size: 10px;
    font-weight: 500;
}

.urun-fiyat {
    color: #dc2626;
    font-weight: 500;
    font-size: 9px;
}

/* Loading - Ultra Minimal */
.urun-loading {
    text-align: center;
    padding: 16px 8px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 1px solid #f3f4f6;
    border-top: 1px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 6px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 16px 8px;
    color: #6b7280;
    font-style: italic;
    font-size: 10px;
}

/* Error States */
.form-group input.error,
.form-group select.error,
.calculator-field input.error,
.calculator-field select.error {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 8px;
    margin-top: 1px;
}

.perde-hesaplama-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 6px 8px;
    border-radius: 3px;
    text-align: center;
    font-size: 9px;
    border: 1px solid #fecaca;
}

/* Success States */
.success-message {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 9px;
    margin: 6px 0;
    border: 1px solid #bbf7d0;
}

/* Toast - Ultra Minimal */
.perde-toast {
    position: fixed;
    top: 8px;
    right: 8px;
    padding: 6px 8px;
    border-radius: 3px;
    color: white;
    font-weight: 400;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    max-width: 160px;
    font-size: 9px;
}

.perde-toast.show {
    transform: translateX(0);
}

.perde-toast-error {
    background: #dc2626;
}

.perde-toast-success {
    background: #10b981;
}

.perde-toast-info {
    background: #3b82f6;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .perde-hesaplama-container,
    .perde-calculator-product {
        padding: 6px;
    }
    
    .step-header {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .step-header h4 {
        font-size: 11px;
        order: 1;
        width: 100%;
    }
    
    .step-number {
        order: 2;
    }
    
    .btn-back {
        order: 3;
        margin-left: auto;
    }
    
    .etek-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .etek-btn {
        width: 100%;
        max-width: 100px;
    }
    
    .perde-toast {
        top: 4px;
        right: 4px;
        left: 4px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .perde-toast.show {
        transform: translateY(0);
    }
}

/* Focus Styles */
.kategori-card:focus,
.urun-card:focus,
.pile-btn:focus,
.varyasyon-card:focus,
.etek-btn:focus {
    outline: 1px solid #10b981;
    outline-offset: 1px;
}

/* Zebra Perde Özel Stiller */
.zebra-category .calculator-field select,
.zebra-category .form-group select {
    background-color: #f0f9ff;
    border-color: #0ea5e9;
}

.zebra-category .calculator-field input[placeholder*="100cm"],
.zebra-category .form-group input[placeholder*="100cm"] {
    background-color: #f0f9ff;
    border-color: #0ea5e9;
}

.zebra-warning {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0c4a6e !important;
    padding: 4px 6px !important;
    border-radius: 3px !important;
    margin: 3px 0 !important;
    font-size: 9px !important;
}



/* Sepete Eklendi Animasyonu */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-success-message {
    animation: pulse 1s ease-in-out;
}

/* Başarı mesajı için ek stiller */
.cart-success-message,
.page-success-message {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.cart-success-message:hover,
.page-success-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

