/* ============================================
   Pramitek - Ana Stil Dosyası
   Dinamik Tema Destekli
   ============================================ */

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

/* Global Image Scaling Protection */
img.maintain-ratio {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Fix for mobile menu overflow */
@media (max-width: 991px) {
    .nav-menu-area {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-support) !important;
        display: block !important;
        transition: 0.4s ease;
        z-index: 2000;
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu-area.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        height: auto;
    }

    .nav-menu>li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu>li>a {
        padding: 15px 25px !important;
        width: 100%;
    }
}

:root {
    /* Pramitek Strict Palette Revision 2 */
    --primary: #BA4440;
    --primary-dark: #8E302D;
    --dark-support: #321E1D;
    --light-bg: #F6F2F2;
    --section-bg: #F0D6D4;
    --hover-accent: #D65A56;

    /* Theme Aliases */
    --nav-bg: var(--primary);
    /* Hastek uses red for nav background */
    --nav-text: #ffffff;
    --nav-active: #ffffff;
    --topbar-bg: #ffffff;
    --topbar-text: #444444;
    --footer-bg: var(--dark-support);
    --footer-text: #dddddd;
    --body-bg: var(--light-bg);

    /* Functional Defaults */
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #8a8a9a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-primary: var(--font-body);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ========== Preloader ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    animation: preloaderPulse 1.5s infinite alternate;
}

.preloader-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: preloaderPulse 1.5s infinite alternate;
}

@keyframes preloaderPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.topbar {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    font-size: 13px;
    height: 45px;
    /* Fixed height for topbar */
    display: flex;
    align-items: center;
    color: var(--text-medium);
}

.top-bar a {
    color: var(--text-medium);
    margin-right: 20px;
    transition: var(--transition);
}

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

.top-bar i {
    margin-right: 5px;
    color: var(--primary);
}

.top-bar .top-right a {
    margin-right: 0;
    margin-left: 5px;
}

.btn-company-profile {
    background: var(--dark);
    color: var(--white) !important;
    padding: 5px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-company-profile:hover {
    background: var(--dark-gray);
    color: var(--white) !important;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white) !important;
    padding: 5px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: var(--white) !important;
}

/* ========== Main Navigation ========== */
.main-navbar {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.3);
}

.main-navbar .navbar-brand {
    padding: 10px 0;
}

.main-navbar .navbar-brand img {
    height: 70px;
    max-width: 280px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.main-navbar .navbar-brand .brand-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 18px 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--white);
    border-radius: 3px 3px 0 0;
}

.main-navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 220px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.main-navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.main-navbar .dropdown-item:hover {
    background: var(--lighter-gray);
    color: var(--primary);
    padding-left: 24px;
}

.main-navbar .dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary);
}

/* Mega menu for products */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    width: 100%;
    padding: 20px 30px;
}

.navbar-search {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    padding: 18px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-search:hover {
    color: var(--white);
}

/* Mobile toggle */
.main-navbar .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 6px 10px;
}

