/* Theme: Modern Orange & Green - Vivid Bakery Theme
 * Renk Paleti: Turuncu-Yeşil (Orange-Green Theme)
 * Versiyon: 9.0 (Vivid Edition)
 */
:root {
    /* --- Ana Renk Paleti (Canlı Turuncu-Yeşil) --- */
    --primary-color: #FF6B35;       /* Canlı Turuncu */
    --primary-light: #FF9F76;       /* Açık Turuncu */
    --primary-hover: #E65100;       /* Koyu Turuncu Hover */
    
    --secondary-color: #4CAF50;     /* Canlı Yeşil */
    --secondary-light: #81C784;     /* Açık Yeşil */
    --secondary-hover: #388E3C;     /* Koyu Yeşil Hover */
    
    --accent-color: #FFD54F;        /* Amber Vurgu */
    --accent-light: #FFE082;        /* Açık Amber */

    /* --- Arkaplan Renkleri --- */
    --bg-creamy: #FFFDF7;           /* Çok Hafif Krem */
    --body-bg: var(--bg-creamy);    
    --card-bg: #FFFFFF; 
    --footer-bg: #263238;           /* Koyu Gri/Yeşil Alt Tonlu */
    
    /* --- Metin Renkleri --- */
    --text-dark: #212121;           /* Koyu Siyah */
    --text-muted: #757575;          /* Orta Gri */
    
    /* --- Diğer --- */
    --border-radius: 1rem;          /* Modern Yuvarlak Köşeler */
    --btn-radius: 50px;             /* Yuvarlak Butonlar */
    
    --shadow-soft: 0 8px 30px rgba(255, 107, 53, 0.1);
    --shadow-hover: 0 20px 40px rgba(255, 107, 53, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-brand: 'Pacifico', cursive;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--body-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.03) 0%, transparent 20%);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .price-tag, .btn {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a { 
    text-decoration: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* ==================== ANIMATIONS ==================== */
@keyframes floatUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(255, 107, 53, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-up { 
    animation: floatUp 0.8s ease-out forwards; 
}

.animate-fade {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.hover-scale:hover { 
    transform: scale(1.05); 
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* ==================== PAGES SUBMENU ==================== */
.pages-submenu {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.pages-menu-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
}

.pages-menu-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px; /* Slightly squarer for modern look */
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.pages-menu-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.pages-menu-item i {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-right: 0.5rem;
}

.pages-menu-item:hover i {
    opacity: 1;
}

/* ==================== NAVBAR ==================== */
.navbar-sweet {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.navbar-sweet.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brand-text {
    font-family: var(--font-brand);
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), #FF5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0px rgba(255, 107, 53, 0.1);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.08);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.badge-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    position: absolute; 
    top: -8px; 
    right: -8px;
    width: 24px; 
    height: 24px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 2px solid white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B35' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== SEARCH FORM ==================== */
.search-form .input-group {
    background: #f8f9fa;
    border-radius: 50px !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-form .input-group:focus-within {
    background: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-light);
}

.search-form input {
    font-weight: 400;
    color: var(--text-dark);
    background: transparent !important;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* ==================== MOBILE CATEGORY BUTTON ==================== */
.mobile-cat-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-cat-btn:hover { 
    background: var(--secondary-hover);
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4); 
}

.mobile-cat-btn i {
    transition: transform 0.3s ease;
}

.mobile-cat-btn[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ==================== SIDEBAR CATEGORIES (DESKTOP) ==================== */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.category-header {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.category-header i {
    opacity: 0.9;
}

.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cat-link:last-child {
    border-bottom: none;
}

.cat-link:hover {
    background: rgba(76, 175, 80, 0.05);
    color: var(--secondary-color);
    padding-left: 22px;
    border-left-color: var(--secondary-color);
}

.cat-link.active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    border-left-color: var(--primary-color);
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.2);
}

/* Resim Alanı */
.product-img-wrapper {
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.08));
}

.product-card:hover .product-img { 
    transform: scale(1.1); 
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title:hover {
    color: var(--primary-color);
}

.price-tag {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.card-body {
    padding: 1.5rem;
    background: white;
}

/* Sepet Butonu */
.btn-add-floating {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--secondary-color) !important;
    color: white !important;
    width: 45px !important; 
    height: 45px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 10;
    opacity: 0.9;
}

.btn-add-floating:hover { 
    transform: scale(1.1) !important;
    background: var(--secondary-hover) !important;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4) !important;
    opacity: 1;
}

/* Popüler Rozeti */
.badge-trend {
    background: linear-gradient(45deg, #FF9800, #FF5722);
    color: white;
    z-index: 10;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}

.filter-bar h4 {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Sıralama Select */
.form-select {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 20px;
    padding: 0.5rem 2rem 0.5rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ==================== BUTTONS ==================== */
.btn-sweet, .btn-theme, .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: var(--btn-radius);
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-sweet:hover, .btn-theme:hover, .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-outline-sweet {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--btn-radius);
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline-sweet:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

/* ==================== PAGINATION ==================== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    background: white;
    border: 1px solid #e9ecef !important;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color) !important;
}

.page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--footer-bg);
    color: #e0e0e0;
    padding-top: 4rem;
    margin-top: 4rem;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

footer h5, footer h6 { 
    color: white;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

footer a { 
    color: #b0bec5;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover { 
    color: var(--primary-color);
    transform: translateX(5px);
}

footer .btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

footer .btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

footer .text-white-50 {
    color: #90a4ae !important;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-detail-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}

.product-features {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 1rem 1.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== MODAL ==================== */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-header .modal-title {
    font-family: var(--font-heading);
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

/* ==================== ORDER TRACK PAGE ==================== */
.order-track-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}

.order-status-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

/* ==================== UTILS ==================== */
.text-primary { 
    color: var(--primary-color) !important; 
}

.bg-primary { 
    background-color: var(--primary-color) !important; 
}

.text-success {
    color: var(--secondary-color) !important;
}

/* Card Shine Effect */
.card-shine { 
    position: relative; 
    overflow: hidden; 
}

.card-shine::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); 
    transition: left 0.7s ease;
}

.card-shine:hover::after { 
    left: 150%; 
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.alert-light {
    background: white;
    color: var(--text-muted);
}

/* Son Gezilen Ürünler */
.recently-viewed {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-sweet, .btn-outline-sweet {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .product-card {
        margin-bottom: 0.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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