/* Sepet ve Menü Etkileşimi */
body.mobile-menu-open #mobileCartContainer {
    display: none;
}

/* Mobil sepet ikonu stileri */
#mobileCartContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010; /* Dropdown menülerin üzerinde olması için */
}

#mobileCartContainer .btn {
    padding: 0.375rem 0.75rem;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navbar Sepet Dropdown */
@media (max-width: 991.98px) {
    /* Masaüstünde gözüken sepeti mobilde gizle */
    #cartDropdownContainer {
        display: none !important;
    }
}

/* Main Styles for Hemensu Website */

:root {
    --primary-color: #0071b5;
    --secondary-color: #005a8c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

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

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Feature Boxes */
.feature-box {
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    transition: transform 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    transition: transform 0.3s ease;
    height: 100%;
}

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

/* Call to Action */
.cta {
    background-color: var(--primary-color);
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
}

/* Order Form */
.payment-option {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 113, 181, 0.05);
}

.payment-option.selected .radio-indicator {
    border-color: var(--primary-color);
}

.radio-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.selected .radio-indicator:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Sepet Sayfası Stilleri */
.cart-section .table img {
    max-width: 60px;
    height: auto;
}

.order-summary {
    background-color: #f8f9fa;
}

.order-item {
    padding: 0.5rem 0;
}

/* Cart Dropdown */
.cart-dropdown-menu {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
}

.cart-dropdown-menu .dropdown-header {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-item {
    transition: all 0.2s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Admin Panel */
.admin-sidebar {
    background-color: var(--dark-color);
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
}

/* Admin Panel Sidebar Güncellenmiş Stil */
.sidebar {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    color: white;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 5px 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
    font-size: 1.1rem;
}

.sidebar h6.sidebar-heading {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 15px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
}

.admin-content {
    margin-left: 250px;
    padding: 20px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: static;
        height: auto;
        margin-bottom: 20px;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .hero-section {
        padding: 50px 0;
    }

    /* Mobil sepet ikonunu optimize et */
    /* Bu kısım kaldırıldı çünkü artık sepet ortalandı */
}

/* Mobile-specific fix for modal backdrop issue */
@media (max-width: 991.98px) {
    /* Ensure dropdown menu is on top in admin area on mobile (Keep this one) */
    .admin-content .table .dropdown-menu { 
        position: absolute !important; 
        z-index: 1100 !important;      
        opacity: 1 !important;         
        visibility: visible !important;
    }
    
    /* --- Mobil Modal Düzeltme (Temel) --- */
    /* 1. Standart backdrop'u gizle */
    .modal-backdrop { 
        display: none !important;
    }
    /* 2. Body scroll'u düzelt */
     body.modal-open { 
        overflow: auto !important;
        padding-right: 0 !important;
    }
    /* --- Bitiş: Mobil Modal Düzeltme --- */
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }

    /* Sepet ikonu ortalandığı için bu kısım kaldırıldı */

    .cart-dropdown-menu {
        position: fixed !important;
        top: 75px !important; /* Logoyla hizalama için biraz daha aşağı */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-top: 1px solid #dee2e6 !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }
}