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

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-size: cover; /* Resmin tam sayfayı kaplamasını sağlar */
    background-position: center center; /* Resmin ortalanmasını sağlar */
    background-repeat: no-repeat; /* Resmin tekrar etmesini engeller */
}
 .notification-wrapper {
     position: relative;
     display: flex;
     align-content: center;
 }

 .logo img {
     border-radius: 10px;
 }
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    display: inline-block;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.notification-dropdown a.btn-track {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.notification-dropdown a.btn-track:hover {
    background-color: #0056b3;
}

.card-detail a {
    text-decoration: none;
    color: darkred;
}
.categories {
    justify-content: center;
}

.card-title {
    font-weight: 900;
}

.nav-link.dropdown-toggle {
    flex-direction: row !important;
}

.main-category-menu {
    background-color: transparent;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0 15px;
}

.category-item {
    position: relative;
}

.category-link {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #007bff;
}

.subcategory-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 180px;
    z-index: 999;
    border-radius: 6px;
}

.subcategory-dropdown li {
    list-style: none;
}

.subcategory-link {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #555;
    white-space: nowrap;
}

.subcategory-link:hover {
    color: #000;
}

.category-item:hover .subcategory-dropdown {
    display: block;
}

/* Responsive tweak */
@media (max-width: 768px) {

    .mobile-slide-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: #212529;
        color: #fff;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    /* Menü Açıldığında */
    .mobile-slide-menu.active {
        transform: translateX(0);
    }

    /* Sayfa scroll'u engelle */
    body.menu-open {
        overflow: hidden;
    }

    /* Menü içeriği stilleri */
    .mobile-slide-menu .menu-header {
        background-color: #343a40;
        border-bottom: 1px solid #444;
    }

    .mobile-slide-menu .menu-header button {
        color: #fff;
        background: none;
        border: none;
    }

    .mobile-slide-menu ul {
        padding-left: 0;
        margin: 0;
    }

    .mobile-slide-menu ul li a {
        color: #fff;
        padding: 10px 0;
        display: block;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

    .mobile-slide-menu ul li a:hover {
        background-color: #495057;
        padding-left: 5px;
    }

    .category-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .subcategory-dropdown {
        position: static;
        box-shadow: none;
    }

    .category-link {
        padding: 10px 0;
    }

}

.hamburger-btn {
    font-size: 28px;
    background: none;
    border: none;
    color: #333;
    padding: 10px;
}

.mobile-category-menu {
    display: none;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-top: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-category-list,
.mobile-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-category-link,
.mobile-subcategory-link {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-category-link:hover,
.mobile-subcategory-link:hover {
    background-color: #f8f8f8;
    color: #007bff;
}

.mobile-subcategory-list {
    padding-left: 16px;
    background-color: #fafafa;
}


.navbar {
    background: floralwhite !important;
}

/* Navbar */
.navbar {
    max-height: 100px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Container içinde margin ve padding temizliği */
.navbar .container {
    margin-top: 0px;
    padding-top: 0;
}

/* Navbar item listesi */
.navbar .navbar-nav {
    margin-top: 0px;
    scrollbar-width: none;
}

/* Her nav item */
.navbar .nav-item {
    /* Özel max-height yorum satırındaydı, gerekirse eklenebilir */
}

/* Nav link içindeki img */
.navbar .nav-link img.category-nav-image {
    display: flex;
    margin-top: 0px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Diğer img'lerde aynı class varsa ortak olarak tanımlanır */
.category-nav-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

/* Kategori ismi */
.category-name {
    font-size: 12px;
    margin-top: 4px;
    color: #333;
}

.items-count {
    position: absolute; /* Ensure it's positioned relative to the parent */
    top: 4px; /* Position the badge just above the bottom right of the cart icon */
    right: 10px; /* Adjust this to fine-tune the positioning */
    transform: translate(50%, -50%);
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.product-description {
    position: relative;
    max-height: 230px;
    overflow-y: auto;
    font-size: 1rem;
}

.description-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-height: 100px; /* Burada yüksekliği sınırlıyoruz */
}

.description-full {
    display: none;
}

.show-more {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.show-more:hover {
    color: #0056b3;
}

/* Genel düzen */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    text-align: center;
    padding: 10px;
}

/* Butonlar */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    color: black;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Görseller */
img.img-thumbnail {
    max-width: 80px;
    max-height: 80px;
    margin: 5px;
    border-radius: 5px;
}

table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tbody tr:hover {
    background-color: #e9ecef;
}


.admin-actions {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: red !important;
}

.mr-2 {
    margin-right: 10px;
}

/* No records found satırı */
.text-center {
    text-align: center;
}

.navbar-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.navbar-expand-lg {
    background-size: cover !important;
    height: min-content;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}


.navbar-nav::-webkit-scrollbar {
    height: 5px;
}

.navbar-nav::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.dropdown-menu-right {
    display: flex;
    justify-content: flex-end;
    width: 100% !important;
}

.navbar-nav .nav-item {
    flex: 0 0 auto;
}

/* Header styling */
.header {
    text-align: center;
    padding: 2rem;
    background-color: darkred;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.2rem;
    color: black;
}

/* Categories container */
.menu-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.checkout-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.btn-success {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.body {
    background-image: url('/public/uploads/images/background.jpg');
    background-size: cover; /* Resmin tam sayfayı kaplamasını sağlar */
    background-position: center center; /* Resmin ortalanmasını sağlar */
    background-repeat: no-repeat; /* Resmin tekrar etmesini engeller */
}

.body #order_orderItems {
    display: none;
}

/* Category card */
.category-card {
    width: 250px;
    height: 350px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

.category-link {
    text-decoration: none;
    color: inherit;
}

/* Category image */
.category-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

/* Category info */
.category-info {
    display: flex;
    justify-content: center; /* Yatayda ortalar */
    align-items: center; /* Dikeyde ortalar */
    flex-direction: column; /* İçerikleri dikeyde hizala */
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    color: darkred;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: darkred;
    color: white;
    font-size: 0.9rem;
    margin-top: 2rem;
}

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

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Header styling */
.header {
    text-align: center;
    padding: 2rem;
    background-color: darkred;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.2rem;
    color: black;
}

/* Main container */
.menu-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Products container */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Product card styling for paper menu look */
.product-card {
    width: 30%; /* Or % based on how many cards you want per row */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    justify-content: space-between;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    background-image: linear-gradient(145deg, #f3f3f3, #ffffff);
    padding: 1rem;
    position: relative;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: -1;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    filter: blur(2px);
}

/* Product image */
.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Product info */
.product-info {
    padding: 0 1rem;
    text-align: center;
}

.product-name {
    font-size: 1.6rem;
    color: darkred;
    margin-top: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.product-description {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
    font-style: italic;
}

.product-price {
    font-size: 1.2rem;
    color: #28a745;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: darkred;
    color: white;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.product-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.product-card {
    width: 200px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-placeholder {
    width: 100%;
    height: 150px;
    background-color: #eee;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-name {
    font-weight: 600;
    margin: 5px 0;
    font-size: 16px;
}

.product-price {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.slider-arrow {
    position: absolute;
    top: 40%;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-arrow.left {
    left: -10px;
}

.slider-arrow.right {
    right: -10px;
}

.slider-container {
    background: #FFFFFF;
}

@media (min-width: 1000px) {
    .navbar > .container {
        margin-top: 40px;
    }

    .mobile-category-wrapper,
    .mobile-category-menu {
        display: none !important;
    }
    .ategory-link:hover {
        color: #000;
    }
}


@media (min-width: 768px) and  (max-width: 1200px) {

    .header-items {
        flex-direction: column;
    }

}

@media (max-width: 1000px) {
    .category-toggle {
        align-content: center !important;
    }

}

@media (min-width: 768px) and (max-width: 1000px) {
    .main-category-menu {
        display: block;
    }

    .category-toggle {
        display: none;
    }
    .search-container form {
        max-width: 100%;
    }


    header {
        flex-direction: row !important;
    }
    .logo img {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        max-height: 360px;
    }

    .main-category-menu {
        display: none;
    }

    .card-title {
        font-size: 1rem;
    }

    .card.h-100 {
        margin-left: 5px !important;
    }

    .card-price, .card-description {
        font-size: 1rem;
    }

    .col.category-products {
        max-width: 48% !important;
    }

    .btn.btn-success.w-100.mt-2.add-to-cart-btn {
        font-size: 12px;
    }

    .btn.btn-success.w-100.mt-2.add-to-cart-btn:hover {
        font-size: 12px;
    }

    .search-icon-btn {
        right: 20px; /* Masaüstü için biraz daha geniş boşluk */
        font-size: 1.2rem;
        position: absolute;
        height: 100%;
        border-style: none;
        background: transparent;
    }

    .header {
        flex-direction: column !important;
    }

    .dropdown-toggle {
        flex-direction: row !important;
    }

    .category-products {
        max-width: 46% !important;
    }

    .card {
        margin-left: 1% !important;
    }

    .product-slider {
        max-height: 300px;
    }

    .product-card {
        height: 290px;
    }

    .product-image {
        height: 90px !important;
    }

    .product-card {
        width: 45%;
    }

    .categories {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .category-card {
        flex: 1 1 140px;
        max-width: 140px;
        max-height: 210px;
        box-sizing: border-box;
        font-size: 5px !important;
    }

    .category-title {
        color: darkred;
        font-size: 13px;
    }

    .logo img {
        max-height: 160px;
    }
}

@media (min-width: 1000px) {
    .logo img {
        max-height: 50px;
    }
    header {
        flex-direction: row !important;
    }
    .mobile-category-wrapper {
        display: none;
    }
    .mobile-slide-menu {
        display: none;
    }
    .category-toggle {
        display: none;
    }

    .main-category-menu.w-100.py-2 {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .header-items {
        justify-content: flex-end !important;
    }
}

@media (min-width: 768px) {
    .navbar-logo {
        max-height: 80px;
    }
    .mobile-category-wrapper, .mobile-slide-menu
    {
        display: none;
    }



    .product-card {
        margin-right: 10px;
    !important;
    }

    .subcategory-row-category-list a {
        max-width: 17%;
    }

    .subcategory-row-category-list {
        justify-content: center;
    }

    .footer {
        background-color: #1f1f1f;
        color: #ffffff;
        font-size: 0.95rem;
    }

    .footer a.footer-link {
        color: #cccccc;
        text-decoration: none;
    }

    .footer a.footer-link:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    .footer-social {
        font-size: 1.3rem;
        color: #cccccc;
        transition: color 0.3s ease;
    }

    .footer-social:hover {
        color: #ffffff;
    }

    .search-icon-btn {
        right: 20px; /* Masaüstü için biraz daha geniş boşluk */
        font-size: 1.2rem;
        position: absolute;
        height: 100%;
        border-style: none;
        background: transparent;
    }

    .search-container {
        max-height: 40px;
        margin-top: 13px !important;
    }

    .search-input {
        padding-right: 3rem; /* İkona çarpmadan yazılabilsin */
    }

    .header-container {
        max-height: 60px;
    }

    .card.mb-2 {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        width: 260px;
        height: 488px;
        padding: 1rem;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #ddd;
    }

    .card-img-top {
        max-width: 260px;
    }

    .category-products {
        width: 260px !important;
        padding: 10px;
        margin-left: 10px;
    }

    .card.h-100 {
        max-width: 260px;
        margin-right: 10px !important;
    }
}


/* Base CSS Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

.payment-success-actions {
    flex-direction: column;
}

.header {
    text-align: center;
    background-color: darkred;
    color: white;
    padding: 1.5rem;
}

.menu-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

/* Subcategory Card */
.subcategory-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd;
}
.subcategory-row-category-list {
    width: 100%;
}

.subcategory-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.subcategory-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.subcategory-card h3 {
    font-size: 1.5rem;
    color: darkred;
}

.subcategory-card .btn {
    background-color: darkred;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.subcategory-card .btn:hover {
    background-color: #c14442;
}

/* Footer Styling */
.footer {
    text-align: center;
    background-color: darkred;
    color: white;
    padding: 1rem;
    margin-top: 2rem;
}

.breadcrumb-container {
    margin: 1rem 0;
    padding: 0.5rem;
    background-color: black;
    border-radius: 5px;
}

.breadcrumb-container .breadcrumb {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.breadcrumb-container .breadcrumb-item {
    margin-right: 10px;
}

.breadcrumb a {
    text-decoration: none;
    color: white;
}

.breadcrumb-container .breadcrumb-item.active {
    font-weight: bold;
    color: white !important;
}

.breadcrumb-item::before {
    color: white !important;
}

.breadcrumb {
    background-color: darkred !important;
    justify-content: center;
}

.breadcrumb-container .breadcrumb-item + .breadcrumb-item::before {
    content: ' / ';
    color: white !important;
    margin-left: 10px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-items {
    width: 100%;
    justify-content: space-between;
}

#language-picker {
    display: flex;
}

.cart-dropdown {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none; /* Initially hidden */
    max-height: 400px;
    overflow-y: auto;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

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


.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    float: left;
    font-size: 11px;
    font-weight: bold;
}

.cart-item-quantity,
.cart-item-price,
.cart-item-total {
    font-size: 12px;
    color: #666;
}

.view-cart-button {
    display: block;
    padding: 10px;
    font-size: 13px;
    width: 130px;
    height: 30px;
    text-align: center;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.view-cart-button:hover {
    background-color: #0056b3;
}

/* Hover effect for cart icon */
#cart-icon:hover + #cart-dropdown {
    display: block;
}

.cart-container {
    width: 85%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: black;
    color: white;
}

.cart-table td {
    color: #333;
}

.cart-summary {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

.cart-summary h3 {
    font-weight: bold;
    color: #000000;
}

.cart-summary span {
    font-size: 20px;
    color: #000000;
}

.checkout-button,
.continue-shopping-button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.checkout-button:hover,
.continue-shopping-button:hover {
    background-color: #218838;
}

.remove-item-btn {
    padding: 5px 10px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.remove-item-btn:hover {
    background-color: #c82333;
}

.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item p {
    margin: 0;
    font-size: 13px;
    color: #333;
}

.cart-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    z-index: 9999;
}

.cart-dropdown.show {
    display: block;
}

.cart-item-image {
    margin-right: 10px;
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1; /* Kare görünüm için 1:1 oran */
    object-fit: cover; /* Görselin taşan kısmını kırpar */
    border-radius: 4px; /* Köşeleri hafif yuvarlatmak için */
}


.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.actions-cart {
    display: flex;
    justify-content: center;
}

.cart-total {
    display: flex;
    justify-content: center;
    color: black !important;
}

.add-to-cart-btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Make sure the header stays above other content */
    background-color: #fff; /* Ensure the background is visible when scrolling */
    box-shadow: 0 4px 2px -2px gray; /* Optional: add a shadow to make it more visible */
}


.footer-link, .footer-social {
    text-decoration: none;
    color: white;
}

.footer-link:hover, .footer-social:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}


.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Cart Summary */
.cart-summary {
    margin-top: 20px;
    text-align: right;
}

.checkout-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.continue-shopping-button {
    text-decoration: none;
    font-size: 16px;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 8px 15px;
    border-radius: 5px;
}

.continue-shopping-button:hover,
.checkout-button:hover {
    opacity: 0.8;
}


/* Responsive Styles */

/* For tablets and smaller screens */
@media (max-width: 768px) {
    .cart-table th, .cart-table td {
        padding: 10px;
    }

    .subcategory-card-link {
        max-width: 48% !important;
    }
    .subcategory-card {
        max-width: 100%;
    }

    .header-items {
        width: 100%;
        justify-content: space-between;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-summary {
        text-align: center;
    }

    .checkout-button {
        display: block;
        margin: 20px auto;
    }

    .continue-shopping-button {
        display: block;
        margin: 10px auto;
    }

    .cart-table {
        font-size: 10px;
    }

    .cart-table th, .cart-table td {
        padding: 8px;
    }

    .cart-container {
        padding: 10px;
        display: flex;
        justify-content: center;
        flex-direction: column;

    }

    h1, h2 {
        font-size: 24px;
    }

    .breadcrumb-container .breadcrumb-item + .breadcrumb-item::before {
        content: ' / ';
        color: white !important;
        margin-left: 10px;
    }

    .header-items {
        flex-direction: column;
    }

    .navbar-logo {
        height: 60px !important;
    }

    .search-container {
        max-height: 34px;
    }

    .minicart-container {
        max-height: 42px;
    }

    .navbar-logo {
        height: 140px !important;
        border-radius: 20px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-table th, .cart-table td {
        font-size: 10px;
    }


    .search-icon-btn {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: transparent;
        color: #333;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 2;
    }

    .search-input {
        padding-right: 2.5rem; /* ikon için yer aç */
    }


    .cart-item-image {
        width: 40px;
        height: 40px;
    }

    .cart-table {
        font-size: 12px;
    }

    .cart-summary h3 {
        font-size: 16px;
    }

    .cart-summary {
        margin-top: 15px;
    }

    .checkout-button,
    .continue-shopping-button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
        margin: 10px 0;
    }

    .remove-item-btn {
        font-size: 10px;
        padding: 8px 12px;
    }

    h1, h2 {
        font-size: 20px;
    }

    .cart-container {
        padding: 15px;
    }

    .search-input {
        width: 65%;
    }

    .product-card .add-to-cart-btn {
        font-size: 13px;
    }

    .product-card .product-price {
        font-size: 1rem;
    }
}

.breadcrumb-container .breadcrumb-item + .breadcrumb-item::before {
    content: ' / ';
    color: white !important;
    margin-left: 10px;
}

.breadcrumb-item.active {
    color: white !important;
}

.breadcrumb-item.active::before {
    color: white !important;
}

.flex-fill {
    display: flex;
    flex-direction: column;
}

.cart-item-nm {
    display: flex;
    justify-content: center;
}

.quantity-buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.quantity-btn {
    flex: unset !important;
}

.cart-message {
    color: black !important;
}

@media (min-width: 170px) and (max-width: 377px) {
    .categories .category-card {
        flex-wrap: wrap;
        max-height: 210px;
        flex: 1 1 120px;
    }

    .category-link {
        width: 100%;
    }

    .category-link a {
        width: 100%;
    }

    .subcategory-card-link {
        max-width: 47% !important;
    }

    .subcategory-row {
        width: 100%;
    }

    .category-info {
        max-width: 122px;
        align-items: center;
    }


}

