@import url('colors.css');
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; margin: 0; padding: 0; background-color: var(--bg-primary); color: var(--text-primary); font-family: 'Segoe UI', Tahoma, sans-serif; }
.hidden { display: none !important; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* Üst Bar */
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background-color: var(--navbar-bg); border-bottom: 3px solid var(--border-medium); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px var(--card-shadow); }
.logo { font-size: 24px; font-weight: 900; letter-spacing: 1px; text-decoration: none; color: var(--navbar-text); cursor: pointer; }
.search-container { flex: 1; max-width: 600px; margin: 0 40px; position: relative; display: flex; align-items: center; }
.search-container input { width: 100%; padding: 12px 20px 12px 45px; border: 2px solid var(--input-border); border-radius: 8px; background-color: var(--input-bg); font-size: 15px; color: var(--text-primary); outline: none; transition: 0.2s; }
.search-container input:focus { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1); }
.search-container input::placeholder { color: var(--input-placeholder); }
.search-icon { position: absolute; left: 15px; width: 20px; height: 20px; stroke: var(--text-tertiary); fill: none; stroke-width: 2; }
.header-actions { display: flex; gap: 25px; }
.action-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--navbar-text); font-weight: 600; font-size: 14px; transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; cursor: pointer;}
.action-item:hover { color: var(--text-link-hover); }
.action-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; transition: stroke 0.2s; }
.cart-badge { position: absolute; top: -8px; right: -12px; background-color: var(--badge-cart-count-bg); color: var(--badge-cart-count-text); font-size: 11px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 4px var(--card-shadow); }

/* Form Ortak */
.outline-btn { background: var(--btn-secondary-bg); border: 2px solid var(--btn-secondary-border); border-radius: 10px; padding: 10px 20px; font-weight: bold; cursor: pointer; color: var(--btn-secondary-text); transition: 0.2s; }
.outline-btn:hover { background: var(--btn-secondary-hover-bg); }
.form-group { display: flex; flex-direction: column; margin-bottom: 15px; width: 100%; }
.form-group label { font-size: 13px; font-weight: bold; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 2px solid var(--input-border); border-radius: 10px; font-family: inherit; font-size: 15px; outline: none; background: var(--input-bg); color: var(--text-primary); transition: 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--input-border-focus); box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1); }
.form-row { display: flex; gap: 15px; width: 100%; }

/* Hesap Düzeni */
.account-container { max-width: 1400px; margin: 30px auto; padding: 0 40px 80px 40px; }
.account-layout { display: flex; gap: 40px; align-items: flex-start; }
.account-left { flex: 1; max-width: 420px; display: flex; flex-direction: column; gap: 25px; }
.account-right { flex: 2; }

/* Yeni Layout (Teklifler sekmesi ile) */
.account-layout.new-layout { display: flex; gap: 40px; align-items: flex-start; }
.account-nav-sidebar { flex: 0 0 250px; display: flex; flex-direction: column; gap: 15px; position: sticky; top: 100px; height: calc(100vh - 120px); }
.acc-nav-btn { background: var(--card-bg); border: 2px solid var(--border-medium); border-radius: 12px; padding: 15px 20px; font-weight: bold; font-size: 16px; color: var(--text-secondary); text-align: left; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px var(--card-shadow); }
.acc-nav-btn:hover { border-color: var(--btn-primary-bg); color: var(--btn-primary-bg); }
.acc-nav-btn.active { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-bg); box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3); }

.account-content-area { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 25px; }
.acc-content-section { animation: fadeIn 0.3s ease; display: flex; flex-direction: column; gap: 25px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.account-box { border: 2px solid var(--border-medium); border-radius: 15px; background-color: var(--card-bg); padding: 30px; box-shadow: 0 6px 15px var(--card-shadow); }
.orders-box { min-height: 500px; display: flex; flex-direction: column; }
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border-light); padding-bottom: 15px; margin-bottom: 20px;}
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon input { width: 100%; padding-right: 45px; }
.save-icon { position: absolute; right: 15px; width: 22px; height: 22px; stroke: var(--text-tertiary); cursor: pointer; transition: stroke 0.2s; }
.save-icon:hover { stroke: var(--btn-primary-bg); }

.badge-list { display: flex; flex-direction: column; gap: 10px; }
.badge-item { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--border-medium); border-radius: 12px; padding: 12px 20px; font-size: 15px; font-weight: bold; background: var(--bg-secondary); color: var(--text-primary); transition: 0.2s; }
.badge-item:hover { border-color: var(--btn-primary-bg); }
.badge-edit { font-size: 16px; cursor: pointer; margin-right: 15px; }
.badge-delete { color: var(--btn-danger-bg); cursor: pointer; font-size: 18px; }

