/* Google Fonts Configured in header: 
   Headings: 'Playfair Display', serif
   Body: 'Roboto', sans-serif 
*/

:root {
    --coffee-primary: #4a3b32;
    --coffee-secondary: #c5a880;
    --coffee-dark: #2c221b;
    --coffee-light: #f4f1ea;
    --text-dark: #333333;
    --text-muted: #777777;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.text-coffee {
    color: var(--coffee-primary) !important;
}

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

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

.btn-coffee {
    background-color: var(--coffee-primary);
    color: #fff;
    border: 1px solid var(--coffee-primary);
    transition: all 0.3s ease;
}

.btn-coffee:hover {
    background-color: var(--coffee-dark);
    border-color: var(--coffee-dark);
    color: #fff;
}

.btn-outline-coffee {
    color: var(--coffee-primary);
    border-color: var(--coffee-primary);
    transition: all 0.3s ease;
}

.btn-outline-coffee:hover {
    background-color: var(--coffee-primary);
    color: #fff;
}

/* Topbar */
.topbar {
    background-color: var(--coffee-dark);
    color: #fff;
    font-size: 0.85rem;
    position: relative;
    z-index: 1030;
}

.topbar a:hover {
    color: var(--coffee-secondary) !important;
}

/* Language Switcher */
.lang-switcher-btn {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.lang-switcher-btn .flag-icon {
    font-size: 1.35rem;
    line-height: 1;
}
.lang-dropdown {
    min-width: 170px;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
}
.lang-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease;
}
.lang-dropdown .dropdown-item .flag-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.lang-dropdown .dropdown-item:hover {
    background-color: var(--coffee-light);
}
.lang-dropdown .dropdown-item.active {
    background-color: var(--coffee-primary);
    color: #fff;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-left: 15px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--coffee-secondary) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 34, 27, 0.7), rgba(44, 34, 27, 0.7)), url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--coffee-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--coffee-secondary);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    padding: 10px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-card .card-body {
    padding: 25px;
    text-align: center;
}

.product-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--coffee-primary);
    margin-bottom: 15px;
}

/* Category Cards */
.category-card:hover {
    transform: translateY(-5px) !important;
}
.category-card:hover img {
    transform: scale(1.05) !important;
}
.category-img-wrapper {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px; /* Daha büyük kategori resmi */
    padding: 15px;
    overflow: hidden;
}
.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Görselin TAMAMI kırpılmadan görünür */
    transition: transform 0.5s ease;
}

/* Hero Slider Responsive */
.hero-slide-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .category-img-wrapper {
        height: 250px;
    }
    .hero-slide-img {
        height: 50vh;
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--coffee-dark);
    color: #fff;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--coffee-secondary);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: var(--coffee-dark);
    padding-top: 60px;
    padding-bottom: 30px;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* RTL Overrides for Arabic */
html[dir="rtl"] body, 
html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6,
html[dir="rtl"] .font-playfair {
    font-family: 'Cairo', sans-serif !important;
}

html[dir="rtl"] .ps-lg-5 {
    padding-right: 3rem !important;
    padding-left: 0 !important;
}

html[dir="rtl"] .pe-lg-5 {
    padding-left: 3rem !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

html[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}
