/* Zeytinyağı E-Ticaret Ana CSS - Birleştirilmiş Versiyon */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2d5016;
    --secondary-color: #6c757d;
    --success-color: #2d5016;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --hover-color: #31582b;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --olive-gradient: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #2d5016 100%);
    --transition-default: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.3);
    --text-shadow-light: 1px 1px 2px rgba(0, 0, 0, 0.5);
    --text-shadow-medium: 2px 2px 4px rgba(0, 0, 0, 0.8);
    --text-shadow-heavy: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Authentication Modal Stilleri */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Form stilleri */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

/* Modal buton stilleri */
.modal .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal .btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6B8E23 100%);
    border: none;
}

.modal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

/* Modal link stilleri */
.modal a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.modal a:hover {
    color: #6B8E23;
    text-decoration: underline;
}

/* Alert stilleri */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Responsive modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
}

/* Dropdown Menü Stilleri */
.dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    min-width: 200px !important;
    margin-top: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    background: rgba(25, 135, 84, 0.95) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
}

.dropdown-item {
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--warning-color) !important;
}

.dropdown-item:last-child {
    border-bottom: none !important;
}

/* Dropdown container pozisyonu */
.nav-item.dropdown {
    position: relative !important;
}

/* Responsive dropdown pozisyonu */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }
}

