@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

/* Genel Sayfa Stilleri (Global Reset and Base Styles) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Tasarımı (Custom Scrollbar) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Linkler ve Butonlar (Links & Interactive Elements) */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

button {
    font-family: var(--font-sans);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ortak Konteyner Yapısı (Common Container Layout) */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Erişilebilirlik - Sadece Ekran Okuyucu (Accessibility - Screen Reader Only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Odaklanma Durumu (Focus States) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 3px;
}

/* Layout Yapısı */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

/* Instagram Stories Section */
.stories-section {
    padding: 1.25rem 0 0.75rem; /* Üst ve alt boşluklar azaltıldı */
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
}

.stories-scroll {
    display: flex;
    gap: 1.25rem; /* Daireler birbirine yakınlaştırıldı */
    overflow-x: auto;
    padding: 0.5rem 0.25rem 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.stories-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Geniş ekranlarda tüm daireleri ortala ve sığdır */
@media (min-width: 1150px) {
    .stories-scroll {
        justify-content: center;
    }
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    flex-shrink: 0;
    cursor: pointer;
}

.story-ring {
    width: 70px; /* Boyut küçültüldü */
    height: 70px;
    border-radius: 50%;
    padding: 0; /* Çerçevenin içindeki boşluk sıfırlandı */
    border: 1px solid #D63384; /* İnce 1px Magenta Çizgi */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
    overflow: hidden; /* Taşmaları engelle */
}

.story-item:hover .story-ring {
    opacity: 0.85; /* Sade ve hafif opaklık efekti */
}

.story-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #F5F1E9; /* İkonların zemin rengi yuvarlak kadar olması için eşitlendi */
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-title {
    font-family: var(--font-brand);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-main);
    max-width: 86px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.story-item:hover .story-title {
    color: #8E8E93; /* Üzerine gelince sade hafif gri rengi */
}

/* Banner Grid Bölümleri (Banners Layout) */
.banner-grid-2,
.banner-grid-3,
.banner-grid-4,
.banner-horizontal {
    margin-bottom: 1.75rem; /* Standart dikey boşluk */
}

.banner-grid-2 {
    margin-top: 1.75rem; /* İlk banner grubunun stories alanından mesafesi */
}

.banner-grid-2-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.banner-grid-3-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.banner-grid-4-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.banner-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    background-color: var(--color-bg-surface);
}

.banner-img-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Tek Yatay Geniş Banner */
.banner-card-full {
    border-radius: var(--radius-lg);
}

/* Ana Slider Stilleri (Main Hero Slider) */
.main-slider {
    margin-top: 0; /* Hikaye alanı ile boşluğu sıfırla */
    margin-bottom: 1.75rem;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px; /* Sabit 500px yükseklik */
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Yönlendirme Okları */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(44, 37, 35, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.slider-arrow:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 6px 16px rgba(44, 37, 35, 0.2);
}

.prev-arrow {
    left: 1.25rem;
}

.next-arrow {
    right: 1.25rem;
}

/* Slayt Noktaları */
.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    background-color: rgba(44, 37, 35, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background-color: var(--color-text-light);
    transform: scale(1.2);
}

/* Ürünler Bölümü Stilleri (Products Section Styles) */
.products-section {
    margin-bottom: 1.75rem; /* Standart dikey boşluk */
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Dikey Görsel Oranı */
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Favorilere Ekle Butonu */
.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(44, 37, 35, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.favorite-btn:hover {
    background-color: #FFFFFF;
    transform: scale(1.05);
}

.favorite-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    transition: all var(--transition-fast);
}

.favorite-btn.is-favorite svg {
    fill: var(--color-danger);
    stroke: var(--color-danger);
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.discount-rate {
    font-size: 0.72rem;
    font-weight: 700;
    color: #D63031; /* Kırmızı İndirim Oranı Yazısı */
    margin-bottom: 0.25rem;
    display: block;
}

.product-name {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem; /* Fiyatlarla arasındaki boşluk azaltıldı */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: var(--color-accent);
}

.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main); /* Satış fiyatı koyu gri */
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.product-footer .price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.card-add-to-cart,
.product-card-actions .order-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-brand);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 0;
    white-space: nowrap;
}

.card-add-to-cart {
    flex: 0 0 auto;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.card-add-to-cart:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.order-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: #D63031; /* Kırmızı Sipariş Ver Butonu */
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    margin-top: auto; /* Sipariş ver butonlarını kartın en altına hizalar */
}

.order-btn:hover {
    background-color: #C0392B; /* Koyu Kırmızı */
}

.product-card-actions .order-btn {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: none;
}

/* Banner Grubu Responsive Breakpoints */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .banner-grid-4-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .banner-grid-3-container {
        gap: 1.25rem;
    }
    .banner-grid-2-container {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .products-section {
        margin-bottom: 1.25rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .main-slider {
        margin-top: 0; /* Mobilde de hikaye alanı ile boşluğu sıfırla */
        margin-bottom: 1.25rem;
    }
    .slider-wrapper {
        height: 300px; /* Tablet ve mobilde 300px yükseklik */
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
    }
    .prev-arrow {
        left: 0.75rem;
    }
    .next-arrow {
        right: 0.75rem;
    }
    .slider-dots {
        bottom: 0.75rem;
        padding: 4px 8px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
    .banner-grid-2,
    .banner-grid-3,
    .banner-grid-4,
    .banner-horizontal {
        margin-bottom: 1.25rem;
    }
    .banner-grid-2 {
        margin-top: 1.25rem;
    }
    .banner-grid-3-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .banner-grid-2-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .banner-card-full .banner-overlay-text {
        padding: 1.5rem;
    }
    .banner-card-full h2 {
        font-size: 1.4rem;
    }
    .banner-card-full p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .slider-wrapper {
        height: 220px; /* Küçük mobil cihazlarda 220px yükseklik */
    }
    .banner-grid-4-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* --- Alternatif Ürün Kartı Stilleri --- */
.alt-product-card {
    border: 1px solid rgba(44, 37, 35, 0.08);
    box-shadow: 0 2px 10px rgba(44, 37, 35, 0.04);
}

.alt-product-card .product-img-wrapper {
    aspect-ratio: 1 / 1;
}

.alt-product-card .product-info {
    padding: 0.85rem 1rem 1rem;
}

.product-delivery {
    font-size: 0.72rem;
    color: #2E7D32; /* Yeşil kargo / teslimat yazısı */
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.delivery-truck {
    font-size: 0.85rem;
}

.alt-product-card .product-name {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: #2C2523;
    margin-bottom: 0.35rem;
    height: auto;
    min-height: auto;
    line-height: 1.4;
}

.alt-product-card .discount-rate {
    font-size: 0.72rem;
    font-weight: 700;
    color: #D63031;
    margin-bottom: 0.5rem;
    display: block;
}

.alt-product-card .product-footer {
    margin-top: auto;
    gap: 0.5rem;
}

.alt-product-card .price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 0.1rem;
}

.alt-product-card .price-old {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.alt-product-card .price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.alt-product-card .product-card-actions .order-btn {
    background-color: #D63031;
    color: var(--color-text-light);
}

.alt-product-card .product-card-actions .order-btn:hover {
    background-color: #C0392B;
}

/* --- 4'lü Ürün Grid Düzeni (8 Ürün İçin) --- */
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* --- Ürün Carousel (Yatay Kaydırılabilir Ürün Satırı) --- */
.product-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0; /* Dolgu kaldırıldı, kartlar üstteki ızgara ile aynı hizada başlar */
}

.product-carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0.25rem;
}

.product-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-carousel-item {
    flex: 0 0 calc((100% - 6rem) / 5); /* Ekranda üstteki 5'li ızgara ile aynı büyüklükte olması için (4 boşluk x 1.5rem = 6rem) */
    scroll-snap-align: start;
}

/* Kaydırma Okları */
.product-carousel-wrapper .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(44, 37, 35, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-carousel-wrapper .carousel-arrow:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.product-carousel-wrapper .prev-arrow {
    left: -25px; /* Kartların dışına, sol kenar boşluğuna taşındı */
}

.product-carousel-wrapper .next-arrow {
    right: -25px; /* Kartların dışına, sağ kenar boşluğuna taşındı */
}

/* Responsive Kırılmalar */
@media (max-width: 1024px) {
    .product-carousel-item {
        flex: 0 0 calc((100% - 3rem) / 3); /* Tabletlerde 3 ürün görünür */
    }
    .product-carousel-wrapper .prev-arrow {
        left: -15px;
    }
    .product-carousel-wrapper .next-arrow {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .product-carousel-wrapper {
        padding: 0; /* Mobilde oklar gizlendiği için dolguyu sıfırla */
    }
    .product-carousel-item {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* Küçük tablet/mobil için 2 ürün görünür */
    }
    .product-carousel-wrapper .carousel-arrow {
        display: none; /* Mobilde dokunmatik kaydırma yeterlidir, okları gizle */
    }
}

@media (max-width: 480px) {
    .product-carousel-item {
        flex: 0 0 80%; /* Küçük mobilde tek kart belirgin olsun, diğeri yanda kalsın */
    }
}

/* --- Bölünmüş Banner & Ürün Kaydırıcı Düzeni (Split Layout) --- */
.split-banner-slider-section {
    margin-bottom: 1.75rem;
}

.split-section-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.split-banner-container {
    flex: 0 0 30%;
    min-width: 0;
}

.split-banner-card {
    height: 100%;
    display: block;
}

.split-banner-img-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.split-banner-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-slider-container {
    flex: 0 0 calc(70% - 1.5rem);
    min-width: 0;
    overflow: hidden;
}

.split-carousel-wrapper {
    position: relative;
    width: 100%;
}

.split-carousel-wrapper .prev-arrow {
    left: 10px;
}

.split-carousel-wrapper .next-arrow {
    right: 10px;
}

.split-carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0.25rem;
}

.split-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.split-carousel-item {
    flex: 0 0 calc((100% - 1.5rem) / 2); /* Masaüstünde yan yana tam 2 ürün kartı */
    scroll-snap-align: start;
}

/* Tablet ve Mobil Uyum Stilleri */
@media (max-width: 1024px) {
    .split-section-wrapper {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .split-banner-container {
        flex: none;
        width: 100%;
    }
    
    .split-banner-card {
        height: auto;
    }
    
    .split-banner-img-wrapper {
        height: auto;
        aspect-ratio: 16 / 7; /* Tablet ekranlarda ideal genişlik-yükseklik oranı */
    }
    
    .split-slider-container {
        flex: none;
        width: 100%;
    }
    
    .split-carousel-item {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* Tablette de 2 kart yan yana */
    }
}

@media (max-width: 768px) {
    .split-banner-slider-section {
        margin-bottom: 1.25rem;
    }
    
    .split-banner-img-wrapper {
        aspect-ratio: 16 / 9; /* Mobil dikey ekranlarda ideal oran */
    }
}

@media (max-width: 480px) {
    .split-carousel-item {
        flex: 0 0 85%; /* Mobilde 1.15 kart görünerek kaydırma hissi oluşturur */
    }
}

/* --- Yeni Sayfalar İçin Ek CSS Kuralları --- */

/* Buton ve Etkileşim Efektleri */
.qty-btn:hover {
    background-color: var(--color-bg-alt);
}
.qty-btn:active {
    background-color: var(--color-border);
}

.favorite-btn:hover {
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
}
.favorite-btn.is-favorite {
    background-color: rgba(214, 48, 49, 0.05) !important;
    border-color: rgba(214, 48, 49, 0.2) !important;
    color: #D63031 !important;
}
.favorite-btn.is-favorite svg {
    fill: #D63031 !important;
}

#btn-complete-checkout:hover {
    background-color: #b32424 !important;
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.3) !important;
    transform: translateY(-1px);
}
#btn-complete-checkout:active {
    transform: translateY(1px);
}

.btn-order-now:hover {
    background-color: #C0392B !important;
}

.btn-add-to-cart:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.btn-add-to-cart:active {
    transform: translateY(1px);
}

/* Ürün Detay — Başlık & Meta */
.detail-product-title {
    font-family: var(--font-brand);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-brand);
}

.detail-rating-stars {
    color: #F1C40F;
    letter-spacing: 1px;
}

.detail-rating-score {
    font-weight: 600;
    color: var(--color-primary);
}

.detail-delivery-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background-color: rgba(74, 107, 82, 0.14);
    color: var(--color-success);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-brand);
    line-height: 1.3;
    text-align: right;
}

