/* Premium Custom Styles */

* {
    font-family: 'Urbanist', sans-serif;
    scroll-behavior: smooth;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Animations */
.gradient-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #fecfef 75%, #fecfef 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.gradient-organic {
    background: linear-gradient(135deg, #2C5F2D 0%, #97BC62 50%, #FFB84D 100%);
    background-size: 200% 200%;
    animation: gradient 10s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Premium Card Effects */
.premium-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.premium-card:hover::before {
    left: 100%;
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

.magnetic-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.magnetic-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Parallax Effect */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateZ(0);
    will-change: transform;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2C5F2D, #97BC62);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #97BC62, #2C5F2D);
}

/* Loading Animation */
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2C5F2D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #2C5F2D, #97BC62, #FFB84D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Lift */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Organic Shape */
.organic-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #FF4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Ensure parent li is positioned relatively for mega menu */
nav ul li.relative {
    position: relative !important;
}

/* Hover effect for trigger */
#megaMenuTrigger:hover i.bx-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

#megaMenuTrigger i.bx-chevron-down {
    transition: transform 0.3s ease;
}

/* Mega Menu Styles - FULLY OPTIMIZED */
/* Navigation relative position */
header nav {
    position: relative;
}

/* Mega Menu Backdrop */
.mega-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 39;
}

.mega-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu - NAV GENİŞLİĞİNDE */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none; /* fadeIn/fadeOut için */
    z-index: 40;
    border-top: 1px solid #e5e7eb;
    border-radius: 20px;
    width: 90%;
    margin: auto;
}

.mega-menu.show {
    display: block;
}

/* İçerik Container - 90% GENİŞLİK */
.mega-menu-container {
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .mega-menu-container {
        padding: 0 1rem;
    }
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -90px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.05));
}