.mobile-top-bar { display: none; }
.mobile-bottom-nav { display: none; }
.mobile-logout-btn { display: none; } /* Masaüstünde gizli */

/* Modallar */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--overlay); z-index: 2000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-content { background: var(--card-bg); width: 90%; max-width: 420px; border: 2px solid var(--border-medium); border-radius: 20px; padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; overflow-x: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal-close-btn { position: absolute; top: 15px; right: 15px; background: var(--bg-secondary); border: none; border-radius: 50%; width: 35px; height: 35px; font-weight: bold; font-size: 16px; color: var(--text-secondary); cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; transition: 0.2s;}
.modal-close-btn:hover { background: var(--btn-danger-bg); color: var(--btn-danger-text); }
.order-detail-modal-content { max-width: 850px; width: 95%; background: var(--bg-primary); border: none; }

.auth-tabs { display: flex; gap: 10px; margin-bottom: 25px; background: var(--bg-secondary); padding: 5px; border-radius: 12px;}
.auth-tab { flex: 1; padding: 12px; border: none; border-radius: 8px; background: transparent; color: var(--text-secondary); font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 15px;}
.auth-tab.active { background: var(--btn-primary-bg); color: var(--btn-primary-text); box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3); }
.auth-submit { width: 100%; padding: 14px; font-size: 18px; margin-top: 15px; background: var(--btn-primary-bg); color: var(--btn-primary-text); border: none; border-radius: 10px; cursor: pointer; transition: 0.2s; font-weight: bold; }
.auth-submit:hover { background: var(--btn-primary-hover); box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3); }

/* Geçmiş Siparişler */
.order-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.order-card { border: 2px solid var(--border-light); border-radius: 15px; background: var(--card-bg); overflow: hidden; box-shadow: 0 4px 10px var(--card-shadow); transition: border-color 0.2s; }
.order-card:hover { border-color: var(--border-medium); }
.order-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 2px solid var(--border-light); background: var(--bg-secondary); flex-wrap: wrap; gap: 10px; border-radius: 13px 13px 0 0; }
.order-header-col { display: flex; flex-direction: column; }
.order-header-label { font-size: 12px; color: var(--text-secondary); font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px;}
.order-header-val { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-top: 5px; }
.order-detail-btn { background: var(--card-bg); border: 2px solid var(--border-medium); border-radius: 10px; padding: 8px 18px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 14px; color: var(--text-primary); }
.order-detail-btn:hover { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-bg); }

.order-body { display: flex; justify-content: space-between; align-items: center; padding: 20px; flex-wrap: wrap; gap: 20px;}
.order-imgs { display: flex; gap: 12px; }
.order-img-box { width: 60px; height: 60px; border: 1px solid var(--border-light); border-radius: 10px; object-fit: cover; background: white;}
.order-statuses { display: flex; gap: 30px; align-items: center; text-align: center; }
.order-status-col { display: flex; flex-direction: column; }
.order-status-label { font-size: 12px; color: var(--text-secondary); font-weight: bold; margin-bottom: 4px; }
.order-status-val { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.order-cancel-btn { background: transparent; border: none; color: var(--text-disabled); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; padding: 5px;}
.order-cancel-btn:hover { color: var(--btn-danger-bg); transform: scale(1.1); }
.order-cancel-btn svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2;}
.order-cancelled-text { color: var(--error-text) !important; background: var(--error-bg); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--error-border); }

/* Masaüstü Ürün Satır Yapısı */
.order-detail-layout { display: flex; gap: 25px; align-items: flex-start; margin-top: 20px; }
.order-detail-left { flex: 1.5; border: 2px solid var(--border-medium); border-radius: 15px; padding: 20px; background: var(--card-bg); display: flex; flex-direction: column; gap: 15px; box-shadow: 0 4px 15px var(--card-shadow); }
.order-detail-right { flex: 1; display: flex; flex-direction: column; gap: 25px; }
.info-box { border: 2px solid var(--border-medium); border-radius: 15px; padding: 20px; background: var(--bg-secondary); }
.od-item { border: 1px solid var(--border-light); border-radius: 12px; padding: 15px; display: flex; align-items: stretch; gap: 15px; background: var(--card-bg); flex-wrap: nowrap;}
.od-item-img { width: 80px; height: 80px; border: 1px solid var(--border-medium); border-radius: 8px; object-fit: cover;}
.od-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.od-item-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--text-primary); }
.od-item-net { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.od-item-gross { font-size: 17px; font-weight: 900; color: var(--price-discounted); }

.od-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 120px; }
.od-stepper-area { display: flex; gap: 15px; margin-bottom: 10px;}
.od-stepper-col { display: flex; flex-direction: column; align-items: center; background: var(--bg-secondary); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-medium);}
.od-stepper-col span { font-size: 11px; font-weight: bold; color: var(--text-secondary); }
.od-stepper-col strong { font-size: 14px; margin-top: 4px; color: var(--text-primary); }
.od-item-total { font-size: 18px; font-weight: 900; color: var(--price-discounted); text-align: right; margin-top: auto; padding-top: 10px; }

