:root {
    /* Color Palette */
    --primary: #142d4c;
    /* Lacivert (Navy Blue) */
    --secondary: #30475e;
    /* Lighter Navy */
    --accent: #4CAF50;
    /* Çim Yeşili (Grass Green) */
    --accent-hover: #388E3C;
    /* Darker Green */
    --light-bg: #f8f9fa;
    /* Light Gray */
    --white: #ffffff;
    --border: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--primary);
    background-color: var(--light-bg);
    /* Changed to slightly off-white for contrast with white cards */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utility */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0d213a;
    border-color: #0d213a;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    /* Softer corners */
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* HEADER STYLES v2 (Modern Clean) */

/* 1. Top Bar (Corporate Navy) */
/* 1. Top Bar (Light Gray) */
.header-top {
    background-color: var(--light-bg);
    color: var(--primary);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.header-top a {
    color: var(--primary);
    opacity: 0.8;
}

.header-top a:hover {
    color: var(--accent);
    opacity: 1;
}

/* 2. Main Header (White & Airy) */
.header-main {
    background-color: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
    color: var(--primary) !important;
}

/* 3. Search Bar (Modern Pill) */
.modern-search {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.modern-search input {
    width: 100%;
    background-color: #f1f3f5;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    padding-right: 3.5rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.modern-search input:focus {
    background-color: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    outline: none;
}

.modern-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modern-search button:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

/* 4. User Actions */
.user-action-link {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.user-action-link:hover {
    background-color: #f0f7ff;
    color: var(--primary);
}

.cart-btn-modern {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: #e8f5e9;
    /* Light Green Bg */
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.cart-btn-modern:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* 5. Navigation (Clean Strip) */
.header-nav {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.nav-custom-link {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.2rem 1.5rem !important;
    position: relative;
}

.nav-custom-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-custom-link:hover {
    color: var(--accent) !important;
}

.nav-custom-link:hover::after {
    transform: scaleX(1);
}

/* Dealer Button (Modern) */
.btn-dealer-modern {
    background-color: var(--accent);
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(20, 45, 76, 0.2);
    transition: all 0.3s;
}

.btn-dealer-modern:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.btn-project-modern {
    background-color: var(--primary);
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(20, 45, 76, 0.2);
    transition: all 0.3s;
}

.btn-project-modern:hover {
    background-color: #0d213a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(20, 45, 76, 0.3);
}

/* Shine Effect Animation */
@keyframes shine-sweep {
    0% {
        left: -100%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-sweep 4s infinite ease-in-out;
    pointer-events: none;
}

/* Sequential Delay */
.delay-shine::after {
    animation-delay: 2s;
    /* Starts halfway through the other's cycle */
}


/* HERO SECTION (Split Grid) */
.hero-wrapper {
    margin-bottom: 4rem;
}

.hero-main-slider {
    position: relative;
    height: 500px;
    /* Comfortable height */
    border-radius: 12px;
    overflow: hidden;
    background-image: url('../images/hero_grass.png');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}

.hero-side-banner {
    position: relative;
    height: 240px;
    /* (500px - 20px gap) / 2 */
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-end;
    /* Text at bottom */
    padding: 1.5rem;
}

.hero-side-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.banner-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.banner-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
}

.banner-link:hover {
    color: white;
}

/* Specific Banners */
.banner-1 {
    background-image: url('../images/banner-1.png');
}

.banner-2 {
    background-image: url('../images/banner-2.png');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    /* Gradient only covers text area */
    height: 100%;
    background: linear-gradient(90deg, rgba(20, 45, 76, 0.9) 0%, rgba(20, 45, 76, 0.4) 100%);
    display: flex;
    align-items: center;
    padding-left: 3rem;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.1rem;
}

.hero-content .btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 2rem !important;
}

/* Swiper Navigation Size */
.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.heroSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

/* Category Grid */
.category-card {
    border: none;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    background: white;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Product Card */
.product-card {
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 260px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.badge-stock {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 6px 12px;
    border-radius: 30px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-details {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
}

.btn-add-cart {
    width: 100%;
    margin-top: 1.2rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid #e9ecef;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.7rem;
}

.btn-add-cart:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* B2B Banner */
.b2b-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6rem 0;
    margin-top: 6rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 45, 76, 0.15);
}

/* Footer */
footer {
    background-color: #10243e;
    /* Dark Navy for Footer */
    color: #e2e8f0;
    /* Lighter text for better reading */
    padding-top: 5rem;
    margin-top: 6rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

footer a {
    color: #cbd5e1;
    /* Light gray links */
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.footer-copyright {
    background-color: white;
    color: black;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-weight: 500;
}

/* Product Tabs Custom Styling */
#productTab .nav-link {
    color: var(--secondary);
    background: white;
    border-color: #dee2e6 !important;
    transition: all 0.3s ease;
}

#productTab .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

#productTab .nav-link.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.table th.bg-light {
    background-color: #f1f4f9 !important;
    color: var(--primary);
    font-weight: 700;
}

/* Soft Background Utilities */
.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-soft-accent {
    background-color: rgba(25, 135, 84, 0.1);
}

.italic {
    font-style: italic;
}

.anim-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}