/* =========================================================================
   AGROSEL TARIM - Premium Design System
   ========================================================================= */

:root {
    /* Colors */
    --primary: #10B981;
    /* Premium Green matched to logo */
    --primary-dark: #047857;
    --secondary: #0F172A;
    /* Slate / Navy Dark from user preference */
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.topbar {
    background: #E5E7EB;
    /* Light grey */
    padding: 8px 0;
    font-size: 0.8rem;
    color: #64748B;
    border-bottom: 1px solid #D1D5DB;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.social-icons a {
    color: var(--text-light);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}

.social-icons a svg {
    display: block;
}

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

.topbar-right a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #047857;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
}

/* Unified Desktop Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 240px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0 !important;
    height: auto !important;
    z-index: 1050;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dropdown-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    line-height: 1.1;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #475569;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
}

.language-dropdown:hover {
    color: var(--primary);
}

.language-dropdown svg {
    margin-right: 2px;
}

.btn-terrafert {
    background: #dc2626;
    /* Base color */
    background: linear-gradient(-135deg, transparent 11.5px, #dc2626 11.5px);
    color: white !important;
    padding: 10px 25px 10px 20px;
    border-radius: 4px;
    border-top-right-radius: 0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.25));
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.btn-terrafert::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    /* Larger than 13px to overlap */
    height: 16px;
    background: linear-gradient(225deg, transparent 50%, #fecaca 50%);
    border-bottom-left-radius: 4px;
    filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.15));
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-terrafert:hover {
    background: linear-gradient(-135deg, transparent 11.5px, #b91c1c 11.5px);
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.35));
}