/* Yukarı açılan dropdown menüler */
.dropdown-menu-up {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

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

/* Responsive Display Classes */
.display-5-md {
    font-size: 2.5rem;
}

.display-6-sm {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .display-5-md {
        font-size: 2rem;
    }
    
    .display-6-sm {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .display-5-md {
        font-size: 1.75rem;
    }
    
    .display-6-sm {
        font-size: 1.5rem;
    }
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

main {
    width: 100%;
    min-height: calc(100vh - 60px);
    margin: 0;
    padding: 0;
}

/* Full Width Elements */
.container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    position: relative !important;
}

.full-width-section {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.full-width-section .container-fluid {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Remove Bootstrap container constraints */
.container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Footer Styling */
.custom-footer {
    background-color: var(--primary-color) !important;
    width: 100%;
    margin: 0;
    margin-top: 0 !important;
}

/* Force footer background color */
footer.custom-footer {
    background-color: var(--primary-color) !important;
}

.custom-footer .container-fluid {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Navbar Özelleştirmeleri */
.navbar {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0.5rem 1rem !important;
    transition: background 0.3s ease;
    position: relative !important;
    overflow: visible !important;
    z-index: 1000 !important;
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-nav {
    align-items: center;
    position: relative !important;
    overflow: visible !important;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--warning-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Logo Stilleri */
.niftepe-logo {
    height: 45px;
    width: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Ürün Kartları */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

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

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

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

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .btn {
    margin-top: auto;
}

/* Fiyat Stilleri */
.price-original {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.price-discount {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.price-normal {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* İndirim Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Sepet Stilleri */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary {
    background-color: var(--light-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
}

/* Form Stilleri */
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Footer Stilleri */
footer {
    margin-top: auto;
    /* Background color will be set by .custom-footer class */
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand i {
    color: var(--warning-color);
}

.social-links .btn {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links .btn:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    transform: translateY(-3px);
}

.footer-links a {
    position: relative;
    padding: 0.5rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--warning-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.payment-methods i {
    transition: all 0.3s ease;
}

.payment-methods i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.payment-methods .fa-cc-visa:hover {
    color: #1a1f71 !important;
}

.payment-methods .fa-cc-mastercard:hover {
    color: #eb001b !important;
}

footer .input-group .form-control:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

footer .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .cart-summary {
        margin-top: 2rem;
    }
    
    /* Navbar Responsive - Complete Override */
    .navbar {
        min-height: 70px !important;
        height: 70px !important;
        padding: 0 !important;
        width: 100vw !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1060 !important;
    }
    
    .navbar .container-fluid {
        width: 100vw !important;
        max-width: none !important;
        padding: 0 1rem !important;
        margin: 0 !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .niftepe-logo {
        height: 60px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Navbar Collapse - Complete Override */
    .navbar-collapse {
        display: none !important;
        background: rgba(45, 80, 22, 0.98) !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 2rem 1rem !important;
        overflow-y: auto !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        z-index: 1050 !important;
        max-width: none !important;
        transform: none !important;
        box-shadow: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        min-width: 100vw !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        background: rgba(45, 80, 22, 0.98) !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        z-index: 1050 !important;
        min-width: 100vw !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    /* Force navbar collapse to be full screen - ALL POSSIBLE STATES */
    .navbar-collapse,
    .navbar-collapse.show,
    .navbar-collapse.collapsing,
    .navbar-collapse.collapse,
    .navbar-collapse.collapse.show,
    .navbar-collapse.collapse.collapsing,
    #navbarNav,
    #navbarNav.show,
    #navbarNav.collapsing,
    #navbarNav.collapse,
    #navbarNav.collapse.show,
    #navbarNav.collapse.collapsing {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        z-index: 1050 !important;
        background: rgba(45, 80, 22, 0.98) !important;
        margin: 0 !important;
        padding: 2rem 1rem !important;
        border-radius: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        max-width: none !important;
        min-width: 100vw !important;
        min-height: calc(100vh - 70px) !important;
    }
    
    /* Override Bootstrap's collapse animation */
    .navbar-collapse.collapsing {
        transition: none !important;
        height: calc(100vh - 70px) !important;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255,255,255,0.5);
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
    }
    
    /* Body padding for fixed navbar */
    body {
        padding-top: 70px !important;
    }
    
    /* Search form responsive - mobilde yan yana diziliş */
    .d-flex.me-3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 1rem 0 !important;
        order: 999 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .d-flex.me-3 .form-control {
        width: auto !important;
        flex-grow: 1 !important;
        margin-bottom: 0 !important;
        margin-right: 0.5rem !important;
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    .d-flex.me-3 .btn {
        width: auto !important;
        flex-shrink: 0 !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
    }
    
    /* Search form placeholder responsive */
    .d-flex.me-3 .form-control::placeholder {
        font-size: 0.8rem !important;
        opacity: 0.8 !important;
    }
    
    /* Cart and user menu responsive */
    .navbar-nav .navbar-nav:last-child {
        margin-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1rem;
    }
    
    /* Dropdown menü responsive */
    .dropdown-menu {
        background: rgba(25, 135, 84, 0.95);
        border: 1px solid rgba(255,255,255,0.2);
        backdrop-filter: blur(10px);
        z-index: 9999 !important;
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: 0 !important;
        min-width: 200px !important;
        margin-top: 0 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }
    
    .dropdown-item {
        color: white !important;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-item:hover {
        background: rgba(255,255,255,0.1) !important;
        color: var(--warning-color) !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Badge responsive */
    .badge {
        font-size: 0.7em;
        padding: 0.4em 0.6em;
    }
    
    /* Sepet badge responsive pozisyon */
    .navbar-nav .nav-link .badge {
        top: -3px;
        right: -5px;
        font-size: 0.6em;
        min-width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .navbar {
        min-height: 65px !important;
        height: 65px !important;
        width: 100vw !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1060 !important;
    }
    
    .navbar .container-fluid {
        width: 100vw !important;
        max-width: none !important;
        padding: 0 15px !important;
        margin: 0 !important;
        height: 65px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Body padding for smaller screens */
    body {
        padding-top: 65px !important;
    }
    
    /* Navbar collapse for smaller screens - Force full screen - ALL POSSIBLE STATES */
    .navbar-collapse,
    .navbar-collapse.show,
    .navbar-collapse.collapsing,
    .navbar-collapse.collapse,
    .navbar-collapse.collapse.show,
    .navbar-collapse.collapse.collapsing,
    #navbarNav,
    #navbarNav.show,
    #navbarNav.collapsing,
    #navbarNav.collapse,
    #navbarNav.collapse.show,
    #navbarNav.collapse.collapsing {
        position: fixed !important;
        top: 65px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 65px) !important;
        z-index: 1050 !important;
        background: rgba(45, 80, 22, 0.98) !important;
        margin: 0 !important;
        padding: 2rem 1rem !important;
        border-radius: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        max-width: none !important;
        min-width: 100vw !important;
        min-height: calc(100vh - 65px) !important;
    }
    
    /* Override Bootstrap's collapse animation for smaller screens */
    .navbar-collapse.collapsing {
        transition: none !important;
        height: calc(100vh - 65px) !important;
    }
    
    .niftepe-logo {
        height: 50px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar .container,
    .navbar .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: none !important;
        width: 100vw !important;
    }
    
    /* Search form responsive - küçük ekranlar için yan yana diziliş */
    .d-flex.me-3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0.5rem 0 !important;
        order: 999 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .d-flex.me-3 .form-control {
        width: auto !important;
        flex-grow: 1 !important;
        margin-bottom: 0 !important;
        margin-right: 0.5rem !important;
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    .d-flex.me-3 .btn {
        width: auto !important;
        flex-shrink: 0 !important;
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
        box-sizing: border-box !important;
    }
    
    /* Search form placeholder responsive - küçük ekranlar */
    .d-flex.me-3 .form-control::placeholder {
        font-size: 0.7rem !important;
        opacity: 0.8 !important;
    }
    
    .navbar-collapse {
        background: rgba(0,0,0,0.95) !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 1rem !important;
        overflow: visible !important;
        position: fixed !important;
        top: 65px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 65px) !important;
        z-index: 1050 !important;
        max-width: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
        background: rgba(0,0,0,0.95) !important;
        position: fixed !important;
        top: 65px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 65px) !important;
        z-index: 1050 !important;
    }
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Search Loading Component */
.search-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.search-loading-bars {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.loading-bar {
    width: 8px;
    height: 30px;
    background: var(--success-color);
    border-radius: 4px;
    animation: loadingBars 1.2s ease-in-out infinite;
}

.loading-bar:nth-child(1) {
    animation-delay: 0s;
}

.loading-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingBars {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }
    20% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.search-loading-text {
    color: var(--success-color);
    font-weight: 500;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#search-loading {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 0.5rem;
}

/* Search form container positioning */
.d-flex.me-3 {
    position: relative;
}

/* Alert Stilleri */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Pagination Stilleri */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}

/* Card Stilleri */
.card {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Table Stilleri */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

/* Badge Stilleri */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
}

/* Sepet badge pozisyonu */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    transform: translateX(50%);
    font-size: 0.65em;
    padding: 0.3em 0.5em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.text-success {
    color: var(--success-color) !important;
}

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

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

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

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

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

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

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

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0 !important;
        transform: translateX(-200px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0 !important;
        transform: translateX(200px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1.5s ease-out !important;
    animation-fill-mode: both !important;
}

.slide-in-right {
    animation: slideInRight 1.5s ease-out !important;
    animation-fill-mode: both !important;
}

/* Hover Efektleri */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}



/* Footer Logo */
.footer-logo {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Custom Footer */
.custom-footer {
    background-color: var(--primary-color) !important;
}

/* Force footer background color - duplicate */
footer.custom-footer {
    background-color: var(--primary-color) !important;
}

/* Company History */
.company-history {
    line-height: 1.8;
}

.company-history p {
    font-size: 1.1rem;
    color: #495057;
}

.stat-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-item h3 {
    margin-bottom: 0.5rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #157347;
}

/* Video Overlay Styles - Completely Rewritten */
.video-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
}

.video-container video {
    width: 100% !important;
    height: auto !important;
    max-height: 900px !important;
    object-fit: cover !important;
    display: block !important;
}

.video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.overlay-content {
    padding: 3rem !important;
    max-width: 600px !important;
    pointer-events: auto !important;
    margin-left: 2rem !important;
}

.overlay-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.2 !important;
    color: white !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
}

.overlay-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: white !important;
    margin-bottom: 1.5rem !important;
}

.overlay-content .btn {
    text-shadow: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.overlay-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Custom Title Styling */
.custom-title {
    font-family: 'Georgia', serif !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0 !important;
        transform: translateX(-100px) !important;
    }
    100% {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

/* Custom Text Animation */
.custom-text {
    opacity: 1 !important;
    transform: translateX(0) !important;
    color: white !important;
}

/* Custom Button Animation */
.custom-button {
    opacity: 1 !important;
    transform: translateX(0) !important;
    color: white !important;
}

/* Responsive adjustments for video overlay */
@media (max-width: 768px) {
    .overlay-content {
        padding: 1rem;
        text-align: center;
    }
    
    .overlay-content h1 {
        font-size: 2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
}

/* Footer User Account Links Styling */
.custom-footer .btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.custom-footer .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.custom-footer .btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.custom-footer .btn-outline-info:hover {
    background-color: #17a2b8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.custom-footer .text-warning {
    color: #ffc107 !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer User Account Links Responsive */
@media (max-width: 768px) {
    .custom-footer .d-flex.justify-content-center {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .custom-footer .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Information Icon Styling */
.navbar-nav .fa-info-circle {
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-nav .fa-info-circle:hover {
    transform: scale(1.1);
    color: #fff !important;
}

.navbar-nav .dropdown-menu-end {
    right: 0;
    left: auto;
    min-width: 200px;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2d5016;
}

.navbar-nav .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* ===== ABOUT PAGE STYLES ===== */
/* Olive Groves Section Background */
.olive-groves-section {
    background-image: url('../assets/backgrounds/arkaplan-zeytin.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.olive-groves-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
}

.olive-groves-section .container {
    position: relative;
    z-index: 1;
}

/* Mission & Vision Cards */
.mission-vision-card {
    aspect-ratio: 1;
    transition: all var(--transition-default);
    cursor: pointer;
    overflow: hidden;
    background: rgba(76, 175, 80, 0.1) !important;
    border: 2px solid rgba(76, 175, 80, 0.3) !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2) !important;
    border-radius: 0 !important;
}

.mission-vision-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(128, 128, 128, 0.4) !important;
    border: 2px solid #808080 !important;
}

.mission-vision-card:hover .card-body {
    background: rgba(128, 128, 128, 0.1) !important;
}

.mission-vision-card:hover .fas {
    color: #666666 !important;
    transform: scale(1.1);
}

.mission-vision-card .fas {
    transition: all var(--transition-default);
}

.mission-vision-card h5 {
    transition: color var(--transition-default);
}

/* Company History */
.company-history {
    line-height: 1.8;
}

.company-history p {
    font-size: 1.1rem;
    color: #495057;
}

/* ===== HOME PAGE STYLES ===== */
/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 40vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-content-inner {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content-inner h1 {
    text-shadow: var(--text-shadow-light);
}

.hero-text {
    line-height: 1.8;
}

.hero-content-inner .hero-text {
    text-shadow: var(--text-shadow-light);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    min-height: 60vh;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.overlay-content {
    color: white;
    text-shadow: var(--text-shadow-medium);
    position: relative;
    z-index: -1;
}

.overlay-content h1 {
    text-shadow: var(--text-shadow-heavy);
    font-weight: bold;
    color: white;
}

.overlay-content p {
    text-shadow: var(--text-shadow-heavy);
    color: white;
}

.overlay-content .btn {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Custom Elements */
.custom-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.custom-text {
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    max-width: 100%;
}

.custom-button {
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
    white-space: nowrap;
}

/* Feature Cards */
.feature-card {
    background: transparent;
    border-radius: 0;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    height: 250px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(45, 80, 22, 0.4);
}

/* Product Cards */
.product-card {
    transition: transform var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);
    border: 2px solid transparent;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

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

.product-card .btn:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section .btn:hover {
    background-color: var(--hover-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 2rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem !important;
    }
    
    .mission-vision-card {
        aspect-ratio: auto;
        min-height: 300px;
    }
    
    .video-container {
        min-height: 50vh;
    }
    
    .video-container video {
        min-height: 50vh;
    }
    
    .video-overlay {
        padding: 1rem 0;
    }
    
    .overlay-content {
        text-align: center;
    }
    
    .custom-title {
        text-align: center;
    }
    
    .custom-text {
        text-align: center;
    }
    
    .custom-button {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-content {
        min-height: 60vh;
    }
    
    .feature-card {
        height: 200px;
        margin-bottom: 1rem;
    }
}


