:root {
    --primary-color: #28323b;
    --primary-hover: #1e262d;
    --success-color: #28323b;
    --success-hover: #1e262d;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
}

html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

main {
    margin-bottom: 0 !important;
    overflow-x: hidden;
    width: 100%;
}

.container,
.container-fluid {
    max-width: 1600px;
}

/* Fixed Row Bleed (Better way) */
.owl-carousel,
.contact-banner,
.feature-card-large {
    overflow: hidden;
}

/* Genel Düzeltmeler */
img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Main Header */
.main-header .logo {
    max-height: 60px;
}

.main-header .search-form .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
    height: 48px;
    font-size: 14px;
}

.main-header .search-form .btn-primary {
    border-radius: 0 0.375rem 0.375rem 0;
    height: 48px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sidebar Categories */
.sidebar-categories a {
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-categories a:hover {
    background-color: rgba(0, 116, 189, 0.1);
    color: var(--primary-color) !important;
    padding-left: 1rem;
}

.hover-category {
    transition: all 0.2s;
}

.hover-category:hover {
    background-color: #f0f8ff;
    transform: translateX(5px);
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Hero Carousel */
.carousel-inner {
    border-radius: 0.5rem;
}

.carousel-item img {
    border-radius: 0.5rem;
    object-fit: cover;
    width: 100%;
    height: 500px;
}

.carousel-caption-custom {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 10;
}

.carousel-control-prev-icon-bg,
.carousel-control-next-icon-bg {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon-bg,
.carousel-control-next:hover .carousel-control-next-icon-bg {
    background: rgba(255, 255, 255, 0.4);
}

/* Features Grid */
.features-grid-container {
    border: 1px solid #eee;
}

.features-grid-container .col-6 {
    transition: all 0.3s;
}

.features-grid-container .col-6:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }

    .carousel-caption-custom h1 {
        font-size: 1.8rem !important;
    }
}

/* Category Links */
.category-link {
    transition: all 0.2s;
}

.category-link:hover {
    background-color: #f0f8ff;
    color: var(--primary-color) !important;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Feature Cards Large */
.feature-card-large {
    transition: all 0.3s;
}

.feature-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Owl Carousel Custom Styles - Balanced Side Arrows */
.featured-products-carousel {
    position: relative;
    padding: 0 15px;
}

.featured-products-carousel .owl-nav {
    position: static;
    /* Let the children be absolute to the container */
}

.featured-products-carousel .owl-nav button.owl-prev,
.featured-products-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333 !important;
    margin: 0 !important;
}

.featured-products-carousel .owl-nav button.owl-prev {
    left: -22px;
}

.featured-products-carousel .owl-nav button.owl-next {
    right: -22px;
}

@media (max-width: 992px) {
    .featured-products-carousel .owl-nav button.owl-prev {
        left: 5px;
    }

    .featured-products-carousel .owl-nav button.owl-next {
        right: 5px;
    }
}

.featured-products-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 116, 189, 0.25);
}

.featured-products-carousel .owl-nav button i {
    font-size: 16px;
}

/* Product Card Modern */
.product-card-modern {
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
}

.product-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 1rem;
    overflow: hidden;
}

.product-image-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s;
}

.product-card-modern:hover .product-image-wrapper img {
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .border-lg-bottom-0 {
        border-bottom: 0 !important;
    }
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: #eff6ff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.features-grid-container .col-6:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
}

.features-grid-container .col-6:hover .feature-icon-wrapper i {
    color: white !important;
}

.text-emerald {
    color: #28323b !important;
}

.object-fit-cover {
    object-fit: cover;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Products Slider */
#productsSlider,
#featuredCarousel {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

#productsSlider::-webkit-scrollbar,
#featuredCarousel::-webkit-scrollbar {
    height: 8px;
}

#productsSlider::-webkit-scrollbar-track,
#featuredCarousel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#productsSlider::-webkit-scrollbar-thumb,
#featuredCarousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#productsSlider::-webkit-scrollbar-thumb:hover,
#featuredCarousel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 18px;
    color: #0074bd;
}

.carousel-nav-btn:hover {
    background: #0074bd;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 116, 189, 0.2);
}

.carousel-nav-prev {
    left: -22px;
}

.carousel-nav-next {
    right: -22px;
}

@media (max-width: 992px) {
    .carousel-item img {
        max-height: 400px;
    }

    .carousel-caption-custom h1 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background-color: #111111 !important;
    color: #ffffff;
    border-top: 3px solid var(--primary-color);
    margin-top: 0 !important;
}

.footer a.link-hover {
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.footer a.link-hover:hover {
    color: #0074bd !important;
    text-decoration: underline;
    padding-left: 5px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color) !important;
    overflow: hidden;
}

.announcement-scroll {
    white-space: nowrap;
    overflow: hidden;
}

.announcement-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 12s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Top Bar */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Logo */
.logo {
    max-height: 50px;
    width: auto;
}

/* Header */
.main-header {
    z-index: 1030;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Search Form */
.search-form .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border-right: none;
    height: 48px;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-left: none;
}

