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

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

/* ========== CSS Variables (Defaults - overridden by header.php) ========== */
:root {
    --primary: #E31E24;
    --primary-dark: #B71C1C;
    --primary-light: #FF5252;
    --secondary: #1a1a2e;
    --dark: #0f0f23;
    --dark-gray: #2d2d44;
    --medium-gray: #6c757d;
    --light-gray: #f0f2f5;
    --lighter-gray: #f8f9fa;
    --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);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: var(--font-body, 'Inter'), sans-serif;
    --font-heading: var(--font-heading, 'Poppins'), sans-serif;
    /* Dynamic theme vars with defaults */
    --nav-bg: #E31E24;
    --nav-text: #ffffff;
    --nav-active: #E31E24;
    --topbar-bg: #ffffff;
    --topbar-text: #555555;
    --footer-bg: #1a1a2e;
    --footer-text: #cccccc;
    --body-bg: #f4f6f9;
    --btn-primary: #E31E24;
    --btn-hover: #B71C1C;
    --page-header-bg: #E31E24;
    --menu-active: #ffffff;
}

/* ========== 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(--white);
    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;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.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;
}

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

/* ========== Top Bar ========== */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    font-size: 13px;
    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: linear-gradient(135deg, var(--dark) 0%, var(--dark-gray) 50%, var(--medium-gray) 100%);
    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 ========== */
.btn-primary-otto {
    background: var(--primary);
    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: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.35);
}

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

.btn-outline-otto:hover {
    background: var(--primary);
    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: var(--primary);
    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 var(--primary);
    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: var(--primary);
    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: var(--primary);
}

.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: var(--primary);
    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: var(--primary);
    background: rgba(227, 30, 36, 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: 240px;
    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);
}

.product-card .card-img-wrap .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    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: var(--primary);
    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;
    overflow: hidden;
}

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

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

.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;
    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: var(--primary);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* ========== 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: linear-gradient(135deg, var(--primary), var(--primary-light));
    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;
    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);
}

.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);
}

/* ========== Dynamic Topbar ========== */
.topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    font-size: 13px;
    color: var(--topbar-text);
}

.topbar-contact span {
    margin-right: 18px;
    color: var(--topbar-text);
}

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

.topbar-actions {
    display: flex;
    gap: 8px;
}

.topbar-btn {
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.teklif-btn {
    background: var(--secondary);
    color: #fff !important;
}

.teklif-btn:hover {
    background: var(--dark-gray);
    color: #fff !important;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff !important;
}

.whatsapp-btn:hover {
    background: #1da851;
    color: #fff !important;
}

/* ========== Dynamic Main Navigation ========== */
.main-nav {
    background: var(--nav-bg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-nav .container {
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--nav-text);
}

.logo-text span {
    opacity: 0.5;
}

.nav-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--nav-text);
    font-size: 24px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

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

.nav-menu>li>a {
    display: block;
    color: var(--nav-text) !important;
    opacity: 0.9;
    font-weight: 500;
    font-size: 14px;
    padding: 18px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

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

.nav-menu>li>a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--menu-active);
    border-radius: 3px 3px 0 0;
}

/* 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;
}

/* 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) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        z-index: 1060;
    }

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

    .nav-menu>li>a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu-custom {
        position: static;
        box-shadow: none;
        border-radius: 0;
        display: none;
        background: rgba(0, 0, 0, 0.1);
    }

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

    .dropdown-menu-custom li a {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .dropdown-menu-custom li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

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