.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== Page Header / Banner ========== */
.page-header {
    background: var(--page-header-bg, #3A2222);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(227, 30, 36, 0.15));
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    content: '>';
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Hero Slider ========== */
.hero-slider {
    background: var(--lighter-gray);
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    min-height: 520px;
}

.hero-slider .slide-content {
    display: flex;
    align-items: center;
    min-height: 520px;
    padding: 40px 0;
}

.hero-slider .slide-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-slider .slide-text p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-slider .slide-image {
    text-align: center;
}

.hero-slider .slide-image img {
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.hero-slider .carousel-item.active .slide-image img {
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: var(--transition);
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: var(--primary);
    opacity: 1;
}

.hero-slider .carousel-control-prev {
    left: 20px;
}

.hero-slider .carousel-control-next {
    right: 20px;
}

/* ========== Buttons =========*/
/* Top Bar Actions Premium Style */
.btn-top-action {
    background: #BA4440;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-top-action:hover {
    background: #321E1D;
}

.btn-top-whatsapp {
    background: #25D366;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-otto {
    background: #BA4440;
    color: var(--white);
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-otto:hover {
    background: #321E1D;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 68, 64, 0.35);
}

.btn-outline-otto {
    background: transparent;
    color: #BA4440;
    border: 2px solid #BA4440;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-otto:hover {
    background: #BA4440;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp-lg {
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-whatsapp-lg:hover {
    background: #1da851;
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== Section Styles ========== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--lighter-gray);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #BA4440;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-medium);
    font-size: 16px;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* ========== Product Category Sidebar ========== */
.category-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-sidebar-title {
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 3px solid #BA4440;
    margin: 0;
}

.category-sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-sidebar .category-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-sidebar .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.category-sidebar .category-link:hover,
.category-sidebar .category-link.active {
    background: var(--lighter-gray);
    color: #BA4440;
    padding-left: 28px;
}

.category-sidebar .category-link i {
    font-size: 18px;
    color: var(--text-light);
    transition: var(--transition);
}

.category-sidebar .category-link:hover i,
.category-sidebar .category-link.active i {
    color: #BA4440;
}

.category-sidebar .subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--lighter-gray);
}

.category-sidebar .subcategory-item a {
    display: flex;
    align-items: center;
    padding: 10px 24px 10px 40px;
    color: var(--text-medium);
    font-size: 13px;
    transition: var(--transition);
    gap: 10px;
}

.category-sidebar .subcategory-item a .sub-icon {
    width: 28px;
    height: 28px;
    background: #BA4440;
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.category-sidebar .subcategory-item a:hover {
    color: #BA4440;
    background: rgba(186, 68, 64, 0.05);
}

/* ========== Product Cards ========== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.product-card .card-img-wrap {
    background: #fff;
    text-align: center;
    height: 200px;
    /* Reduced for 4-column layout */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    padding: 15px;
}

.product-card .card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

/* Global Section Backgrounds */
.section-gray,
.section-bg-hastek {
    background: var(--section-bg);
}

.bg-light-hastek {
    background: var(--light-bg);
}

/* Footer & Dark Sections */
footer,
.footer-hastek {
    background: var(--dark-support);
    color: #eee;
    padding: 80px 0 0;
}

.footer-top {
    padding-bottom: 50px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card .card-img-wrap .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #BA4440;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-body .category-name {
    color: #BA4440;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-card .card-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-card .card-body h3 a {
    color: var(--text-dark);
}

.product-card .card-body h3 a:hover {
    color: #BA4440;
}

.product-card .card-body p {
    color: var(--text-medium);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-card .card-footer {
    background: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 20px;
}

.product-card .card-footer a {
    color: #BA4440;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card .card-footer a:hover {
    gap: 10px;
}

/* ========== Homepage Components ========== */

/* Hero Slider Hastek */
.hero-slider-hastek {
    position: relative;
    overflow: hidden;
}

.slider-bg-image {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.slide-content-hastek {
    position: relative;
    z-index: 2;
    color: #fff;
}

.slide-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.slide-desc {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

/* ========== Button Styles Hastek ========== */
.btn-hastek-red {
    background: #BA4440;
    color: #fff;
    padding: 12px 35px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #BA4440;
}

.btn-hastek-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 51, 36, 0.4);
}

.btn-hastek-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-hastek-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* Mobile Menu Active State */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .main-nav-hastek .nav-container-inner {
        height: 70px;
        justify-content: space-between;
        padding: 0 15px;
    }

    .nav-logo-area {
        padding: 0;
        background: transparent;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-menu-area {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-support) !important;
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        padding: 80px 0 30px;
        overflow-y: auto;
    }

    .nav-menu-area.active {
        right: 0;
    }

    .nav-menu-area::before {
        display: none;
        /* No slant on mobile menu */
    }

    .nav-menu {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
    }

    .nav-menu>li {
        width: 100%;
        height: auto;
    }

    .nav-menu>li>a {
        padding: 15px 30px !important;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 24px;
        z-index: 2001;
    }
}

/* Category Showcase */
.category-showcase {
    padding: 0;
    background: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 100;
}

.category-nav-wrapper {
    background: #f8f8f8;
    border-bottom: 3px solid var(--primary);
}

.category-nav-scroll {
    display: flex;
    justify-content: center;
    gap: 0;
    min-width: max-content;
    margin: 0;
}

.category-nav-item {
    padding: 25px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fff;
    border-right: 1px solid #eee;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-nav-item .icon-box {
    font-size: 2.4rem;
    color: #444;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.category-nav-item .name {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #444;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.category-nav-item.active {
    background: var(--primary);
}

.category-nav-item.active .icon-box,
.category-nav-item.active .name {
    color: #fff;
}

.category-nav-item .active-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-nav-item.active .active-indicator {
    opacity: 1;
    bottom: -10px;
    /* Aligned with border */
}

/* Scroll buttons if needed */
.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 20;
    border: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.nav-scroll-btn:hover {
    background: var(--primary);
    color: #fff;
}

.nav-scroll-btn.prev {
    left: 10px;
}

.nav-scroll-btn.next {
    right: 10px;
}

.category-content-area {
    padding: 80px 0;
}

.category-content-item {
    display: none;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.category-content-item.active {
    display: flex;
}

.cat-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 25px;
    text-shadow: none;
    /* Ensure no artifacts on white bg */
}

.cat-desc {
    font-size: 18px;
    color: #444;
    /* Darker for accessibility on white bg */
    line-height: 1.9;
    margin-bottom: 40px;
}

.btn-primary-hastek {
    background: var(--primary);
    color: #fff !important;
    padding: 16px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    border-radius: 4px;
    display: inline-block;
}

.btn-primary-hastek:hover {
    background: var(--hover-accent);
}

/* OttoScanner Style Product Cards */
.bg-light-hastek {
    background: var(--light-bg);
}

.section-title-hastek h2 {
    font-weight: 800;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-title-hastek .title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 20px;
}

/* Brand Cards (Temsilcilikler) */
.brand-card-hastek {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.brand-card-hastek:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.brand-logo-wrap {
    height: 250px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-bottom: 1px solid #f5f5f5;
}

.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand-body h3 {
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.brand-body p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-brand-visit {
    margin-top: auto;
    background: var(--primary);
    color: #fff !important;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.btn-brand-visit:hover {
    background: var(--hover-accent);
}

/* Mobile Menu Fix */
@media (max-width: 991px) {
    .nav-toggle {
        background: var(--primary);
        color: #fff;
        padding: 5px 12px;
        border-radius: 4px;
        font-size: 20px;
    }

    /* Ensure no overlap of logo and toggle */
    .nav-logo-area {
        position: relative;
        padding: 15px 20px;
    }

    .nav-logo {
        height: 45px;
    }
}

.product-card-hastek {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
    position: relative;
    border: 1px solid #eee;
}

.product-card-hastek:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card-hastek .card-img-link {
    display: block;
    position: relative;
    background: #fff;
    padding: 30px;
}

.product-card-hastek .badge-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
}

.product-card-hastek .image-box {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-hastek .image-box img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.product-card-hastek .card-body {
    padding: 20px;
}

.product-card-hastek .cat-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-card-hastek .prod-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Fix lint */
    -webkit-box-orient: vertical;
}

.product-card-hastek .prod-title a {
    color: #333;
    text-decoration: none;
}

.product-card-hastek .card-footer-hastek {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-card-hastek .card-footer-hastek a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.btn-all-products {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-all-products:hover {
    background: var(--primary);
    color: #fff !important;
}

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

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

/* ========== Product Detail ========== */
.product-detail .product-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.product-detail .product-gallery {
    background: var(--lighter-gray);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
}

.product-detail .product-gallery img {
    max-height: 400px;
    object-fit: contain;
}

.product-detail .product-info {
    padding: 20px 0;
}

.product-detail .product-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-medium);
}

.product-detail .product-description strong {
    color: var(--text-dark, #222);
    font-weight: 700;
}

.product-detail .product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.product-detail .product-description table th,
.product-detail .product-description table td {
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.product-detail .product-description table th {
    background: var(--lighter-gray, #f8f9fa);
    font-weight: 600;
    color: var(--text-dark, #222);
}

.product-detail .product-description table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.product-detail .product-description ul,
.product-detail .product-description ol {
    padding-left: 20px;
    margin: 12px 0;
}

.product-detail .product-description li {
    margin-bottom: 6px;
}

.product-detail .product-description h2,
.product-detail .product-description h3 {
    margin: 20px 0 10px;
    font-weight: 700;
    color: var(--text-dark, #222);
}

.product-detail .section-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-detail .section-body table th,
.product-detail .section-body table td {
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.product-detail .section-body table th {
    background: var(--lighter-gray, #f8f9fa);
    font-weight: 600;
}

.product-detail .specs-table {
    width: 100%;
    margin: 20px 0;
}

.product-detail .specs-table th,
.product-detail .specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.product-detail .specs-table th {
    background: var(--lighter-gray);
    font-weight: 600;
    width: 35%;
}

/* ========== Services Section ========== */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 30px;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== CTA Box (Sidebar) ========== */
.cta-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cta-box .cta-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--white);
}

.cta-box h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cta-box p {
    color: var(--text-medium);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ========== Blog Cards ========== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.blog-card .card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.blog-card .card-img-wrap .date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.blog-card .card-body {
    padding: 24px;
}

.blog-card .card-body .blog-category {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card .card-body h3 {
    font-size: 17px;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.blog-card .card-body h3 a {
    color: var(--text-dark);
}

.blog-card .card-body h3 a:hover {
    color: var(--primary);
}

.blog-card .card-body p {
    color: var(--text-medium);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    margin-top: 12px;
}

.blog-card .read-more:hover {
    gap: 10px;
}

/* ========== Contact Page ========== */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item .icon-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--lighter-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.contact-info-item h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.contact-info-item p {
    color: var(--text-medium);
    font-size: 14px;
    margin: 0;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form .form-control {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.contact-form label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

/* ========== Footer ========== */
.footer-contact {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 0;
    color: var(--white);
}

.footer-contact-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.footer-contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.footer-contact-card i {
    font-size: 32px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-contact-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.footer-contact-card a,
.footer-contact-card p a,
.footer-contact a {
    color: #fff !important;
    text-decoration: none;
}

.footer-contact-card a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: underline;
}

.main-footer {
    background: var(--dark);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.main-footer h5 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-footer .footer-links {
    list-style: none;
    padding: 0;
}

.main-footer .footer-links li {
    margin-bottom: 8px;
}

.main-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-footer .footer-links a::before {
    content: '›';
    color: var(--primary);
    font-weight: bold;
}

.main-footer .footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.main-footer .newsletter-form {
    display: flex;
    gap: 8px;
}

.main-footer .newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--white);
    font-size: 14px;
}

.main-footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.main-footer .newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.main-footer .newsletter-form button:hover {
    background: var(--primary-light);
}

.main-footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.main-footer .social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: var(--transition);
}

.main-footer .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ========== Stock Banner ========== */
.stock-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stock-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stock-banner h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
}

.stock-banner p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

/* ========== Category Icons Section ========== */
.category-icons {
    padding: 50px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.category-icon-item {
    text-align: center;
    padding: 20px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.category-icon-item:hover {
    background: var(--lighter-gray);
}

.category-icon-item .icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--lighter-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.category-icon-item:hover .icon-wrap {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Top Bar */
.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
}

.topbar-contact a {
    text-decoration: none;
    color: #444;
    transition: var(--transition);
}

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

.topbar-actions {
    height: 100%;
}

.topbar-btn {
    display: flex;
    align-items: center;
    padding: 0 25px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
    height: 100%;
    transition: var(--transition);
}

.company-profile-btn {
    background: #777;
}

.company-profile-btn:hover {
    background: #555;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.category-icon-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========== About Page ========== */
.about-content {
    font-size: 15px;
    line-height: 2;
    color: var(--text-medium);
}

.about-content h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px 0 15px;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin: 10px 5px;
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Search Overlay ========== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-overlay .search-form {
    width: 90%;
    max-width: 600px;
}

.search-overlay .search-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--white);
    color: var(--white);
    font-size: 2rem;
    padding: 16px 0;
    outline: none;
    font-family: var(--font-heading);
}

.search-overlay .search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay .close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay .close-search:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

/* ========== WhatsApp Floating Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    color: var(--white);
}

/* ========== No Data / Empty State ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-medium);
    font-weight: 600;
}

.empty-state p {
    color: var(--text-light);
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .main-navbar .nav-link {
        padding: 12px 16px !important;
    }

    .main-navbar .nav-link.active::after {
        display: none;
    }

    .hero-slider .carousel-item {
        min-height: auto;
    }

    .hero-slider .slide-content {
        min-height: auto;
        padding: 30px 0;
    }

    .hero-slider .slide-text h2 {
        font-size: 1.8rem;
    }

    .hero-slider .slide-image {
        margin-top: 30px;
    }

    .hero-slider .slide-image img {
        max-height: 280px;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .category-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .footer-contact-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-slider .slide-text h2 {
        font-size: 1.5rem;
    }

    .hero-slider .slide-text p {
        font-size: 14px;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .product-card .card-img-wrap {
        height: 180px;
    }

    .contact-form {
        padding: 24px;
    }

    .main-footer {
        padding: 40px 0 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        right: 80px;
        bottom: 20px;
    }

    .stock-banner h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hero-slider .slide-image img {
        max-height: 200px;
    }

    .product-card .card-img-wrap {
        height: 150px;
    }

    .footer-contact {
        padding: 30px 0;
    }
}

/* ========== Cookie Notice ========== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 0;
    z-index: 9998;
    font-size: 13px;
    display: none;
}

.cookie-notice.show {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-notice .btn-accept-cookie {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-notice .btn-accept-cookie:hover {
    background: var(--primary-dark);
}

/* Hastek Nav Layout Revision */
.main-nav-hastek {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container-inner {
    display: flex;
    align-items: stretch;
    height: 95px;
    /* Fixed height for consistency */
}

.nav-logo-area {
    padding: 0 60px;
    display: flex;
    align-items: center;
    background: #fff;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.nav-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* ========== Category Showcase Hastek Style ========== */
.category-showcase {
    padding-top: 50px;
    background: #fff;
}

.category-nav-wrapper {
    position: relative;
    border: none;
    margin-bottom: 0;
    overflow: visible;
}

.category-nav-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; /* Center items if they don't fill the full width */
    align-items: stretch;
    overflow-x: clip;
    width: 100%;
    gap: 8px; /* Slightly larger gap since they have max-width now */
}

.category-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-nav-item {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    max-width: 160px; /* Prevent massive buttons if few categories exist */
    min-height: 80px;
    padding: 8px 3px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-nav-item .icon-box {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.category-nav-item .icon-box i,
.category-nav-item .icon-box img {
    font-size: 1.2rem;
    color: #555;
    max-height: 100%;
}

.category-nav-item .name {
    font-size: 9px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    padding: 0 2px;
    word-break: break-word;
    white-space: normal;
    text-transform: none !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
}

/* Mobile: horizontal scroll */
@media (max-width: 767px) {
    .category-nav-scroll {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .category-nav-item {
        flex: 0 0 75px;
        width: 75px;
    }
}

.category-nav-item.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-nav-item.active .icon-box i,
.category-nav-item.active .name {
    color: #fff !important;
}

/* Triangle indicator */
.category-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
    z-index: 10;
}

.category-nav-item.active .icon-box i,
.category-nav-item.active .name {
    color: #fff !important;
}

/* Coordinated Content Area */
.category-content-area {
    padding: 60px 0;
    border-top: none;
}

.category-content-item {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 400px;
}

.category-content-item.active {
    display: flex;
}

.cat-info-col {
    padding-right: 40px;
}

@media (max-width: 991px) {
    .category-content-item {
        min-height: auto;
    }

    .cat-info-col {
        padding-right: 15px;
        /* reset right padding on mobile */
        margin-bottom: 30px;
        /* add spacing before the image */
    }

    .cat-title {
        font-size: 1.6rem;
    }
}

.cat-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: left;
}

.cat-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.cat-image-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.cat-image-wrap {
    width: 100%;
    max-width: 600px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.cat-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
}

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

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

.nav-menu-area {
    flex-grow: 1;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the menu */
    position: relative;
    padding-left: 0;
}

/* Precise Slant: Bottom-left to top-right */
.nav-menu-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: var(--primary);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-menu>li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu>li>a {
    color: #fff !important;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 0.8px;
    position: relative;
}

.nav-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu>li>a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 4px;
    background: #fff;
}


/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    list-style: none;
    display: none;
    animation: fadeInDown 0.3s ease;
    z-index: 1060;
}

.has-dropdown:hover>.dropdown-menu-custom {
    display: block;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dark) !important;
    transition: var(--transition);
}

.dropdown-menu-custom li a:hover {
    background: var(--lighter-gray);
    color: var(--primary) !important;
    padding-left: 24px;
}

.dropdown-menu-custom .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

/* ========== Mega Menu (Ürünler) ========== */
.has-mega-menu {
    position: static !important;
}

.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 24px 30px;
    list-style: none;
    display: none;
    animation: fadeInDown 0.3s ease;
    z-index: 1060;
    column-count: 3;
    column-gap: 20px;
}

.has-mega-menu:hover>.mega-menu-dropdown {
    display: block;
}

.mega-menu-dropdown li {
    break-inside: avoid;
}

.mega-menu-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: var(--transition);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.mega-menu-dropdown li a:hover {
    background: rgba(139, 58, 58, 0.06);
    color: var(--primary) !important;
    border-left-color: var(--primary);
    padding-left: 20px;
}

.mega-menu-dropdown li a i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* Search trigger */
.nav-search-trigger a {
    font-size: 18px;
    padding: 18px 14px !important;
    cursor: pointer;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.search-form {
    width: 90%;
    max-width: 600px;
}

.search-form form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--btn-hover);
}

/* ========== Preloader (ID) ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========== Product Gallery ========== */
.product-gallery-main {
    background: var(--lighter-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    max-height: 380px;
    object-fit: contain;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.product-gallery-main img:hover {
    transform: scale(1.05);
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-gallery-thumbs .thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    background: var(--lighter-gray);
}

.product-gallery-thumbs .thumb-item:hover,
.product-gallery-thumbs .thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(227, 30, 36, 0.2);
}

.product-gallery-thumbs .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========== Product Specs Enhanced ========== */
.spec-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}

.spec-card h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.spec-card h4 i {
    color: var(--primary);
    margin-right: 8px;
}

/* ========== Dynamic Footer ========== */
.footer-contact {
    background: var(--primary);
}

.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

/* ========== Mobile Navigation ========== */
@media (max-width: 991px) {
    .topbar {
        height: auto;
        padding: 10px 15px;
    }
    .topbar .container-fluid {
        flex-direction: column;
        gap: 10px;
    }
    .topbar .contact-info {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .topbar .contact-info a {
        margin-right: 0 !important;
        font-size: 13px;
    }
    .topbar .top-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .btn-company-profile, .btn-whatsapp {
        margin-right: 0 !important;
    }

    .nav-container-inner {
        justify-content: space-between;
    }

    .nav-logo-area {
        padding: 0 20px;
        width: 100%;
        justify-content: space-between;
        background: #fff;
    }

    .nav-menu-area {
        position: static;
        background: none;
        flex-grow: 0;
    }

    .nav-menu-area::before {
        display: none;
    }

    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 32px;
        color: var(--primary);
        padding: 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff; /* Clean white background instead of primary red */
        border-top: 1px solid #eaeaea;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1060;
        padding-bottom: 20px;
        height: auto;
        min-height: max-content;
        max-height: calc(100vh - 95px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>li {
        display: block;
        height: auto;
        width: 100%;
    }

    .nav-menu>li>a {
        padding: 18px 20px;
        border-bottom: 1px solid #eaeaea;
        color: #333 !important;
        font-weight: 700;
        font-size: 17px;
        display: flex;
        justify-content: space-between; /* push arrow to right */
    }

    .nav-menu>li>a:hover, .nav-menu>li.open>a {
        color: var(--primary) !important;
        background: #fafafa;
    }

    .dropdown-menu-custom, .mega-menu-dropdown {
        position: static;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
        box-shadow: none;
        border-radius: 0;
        display: none;
        background: #fcfcfc;
        padding: 0;
        margin: 0 !important;
        column-count: 1 !important;
        border-bottom: 2px solid #eee;
    }

    .has-dropdown.open>.dropdown-menu-custom, .has-mega-menu.open>.mega-menu-dropdown {
        display: block;
    }

    .dropdown-menu-custom li a, .mega-menu-dropdown li a {
        color: #555 !important;
        font-size: 15px;
        font-weight: 500;
        padding: 14px 20px 14px 35px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .dropdown-menu-custom li a:hover, .mega-menu-dropdown li a:hover {
        background: #f5f5f5;
        color: var(--primary) !important;
    }

    .dropdown-menu-custom li a i, .mega-menu-dropdown li a i {
        color: var(--primary);
        margin-right: 10px;
    }

    .topbar-contact span:not(:first-child) {
        display: none;
    }
}

/* ========== Custom Hastek Sidebar Accordion ========== */
.category-sidebar-title-hastek {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    color: #333;
}
.category-list-hastek {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-item-hastek {
    margin-bottom: 6px;
    border-radius: 4px;
    overflow: hidden;
}
.cat-header-hastek {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.cat-link-hastek {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 14px 15px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.cat-link-hastek:hover, .cat-link-hastek.active {
    color: var(--primary);
}
.cat-icon-hastek {
    margin-right: 12px;
    font-size: 1.2rem;
    color: #777;
    width: 30px;
    text-align: center;
}
.cat-link-hastek:hover .cat-icon-hastek, .cat-link-hastek.active .cat-icon-hastek {
    color: var(--primary);
}
.cat-toggle-btn-hastek {
    background: transparent;
    border: none;
    border-left: 1px solid #ebebeb;
    padding: 0 16px;
    height: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}
.cat-toggle-btn-hastek:hover {
    color: var(--primary);
    background: #fafafa;
}
.subcategory-list-hastek {
    list-style: none;
    padding: 10px 0 10px 0;
    margin: 0;
    background: transparent;
}
.subcategory-list-hastek li {
    margin-bottom: 6px;
}
.subcategory-list-hastek li:last-child {
    margin-bottom: 0;
}
.sub-link-hastek {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 15px 10px 10px;
    border-radius: 4px;
    border: 1px solid #ebebeb;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.sub-link-hastek:hover, .sub-link-hastek.active {
    border-color: #ddd;
    color: #222;
}
.sub-indicator {
    background: var(--primary);
    color: #fff;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin-right: 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.sub-text {
    font-weight: 500;
}