.od-total-box { align-self: flex-end; text-align: right; padding-top: 15px; border-top: 2px dashed var(--border-medium); width: 100%; margin-top: 15px;}
.od-total-title { font-size: 20px; font-weight: 900; color: var(--text-primary); }
.od-total-net { font-size: 14px; color: var(--text-secondary); margin: 5px 0; font-weight: bold; }
.od-total-gross { font-size: 26px; font-weight: 900; color: var(--price-discounted); }

.back-step-btn { background: var(--btn-secondary-bg); border: 2px solid var(--border-medium); border-radius: 10px; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; padding: 0; transition: 0.2s; }
.back-step-btn svg { width: 22px; height: 22px; stroke: var(--text-secondary); fill: none; stroke-width: 2; transition: stroke 0.2s; }
.back-step-btn:hover { border-color: var(--btn-primary-bg); }
.back-step-btn:hover svg { stroke: var(--btn-primary-bg); }

/* ÇEREZ POLİTİKASI UYARISI */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--navbar-bg); border-top: 3px solid var(--btn-primary-bg); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -10px 30px rgba(0,0,0,0.15); z-index: 9999; box-sizing: border-box; flex-wrap: wrap; gap: 15px; }
.cookie-banner p { margin: 0; font-size: 13px; color: var(--text-primary); flex: 1; min-width: 250px; line-height: 1.5; }
.cookie-banner a { color: var(--text-link); text-decoration: underline; font-weight: 900; }
#accept-cookies-btn { background: var(--btn-primary-bg); color: var(--btn-primary-text); border: 2px solid var(--btn-primary-bg); padding: 10px 25px; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 14px; white-space: nowrap; }
#accept-cookies-btn:hover { background: var(--btn-primary-hover); }

/* YENİ ETBİS VE FOOTER TASARIMI */
.site-footer { background-color: var(--card-bg); padding: 30px 20px; margin-top: 40px; border-top: 3px solid var(--border-medium); text-align: center; }
.footer-content { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; max-width: 1000px; margin-left: auto; margin-right: auto;}
.footer-links { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; font-size: 14px; font-weight: bold; }
.footer-links a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-link); }
.footer-etbis a { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 10px; border: 2px dashed var(--border-medium); border-radius: 12px; background: var(--bg-secondary); color: var(--text-tertiary); font-size: 12px; font-weight: 900; width: 70px; height: 70px; text-decoration: none; transition: 0.2s; line-height: 1.2;}
.footer-etbis a:hover { border-color: var(--btn-primary-bg); color: var(--btn-primary-bg); }
.order-item-val { font-weight: bold; font-size: 15px; color: var(--text-primary); }
    