/* Ürün Detay — Kısa Açıklama */
.detail-short-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: var(--font-brand);
}

/* Ürün Detay — Fiyat Satırı */
.detail-price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.detail-discount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #D63031;
    color: #fff;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-brand);
    line-height: 1;
}

.detail-price-old {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-weight: 400;
    font-family: var(--font-brand);
}

.detail-price-current {
    font-size: 1.75rem;
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-brand);
    line-height: 1;
}

/* Ürün Detay — Gönderim Yeri & Adet */
.detail-options-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-option-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.detail-shipping-field {
    flex: 1 1 220px;
    min-width: 0;
    position: relative;
}

.detail-qty-field {
    flex: 0 0 auto;
}

.detail-option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-brand);
    letter-spacing: normal;
    text-transform: none;
}

.delivery-location-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    height: 44px;
    padding: 0 0.85rem;
    border: 1.5px solid var(--color-info);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    color: var(--color-text-muted);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    text-align: left;
}

.delivery-location-trigger:hover,
.delivery-location-trigger[aria-expanded="true"] {
    border-color: #1e4a75;
    box-shadow: 0 0 0 3px rgba(43, 92, 143, 0.1);
}

.delivery-location-trigger.has-selection {
    color: var(--color-primary);
}

.delivery-pin-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.delivery-location-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-chevron {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.delivery-location-trigger[aria-expanded="true"] .delivery-chevron {
    transform: rotate(180deg);
}

.delivery-location-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: var(--z-dropdown);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.delivery-location-panel[hidden] {
    display: none;
}

.delivery-city-select,
.delivery-address-input {
    width: 100%;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-brand);
    font-size: 0.85rem;
    color: var(--color-primary);
    background-color: var(--color-bg-body);
    outline: none;
    transition: border-color var(--transition-fast);
}