.btn-terrafert:hover::after {
    background: linear-gradient(225deg, transparent 50%, #ffdfdf 50%);
}

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

.dropdown {
    position: relative;
}



.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* =========================================================================
   PAGE SECTIONS
   ========================================================================= */
.main-content {
    /* Offset for fixed header */
    min-height: calc(100vh - 380px);
}

.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E2E8F0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--secondary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* =========================================================================
   ABOUT US PAGE (CLEAN DESIGN)
   ========================================================================= */
.about-hero-clean {
    padding: 120px 0 60px;
    background: #fdfdfd;
}

.hero-title-clean {
    font-size: 3.5rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle-clean {
    font-size: 1.1rem;
    color: #6B7280;
}

/* Cleaned out unneeded hero CSS to prevent layout breaks */

/* Clean Section Title */
.section-title-clean {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* Team Section */
.team-section-clean {
    padding: 100px 0;
    background: #f8fafc;
}

.team-grid-clean {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .team-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .team-grid-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    @media (max-width: 400px) {
        .team-grid-clean {
            grid-template-columns: 1fr;
        }
    }

    .member-silhouette {
        height: 160px;
        /* Increased slightly for better fit */
    }

    .member-info-clean h3 {
        font-size: 0.95rem;
    }

    .role-clean {
        font-size: 0.8rem;
    }
}

.team-item-clean {
    text-align: center;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

.member-silhouette {
    width: 100%;
    height: 200px;
    background: #374151;
    /* Dark grey like the reference */
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    /* Sit on bottom like reference */
    justify-content: center;
    overflow: hidden;
    /* Prevent overflow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-silhouette svg {
    width: 150px;
    /* Fixed width to prevent relative scaling */
    height: auto;
    display: block;
    fill: #e5e7eb;
}

.member-info-clean h3 {
    font-size: 1.15rem;
    color: #10B981;
    /* Agrosel Green */
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.role-clean {
    color: #4b5563;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.member-contact-clean {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-contact-clean a {
    color: #6b7280;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}

.member-contact-clean a:hover {
    color: var(--primary);
}

/* Distributor Marquee */
.dist-logo {
    max-width: 240px;
    max-height: 100px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Distributor Marquee (Hover to Pause) */
.distributor-section-clean {
    background: #fdfdfd;
    overflow: hidden;
}

.logo-marquee-wrapper {
    position: relative;
    width: 100%;
    /* Changed from 100vw to prevent scrollbar/offset glitch */
    overflow: hidden;
    padding: 20px 0;
}

.logo-track-clean {
    display: flex;
    width: max-content;
    align-items: center;
}

.track-infinite {
    /* 1 Set = 4 items * 320px = 1280px. Loop strictly restarts after exact pixel shift */
    animation: marquee-infinite 20s linear infinite;
}

.logo-track-clean:hover {
    animation-play-state: paused;
}

.logo-item {
    width: 320px;
    /* Equal spacing container */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.dist-logo {
    max-width: 100%;
    height: 120px;
    /* Increased height */
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.dist-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.08);
    /* slight pop effect */
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1280px);
    }
}

@media (max-width: 1200px) {
    /* Main grid handles 2-column now */
}

@media (max-width: 992px) {
    .vm-box {
        padding: 30px;
    }
}

@media (max-width: 600px) {

    /* Removed redundant 1fr override to maintain 2-column layout */
    .logo-item {
        width: 180px;
    }

    .dist-logo {
        height: 80px;
    }
}


/* =========================================================================
   CONTACT PAGE (V2 REFINED DESIGN)
   ========================================================================= */
.contact-section-v2 {
    padding: 80px 0;
    background: #ffffff;
    /* Sırıtmasın diye saf beyaz yaptık */
}

.contact-top-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

.contact-brand-title {
    font-size: 3rem;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
}

.contact-brand-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.info-item-simple {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-simple a {
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.info-item-simple a:hover {
    color: var(--primary);
}

.contact-social-row {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.social-circle-btn {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.contact-form-col {
    background: transparent;
    padding: 0;
}

.modern-form-v2 .form-row-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form-v2 .form-group-v2 {
    margin-bottom: 20px;
}

.modern-form-v2 input,
.modern-form-v2 textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    /* Biraz daha belirgin sınırlar */
    border-radius: 0;
    /* Dikdörtgen köşe */
    font-size: 0.95rem;
    color: var(--secondary);
    transition: all 0.3s ease;
    resize: none;
}

.modern-form-v2 input:focus,
.modern-form-v2 textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.btn-send-v2 {
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 0;
    /* Dikdörtgen köşe */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-send-v2:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.contact-bottom-map {
    margin-top: 40px;
    border-radius: 0;
    /* Dikdörtgen köşe */
    overflow: hidden;
    background: transparent;
    padding: 0;
}

@media (max-width: 992px) {
    .contact-top-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-brand-title {
        font-size: 2.5rem;
    }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col.links-col ul.arrow-list li a {
    display: flex;
    align-items: center;
}

.footer-col.links-col ul.arrow-list li a::before {
    content: "›";
    margin-right: 8px;
    font-size: 1.2rem;
    color: #A7F3D0;
    /* Light green tint */
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Boşluk "Gerekli Bağlantılar" ile uyarlandı */
.footer-col a {
    color: #E2E8F0;
    margin-bottom: 0;
    font-size: 0.95rem;
}

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

.footer-essential-link {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-essential-link:hover {
    color: white !important;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    color: #CBD5E1;
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Mobile Menu Toggle & Responsive Rules */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1025px) {
    .mobile-overlay {
        display: none !important;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 45px;
    height: 45px;
    z-index: 1002;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary);
    position: relative;
    transition: all .3s;
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: all .3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Keep hamburger visible if they don't click it directly, but wait we have a new close button inside drawer */
.mobile-menu-header {
    display: none;
}

.mobile-socials {
    display: none;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Nav Styles - Side Drawer */
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        height: 74px;
        /* Matches exact site header height (50+10+14 roughly or 74px with borders) */
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        /* Matches header line */
        margin-bottom: 5px;
        box-sizing: border-box;
    }

    .mobile-logo-box {
        display: flex;
        align-items: center;
    }

    .mobile-logo {
        filter: brightness(0) invert(1) !important;
        max-height: 35px;
        width: auto;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding: 0 10px;
        line-height: 1;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -350px;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: var(--secondary);
        /* Koyu çekmece stili */
        padding: 0;
        /* Header top takes care of it */
        box-shadow: -10px 0 25px rgba(0, 0, 0, 0.5);
        clip-path: none;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1005;
        /* Must be above header & overlay */
        overflow-y: auto;
    }

    @media (max-width: 400px) {
        .main-nav {
            width: 270px;
            max-width: 90%;
        }

        .main-nav a {
            padding: 14px 0;
            margin: 0 15px;
            font-size: 0.85rem;
        }

        .mobile-menu-header {
            padding: 0 15px;
            height: 60px;
        }

        .mobile-logo {
            max-height: 28px;
        }

        .mobile-menu-close {
            font-size: 24px;
        }
    }

    @media (max-width: 320px) {
        .main-nav {
            width: 240px;
        }

        .main-nav a {
            padding: 12px 0;
            margin: 0 12px;
            font-size: 0.8rem;
        }
    }

    .main-nav.active {
        right: 0;
        clip-path: none;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        /* Tam genişlikte hizalanması için çok kritik, yoksa yazılar ortada ve kısa çizgili kalır! */
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        display: block;
    }

    .main-nav a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        margin: 0 25px;
        /* İçeriden girinti, çizgi kenarlardan boşluk kalsın diye */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #E2E8F0;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 0.95rem;
    }

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

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important;
        background: transparent !important;
        /* Arkaplan şeffaf siyahı kaldırıldı */
        padding: 0 !important;
        border-radius: 0;
        min-width: 100%;
        border: none;
    }

    .dropdown-menu li a {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 14px 0 14px 20px;
        margin: 0 25px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #94A3B8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        transition: color 0.3s;
    }

    .dropdown-menu li a:hover {
        color: var(--primary) !important;
        background: transparent !important;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a::before {
        content: "-";
        margin-right: 8px;
        color: var(--primary);
        font-weight: 800;
    }

    /* Hover does not open menu on mobile. JS toggles 'open' class */
    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown.open>a {
        color: var(--primary);
    }

    .dropdown.open>a svg {
        transform: rotate(180deg);
    }

    .dropdown>a svg {
        transition: transform 0.3s;
    }

    /* Mobile Socials */
    .mobile-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin-top: 40px;
        padding-bottom: 50px;
    }

    .mobile-socials a {
        display: inline-flex;
        color: #94A3B8;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-socials a:hover {
        color: white;
    }

    .mobile-socials a:hover {
        color: white;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .header-inner {
        height: 75px;
    }

    /* Orijinal tasarımdaki gibi footer'ı Sola Hizalama (text-align center'ı iptal ettik) */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .footer-socials {
        justify-content: flex-start !important;
        margin: 20px 0 0 !important;
    }

    .footer-col.links-col ul.arrow-list li a {
        justify-content: flex-start;
    }

    .footer-contact-item {
        justify-content: flex-start;
    }

    .footer-logo {
        max-width: 180px;
    }
}

/* =========================================
   HOMEPAGE MODERN REVISION STYLES
   ========================================= */

/* Hero Section */
.hero-home {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: url('../assets/images/home-hero.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.4), rgba(17, 24, 39, 0.7));
    z-index: 1;
}

.hero-home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
}

.hero-home-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-home-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Floating Category Cards */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -80px;
    /* Pulls cards up over the hero */
    padding: 0 20px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-card-home {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none !important;
}

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

.category-icon-home {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    /* Light green tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon-home svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
    /* Green */
}

.category-title-home {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/* Home Teaser Section */
.home-teaser-section {
    padding: 100px 0;
    background: #ffffff;
}

.teaser-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.teaser-img-col {
    flex: 1;
}

.teaser-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.teaser-text-col {
    flex: 1;
}

/* About Page Corporate Section */
.about-corporate-section {
    padding: 100px 0 50px 0;
    background-color: #ffffff;
}

.about-corporate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-image-col {
    flex: 1 1 45%;
    min-width: 300px;
}

.about-text-col {
    flex: 1 1 50%;
    min-width: 300px;
}

.about-corp-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    object-fit: cover;
}

.teaser-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.teaser-text {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-teaser {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-teaser:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Home Products Showcase */
.home-products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.showcase-brand-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.view-all-link svg {
    width: 18px;
    height: 18px;
}

.home-products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.home-product-card {
    flex: 0 1 calc(25% - 22.5px);
    /* 4 columns */
    min-width: 250px;
    max-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.home-product-img-box {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 25px;
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.home-product-card:hover .home-product-img {
    transform: scale(1.1);
}

.home-product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.home-product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.home-product-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .teaser-row {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-home-title {
        font-size: 2.8rem;
    }

    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-product-card {
        flex: 0 1 calc(50% - 15px);
        max-width: 320px;
    }

    .about-corporate-row {
        flex-direction: column;
        gap: 30px;
    }

    .about-image-col,
    .about-text-col {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .home-categories-grid {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .hero-home-title {
        font-size: 2.2rem;
    }

    .teaser-heading {
        font-size: 2rem;
    }

    .showcase-brand-title {
        font-size: 1.4rem;
    }

    .home-products-grid {
        gap: 15px;
        justify-content: center;
    }

    .home-product-card {
        flex: 0 1 calc(50% - 7.5px);
        min-width: 160px;
        max-width: none;
        padding: 15px;
    }

    .home-product-img-box {
        height: 160px;
        margin-bottom: 15px;
    }

    .home-product-name {
        font-size: 1rem;
    }

    .home-product-subtitle {
        font-size: 0.8rem;
    }

    .home-hero-btn-wrapper {
        align-self: center !important;
    }

    .title-fluid {
        font-size: 2.2rem !important;
    }

    .sub-fluid {
        font-size: 0.95rem !important;
        max-width: 90% !important;
    }
}

@media (max-width: 576px) {
    .showcase-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-bottom: 25px;
    }

    .showcase-brand-title {
        font-size: 1.25rem;
    }

    .view-all-link {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 400px) {
    .home-product-card {
        flex: 0 1 100%;
        min-width: 0;
        max-width: none;
    }

    .home-products-grid {
        gap: 20px;
    }

    .title-fluid {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }

    .hero-harmony {
        padding: 40px 0 !important;
    }
}

/* =========================================
   FILES TABLO (MODERN REGISTRY TABLE)
   ========================================= */
.files-hero {
    background: url('../assets/images/header-bg.jpg') center center / cover no-repeat;
    position: relative;
    padding: 100px 0;
    text-align: center;
}

.files-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    /* Deep navy tint */
    z-index: 1;
}

.files-hero-content {
    position: relative;
    z-index: 2;
}

.table-modern-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 80px;
    margin-top: 40px;
    /* Separates nicely from the simple header */
    position: relative;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: left;
}

.table-modern thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.table-modern th {
    padding: 20px 24px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.table-modern tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.table-modern tbody tr:hover {
    background: #f1f5f9;
}

.table-modern td {
    padding: 18px 24px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    vertical-align: middle;
}

.table-modern td:first-child {
    font-weight: 700;
    color: var(--primary);
    width: 60px;
}

.pdf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    transition: transform 0.2s ease;
    border: none;
}

.pdf-icon-btn:hover {
    transform: scale(1.1);
}

.pdf-icon-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* PDF Modal / Viewer */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pdf-viewer-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease-out;
}

.pdf-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2002;
    transition: all 0.3s ease;
    border: none;
}

.pdf-close-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 2003;
}

.pdf-modal-actions {
    display: flex;
    gap: 12px;
}

.btn-pdf-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pdf-action.secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-pdf-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-pdf-action.secondary:hover {
    background: #e2e8f0;
    box-shadow: none;
}

.pdf-iframe {
    width: 100%;
    height: calc(100% - 60px);
    /* Adjust for header height */
    border: none;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tab-btn:hover {
    border-color: #10B981;
    color: #10B981;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
}

.tab-btn.active {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.tab-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}


.category-section {
    display: none;
}

.category-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Fluid Typography & Harmony Hero (Agrosel Style) */
.hero-harmony {
    position: relative;
    padding: clamp(80px, 10vh, 140px) 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

/* Integrated Header Hero Fix */
.integrated-header .hero-harmony {
    padding-top: 140px;
}

@media (max-width: 768px) {
    .integrated-header .hero-harmony {
        padding-top: 160px;
        min-height: 400px;
    }
}


.hero-harmony::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Darker overlay for better text readability, matching the About page */
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.70) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 1;
}

.hero-harmony-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.title-fluid {
    /* Fluid typography: auto-scales between 2.2rem and 4rem based on viewport */
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.title-fluid span {
    color: #10B981;
    /* Agrosel Premium Green */
    display: block;
    margin-top: 5px;
}

.sub-fluid {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    margin-top: 20px;
}

.hero-accent-line {
    width: 60px;
    height: 3px;
    background: #10B981;
    margin: 30px auto 0;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .hero-harmony {
        padding: 60px 0;
        min-height: 350px;
    }

    .home-hero-v2 {
        min-height: 500px !important;
        align-items: center !important;
        padding-bottom: 40px !important;
    }

    .home-hero-v2 .hero-harmony-content {
        text-align: center !important;
        align-items: center !important;
    }

    .home-hero-v2 .sub-fluid {
        text-align: center !important;
        align-self: center !important;
    }

    .home-hero-v2 .hero-accent-line {
        margin: 20px auto !important;
    }
}

/* Product Catalog Page */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: block;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-img-wrapper {
    height: 250px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.card-btn:hover {
    gap: 12px;
}

/* Product Detail Page */
/* Corporate Catalog Layout */
.catalog-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    padding: 60px 0;
}

.corporate-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.side-menu-link {
    display: block;
    padding: 15px 20px;
    background: #2d5a4c;
    /* Agrosel Dark Green */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.side-menu-link:hover,
.side-menu-link.active {
    background: #1e3d33;
    padding-left: 30px;
}

.side-menu-link:first-child {
    border-radius: 8px 8px 0 0;
}

.side-menu-link:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.catalog-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.category-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.category-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.corporate-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px;
}

.corporate-product-card {
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.corp-card-img {
    height: 280px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corp-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.corp-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2d5a4c;
    margin-bottom: 5px;
}

.corp-card-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .catalog-wrapper {
        grid-template-columns: 1fr;
    }

    .corporate-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .product-hero-title {
        font-size: 2rem;
    }

    .detail-pdf-btns {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .sidebar-link {
        white-space: nowrap;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .btn-pdf-action span {
        display: none;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
}

/* =========================================================================
   ERROR PAGE (404) - CORPORATE DESIGN
   ========================================================================= */

.error-page-wrapper {
    background: #f8fafc;
    min-height: 70vh;
}

.page-header-simple {
    padding: 60px 0 40px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
}

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

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--secondary);
}

.error-content-section {
    padding: 80px 0;
}

.error-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.error-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-code {
    font-family: 'Outfit', sans-serif;
    font-size: 15rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
}

.error-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.error-info {
    max-width: 550px;
}

.error-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.error-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.error-text {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-help-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.error-help-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.error-help-list li .icon {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.error-help-list li p {
    font-size: 1rem;
    color: #475569;
}

.error-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--secondary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
}

@media (max-width: 1024px) {
    .error-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .error-info {
        margin: 0 auto;
    }

    .error-actions {
        justify-content: center;
    }

    .error-help-list li {
        justify-content: center;
        text-align: left;
    }

    .error-code {
        font-size: 10rem;
    }
}

/* =========================================================================
   PRODUCT DETAIL V2 - PREMIUM CORPORATE
   ========================================================================= */

.product-detail-v2 {
    padding-bottom: 100px;
}

/* Breadcrumbs V2 */
.breadcrumb-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 40px;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-v2 a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-v2 .sep {
    color: #cbd5e1;
}

.breadcrumb-v2 .current {
    color: var(--secondary);
    font-weight: 600;
}

/* Hero Section V2 */
.product-hero-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.product-visual-v2 {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.product-visual-v2::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.product-img-v2 {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.product-info-header-v2 .brand-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.product-title-v2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.product-subtitle-v2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 30px;
}

.product-desc-v2 {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

/* Technical Specification Table */
.tech-section-v2 {
    margin-bottom: 60px;
}

.section-title-v2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title-v2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.tech-table-v2 {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.tech-table-v2 tr:nth-child(even) {
    background: #f8fafc;
}

.tech-table-v2 td {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.tech-table-v2 td:first-child {
    font-weight: 600;
    color: var(--secondary);
    width: 40%;
}

.tech-table-v2 td:last-child {
    color: #475569;
}

/* Usage Table V2 */
.usage-table-v2 {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.usage-table-v2 th {
    background: var(--secondary);
    color: white;
    text-align: left;
    padding: 18px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.usage-table-v2 td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.4;
}

.usage-table-v2 tr:hover {
    background: #f1f5f9;
}

/* Document Cards V2 */
.doc-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.doc-card-v2 {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-card-v2:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.doc-icon-v2 {
    width: 60px;
    height: 60px;
    background: transparent;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info-v2 .doc-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.doc-info-v2 .doc-name {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

/* Packaging Row V2 */
.packaging-row-v2 {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
}

.pack-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pack-icon-v2 {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.pack-text-v2 {
    font-weight: 600;
    color: var(--secondary);
}

@media (max-width: 991px) {
    .product-hero-v2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-title-v2 {
        font-size: 2.5rem;
    }
}

/* =========================================================================
   TECH IMAGES GRID (SIDE-BY-SIDE ALL SCREENS)
   ========================================================================= */

.tech-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Fixed 2 columns even on mobile */
    gap: 30px;
    margin-bottom: 40px;
}

.tech-img-col {
    display: flex;
    flex-direction: column;
}

.small-title {
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
}

.tech-img-frame {
    background: white;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
}

.tech-img-frame:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.zoomable-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .tech-images-grid {
        gap: 15px;
        /* Tighter gap on mobile */
    }

    .small-title {
        font-size: 0.95rem !important;
        /* Smaller text on mobile to fit */
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .tech-img-frame {
        padding: 5px;
    }
}

/* =========================================================================
   IMAGE MODAL STYLES
   ========================================================================= */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomContent 0.3s ease;
}

@keyframes zoomContent {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.image-modal-close {
    position: absolute;
    top: -45px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    color: var(--primary);
}

/* =========================================================================
   PRODUCT DETAIL V3 - DYNAMIC TABLES
   ========================================================================= */

.tech-section-v3 {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.tech-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* New Split Layout: Table (65%) | Image (35%) */
.tech-grid-split-v3 {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
    align-items: start;
}

.tech-card-v3 {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    height: 100%;
    /* Match height if possible */
}

.tech-card-title-v3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.tech-card-title-v3 svg {
    color: var(--primary);
}

.table-responsive-v3 {
    overflow-x: auto;
}

.data-table-v3 {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    /* Slightly larger for readability */
}

.data-table-v3 th {
    background: var(--secondary);
    color: white;
    padding: 14px 15px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
}

.data-table-v3 td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.data-table-v3 tr:last-child td {
    border-bottom: none;
}

.data-table-v3 tr:hover td {
    background-color: rgba(16, 185, 129, 0.03);
}

/* Hierarchical Sub-rows (Nutrient Breakdowns) */
.sub-row-v3 td:nth-child(2) {
    padding-left: 35px;
    position: relative;
    color: var(--text-muted);
}

.sub-row-v3 td:nth-child(2)::before {
    content: '-';
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-weight: 700;
}

.sub-row-v3 td {
    background-color: #f9fafb;
}

@media (max-width: 1024px) {

    .tech-grid-v3,
    .tech-grid-split-v3 {
        grid-template-columns: 1fr;
    }
}

/* Adjustments for empty description */
.product-hero-v2:has(.header-base-v2) .product-info-header-v2:not(:has(.product-desc-v2)) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-hero-v2:has(.header-base-v2) .product-info-header-v2:not(:has(.product-desc-v2)) .packaging-row-v2 {
    margin-top: 30px;
}

/* View Label Button Styles */
.btn-view-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-label:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.btn-view-label svg {
    color: var(--primary);
}

/* Category Specific Layouts */
.label-image-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.label-card-v3 {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.label-card-v3 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.label-card-v3 img:hover {
    transform: scale(1.02);
}

.label-title-v3 {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .label-image-grid-v3 {
        grid-template-columns: 1fr;
    }
}