/* Mega menu responsive */
@media (max-width: 768px) {
    .mega-menu {
        width: 95vw;
        left: 0;
        right: 0;
        margin: 10px auto;
        transform: translateX(0) translateY(-10px) scale(0.95);
    }
    
    .mega-menu.show {
        transform: translateX(0) translateY(0) scale(1);
    }
    
    .mega-menu .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .mega-menu::before {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mega-menu .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mega menu category items hover effect */
.mega-menu a {
    position: relative;
    display: inline-block;
    padding: 2px 0;
}

.mega-menu h3 {
    transition: all 0.3s ease;
}

.mega-menu > div > div > div > div:hover h3 {
    transform: translateX(5px);
    color: #f97316;
}

.mega-menu ul li {
    transition: all 0.2s ease;
}

.mega-menu ul li:hover {
    transform: translateX(8px);
}

.mega-menu ul li a {
    transition: all 0.2s ease;
    position: relative;
}

.mega-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: width 0.3s ease;
}

.mega-menu ul li a:hover::after {
    width: 100%;
}



/* Category Cards */
.category-showcase {
    border-radius: 30px;
    padding: 60px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.category-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.showcase-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.showcase-card.primary {
    background: linear-gradient(135deg, #FFB84D 0%, #FFA500 100%);
}

.showcase-card.secondary {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
}

.showcase-card .card-content {
    padding: 30px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #8B4513;
}

.showcase-card.primary h3,
.showcase-card.secondary h3 {
    color: white;
}

.showcase-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.showcase-card.primary p,
.showcase-card.secondary p {
    color: rgba(255, 255, 255, 0.9);
}

.showcase-card .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #FFB84D;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    width: fit-content;
}

.showcase-card.primary .btn-explore {
    background: white;
    color: #FFB84D;
}

.showcase-card.secondary .btn-explore {
    background: white;
    color: #8B4513;
}

.showcase-card .btn-explore:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.showcase-card .card-image {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    opacity: 0.3;
}

.showcase-card.primary .card-image,
.showcase-card.secondary .card-image {
    opacity: 0.5;
}

/* Popular Categories Section */
.popular-categories {
    padding: 80px 0;
    background: white;
}

.category-icon-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(44, 95, 45, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.category-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    z-index: 1;
}

.cat-vegetables { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.cat-fruits { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); }
.cat-dairy { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.cat-grains { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.cat-nuts { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.cat-honey { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }

.category-icon-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2C5F2D;
    margin-bottom: 5px;
}

.category-icon-card p {
    font-size: 14px;
    color: #888;
}

/* Promotional Banners */
.promo-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #FAFAF5 0%, #FFF 100%);
}

.promo-banner {
    border-radius: 25px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.promo-banner:hover {
    transform: scale(1.02);
}

.promo-banner.yellow-bg {
    background: linear-gradient(135deg, #FFD54F 0%, #FFCA28 100%);
}

.promo-banner .promo-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.promo-banner h3 {
    font-size: 32px;
    font-weight: 800;
    color: #8B4513;
    margin-bottom: 10px;
    line-height: 1.2;
}

.promo-banner p {
    color: #704214;
    margin-bottom: 20px;
    font-size: 16px;
}

.promo-banner .promo-image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    object-fit: contain;
}

/* Hero Slider Improvements */
.swiper-slide {
    position: relative;
    isolation: isolate;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Improved Swiper Pagination */
.swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    position: relative;
    overflow: hidden;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet-active .progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    animation: progress 6s linear;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Floating Labels */
.floating-badge {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s;
}

.floating-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
}

/* Product Grid Improvements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Organic Shape Animation */
.organic-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Additional Animations */
.animate-slideInUp {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #15803d, #f97316);
    border-radius: 10px;
}

/* Filter Sidebar Styles */
.filter-sidebar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, #15803d, #16a34a);
    border-color: #15803d;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Price Range Slider Custom */
.noUi-target {
    background: #f3f4f6;
    border: none;
    box-shadow: none;
    height: 6px;
}

.noUi-connect {
    background: linear-gradient(90deg, #15803d, #f97316);
}

.noUi-handle {
    border: 3px solid #15803d;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: grab;
}

.noUi-handle:active {
    cursor: grabbing;
}

/* Product Card Hover */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Grid/List Toggle */
.view-toggle button.active {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white !important;
}

/* Category Hero Pattern */
.hero-pattern {
    background-image:
            radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(21, 128, 61, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

/* Filter Tag */
.filter-tag {
    animation: slideIn 0.3s ease-out;
}

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

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

/* Organic Badge */
.organic-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse 2s infinite;
}

/* List View Styles */
.list-view .product-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.list-view .product-item:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateX(10px);
}



.switch-small {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch-small input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-small {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider-small:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-small {
    background-color: #4a90b8;
}

input:checked + .slider-small:before {
    transform: translateX(18px);
}

.view-toggle button {
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background-color: white;
    color: #4a90b8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* List View Styles */
.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.list-view .premium-card {
    display: none !important;
}

.product-item {
    animation-delay: 0s !important;
}

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

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce {
    animation: bounce 0.5s ease-in-out 2;
}

#cartOverlay {
    opacity: 0;
}

#cartOverlay:not(.hidden) {
    opacity: 1;
}

/* Smooth transitions */
#cartSidebar {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cartOverlay {
    transition: opacity 0.3s ease-in-out;
}


/* ============================================
   LIST VIEW - CLEAN & COMPACT STYLE
   ============================================ */

/* Product Wrapper */
.product-wrapper {
    width: 100%;
}

.grid-view-item {
    display: block;
}

.list-view-item {
    display: none;
}

/* List View Active */
#productsContainer.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

#productsContainer.list-view .grid-view-item {
    display: none !important;
}

#productsContainer.list-view .list-view-item {
    display: block !important;
    animation: fadeInUp 0.3s ease-out;
}

/* Clean List Item */
.product-item {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Main Flex Container */
.product-item-container {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

/* Image - Left Side */
.product-item-image {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item-image img:hover {
    transform: scale(1.05);
}

/* Discount Badge */
.discount-badge-list {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

/* Content - Middle Section */
.product-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Category & Badges Row */
.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-label-list {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-badge-list {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Title */
.product-title-list {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-list:hover {
    color: #10b981;
}

/* Product Description */
.product-desc-list {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating & Organic Badge */
.product-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.organic-badge-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Price & Actions - Right Side */
.product-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    min-width: 180px;
}

/* Price Container */
.price-container-list {
    text-align: right;
}

.price-current-list {
    font-size: 1.875rem;
    font-weight: 700;
    color: #10b981;
    display: block;
    line-height: 1;
}

.price-old-list {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-top: 0.25rem;
    display: block;
}

/* Action Buttons */
.action-buttons-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wishlist-btn-list {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn-list:hover {
    background: #fef2f2;
    color: #ef4444;
}

.wishlist-btn-list i {
    font-size: 1.25rem;
}

.add-cart-btn-list {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.add-cart-btn-list:hover {
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.add-cart-btn-list i {
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-item-container {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .product-item-image {
        width: 100%;
        height: 200px;
    }

    .product-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .price-container-list {
        text-align: left;
    }

    .add-cart-btn-list {
        flex: 1;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Product Gallery Styles */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-image {
    transition: transform 0.3s ease;
}

.zoom-container:hover .zoom-image {
    transform: scale(1.5);
}

/* Thumbnail Active State */
.thumb-active {
    border: 3px solid #2C5F2D;
    opacity: 1 !important;
}

/* Nutrition Table */
.nutrition-table tr:nth-child(odd) {
    background: rgba(44, 95, 45, 0.05);
}

/* Tab Active */
.tab-active {
    border-bottom: 3px solid #2C5F2D;
    color: #2C5F2D;
}

/* Review Stars */
.star-rating {
    display: inline-flex;
    font-size: 1.5rem;
    color: #ddd;
}

.star-rating .star-filled {
    color: #FFB84D;
}

/* Sticky Add to Cart */
.sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cart.show {
    transform: translateY(0);
}

/* Image Magnifier */
.magnifier {
    position: absolute;
    border: 2px solid #2C5F2D;
    border-radius: 50%;
    cursor: none;
    width: 100px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
}

.magnifier.active {
    opacity: 1;
}

/* Floating Labels */
.floating-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #FFB84D, #FFA500);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Progress Bar for Stock */
.stock-progress {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.stock-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #FFB84D);
    border-radius: 10px;
    transition: width 1s ease;
}

.zoom-container { position: relative; overflow: hidden; cursor: zoom-in; }
.magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 200%;
    display: none;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.thumb-active {
    border: 2px solid #10b981 !important;
    opacity: 1 !important;
}
.floating-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.tab-active {
    color: #10b981 !important;
    border-bottom: 3px solid #10b981;
}
.sticky-cart.show {
    transform: translateY(0) !important;
}

.auth-bg {
    background: linear-gradient(135deg, #2C5F2D 0%, #97BC62 50%, #FFB84D 100%);
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.form-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.tab-active {
    color: white;
}

.input-group {
    position: relative;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.85);
    color: #2C5F2D;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #999;
    background: white;
    padding: 0 5px;
}

.organic-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.social-btn {
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ============================================
   PREMIUM SEARCH AUTOCOMPLETE - FINAL VERSION
   ============================================ */

.search-autocomplete {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 550px;
    overflow: hidden;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-autocomplete.hidden {
    display: none;
}

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

.autocomplete-content {
    max-height: 550px;
    overflow-y: auto;
}

/* Results Header */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-bottom: 1px solid #e0e7ff;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.results-header strong {
    color: var(--primary-color);
    font-size: 16px;
}

.close-results {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #64748b;
    transition: all 0.2s ease;
    background: white;
}

.close-results:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.close-results i {
    font-size: 22px;
}

/* Product Item */
.search-product-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.search-product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.search-product-item:hover::before,
.search-product-item.active::before {
    transform: scaleY(1);
}

.search-product-item:hover,
.search-product-item.active {
    background: linear-gradient(90deg, rgba(44, 95, 45, 0.05) 0%, rgba(151, 188, 98, 0.08) 100%);
    padding-left: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Product Image */
.search-product-item .images {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-product-item .images::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.1), rgba(151, 188, 98, 0.1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-product-item:hover .images::after {
    opacity: 1;
}

.search-product-item .images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-product-item:hover .images img {
    transform: scale(1.15) rotate(2deg);
}

/* Product Content */
.search-product-item .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.search-product-item .product-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.search-product-item:hover .product-name {
    color: var(--primary-color);
}

.search-product-item .product-category {
    font-size: 13px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.search-product-item .product-category::before {
    content: '📦';
    font-size: 12px;
}

/* Badges Container */
.product-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Stock Badge */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

.stock-badge.out-stock {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.stock-badge i {
    font-size: 12px;
}

/* Feature Badge */
.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Price Section */
.search-product-item .price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 100px;
}

.search-product-item .price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: -0.5px;
}

.search-product-item .price-old {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Loading State */
.autocomplete-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.autocomplete-loading p {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

/* Error State */
.autocomplete-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.autocomplete-error i {
    font-size: 56px;
    color: #fca5a5;
}

.autocomplete-error p {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.retry-btn {
    margin-top: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 45, 0.4);
}

.retry-btn:active {
    transform: translateY(0);
}

/* Empty State */
.alert-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    margin: 12px;
}

.alert-warning i {
    font-size: 56px;
    color: #d97706;
    opacity: 0.7;
    margin-bottom: 16px;
}

.alert-warning p {
    font-weight: 700;
    color: #92400e;
    font-size: 16px;
    margin-bottom: 8px;
}

.alert-warning small {
    color: #b45309;
    font-size: 13px;
    font-weight: 500;
}

/* Footer */
.autocomplete-footer {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.autocomplete-footer i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Scrollbar */
.autocomplete-content::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
    margin: 8px 0;
}

.autocomplete-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.autocomplete-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* Hover Animation */
@keyframes highlightPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.search-product-item:hover .price-current {
    animation: highlightPulse 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .search-autocomplete {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        border-radius: 20px;
        max-height: calc(100vh - 90px);
    }

    .search-product-item .images {
        width: 60px;
        height: 60px;
    }

    .search-product-item .product-name {
        font-size: 14px;
    }

    .search-product-item .product-category {
        font-size: 12px;
    }

    .search-product-item .price-current {
        font-size: 18px;
    }

    .search-product-item .price-old {
        font-size: 13px;
    }

    .product-badges {
        flex-wrap: wrap;
    }
}

/* ============================================
   FORM STYLES - MODERN DESIGN
   ============================================ */

/* Select Dropdown Custom Arrow */
select {
    background-image: none !important;
}

/* File Upload Dropzone */
.fileupload-dropzone {
    transition: all 0.3s ease;
}

.fileupload-dropzone:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 95, 45, 0.05);
}

/* Input Focus Effects */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* Checkbox & Radio Custom Styles */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Label Hover for Checkboxes & Radios */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    cursor: pointer;
}

label:has(input[type="checkbox"]:checked),
label:has(input[type="radio"]:checked) {
    background-color: rgba(44, 95, 45, 0.05);
    border-color: var(--primary-color);
}

/* File Upload Preview */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-preview-item button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Form Submit Button Loading State */
.formgonder.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.formgonder.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ef4444;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #10b981;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* FAQ Icon Rotation */
.rotate-180 {
    transform: rotate(180deg);
}

/* Google Maps Responsive */
.container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* Prose Styling for Content */
.prose {
    color: #374151;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #1f2937;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1 { font-size: 2.25rem; line-height: 1.2; }
.prose h2 { font-size: 1.875rem; line-height: 1.3; }
.prose h3 { font-size: 1.5rem; line-height: 1.4; }
.prose h4 { font-size: 1.25rem; line-height: 1.5; }

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.75rem;
}

.prose a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.prose a:hover {
    color: var(--secondary-color);
}

.prose img {
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

.prose blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: #6b7280;
    margin: 2rem 0;
}

.prose code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.prose pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.prose th, .prose td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.prose th {
    background: #f9fafb;
    font-weight: 600;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect Ratio Utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .animate-float { animation: none !important; }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
    will-change: transform;
}


/* Kategoriler – sadece mobil iyileştirme */
@media (max-width: 640px) {
    .popular-categories {
        padding: 32px 0; /* daha az dikey boşluk */
    }

    .category-icon-card {
        padding: 14px 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .category-icon-wrapper {
        width: 72px;
        height: 72px;
        margin-bottom: 8px;
        font-size: 36px;
    }

    .category-icon-card h4 {
        font-size: 11px;
        line-height: 1.25;
    }

    .category-icon-card p {
        font-size: 10px;
    }
}


/* AJAX Loader Styles */
.ajax-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out;
}

/* Icon styling - İyileştirilmiş */
.input-group i {
    position: absolute;
    left: 1rem;
    top: 1.75rem;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
    z-index: 5;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Credit Card 3D Container */
.card-container {
    width: 100%;
    max-width: 400px;
    height: 250px;
    perspective: 1000px;
    position: relative;
    margin: 30px auto;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 25px;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
}

.card-container.flipped .card-front {
    transform: rotateY(-180deg);
}

.card-container.flipped .card-back {
    transform: rotateY(0deg);
}

/* Card Gradient Background */
.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 1;
    border-radius: 20px;
    z-index: 0;
}

/* Chip */
.card-chip {
    margin-bottom: 30px;
    position: relative;
}

/* Card Logo */
.card-logo {
    position: absolute;
    top: 25px;
    right: 25px;
}

/* Card Number */
.card-number {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 500;
    color: white;
    margin: 65px 0;
    letter-spacing: 2px;
    position: absolute;
}

.card-number span {
    flex: 1;
}

/* Card Info (Holder & Expiry) */
.card-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    position: absolute;
}

.card-holder,
.card-expiry {
    flex-basis: 50%;
    flex-grow: 0;
    flex-shrink: 0;
}

.card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.card-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Back */
.magnetic-strip {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #1a1a1a 0%, #3a3a3a 100%);
    margin: 20px 0 30px;
}

.cvv-section {
    background: white;
    border-radius: 8px;
    padding: 12px 15px;
    position: relative;
}

.cvv-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cvv-band {
    background: #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    letter-spacing: 3px;
}

.card-back-info {
    margin-top: 20px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.4;
}

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

.animate-slideUp {
    animation: slideUp 0.5s ease-out;
}

/* Input Focus Effects */
.cc-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.2);
}

/* Bank Display Enhanced */
#bankDisplay {
    transition: all 0.3s ease;
}

#bankDisplay.detected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

#bankDisplay.detected * {
    color: white !important;
}

/* ============================================
   HERO BANNER - RESPONSIVE IMAGE HANDLING
   ============================================ */

/* Banner Image Wrapper */
.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

/* Banner Image - Responsive */
.banner-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Mobile Styles (320px - 767px) */
@media (max-width: 767px) {
    .banner-image-wrapper {
        max-height: 180px;
    }

    .banner-image {
        max-height: 180px;
        object-fit: contain;
        border-radius: 0.75rem;
    }

    /* Hero section mobil padding ayarı */
    .swiper-slide > div {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-image-wrapper {
        max-height: 280px;
    }

    .banner-image {
        max-height: 280px;
        border-radius: 1.25rem;
    }
}

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
    .banner-image-wrapper {
        max-height: 100%;
        padding: 0;
    }

    .banner-image {
        max-height: 500px;
        border-radius: 1.5rem;
    }

    .banner-image:hover {
        transform: scale(1.02);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .banner-image {
        max-height: 550px;
        border-radius: 2rem;
    }
}

/* Hero Text Responsive Spacing */
@media (max-width: 767px) {
    .swiper-slide h1 {
        line-height: 1.2;
    }

    .swiper-slide p {
        line-height: 1.5;
    }
}

/* AOS Animation Override for Mobile */
@media (max-width: 767px) {
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        opacity: 0;
    }

    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate {
        opacity: 1;
        transform: none;
    }
}

/* Swiper Pagination - Mobile Adjustment */
@media (max-width: 767px) {
    .swiper-pagination {
        bottom: 10px !important;
    }

    .swiper-pagination-bullet {
        width: 30px;
        height: 3px;
    }
}

/* ============================================
   CART SIDEBAR - MOBILE ENHANCEMENTS
   ============================================ */

/* Cart Item Hover Effect */
.cart-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover {
    transform: translateX(-2px);
}

/* Disabled Button State */
.cart-item button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-item button:disabled:hover {
    background-color: #f3f4f6;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Cart Sidebar Animation */
#cartSidebar {
    will-change: transform;
}

/* Overlay Backdrop Blur Effect */
#cartOverlay {
    will-change: opacity;
}

#cartOverlay:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Safe Area (iPhone notch vs.) */
@supports (padding-top: env(safe-area-inset-top)) {
    #cartSidebar {
        padding-top: env(safe-area-inset-top);
    }
}

/* Small Mobile Optimization (320px - 374px) */
@media (max-width: 374px) {
    #cartSidebar {
        font-size: 14px;
    }

    .cart-item img {
        width: 70px;
        height: 70px;
    }

    .cart-item h4 {
        font-size: 13px;
    }
}

/* ============================================
   FORM VALIDATOR FIX - MOBILE INPUT BLOCKING
   ============================================ */

/* Input icon wrapper pozisyonu düzelt */
.input-icon-wrapper {
    position: relative;
}

/* Validation icon'ları tıklanamaz yap */
.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    pointer-events: none; /* ÇOK ÖNEMLİ - Tıklamayı engellemez */
    z-index: 5;
}

.validation-icon.success {
    color: #48bb78;
}

.validation-icon.error {
    color: #e53e3e;
}

.form-group.success .validation-icon.success {
    display: block;
}

.form-group.error .validation-icon.error {
    display: block;
}

/* Toggle password button için doğru z-index */
.toggle-password {
    z-index: 20; /* Validation icon'lardan üstte olmalı */
    pointer-events: auto; /* Tıklanabilir olmalı */
}

/* Form input z-index */
.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    position: relative;
    z-index: 1;
}

/* Icon'lar input'un altında kalmalı */
.form-group i {
    z-index: 2;
    pointer-events: none;
}

/* Mobilde input alanları tam tıklanabilir olmalı */
@media (max-width: 768px) {
    .form-input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"] {
        touch-action: manipulation; /* Mobil dokunma optimize */
    }

    /* Form group relative position */
    .form-group {
        position: relative;
        isolation: isolate; /* Stacking context oluştur */
    }

    /* Validation icon mobilde sağda daha içerde */
    .validation-icon {
        right: 45px; /* Toggle button ile çakışmasın */
    }
}