.delivery-city-select:focus,
.delivery-address-input:focus {
    border-color: var(--color-info);
}

.detail-option-field .qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: 110px;
    height: 44px;
    box-shadow: var(--shadow-sm);
}

.detail-option-field .qty-btn {
    width: 34px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: background-color var(--transition-fast);
    user-select: none;
    background: none;
    border: none;
    cursor: pointer;
}

.detail-option-field .qty-btn:hover {
    background-color: var(--color-bg-alt);
}

.detail-option-field .qty-input {
    width: 42px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    background-color: transparent;
    outline: none;
    -moz-appearance: textfield;
    font-family: var(--font-brand);
}

.detail-option-field .qty-input::-webkit-outer-spin-button,
.detail-option-field .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ürün Detay — Grid & Görsel */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.product-detail-media {
    display: flex;
    width: 100%;
    min-height: 0;
}

.product-detail-img-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    min-height: 420px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--transition-normal);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
}

.detail-img-zoom-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ürün Detay — Görsel Onayı */
.visual-approval-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    border: 1px solid rgba(74, 107, 82, 0.2);
    border-radius: var(--radius-md);
    background-color: rgba(74, 107, 82, 0.05);
}

.visual-approval-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.visual-approval-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    font-family: var(--font-brand);
}

.visual-approval-text strong {
    font-weight: 600;
    color: var(--color-success);
    margin-right: 0.35rem;
}

