* {
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--dark);
    border-color: var(--dark);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

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

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

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand .site-logo {
    max-height: var(--logo-height, 45px);
    width: auto;
    object-fit: contain;
}

.footer-brand-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0;
}

.navbar-nav .dropdown-item {
    font-weight: 500;
    padding: 0.45rem 1.1rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: var(--light);
    color: var(--dark);
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-hover:hover > .dropdown-menu,
    .navbar-nav .dropdown-hover:focus-within > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.category-card-lg {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px 25px;
    transition: all 0.3s ease;
}

.category-card-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.category-card-img-top {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 20px;
    background-color: var(--light);
}

/* ===== KATEGORİ CAROUSEL ===== */
.category-carousel-wrapper {
    position: relative;
    padding: 0 10px;
}

.category-carousel {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.category-slide-item {
    text-decoration: none;
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
}

.category-marquee-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.category-marquee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.category-marquee-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--light);
}

.category-marquee-card .category-marquee-icon-fallback {
    width: 100%;
    height: 220px;
    margin: 0;
    border-radius: 0;
}

.category-marquee-info {
    padding: 18px;
    text-align: center;
}

.category-marquee-info h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.category-nav:hover {
    background: var(--dark);
}

.category-nav-prev {
    left: -10px;
}

.category-nav-next {
    right: -10px;
}

@media (max-width: 992px) {
    .category-slide-item {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 576px) {
    .category-slide-item {
        flex: 0 0 100%;
    }

    .category-nav {
        width: 40px;
        height: 40px;
    }
}

.category-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.product-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.footer h5,
.footer h6 {
    color: #fff;
}

.footer a:hover {
    color: var(--accent) !important;
}

/* ===== SİNEMATİK HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 7s ease-out;
}

.hero-bg-fallback {
    background: linear-gradient(135deg, var(--primary), var(--dark));
}

.hero-slide.active .hero-bg {
    transform: scale(1.12);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-gradient-left {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-gradient-right {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-gradient-center {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text-center {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-text-right {
    margin-left: auto;
    text-align: right;
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.hero-slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.hero-slide.active .hero-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 32px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 16px 38px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-btn:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
    gap: 16px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-arrow-prev {
    left: 30px;
}

.hero-arrow-next {
    right: 30px;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.hero-indicator {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.hero-indicator-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.hero-indicator.active .hero-indicator-fill {
    width: 100%;
    transition: width 6s linear;
}

.hero-static {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 100px 0;
    color: #fff;
}

.hero-static .hero-title,
.hero-static .hero-subtitle {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 480px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-text,
    .hero-text-right {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-text-right {
        text-align: center;
    }

    .hero-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .hero-arrow-prev {
        left: 12px;
    }

    .hero-arrow-next {
        right: 12px;
    }

    .hero-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Title Divider */
.title-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 15px;
}

/* Category Card */
.category-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary);
}

/* Product Card */
.product-card {
    border-radius: 12px;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

.product-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-img-main {
    opacity: 1;
    z-index: 1;
}

.product-img-hover {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-img-main {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

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

.product-card:hover .product-image-wrapper img:only-child {
    transform: scale(1.08);
}

/* Feature Box */
.feature-box {
    padding: 30px 15px;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary);
}

/* Branch Card */
.branch-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--dark));
}

/* Galeri şablonu (shortcode) */
.gallery-block {
    position: relative;
    z-index: 1;
}

.gallery-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    cursor: default;
    overflow: hidden;
}

.gallery-item[data-lightbox-src] {
    cursor: zoom-in;
}

.gallery-block .gallery-item img,
.gallery-block .gallery-item .gallery-item-photo {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    pointer-events: none;
}

.gallery-item-title {
    margin-top: 15px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.gallery-effect-shadow:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.gallery-effect-zoom:hover img {
    transform: scale(1.08);
}

.gallery-effect-shadow_zoom:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
    transform: translateY(-6px);
}

.gallery-effect-shadow_zoom:hover img {
    transform: scale(1.05);
}

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: zoom-out;
    padding: 20px;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.gallery-lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 90%;
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    z-index: 10001;
}

.gallery-lightbox .gallery-lightbox-prev {
    left: 16px;
}

.gallery-lightbox .gallery-lightbox-next {
    right: 16px;
}

/* Sertifikalar galerisi (eski) */
.certificates-section {
    border-top: 1px solid #eee;
}

.certificate-frame {
    cursor: zoom-in;
    display: block;
}

.certificate-frame-inner {
    display: block;
    position: relative;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.certificate-frame:hover .certificate-frame-inner {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(46, 125, 50, 0.2);
}

.certificate-frame-inner img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 6px;
    display: block;
}

.certificate-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.certificate-zoom-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.25s;
}

.certificate-frame:hover .certificate-zoom-hint {
    opacity: 1;
}

#certificateLightbox .modal-backdrop.show {
    opacity: 0.92;
}

.certificate-lightbox-content {
    background: transparent !important;
}

.certificate-lightbox-img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    background: #fff;
    padding: 8px;
}

.cert-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.cert-lightbox-nav:hover {
    background: #fff;
}

.cert-lightbox-prev {
    left: 8px;
}

.cert-lightbox-next {
    right: 8px;
}

@media (max-width: 576px) {
    .certificate-frame-inner img {
        height: 160px;
    }

    .cert-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* Thumbnail Gallery */
.thumbnail-img {
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail-img:hover {
    border-color: var(--primary);
}

.page-content img:not(.gallery-item-photo) {
    max-width: 100%;
    height: auto;
}

.page-content .gallery-block .gallery-item-photo {
    max-width: 100%;
}
