/**
 * Mevsim Sepeti E-Ticaret Sitesi
 * Özel CSS Stili
 */

:root {
    --primary-color: #FF7A00; /* Ana turuncu tonu */
    --primary-hover: #E56F00; /* Hover durumu için koyu turuncu */
    --primary-light: #FFE8D2; /* Açık turuncu (arkaplan vb. için) */
    --secondary-color: #414141; /* Koyu gri */
    --accent-color: #FF9F40; /* Açık turuncu (vurgu için) */
    --dark-color: #212529;
    --light-color: #ffffff; /* Beyaz */
    --success-color: #00A67E; /* Yeşil */
    --danger-color: #E63946; /* Kırmızı */
    --warning-color: #FFC145; /* Sarı */
    --body-bg: #F8F9FA;
    --header-bg: #ffffff;
    --footer-bg: #2C2C2C;
    --border-radius: 8px; /* Yuvarlaklık değeri arttırıldı */
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
    --border-color: #EEEEEE;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Turuncu tema bileşenleri */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(255, 122, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 10px 20px;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.2);
}

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

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

.border-primary {
    border-color: var(--primary-color) !important;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Header Stili */
.site-header {
    box-shadow: var(--box-shadow);
}

.top-header {
    background-color: var(--primary-light) !important;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.top-header a, .top-header i {
    color: var(--secondary-color);
}

.top-header a:hover {
    color: var(--primary-color);
}

.main-header {
    background-color: var(--light-color);
    padding: 15px 0;
}

.navbar {
    padding: 0;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover, 
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-item:hover .nav-link {
    color: var(--primary-color);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.navbar .mega-menu {
    padding: 20px;
    min-width: 600px;
}

.search-form .form-control {
    border-radius: var(--border-radius-sm);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    height: 45px;
    border: 1px solid var(--border-color);
}

.search-form .btn {
    border-radius: var(--border-radius-sm);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 45px;
}

/* Mini Cart */
.mini-cart-btn {
    position: relative;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.mini-cart-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mini-cart-dropdown {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Banner Stili */
.hero-banner-section {
    padding: 40px 0;
}

.hero-banner {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
}

.banner-content {
    padding: 40px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.banner-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.banner-btn {
    font-size: 1rem;
    padding: 12px 30px;
    font-weight: 600;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

/* Özellikler Bölümü */
.features-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.feature-box {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-light);
}

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

/* Ürün Kartları */
.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: #333;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.product-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--success-color);
    color: white;
}

.badge-sale {
    background-color: var(--primary-color);
    color: white;
}

.badge-out-of-stock {
    background-color: var(--danger-color);
    color: white;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.product-category a {
    color: #777;
}

.product-category a:hover {
    color: var(--primary-color);
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;

    display: -webkit-box;

    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #333;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    color: var(--warning-color);
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.rating-count {
    color: #777;
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.current-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 8px;
}

.product-footer {
    margin-top: auto;
}

.add-to-cart {
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* Kategori Kartları */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 200px;
    transition: all 0.3s ease;
}

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

.category-image {
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-content {
    background: linear-gradient(to top, rgba(255,122,0,0.9), rgba(255,122,0,0));
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-title a {
    color: white;
}

.category-product-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Bölüm Başlıkları */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.title-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.title-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Mega Menu Profesyonel Tasarım */
.mega-dropdown {
    position: static;
}

.mega-dropdown .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.1em;
    transition: transform 0.3s ease;
}

.mega-dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 0;
    border: none;
    background: #ffffff;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.mega-dropdown:hover .mega-menu,
.mega-dropdown.show .mega-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

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

.mega-menu-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.mega-menu-header h6 {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.mega-menu-content {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.mega-menu-content::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.mega-menu-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Category Cards */
.category-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card-header {
    margin-bottom: 1rem;
}

.category-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.category-card-title:hover {
    color: var(--primary-color);
}

.category-card-title h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.1);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

/* Subcategory Items */
.subcategory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.subcategory-item {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    background: #f8f9fa;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    font-weight: 400;
}

.subcategory-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.subcategory-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.subcategory-more:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.subcategory-more i {
    transition: transform 0.3s ease;
}

.subcategory-more:hover i {
    transform: translateX(2px);
}

.subcategory-empty {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Navigation hover effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: orangered !important;
}

/* Header ve Mega Menu Ekstra Stiller */
.mega-menu-title {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.mega-menu-view-all {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.2);
}

.mega-menu-view-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.category-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Header Responsive İyileştirmeleri */
.main-header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    background: #ffffff;
}

.site-header .top-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
}

.mini-favorites-btn, .mini-cart-btn, .account-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.mini-favorites-btn:hover, .mini-cart-btn:hover, .account-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

.favorites-count, .cart-count {
    background-color: var(--primary-color) !important;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini Cart Dropdown Geliştirmeleri */
.mini-cart-dropdown {
    margin-top: 10px;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.mini-cart-item {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.mini-cart-item:hover {
    background-color: var(--primary-light);
}

.remove-item {
    opacity: 0.7;
    transition: all 0.3s ease;
    color: var(--danger-color);
}

.remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Search Form Geliştirmeleri */
.search-form .form-control {
    border-color: #e9e9e9;
    height: 45px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.25);
}

.search-form .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    height: 45px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

/* Top Header Link Geliştirmeleri */
.top-contact-info span {
    transition: all 0.3s ease;
}

.top-contact-info span:hover {
    color: var(--primary-color) !important;
}

.top-header .dropdown-toggle {
    transition: all 0.3s ease;
}

.top-header .dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

.top-header .dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 5px;
}

.top-header .dropdown-item {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
    margin: 2px;
}

.top-header .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Logo Hover Efekti */
.logo img {
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Mobile Menu Button */
.navbar-toggler {
    border: none;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.25);
}

/* Offcanvas Mobile Menu Geliştirmeleri */
.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.offcanvas-title img {
    filter: brightness(0) invert(1);
}

.mobile-account-links .card {
    border-radius: var(--border-radius);
    border: none;
}

.mobile-account-links .list-group-item {
    border: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.mobile-account-links .list-group-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.accordion-button {
    background-color: #fff !important;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light) !important;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.25);
}

/* Sticky Navbar Enhancement */
#main-navbar.sticky-top {
    transition: all 0.3s ease;
}

#main-navbar.scrolled {
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 102, 0, 0.95) !important;
}

/* Mega Menu Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu.show {
    animation: slideInFromTop 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }

/* Hover Pulse Effect for Icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.category-icon:hover {
    animation: pulse 1s infinite;
}

/* Enhanced Focus States */
.category-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.subcategory-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

/* Loading States */
.mega-menu.loading .mega-menu-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.mega-menu.loading .mega-menu-content::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Improved Text Readability */
.category-card-title h6 {
    letter-spacing: -0.01em;
    word-break: break-word;
    hyphens: auto;
}

.subcategory-item {
    word-break: break-word;
    hyphens: auto;
}

/* Enhanced Box Shadows */
.mega-menu {
    box-shadow: 
        0 0 0 1px rgba(255, 102, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 20px 60px rgba(255, 102, 0, 0.05);
}

.category-card:hover {
    box-shadow: 
        0 0 0 1px rgba(255, 102, 0, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 15px 40px rgba(255, 102, 0, 0.1);
}

/* Mobile Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover {
        transform: none;
    }
    
    .category-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .subcategory-item:active {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .mega-menu,
    .category-card,
    .category-icon,
    .nav-link,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .category-card {
        border: 2px solid var(--dark-color);
    }
    
    .category-icon {
        border: 1px solid var(--primary-color);
    }
    
    .subcategory-item {
        border: 1px solid var(--gray-400);
    }
}

/* Print Styles */
@media print {
    .mega-menu,
    .top-header,
    #main-navbar {
        display: none !important;
    }
}

@media (max-width: 768px) {
  .header-actions .action-btn,
  .header-actions .btn-icon,
  .header-actions .action-item {
    height: 56px !important;
    min-height: 56px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .header-actions {
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
  }
}