/* Ürün Detay — Alternatif zemin bantları */
.product-page-band {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.product-page-band--surface {
    background-color: var(--color-bg-surface);
}

.product-page-band--alt {
    background-color: var(--color-bg-alt);
}

.product-details-tabs-section.product-page-band {
    padding: 3rem 0;
}

.recommended-products-section.product-page-band,
.recently-viewed-section.product-page-band,
.similar-products-section.product-page-band {
    padding: 5rem 0;
}

/* Ürün Detay — Görsel İndirim Rozeti */
.detail-discount-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    background-color: #D63031;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-brand);
    line-height: 1;
    box-shadow: 0 4px 10px rgba(214, 48, 49, 0.2);
}

/* Kupon Uygulama Butonu */
#apply-promo-btn:hover {
    background-color: var(--color-primary-hover) !important;
}

/* Sipariş Başarı Modalı Animasyonları */
@keyframes success-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    70% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsiveness (Mobil & Tablet Uyum Kapsamı) */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .product-detail-media {
        justify-content: center;
    }
    .product-detail-img-card {
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        max-width: 100%;
    }
    #active-cart-layout {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    .cart-summary-section {
        position: static !important;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    #wishlist-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .cart-table-header {
        display: none !important;
    }
    .cart-table-row {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 2rem 1.5rem !important;
        text-align: center;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
        background-color: var(--color-bg-surface);
    }
    .cart-item-info {
        flex-direction: column !important;
        text-align: center;
    }
    .cart-table-row > div {
        text-align: center !important;
    }
    #wishlist-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    .product-detail-section {
        padding: 2rem 0 !important;
    }
    .product-detail-info h1 {
        font-size: 2.2rem !important;
    }
    .detail-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-delivery-badge {
        text-align: left;
    }
    .detail-options-row {
        flex-direction: column;
        align-items: stretch;
    }
    .detail-qty-field {
        width: 100%;
    }
    .detail-option-field .qty-selector {
        width: 100%;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    #wishlist-grid {
        grid-template-columns: 1fr !important;
    }
    .detail-buttons-group {
        flex-direction: column;
    }
    .detail-buttons-group > button {
        width: 100% !important;
    }
}

