/* QR Menü - Ana Stil Dosyası */
/* Örnek: https://demo2.qrmenum.app/tr benzeri tasarım */

:root {
    --primary-color: #3a5045;
    --bg-color: #ffffff;
    --bg-secondary: #3a5045;
    --bg-card: #f5f5f5;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: rgba(58, 80, 69, 0.2);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: #3a5045;
    padding: 20px;
    text-align: center;
    position: relative;
}

.header-bg {
    display: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 350px;
    height: auto;
    border-radius: 0;
    border: none;
    margin-bottom: 0;
    object-fit: contain;
    box-shadow: none;
}

.site-title {
    display: none;
}

.site-slogan {
    display: none;
}

/* İletişim Bilgileri */
.contact-info {
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Sosyal Medya */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.3);
}

.social-link:hover {
    background: #ffffff;
    color: #3a5045;
    transform: translateY(-3px);
}

/* Arama Kutusu */
.search-box {
    padding: 0 20px;
    background: transparent;
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

.search-box.search-page {
    margin-top: 0;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 280px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-input-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 5px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: #ffffff;
    border: none;
    border-radius: 25px;
    color: #333333;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: #999999;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #3a5045;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #2d3e36;
}

/* Kategori Listesi */
.category-list {
    padding: 25px 15px 20px;
}

.category-title {
    display: none;
}

.category-item {
    display: block;
    position: relative;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
    height: 180px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100%;
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(231, 76, 60, 0.95);
    color: #ffffff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-arrow {
    display: none;
}

/* Ürün Listesi */
.product-list {
    padding: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Ürün Detay */
.product-detail {
    padding-bottom: 100px;
}

.product-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-detail-content {
    padding: 20px;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    flex: 1;
}

.product-detail-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 15px;
}

.product-description {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: var(--radius);
    border-left: 3px solid #3a5045;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666666;
}

.meta-item i {
    color: #3a5045;
}

/* Benzer Ürünler */
.similar-products {
    padding: 20px;
    background: #f5f5f5;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.similar-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.similar-scroll::-webkit-scrollbar {
    height: 5px;
}

.similar-scroll::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 5px;
}

.similar-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.similar-card {
    min-width: 150px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.similar-card:hover {
    transform: scale(1.05);
}

.similar-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.similar-info {
    padding: 10px;
}

.similar-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Alt Kategori Başlığı */
.subcategory-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 20px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f5f5f5;
    font-size: 13px;
    flex-wrap: wrap;
    position: relative;
    z-index: 11;
}

.breadcrumb a {
    color: #3a5045;
}

.breadcrumb span {
    color: #666666;
}

.breadcrumb i {
    color: #999999;
    font-size: 10px;
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.footer-logo {
    display: none;
}

.footer-slogan {
    font-size: 16px;
    font-weight: 600;
    color: #3a5045;
    margin-bottom: 15px;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 13px;
    color: #3a5045;
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-social .social-link {
    background: #3a5045;
    color: #ffffff;
    border: none;
}

.footer-social .social-link:hover {
    background: #2d3e36;
    color: #ffffff;
}

.footer-link {
    font-size: 12px;
    color: #3a5045;
}

.footer-link:hover {
    color: #2d3e36;
}

/* Sidebar Menü */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--bg-card);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-item i {
    width: 25px;
    margin-right: 10px;
    color: var(--primary-color);
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Menü Butonu */
.menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--bg-color);
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 997;
    transition: var(--transition);
}

.menu-btn:hover {
    transform: scale(1.1);
    background: #b8956e;
}

/* Ana Menü Butonu */
.home-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 997;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Dil Seçici */
.language-selector {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 997;
}

.lang-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary-color);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Arama Sonuçları */
.search-results {
    padding: 20px;
}

.search-results-title {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.search-results-title strong {
    color: var(--primary-color);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-image {
        width: 70px;
        height: 70px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .site-title {
        font-size: 24px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Placeholder Görsel */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    font-size: 40px;
}
