/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.my-float {
    margin-top: 16px;
}

/* Enhanced Card Hover */
.card {
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Modern Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Footer Social Icons */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Enhanced Category Card - Premium Look */
.category-card {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 1.5rem !important;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    text-align: center;
    color: var(--text-main) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.25) !important;
    /* Green shadow */
    color: #ffffff !important;
    border-color: transparent;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    background: rgba(76, 175, 80, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category-card:hover i {
    color: var(--primary-color);
    background: #ffffff;
    transform: rotateY(180deg);
}

.category-card h6 {
    font-size: 1.1rem;
    font-weight: 700 !important;
    margin: 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.category-card:hover h6 {
    color: #ffffff !important;
}

/* Hero section styles moved to style.css */

.hero-section .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    padding: 3rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    bottom: 10%;
    left: 5%;
    right: 5%;
    text-align: left;
}

.hero-section .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    color: #ffffff;
    animation: slideInLeft 0.8s ease;
}

.hero-section .carousel-caption p {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Carousel Controls Enhancement */
.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(214, 140, 9, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(214, 140, 9, 0.9);
    border-radius: 50%;
    padding: 10px;
}

/* Carousel Indicators */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(214, 140, 9, 0.6);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 40px;
    border-radius: 10px;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section .carousel-item {
        height: 400px;
    }

    .hero-section .carousel-caption h1 {
        font-size: 2rem;
    }

    .hero-section .carousel-caption p {
        font-size: 1rem;
    }

    .hero-section .carousel-caption {
        padding: 2rem 1rem;
        bottom: 5%;
    }
}

/* Premium Section Title (Homepage) */
.section-title-premium {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* Sidebar Header (Products Page) */
.sidebar-header-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: none !important;
    position: relative;
}

.sidebar-header-premium h5 {
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header-premium h5::before {
    content: '\f0ca';
    /* FontAwesome bars icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    opacity: 0.8;
}

/* Modern Header Action Button (Mağaza) */
.header-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #f27a1a 0%, #ff9a44 100%);
    /* Trendyol Orange Theme */
    color: #ffffff !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(242, 122, 26, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(242, 122, 26, 0.5);
    background: linear-gradient(45deg, #ff9a44 0%, #f27a1a 100%);
}

.header-action-btn i {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Floating Badge for Mağaza */
.header-action-btn::after {
    content: attr(data-label);
    position: absolute;
    top: -12px;
    right: 15px;
    background: #222;
    color: #fff;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f27a1a;
}

.header-action-btn.hb-btn {
    background: linear-gradient(45deg, #ff6000 0%, #ff8c00 100%);
    box-shadow: 0 6px 20px rgba(255, 96, 0, 0.3);
}

.header-action-btn.hb-btn::after {
    border-color: #ff6000;
}

.header-action-btn.hb-btn:hover {
    box-shadow: 0 12px 30px rgba(255, 96, 0, 0.5);
    background: linear-gradient(45deg, #ff8c00 0%, #ff6000 100%);
}

.social-icon-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #555 !important;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    font-size: 0.8rem;
}

.social-icon-btn-sm:hover {
    color: white !important;
    transform: translateY(-2px);
}

.social-icon-btn-sm.fb:hover {
    background-color: #3b5998;
}

.social-icon-btn-sm.ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon-btn-sm.li:hover {
    background-color: #0077b5;
}

.social-icon-btn-sm.tw:hover {
    background-color: #000;
}

.social-icon-btn-sm.yt:hover {
    background-color: #ff0000;
}

.header-social-wrapper {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.main-nav .nav-link i {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover i,
.main-nav .nav-link.active i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .header-social-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-action-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .header-action-btn::after {
        font-size: 8px;
        top: -10px;
    }
}

/* Top Bar Announcement Styles */
.top-bar {
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.top-bar-label {
    background: var(--secondary-color);
    color: #000;
    font-weight: 800;
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    position: relative;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
}

.top-bar-label::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 23px solid transparent;
    border-left: 15px solid var(--secondary-color);
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .top-bar-label {
        padding: 10px 15px;
        font-size: 0.65rem;
    }
}

/* =============================================
   MEGA DROPDOWN - Kategori Hover Paneli
   ============================================= */

.mega-dropdown-item {
    position: static !important;
    /* navbar içinde full-width panel için */
}

/* Chevron oku */
.mega-chevron {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.mega-dropdown-item.mega-open .mega-chevron {
    transform: rotate(180deg);
}

/* Panel konteyneri */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.28s;
    pointer-events: none;
}

.mega-dropdown-item.mega-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Panel iç kutu */
.mega-panel-inner {
    background: #ffffff;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(46, 125, 50, 0.1);
    border-radius: 0 0 16px 16px;
    padding: 24px 32px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Panel başlık satırı */
.mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.mega-header>span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.mega-all-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    padding: 6px 16px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-all-link:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Ürün grid - 4 sütun */
.mega-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Tek ürün kartı */
.mega-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #f0f4f0;
    background: #fafcfa;
    text-decoration: none !important;
    color: var(--text-main) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mega-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #66bb6a 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
    border-radius: 11px;
}

.mega-product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.18);
}

.mega-product-card:hover::before {
    opacity: 1;
}

.mega-product-card:hover .mega-product-name,
.mega-product-card:hover .mega-product-price {
    color: #fff !important;
    position: relative;
    z-index: 1;
}

.mega-product-card:hover .mega-product-img-wrap {
    position: relative;
    z-index: 1;
}

/* Ürün resmi */
.mega-product-img-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.mega-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-product-card:hover .mega-product-img-wrap img {
    transform: scale(1.08);
}

/* Ürün bilgisi */
.mega-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.mega-product-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.22s ease;
}

.mega-product-price {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.22s ease;
}

/* Boş mesaj */
.mega-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    padding: 20px;
}

/* Mobile: dropdown'ı gizle */
@media (max-width: 991px) {
    .mega-panel {
        display: none !important;
    }

    .mega-chevron {
        display: none;
    }
}

/* Navbar'a relative ekleyelim ki panel doğru konumlanabilsin */
.main-nav .container {
    position: relative;
}

/* Navbar overflow: visible olmalı ki dropdown taşabilsin */
.main-nav {
    position: relative;
    overflow: visible !important;
}

.main-nav .navbar-collapse {
    overflow: visible !important;
}