/* --- Ürün Detay Sekme Stilleri --- */
.detail-tabs-nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.detail-tabs-nav::-webkit-scrollbar {
    display: none;
}
.detail-tab-btn {
    padding: 0.75rem 0.5rem;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.detail-tab-btn:hover {
    color: var(--color-primary);
}
.detail-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}
.detail-tab-panel {
    display: none;
    animation: tabFadeIn var(--transition-normal) forwards;
}
.detail-tab-panel.active {
    display: block;
}

.detail-tab-panel .full-description,
.detail-tab-panel .reviews-wrapper,
.detail-tab-panel .payment-options-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.detail-tab-panel .full-description h3 {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.detail-tab-panel .full-description p {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
}

.detail-tab-panel .full-description p:last-child {
    margin-bottom: 0;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hediye Kartı Önizleme Modalı Stilleri --- */
#gift-note-preview-modal .modal-card {
    background-color: #f7f5f0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(44,37,35,0.1);
}

.premium-gift-card {
    background-image: radial-gradient(rgba(214, 178, 163, 0.15) 1px, transparent 0), radial-gradient(rgba(214, 178, 163, 0.15) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    transition: box-shadow 0.4s ease;
}

.premium-gift-card:hover {
    box-shadow: 0 15px 35px rgba(44, 37, 35, 0.12);
}

#preview-card-message {
    font-family: 'Playfair Display', 'Georgia', serif !important;
}

#btn-preview-gift-note:hover {
    border-color: var(--color-accent) !important;
    background-color: rgba(217, 160, 139, 0.05) !important;
    color: var(--color-accent-hover) !important;
}

/* --- Toast Bildirimi --- */
.iz-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-bg-surface);
    color: var(--color-primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 2rem));
    line-height: 1.4;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    border-left: 3px solid var(--color-accent);
}

.iz-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.iz-toast.is-hiding {
    transform: translateY(30px);
    opacity: 0;
}

.iz-toast.toast-success {
    border-left-color: var(--color-success);
}

.iz-toast.toast-error {
    border-left-color: var(--color-danger);
}

.iz-toast.toast-info {
    border-left-color: var(--color-accent);
}

@media (max-width: 480px) {
    .iz-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1.25rem;
        max-width: none;
    }
}