/* Tekliflerim Özel Stiller */
.offer-card { border-color: var(--btn-primary-bg); overflow: visible !important; margin-top: 15px; }
.offer-details-body { background-color: var(--bg-color); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; padding: 20px; }
.offer-item-frame { padding: 15px; }
.offer-summary-area { padding: 20px; }
.btn-orange { background-color: var(--btn-primary-bg) !important; color: white !important; border-color: var(--btn-primary-bg) !important; }
.btn-blue { background-color: #2196F3 !important; color: white !important; border-color: #2196F3 !important; }
.btn-gray { background-color: var(--border-medium) !important; color: var(--text-tertiary) !important; border-color: var(--border-medium) !important; cursor: not-allowed; }
    
/* ------------------------------------- */
/* RESPONSIVE DESIGN (MOBIL UYUM)        */
/* ------------------------------------- */
.footer-copyright { font-size: 13px; color: var(--text-tertiary); margin: 0; width: 100%; }

/* Mobil Uyum */
@media (max-width: 768px) {
    .top-bar { padding: 15px; flex-direction: column; gap: 15px; }
    .header-actions { display: none; }
    .search-container { margin: 0; width: 100%; }
    .account-container { padding: 15px 10px 95px 10px !important; }
    .form-row { flex-direction: column; gap: 0; }
    
    .mobile-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding: 0 5px; }
    .back-btn-store { flex-shrink: 0; background: var(--btn-secondary-bg); border: 2px solid var(--btn-secondary-border); border-radius: 12px; width: 45px; height: 45px; cursor: pointer; display: flex; justify-content: center; align-items: center; }
    .back-btn-store svg { width: 26px; height: 26px; stroke: var(--btn-secondary-text); stroke-width: 2; fill: none; }
    .mobile-scroll-btn { display: flex; align-items: center; gap: 8px; background: var(--card-bg); border: 2px solid var(--border-medium); border-radius: 12px; padding: 10px 18px; font-weight: bold; font-size: 14px; color: var(--text-primary); cursor: pointer; box-shadow: 0 4px 8px var(--card-shadow); }
    .mobile-scroll-btn svg { width: 18px; height: 18px; }
    .logout-icon-btn { background: var(--error-bg); border: 2px solid var(--error-border); border-radius: 12px; width: 45px; height: 45px; cursor: pointer; display: flex; justify-content: center; align-items: center; }
    
    .desktop-logout-btn { display: none; } 
    .account-layout { flex-direction: column; gap: 25px; }
    .account-left { max-width: 100%; width: 100%; gap: 20px; }
    .account-right { width: 100%; }
    
    /* Yeni Layout Mobil */
    .account-layout.new-layout { flex-direction: column; gap: 20px; }
    .account-nav-sidebar { flex: auto; position: static; height: auto; flex-direction: column; gap: 10px; padding: 0 10px; width: 100%; box-sizing: border-box; }
    .acc-nav-btn { flex: auto; padding: 14px 20px; font-size: 16px; text-align: left; width: 100%; box-sizing: border-box; }
    .desktop-logout-btn { display: none; }
    .mobile-logout-btn { display: block; }
    .account-content-area { width: 100%; }
    .orders-box { min-height: 400px; padding: 10px; border-radius: 8px; } 
    .offer-details-body { padding: 10px; }
    .offer-item-frame { padding: 10px; }
    .offer-summary-area { padding: 10px; }
    .hide-on-mobile { display: none !important; }
    .order-header { flex-wrap: nowrap; padding: 12px 8px; gap: 5px; }
    .order-header-label { font-size: 10px; }
    .order-header-val { font-size: 13px; margin-top: 2px; }
    .order-detail-btn { padding: 6px 10px; font-size: 12px; }
    .order-body { flex-direction: column; align-items: flex-start; gap: 15px; }
    .order-statuses { width: 100%; justify-content: space-between; }
    
    .order-detail-layout { flex-direction: column; }
    .order-detail-left, .order-detail-right { width: 100%; box-sizing: border-box; }
    
    /* Mobil İçin Orijinal Yapıya Dönüş */
    .od-item { flex-wrap: wrap; align-items: center; }
    .od-item-info { min-width: auto; order: 0; text-align: left; }
    .od-item-right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 10px; border-top: 1px solid var(--border-light); padding-top: 10px; }
    .od-stepper-area { margin-bottom: 0; }
    .od-item-total { font-size: 20px; padding-top: 0; }
    
    .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background-color: var(--navbar-bg); border-top: 2px solid var(--border-medium); z-index: 1001; }
    .nav-item { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; color: var(--text-tertiary); text-decoration: none;}
    .nav-item svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; transition: 0.2s;}
    .nav-item.active { color: var(--text-link); }

    /* YENİ: Mobilde uyarılar düzgün dizek için eklendi */
    .cookie-banner { padding: 15px; flex-direction: column; text-align: center; bottom: 65px; } 
    #accept-cookies-btn { width: 100%; } 
    .site-footer { padding-bottom: 90px; } 
    .footer-content { flex-direction: column; gap: 25px; }
}
/* Glowing Tabs */
.tab-glow-orange {
    animation: glowOrangeTab 1.5s infinite alternate ease-in-out;
    border-color: #FF9800 !important;
}
.tab-glow-blue {
    animation: glowBlueTab 1.5s infinite alternate ease-in-out;
    border-color: #2196F3 !important;
}
@keyframes glowOrangeTab {
    0% { box-shadow: 0 0 5px rgba(255,152,0,0.2); }
    100% { box-shadow: 0 0 15px rgba(255,152,0,0.6); }
}
@keyframes glowBlueTab {
    0% { box-shadow: 0 0 5px rgba(33,150,243,0.2); }
    100% { box-shadow: 0 0 15px rgba(33,150,243,0.6); }
}
