/* HEADER */
.app-header {
    background-color: var(--primary-color);
    padding: 35px 20px 45px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 20;
    position: relative;
}

/* === HEADER FAVORI IKONU === */

.header-fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-fav-icon {
    font-size: 30px;
    color: #D4AF37; 
}

/* Beğeni sayacı */
.header-fav-count {
     position: absolute;
    top: -4px;
    right: -10px;
    background:#D4AF37;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    line-height: 16px;
    text-align: center;
    display: none;
}


.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.brand-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
    color: var(--accent-color); 
    opacity: 0.9;
}

/* STICKY NAV */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: -25px;
    padding-bottom: 10px;
}
#category-list {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-top: 5px;
    padding-bottom: 10px;
}
#category-list::-webkit-scrollbar { display: none; }

#category-list li {
    background: #fff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0.7;
}
#category-list li.active {
    background: var(--primary-color);
    color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(24, 44, 69, 0.4);
    opacity: 1;
    transform: scale(1.05);
}

/* ÜRÜN IZGARASI (GRID) */
.product-grid {
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
}

/* KART TASARIMI */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}
.card-image {
    height: 140px;
    width: 100%;
    position: relative;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content { 
    padding: 10px; 
    flex-grow: 1; 
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2; 
}

/* Beğenilmiş kalp */
.fav-btn.active {
    background: #182C45;
    color:  #D4AF37;
}


.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.2;
}
.product-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-color);
}
.product-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GRUP ETİKETİ */
.group-tag {
    position: absolute;
    bottom: 8px; 
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}

/* BÖLÜM BAŞLIKLARI */
.sticky-header {
    background: var(--bg-app);
    padding: 15px 20px 5px 20px;
    position: sticky;
    top: 45px; 
    z-index: 90;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

/* HOŞGELDİNİZ EKRANI STİLLERİ */
.welcome-section {
    padding: 40px 20px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, var(--bg-app), #fff);
}
.welcome-img-box {
    width: 170px;
    height: auto;
    margin: 0 auto 20px;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.welcome-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes welcomeGrow {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-logo-animate {
    animation: welcomeGrow 1.2s ease-out forwards;
}

.welcome-title {
    font-family: 'Playfair Display';
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}
.welcome-text { 
    color: #D4AF37; 
    font-size: 16px; 
    margin-bottom: 20px; 
}
.bounce-arrow {
    margin-top: 30px; 
    font-size: 24px;
    animation: bounce 2s infinite;
}

/* ANIMASYONLAR */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
@keyframes slideUp { 
    from { transform: translateY(100%); } 
    to { transform: translateY(0); } 
}

.modal-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 10px 5px;
    color: var(--primary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
}

.app-footer { 
    text-align: center; 
    padding: 30px; 
    color: #999; 
    font-size: 12px; 
}

/* === MODAL (ÜRÜN GRUP DETAYI) === */

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;              
    justify-content: center;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.modal-window {
    background: var(--bg-app);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.modal-close {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}



.modal-product-card .card-content {
    padding: 8px 10px;
}

.modal-card-image {
    height: 120px;
    overflow: hidden;
}

.modal-card-image img,
.modal-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-name {
    font-size: 14px;
}

/* === ÜRÜN DETAY GÖRÜNÜMÜ (TIKLANAN ÜRÜN) === */

.detail-layout {
    padding: 10px 15px 20px;
}

.detail-image-box {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    margin-bottom: 16px;
}

.detail-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.detail-image-box .fav-btn {
    top: 10px;
    right: 10px;
}

.detail-info {
    text-align: left;
}

.detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.detail-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.detail-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}


/* === YILBAŞI TEMASI KAR EFEKTİ === */

#app-root[data-theme="christmas"] .welcome-section {
    position: relative;
    overflow: hidden;
}

/* Kar tanesi */
/* Kar işareti görünümü */
.snowflake{
  position:absolute;
  top:-24px;
  z-index:6;
  pointer-events:none;
  opacity:0.9;
  animation-name:snowFall;
  animation-timing-function:linear;
  will-change: transform;
}

@keyframes snowFall{
  from { transform: translate3d(0,-24px,0); }
  to   { transform: translate3d(0,115vh,0); }
}


/* ==== RAMAZAN FENERLERİ (Hoşgeldiniz Alanı İçin) ==== */

/* Hoşgeldiniz section'ı fenerleri taşıyabilsin */
.welcome-section {
    position: relative;
}

/* Fener katmanı: sadece üst kısımda */
.ramadan-lantern-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 190px;
    pointer-events: none;
    display: none;       
    z-index: 5;
}

/* Sadece RAMAZAN temasında görünür */
#app-root[data-theme="ramadan"] .ramadan-lantern-layer {
    display: block;
}

/* Fenerlerin genel konumu */
.lantern-wrap {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lanternDrop 1.4s ease-out forwards;
}

/* Solda, ortada, sağda */
.lantern-left {
    left: 18%;               
    animation-delay: 0.1s;
}

.lantern-center {
    left: 48%;
    transform: translateX(-50%);
    animation-delay: 0.25s;  
}

.lantern-right {
    right: 18%;              
    animation-delay: 0.4s;
}


/* İP – ince altın zincir */
.lantern-line {
    width: 1.5px;
    height: 70px; 
    background: linear-gradient(to bottom, #FFF9C4, #FACC15, #D9B46A);
    box-shadow: 0 0 4px rgba(250, 204, 21, 0.8);
}

/* GÖVDE – biraz daha küçük boy */
.lantern-body {
    width: 24px;    
    height: 40px;   
    position: relative;
    border-radius: 14px;
    background: linear-gradient(to bottom, #8B4A20, #C56B2B, #8B4A20);
    border: 2px solid #D9B46A;
    box-shadow:
        0 0 8px rgba(255, 223, 128, 0.8),
        0 0 14px rgba(255, 223, 128, 0.6);
    overflow: hidden;
    animation: lanternGlow 2.2s ease-in-out infinite alternate;
}

/* ÜST KAPAK */
.lantern-body::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -4px;
    right: -4px;
    height: 14px;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(to bottom, #9C5423, #7A3E17);
    border: 2px solid #D9B46A;
}

/* ALT TABAN */
.lantern-body::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: -6px;
    right: -6px;
    height: 12px;
    border-radius: 10px 10px 16px 16px;
    background: linear-gradient(to bottom, #C56B2B, #7A3E17);
    border: 2px solid #D9B46A;
}

/* IŞIK aynı kalabilir */
.lantern-core {
    position: absolute;
    inset: 28% 20%;
    border-radius: 10px;
    background: radial-gradient(circle, #FFF9C4 0%, #FFD54F 40%, rgba(255,213,79,0) 100%);
    opacity: 0.9;
}


/* Yukarıdan aşağı kayma animasyonu */
@keyframes lanternDrop {
    0% {
        transform: translateY(-80px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hafif yanıp sönme (ışık efekti) */
@keyframes lanternGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.18); }
}


/* === TEMA BUTONLARI === */
.theme-switcher {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-switcher button {
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    cursor: pointer;
}

.theme-switcher button:hover {
    opacity: 0.85;
}










