/* --- GENEL AYARLAR --- */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
:root { 
    --primary-color: #E85D5D; 
    --text-color: #FFFFFF; 
    --dark-overlay: rgba(0, 0, 0, 0.5); 
    --font-family: 'Poppins', sans-serif; 
    --page-bg-color: #FFFFFF;
    --card-bg-color: #F8F9FA; 
}
body, html { margin: 0; padding: 0; width: 100%; height: 100%; font-family: var(--font-family); overflow: hidden; background-color: var(--page-bg-color); }
body.modal-open { overflow: hidden; }

/* --- TEK SAYFA UYGULAMA YAPISI --- */
.screen { width: 100%; height: 100vh; position: absolute; top: 0; left: 0; display: none; opacity: 0; transition: opacity 0.5s ease; background-color: var(--page-bg-color); flex-direction: column; }
.screen.active { display: flex; opacity: 1; }

/* --- KARŞILAMA EKRANI STİLLERİ --- */
#splash-screen { background-size: cover; background-position: center; color: var(--text-color); text-align: center; justify-content: center; align-items: center; }
#splash-screen::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-overlay); }
.splash-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; width: 100%; height: 100%; transform: translateY(-4vh); }
.logo { max-width: 120px; margin-bottom: 40px; }
.splash-content h1 { font-size: 2.5em; font-weight: 700; margin: 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.splash-content p { font-size: 1.1em; margin: 10px 0 30px 0; max-width: 300px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.menu-button { background-color: var(--primary-color); color: var(--text-color); padding: 12px 35px; border-radius: 50px; text-decoration: none; font-size: 1em; font-weight: 600; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: transform 0.2s ease, background-color 0.2s ease; border:none; cursor: pointer;}
.menu-button:hover { transform: scale(1.05); }
.social-icons { position: absolute; bottom: 70px; }
.social-icons a { color: var(--text-color); font-size: 1.5em; margin: 0 15px; text-decoration: none; transition: transform 0.2s ease; }
.social-icons a:hover { transform: scale(1.2); }
.update-date-text { color: #ffffff; font-size: 0.8em; margin-top: 15px; text-shadow: 1px 1px 2px rgba(0,0,0,0.7); opacity: 0.8; }

/* --- ANA MENÜ EKRANI STİLLERİ --- */
#main-menu-screen { overflow-y: auto; overflow-x: hidden; }
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: var(--page-bg-color); box-shadow: none; position: sticky; top: 0; z-index: 100; width: 100%; }
.header-logo { height: 40px; flex-shrink: 0; }
.header-title { flex-grow: 1; text-align: center; margin: 0; font-size: 1.2em; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; display: none; }
.search-icon-wrapper { font-size: 1.8em; color: #333; cursor: pointer; flex-shrink: 0; }
.search-bar-container { padding: 10px 20px; background-color: var(--page-bg-color); display: none; position: relative; }
.search-bar-container.visible { display: block; }
.search-bar-container input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 25px; font-size: 1em; }
#search-results-container { position: absolute; top: 100%; left: 20px; right: 20px; background-color: #fff; border-radius: 0 0 15px 15px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); max-height: 300px; overflow-y: auto; z-index: 99; display: none; }
.search-result-item { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.search-result-item:hover { background-color: #f9f9f9; }
.search-result-image { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; margin-right: 10px; }
.menu-content { padding: 20px; }

/* --- YENİ VE GÜVENİLİR SLIDER STİLLERİ --- */
#new-slider-container { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 30px; border-radius: 18px; overflow: hidden; background-color: #f0f0f0; }
#new-slider-container .swiper-slide { display: flex; align-items: flex-end; justify-content: flex-start; background-size: cover; background-position: center; color: white; padding: 25px; cursor: pointer; position: relative; box-sizing: border-box; }
#new-slider-container .swiper-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%); z-index: 1; }
#new-slider-container .swiper-slide h3 { margin: 0; font-size: 1.6em; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.swiper-pagination-bullet-active { background-color: var(--primary-color) !important; }

.category-container { margin-top: 30px; }
.category-container h2 { display: none; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.category-card { background-color: var(--card-bg-color); border-radius: 18px; text-decoration: none; color: #333; padding: 15px; display: flex; flex-direction: column; align-items: center; }
.category-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.category-card p { margin: 0; font-weight: 600; font-size: 0.9em; text-align: center; }

/* --- ÜRÜN LİSTELEME EKRANI STİLLERİ --- */
#product-list-screen { overflow-y: auto; overflow-x: hidden; padding-bottom: 70px; }
.product-list-header { display: flex; align-items: center; padding: 10px 15px; background-color: var(--page-bg-color); position: sticky; top: 0; z-index: 101; }
.back-button { color: #333; text-decoration: none; font-weight: 600; font-size: 1em; margin-right: 15px; white-space: nowrap; cursor: pointer; }
.category-nav { display: flex; flex-grow: 1; overflow-x: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a { text-decoration: none; color: #555; font-weight: 500; padding: 8px 16px; border-radius: 20px; margin-right: 10px; background-color: #f0f0f0; transition: background-color 0.3s, color 0.3s; }
.category-nav a.active { background-color: var(--primary-color); color: #ffffff; font-weight: 600; }
.product-list-content { padding: 20px; }
.product-card { display: flex; align-items: center; background-color: var(--card-bg-color); padding: 15px; border-radius: 18px; margin-bottom: 15px; transition: transform 0.3s, box-shadow 0.3s; scroll-margin-top: 80px; }
.product-card.highlight { transform: scale(1.02); box-shadow: 0 0 15px var(--primary-color); }
.product-card-image { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; margin-right: 15px; flex-shrink: 0; }
.product-card-details-wrapper { flex-grow: 1; cursor: pointer; }
.product-card-details { min-width: 0; }
.product-card-details h3 { margin: 0 0 5px 0; font-size: 1.1em; color: #333; }
.product-card-details p { margin: 0 0 10px 0; font-size: 0.9em; color: #666; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-price { font-size: 1.2em; font-weight: 700; color: var(--primary-color); }
.product-list-category-title { font-size: 1.8em; color: #333; margin-top: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; text-align: left; scroll-margin-top: 80px; }
.product-list-category-title:first-child { margin-top: 0; }
.category-navigation-buttons { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #f8f8f8; display: none; justify-content: space-between; padding: 10px 20px; border-top: 1px solid #eee; z-index: 102; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.category-navigation-buttons button { background-color: #e0e0e0; color: #333; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: 500; transition: background-color 0.2s ease, opacity 0.2s ease; }
.category-navigation-buttons button:hover:not(:disabled) { background-color: #d0d0d0; }
.category-navigation-buttons button:disabled { background-color: #f1f1f1; color: #aaa; cursor: not-allowed; opacity: 0.7; }

/* --- ÜRÜN DETAY MODALI STİLLERİ --- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 1000; display: flex; justify-content: center; align-items: flex-end; visibility: hidden; opacity: 0; transition: visibility 0s 0.4s, opacity 0.4s; overscroll-behavior: contain; }
.modal.active { visibility: visible; opacity: 1; transition: visibility 0s, opacity 0.4s; }
.modal-content { background-color: #FFFFFF; width: 100%; max-width: 500px; border-radius: 20px 20px 0 0; padding: 0; text-align: center; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; max-height: 90vh; position: relative; bottom: 0; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), bottom 0.4s ease; }
.modal.active .modal-content { transform: translateY(0); }
.modal.cart-active .modal-content { bottom: 55px; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.5); color: white; border-radius: 50%; border: none; font-size: 1.2em; line-height: 1; cursor: pointer; transition: background-color 0.2s, transform 0.2s; z-index: 10; display:flex; align-items:center; justify-content:center; }
.modal-close:hover { background-color: rgba(0, 0, 0, 0.8); transform: scale(1.1); }
#modal-image { width: 100%; height: 30vh; object-fit: cover; border-radius: 20px 20px 0 0; flex-shrink: 0; }
.modal-text-content { padding: 20px; overflow-y: auto; flex-grow: 1; }
#modal-product-name { font-size: 1.8em; margin: 0 0 10px 0; }
#modal-product-desc { color: #666; margin: 0 0 20px 0; }
#modal-product-price { font-size: 1.8em; font-weight: 700; color: var(--primary-color); }
.modal-actions { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; flex-shrink: 0; background-color: #FFFFFF; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); border-top: 1px solid #eee; }
.modal-nav { background-color: #e9ecef; color: #343a40; border: none; border-radius: 8px; width: 50px; height: 50px; font-size: 1.5em; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.modal-nav:hover { background-color: #dee2e6; }
#modal-add-to-cart-btn { width: auto; flex-grow: 1; margin: 0 15px; padding: 15px; font-size: 1.1em; }

/* --- SEPET ÖZELLİĞİ STİLLERİ --- */
.add-to-cart-btn { background-color: var(--primary-color); color: white; width: 36px; height: 36px; border-radius: 50%; border: none; font-size: 24px; font-weight: bold; line-height: 36px; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform 0.2s; z-index: 5; flex-shrink: 0; margin-left:10px; }
.add-to-cart-btn:hover { transform: scale(1.1); }
.add-to-cart-btn:active { transform: scale(0.95); }
.cart-bottom-bar { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px; height: 55px; padding: 0 20px; background-color: #2c3e50; color: white; border-radius: 15px 15px 0 0; box-shadow: 0 -4px 15px rgba(0,0,0,0.15); display: none; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; z-index: 1002; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cart-bottom-bar.visible { display: flex; bottom: 0; }
.cart-modal-content { display: flex; flex-direction: column; max-height: 85vh; padding: 0; }
.cart-modal-content h2 { padding: 20px 20px 10px 20px; margin-bottom: 0; flex-shrink: 0; text-align: left; border-bottom: 1px solid #eee;}
.cart-items-container { flex-grow: 1; overflow-y: auto; padding: 0 20px; }
.cart-item { display: flex; align-items: center; padding: 10px 5px; border-bottom: 1px solid #f0f0f0; box-sizing: border-box; width: 100%; }
.cart-item-image { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; margin-right: 15px; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { margin: 0; font-size: 1em; }
.cart-item-price { font-weight: bold; font-size: 1.1em; }
.cart-summary { flex-shrink: 0; padding: 20px; margin-top: 10px; padding-top: 20px; border-top: 2px solid #eee; background-color: #f9f9f9; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3em; font-weight: bold; margin-bottom: 20px; }
.cart-clear-btn { width: 100%; background-color: #e74c3c; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 1em; cursor: pointer; }
.cart-confirm-btn { width: 100%; background-color: #2ecc71; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 1em; cursor: pointer; margin-top: 10px;}

/* --- EYLEM BUTONLARI --- */
.action-buttons-container { display: flex; justify-content: center; gap: 15px; padding: 0 20px 15px 20px; background-color: var(--page-bg-color); }
.action-btn { flex-grow: 1; padding: 12px; border-radius: 12px; border: 1px solid #ddd; background-color: #fff; font-family: var(--font-family); font-size: 0.9em; font-weight: 600; color: #333; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.action-btn i { margin-right: 8px; color: var(--primary-color); }

/* --- ÖZEL BİLDİRİM KUTUSU (TOAST) --- */
.toast-notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background-color: #2ecc71; color: white; padding: 16px 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 9999; font-weight: 600; text-align: center; max-width: 90%; word-wrap: break-word; opacity: 0; visibility: hidden; transform: translate(-50%, -20px); transition: opacity 0.4s, visibility 0.4s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.toast-notification.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* --- Katalog Modu Ayarları --- */
body.catalog-mode .action-buttons-container,
body.catalog-mode .add-to-cart-btn,
body.catalog-mode #modal-add-to-cart-btn,
body.catalog-mode #cart-bottom-bar,
body.catalog-mode #cart-confirm-order-btn,
body.catalog-mode #cart-clear-btn {
    display: none !important;
}
body.catalog-mode .modal-actions {
    justify-content: space-between;
}

/* --- FOOTER STİLİ --- */
.site-footer {
    padding: 20px 15px;
    text-align: center;
    font-size: 0.8em;
    color: #aaa;
    background-color: var(--card-bg-color);
    border-top: 1px solid #eee;
}
.site-footer p {
    margin: 0;
}
.site-footer a {
    color: #888;
    font-weight: 600;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* --- ÇİFT FİYAT STİLLERİ --- */
.multi-price {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
}
.product-card-details .multi-price {
    font-size: 1em;
    font-weight: 700;
    color: var(--primary-color);
}
#modal-product-price .multi-price {
    font-size: 1.4em;
    justify-content: center;
    margin-top: 10px;
}
.price-option {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.price-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #555;
}