@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   ZAFER GRUP - FUTURE INDUSTRIAL THEME
   ========================================================================== */

:root {
    --header-height: 80px;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-5px);
}

/* Mobile Menu - CRITICAL FIX */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background: #1e293b;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open .mobile-menu {
    transform: translateX(0);
}

/* Navigation Links */
.nav-link {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    color: #e2e8f0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Swiper Fixes */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #f59e0b !important;
    width: 24px !important;
    border-radius: 4px;
}

/* Breadcrumb Fix */
.breadcrumb-nav-modern {
    display: flex;
    justify-content: center;
}

.breadcrumb-list-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
}

.breadcrumb-link-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link-modern:hover {
    color: #3b82f6;
    /* brand-secondary */
}

.breadcrumb-current-modern {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.9);
    /* brand-secondary */
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(4px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563eb;
    /* Darker blue */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.back-to-top i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   CONTRAST & READABILITY FIXES
   ========================================================================== */

/* Force dark text for editor-generated light colors when on a white background */
.bg-white [style*="color: rgb(255, 255, 255)"],
.bg-white [style*="color: #fff"],
.bg-white [style*="color: white"],
.bg-white [style*="color:rgb(255, 255, 255)"],
.bg-white [style*="color:#fff"],
.bg-white [style*="color:white"],
.product-detail-layout-modern [style*="color: rgb(255, 255, 255)"],
.product-detail-layout-modern [style*="color: #fff"],
.product-detail-layout-modern [style*="color: white"],
.product-detail-layout-modern [style*="color:rgb(255, 255, 255)"],
.product-detail-layout-modern [style*="color:#fff"],
.product-detail-layout-modern [style*="color:white"] {
    color: #0f172a !important;
}

/* General reset for white background sections to ensure text visibility */
.bg-white {
    color: #1e293b;
}

/* Table readability within white sections */
.bg-white table td, 
.bg-white table th {
    color: #1e293b;
}