.search-form .btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Navigation */
.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: white !important;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-item {
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    margin-top: 0;
    min-width: 250px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.navbar-expand-lg .navbar-nav {
    gap: 0;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Hero Slider */
.hero-slider {
    margin-bottom: 3rem;
}

.carousel-item {
    height: 500px;
}

@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 0.5rem;
    bottom: 2rem;
}

/* Category Cards */
.category-card {
    text-decoration: none;
    display: block;
}

.category-card .card {
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.category-card .card:hover .card-title {
    color: var(--primary-color);
}

.category-card .card-body {
    padding: 2rem 1rem;
}

.category-card .card-title {
    color: #333;
    transition: all 0.3s;
    margin: 0;
}

/* Product Cards */
.product-card {
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 0.75rem;
}

.product-card .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    min-height: 40px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.product-card .btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Features Section */
.feature-box {
    padding: 1rem;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon i {
    transition: all 0.3s;
}

.feature-box:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Features Section */
.features {
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.features i {
    transition: transform 0.3s;
}

.features .text-center:hover i {
    transform: scale(1.15) rotate(5deg);
}

.features h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer a.link-hover {
    color: #aaaaaa;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a.link-hover:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer .social-links .btn {
    transition: all 0.3s;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.footer .social-links .btn:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.footer-bottom {
    background-color: #000000;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #1fb855;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: white;
}

.whatsapp-button i {
    font-size: 28px;
}

/* Cart Badge */
.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
}

/* Hover Effects */
.hover-shadow {
    transition: all 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile Menu */
.offcanvas {
    max-width: 300px;
}

.offcanvas-body a {
    padding: 0.5rem 0;
    display: block;
    transition: color 0.2s;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Alert Messages */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 116, 189, 0.25);
}

/* Product Detail */
.product-gallery img {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.product-info {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Quantity Input */
.quantity-input {
    max-width: 120px;
}

.quantity-input .btn {
    padding: 0.375rem 0.75rem;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 200px;
    }

    .whatsapp-button {
        width: 48px;
        height: 48px;
        bottom: 16px;
        left: 16px;
    }

    .whatsapp-button i {
        font-size: 24px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .category-card .card-body {
        padding: 1.5rem 0.75rem;
    }

    .category-card i {
        font-size: 2rem !important;
    }
}



/* Banner Styles */
.contact-banner,
.feature-card-large {
    transition: transform 0.3s;
}

.contact-banner:hover,
.feature-card-large:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Utility Classes */
.text-emerald {
    color: #28323b !important;
}

.bg-blue-50 {
    background-color: #eff6ff !important;
}

.bg-emerald-50 {
    background-color: #e8eaeb !important;
}

.bg-purple-50 {
    background-color: #f5f3ff !important;
}

.w-fit {
    width: fit-content !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.object-fit-cover {
    object-fit: cover !important;
}

/* Product Title (Restored) */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* New Product Card Styling (Match User Image) */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .transition-transform {
    transition: transform 0.6s ease;
}

.product-card:hover .transition-transform {
    transform: scale(1.1);
}

.product-card .card-arrows {
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-card:hover .card-arrows {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Feature Icons (Homepage) */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--light-color);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.features-grid-container .col-6:hover {
    background-color: #fafafa;
}

.features-grid-container .col-6:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
}

.features-grid-container .col-6:hover .feature-icon-wrapper i {
    color: white !important;
}

@media (min-width: 992px) {
    .border-lg-bottom-0 {
        border-bottom: 0 !important;
    }

    .border-lg-end {
        border-right: 1px solid var(--border-color) !important;
    }
}

/* Print Styles */
@media print {

    .announcement-bar,
    .top-bar,
    .main-header,
    .footer,
    .whatsapp-button,
    .btn {
        display: none !important;
    }
}

/* Add to Cart Button Premium Styles */
.btn-emerald {
    background: linear-gradient(135deg, #3a4750 0%, #28323b 100%) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 50, 59, 0.4) !important;
}

.product-card .btn-emerald {
    opacity: 0.9;
}

.product-card:hover .btn-emerald {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Mobile Banner Optimizations */
@media (max-width: 768px) {

    .contact-banner,
    .feature-card-large {
        padding: 2rem !important;
        min-height: auto !important;
    }

    .contact-banner h2,
    .feature-card-large h3 {
        font-size: 1.4rem !important;
    }
}

/* Mobile Product Card Optimizations */
@media (max-width: 576px) {
    .product-card .card-body {
        padding: 0.6rem !important;
        /* İç boşluğu mobilde azaltarak içeriğe yer açıyoruz */
    }

    .product-card .product-title {
        font-size: 0.82rem !important;
        min-height: 2.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem !important;
    }

    .product-footer {
        gap: 0.25rem !important;
    }

    .price-wrapper {
        flex-wrap: wrap;
        /* Mobilde fiyatlar sığmazsa alt alta geçebilirler */
        line-height: 1.2;
    }

    .product-card .btn-emerald {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
    }

    .product-card .btn-emerald i {
        font-size: 0.75rem !important;
    }

    .product-card .small,
    .product-card .x-small {
        font-size: 0.7rem !important;
    }

    .product-card .fw-bold.text-dark {
        font-size: 0.85rem !important;
        /* Fiyatı mobilde hafif küçültüyoruz */
    }
}