body.theme-dark {
    background: #181a1b;
    color: #f1f1f1;
}

body.theme-dark .navbar,
body.theme-dark footer {
    background: #23272b !important;
}

body.theme-dark .banner {
    background-image: url('resim/banner.png') !important;
    background-size: cover;
    background-position: center;
}

body.theme-dark .banner-overlay {
    background: rgba(13, 30, 53, 0.55);
}

body.theme-dark .card {
    background: #23272b;
    color: #f1f1f1;
}

body.theme-dark .slider {
    background: #23272b !important;
}

body.theme-dark .bg-light {
    background: #23272b !important;
    color: #f1f1f1 !important;
}

body.theme-dark .form-control {
    background: #23272b;
    color: #f1f1f1;
    border-color: #444;
}

body.theme-dark .form-control:focus {
    background: #23272b;
    color: #f1f1f1;
}

body.theme-light {
    background: #f8f9fa;
    color: #23272b;
}

.banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 70vh;
}

@media (max-width: 768px) {
    .banner {
        min-height: 60vh;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 53, 0.45);
    z-index: 0;
}

.banner .container {
    position: relative;
    z-index: 1;
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-wrapper {
    height: 80px;
}

.brand-logo {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    height: 60px;
    object-fit: contain;
    filter: grayscale(0.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
    margin-left: 32px;
    margin-right: 32px;
}

.brand-item {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.brand-item:hover {
    transform: scale(1.05);
    background: rgba(0, 123, 255, 0.1);
}

.brand-item.active {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 15px;
}

.brand-item h5 {
    margin-top: 10px;
    font-weight: 600;
    color: #333;
}

body.theme-dark .brand-item h5 {
    color: #f1f1f1;
}

.filter-controls {
    margin-top: 20px;
}

.filter-controls .btn {
    margin: 0 5px;
    border-radius: 25px;
    padding: 8px 20px;
}

#filter-message {
    margin-bottom: 20px;
    border-radius: 10px;
}

.gallery-item {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .brand-logo {
        max-height: 40px;
        height: 40px;
        margin-left: 16px;
        margin-right: 16px;
    }
}

.brand-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.slider-track {
    display: flex;
    animation: slide 18s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Tema toggle butonu için */

#theme-toggle {
    z-index: 1050;
    border: 2px solid #f7b731;
    background: #fff;
    color: #f7b731;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background 0.2s, color 0.2s, border 0.2s;
}

body.theme-dark #theme-toggle {
    background: #23272b;
    color: #fff;
    border: 2px solid #fff;
}

#theme-toggle-icon ion-icon {
    font-size: 2rem;
    transition: color 0.2s;
    vertical-align: middle;
}

#theme-toggle.btn:hover,
#theme-toggle.btn:focus {
    background: #f7b731;
    color: #fff;
    border-color: #f7b731;
}

body.theme-dark #theme-toggle.btn:hover,
body.theme-dark #theme-toggle.btn:focus {
    background: #fff;
    color: #23272b;
    border-color: #fff;
}


/* Footer sosyal medya ikonları */

footer a {
    opacity: 0.8;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 1;
}

footer a ion-icon {
    font-size: 1.5rem;
    vertical-align: middle;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    background: #25d366;
    color: #fff;
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1ebe57;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.whatsapp-float ion-icon {
    font-size: 2.2rem;
}

.instagram-float {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 1050;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.2s;
    text-decoration: none;
}

.instagram-float:hover {
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.instagram-float ion-icon {
    font-size: 2.2rem;
}

.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 156px;
    z-index: 1050;
    background: #0d6efd;
    color: #fff;
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.scroll-top-btn.show {
    display: flex;
}

.scroll-top-btn:hover {
    background: #084298;
}

.scroll-top-btn ion-icon {
    font-size: 1.6rem;
}

@media (max-width: 576px) {
    .whatsapp-float,
    .instagram-float,
    .scroll-top-btn {
        right: 12px;
    }
    .whatsapp-float {
        bottom: 12px;
    }
    .instagram-float {
        bottom: 78px;
    }
    .scroll-top-btn {
        bottom: 144px;
    }
}

.navbar {
    background: #fff !important;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #333 !important;
    font-weight: 700;
}

.navbar .btn-light {
    background: #fff !important;
    border: 2px solid #e9ecef !important;
    color: #333 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .btn-light:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.theme-dark .navbar .btn-light {
    background: #495057 !important;
    border-color: #6c757d !important;
    color: #f8f9fa !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.theme-dark .navbar .btn-light:hover {
    background: #6c757d !important;
    border-color: #868e96 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.theme-dark .navbar {
    background: #23272b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.theme-dark .navbar-brand {
    color: #f8f9fa !important;
}

body.theme-dark .navbar.scrolled {
    background: #23272b !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}


/* Responsive navbar */

@media (max-width: 768px) {
    .navbar .btn-light {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    .navbar-brand span {
        font-size: 1rem;
    }
}

.slider,
#instagram,
#hizmetler,
#hakkimizda,
#iletisim {
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .slider,
    #instagram,
    #hizmetler,
    #hakkimizda,
    #iletisim {
        margin-top: 1.2rem;
    }
}

.galeri-kart,
.hizmetler-kart {
    transition: transform 0.25s cubic-bezier(.4, 1.5, .5, 1);
    cursor: pointer;
}

.galeri-kart:hover,
.hizmetler-kart:hover {
    transform: scale(1.07);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

#hakkimizda .about-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-radius: 1rem;
}

#hakkimizda .about-img:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    #hakkimizda .about-img {
        margin-bottom: 0;
    }
}

#hakkimizda .about-img-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 767px) {
    #hakkimizda .about-img-row {
        flex-direction: column;
        gap: 1rem;
    }
}

.contact-info {
    list-style: none;
    padding: 0;
    font-size: 1.4rem;
}

.contact-info li {
    margin-bottom: 1.5rem;
}

.contact-info li ion-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-right: 0.8rem;
    vertical-align: middle;
}

.contact-info .social-buttons a {
    font-size: 3.5rem;
    padding: 1.2rem 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    line-height: 1;
}

.contact-info .social-buttons .btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.contact-info .social-buttons .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}


/* Katalog Önizleme Kartı */

.catalog-preview-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.catalog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.catalog-feature {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.catalog-feature:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.catalog-feature h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.catalog-feature p {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}


/* Katalog Buton Stilleri */

.catalog-preview-card .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog-preview-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}


/* Karanlık tema için katalog önizleme */

body.theme-dark .catalog-preview-card {
    background: linear-gradient(135deg, #23272b, #2c3136);
    color: #f1f1f1;
    border-color: #404040;
}

body.theme-dark .catalog-feature h5 {
    color: #f1f1f1;
}

body.theme-dark .catalog-feature p {
    color: #4dabf7;
}

body.theme-dark .catalog-feature:hover {
    background: rgba(0, 123, 255, 0.2);
}


/* Karanlık tema için katalog önizleme */

body.theme-dark .catalog-preview-card {
    background: linear-gradient(135deg, #23272b, #2c3136);
    border-color: #404040;
}

body.theme-dark .catalog-feature:hover {
    background: rgba(0, 123, 255, 0.2);
}

body.theme-dark .catalog-feature h5 {
    color: #f1f1f1;
}

body.theme-dark .catalog-feature p {
    color: #4dabf7;
}


/* Motor Sticker Slider Stilleri */

.sticker-slider-wrapper {
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    overflow: hidden;
    max-width: 100%;
}

.sticker-slider-track {
    display: flex;
    animation: stickerSlide 25s linear infinite;
    gap: 30px;
    will-change: transform;
}


/* Katalog özel: kare önizleme slayt kutusu */

#katalog-thumb-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

#katalog-thumb-track {
    position: relative;
    width: 640px;
    height: 240px;
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .4));
    box-shadow: 0 8px 26px rgba(13, 110, 253, 0.12);
    overflow: hidden;
}

#katalog-thumb-slider .sticker-slider-track {
    animation: none;
    gap: 0;
    display: block;
}

#katalog-thumb-track .thumb-carousel {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s ease;
    will-change: transform;
}

#katalog-thumb-track .thumb-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#katalog-thumb-track .thumb-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#katalog-thumb-track .thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: 0;
    cursor: pointer;
}

#katalog-thumb-track .thumb-nav.prev {
    left: 8px;
}

#katalog-thumb-track .thumb-nav.next {
    right: 8px;
}

@media (max-width: 768px) {
    #katalog-thumb-track {
        width: 520px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    #katalog-thumb-track {
        width: 360px;
        height: 160px;
    }
}

.sticker-image {
    max-height: 140px;
    max-width: 200px;
    width: auto;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sticker-image:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.2));
}

@keyframes stickerSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Karanlık tema için sticker slider */

body.theme-dark .sticker-slider-wrapper {
    background: rgba(35, 39, 43, 0.8);
    border-color: rgba(0, 123, 255, 0.3);
}

body.theme-dark .sticker-image {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

body.theme-dark .sticker-image:hover {
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}


/* Responsive tasarım için sticker slider */

@media (max-width: 768px) {
    .sticker-slider-wrapper {
        height: 160px;
        padding: 25px;
    }
    .sticker-image {
        max-height: 100px;
        height: 100px;
        max-width: 150px;
    }
    .sticker-slider-track {
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .sticker-slider-wrapper {
        height: 130px;
        padding: 20px;
    }
    .sticker-image {
        max-height: 80px;
        height: 80px;
        max-width: 120px;
    }
    .sticker-slider-track {
        gap: 12px;
    }
}


/* Yan Yana Fotoğraf Slider Stilleri */

.photo-slider-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.photo-container {
    position: relative;
    width: 400px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.photo-container:hover {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 16px 45px rgba(0, 123, 255, 0.2);
    transform: translateY(-5px);
}

.photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8) rotate(2deg);
    filter: brightness(0.8) contrast(0.9);
}

.photo-slide.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1) contrast(1);
}

.photo-container:hover .photo-slide.active {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.25);
}


/* Karanlık tema için fotoğraf slider */

body.theme-dark .photo-container {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #2d3748, #1a202c);
}

body.theme-dark .photo-container:hover {
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 16px 45px rgba(0, 123, 255, 0.3);
}


/* Responsive tasarım için fotoğraf slider */

@media (max-width: 768px) {
    .photo-slider-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .photo-container {
        width: 350px;
        height: 240px;
    }
}

@media (max-width: 576px) {
    .photo-container {
        width: 300px;
        height: 200px;
    }
}


/* Katalog Sayfası Stilleri */

.catalog-banner {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 500px;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail-item {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.thumbnail-item:hover {
    border-color: #007bff;
    transform: translateX(5px);
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.main-photo-container {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(0, 123, 255, 0.2);
}

.main-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transform: scale(1.05);
}

.main-photo.active {
    opacity: 1;
    transform: scale(1);
}


/* Marka Logoları */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.brand-item .brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0);
    transform: scale(1.1);
}

.brand-item h5 {
    color: #333;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}


/* Fotoğraf Galerisi */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}


/* Karanlık tema için katalog */

body.theme-dark .catalog-banner {
    background: linear-gradient(135deg, #23272b, #2c3136);
}

body.theme-dark .brand-item {
    background: #23272b;
    color: #f1f1f1;
    border-color: #404040;
}

body.theme-dark .brand-item h5 {
    color: #f1f1f1;
}

body.theme-dark .main-photo-container {
    border-color: rgba(0, 123, 255, 0.4);
}


/* Responsive tasarım */

@media (max-width: 768px) {
    .catalog-banner {
        min-height: 500px;
    }
    .main-photo-container {
        height: 400px;
    }
    .thumbnail-item img {
        height: 100px;
    }
    .brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .main-photo-container {
        height: 350px;
    }
    .thumbnail-item img {
        height: 80px;
    }
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}


/* Tiny phones: stack single column */

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


/* Disable tilt on touch to avoid layout jump */

@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    }
    .gallery-item:hover .gallery-image {
        transform: none;
    }
}


/* Catalog controls */

#catalog-controls {
    margin-top: 10px;
}

#catalog-search::placeholder {
    color: #888;
}

body.theme-dark #catalog-search::placeholder {
    color: #bbb;
}

#result-count {
    font-weight: 500;
}


/* Catalog model filter */

#model-filter {
    max-width: 420px;
}


/* Lightbox */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -36px;
    text-align: center;
    color: #fff;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.lightbox-prev {
    left: -56px;
}

.lightbox-next {
    right: -56px;
}

@media (max-width: 576px) {
    .lightbox-prev {
        left: -36px;
    }
    .lightbox-next {
        right: -36px;
    }
    .lightbox-close {
        top: -32px;
        right: 0;
    }
}


/* Dark theme tweaks */

body.theme-dark .lightbox-caption {
    color: #f1f1f1;
}


/* Catalog images fit */

.gallery-image {
    object-fit: cover;
    width: 100%;
    height: 240px;
}

@media (max-width: 576px) {
    .gallery-image {
        height: 180px;
    }
}


/* Dim old brand items block (we now use selects) */

.brand-logos {
    display: none;
}


/* Catalog Hero */

.catalog-hero {
    background: linear-gradient(135deg, #0d6efd, #003b95);
    color: #fff;
    min-height: 320px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-hero .parallax-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 400px at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%), radial-gradient(800px 300px at 80% 0%, rgba(255, 255, 255, 0.06), transparent 60%), radial-gradient(600px 250px at 20% 0%, rgba(255, 255, 255, 0.05), transparent 60%);
    transform: translateZ(0);
    will-change: transform;
}

.hero-title {
    font-weight: 800;
    letter-spacing: 0.4px;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
}

.hero-counter .h3 {
    font-weight: 800;
}

.hero-counter small {
    color: #6c757d;
}

body.theme-dark .catalog-hero {
    background: linear-gradient(135deg, #1b1f24, #0d1b2a);
    color: #f1f1f1;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .hero-counter small {
    color: #adb5bd;
}


/* Hero image slider */

.hero-slider {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

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


/* Home Katalog 4'lü görseller */

#katalog img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: zoom-in;
}

#katalog img:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}


/* Lightbox (basit) */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2rem;
}

/* Catalog layout refresh */

.catalog-layout .catalog-sidebar {
    position: sticky;
    top: 96px;
    border-radius: 16px;
    background: #fff;
}

.catalog-layout .form-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.catalog-results-meta {
    min-height: 38px;
}

.catalog-empty {
    border: 1px dashed #cfd4da;
    border-radius: 16px;
    background: #fff;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #eef2f6;
}

.gallery-meta {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.2;
    color: #4d5562;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.theme-dark .catalog-layout .catalog-sidebar,
body.theme-dark .gallery-item,
body.theme-dark .catalog-empty {
    background: #23272b;
    border-color: #3a4046;
}

body.theme-dark .catalog-results-meta .text-muted,
body.theme-dark .gallery-meta {
    color: #c3cad3 !important;
}

@media (max-width: 991px) {
    .catalog-layout .catalog-sidebar {
        position: static;
        top: auto;
    }
    .catalog-layout .catalog-sidebar .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    .catalog-hero {
        min-height: 260px;
    }
    .catalog-layout {
        gap: 0.8rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .gallery-image {
        height: 150px;
    }
    .gallery-meta {
        font-size: 0.74rem;
        padding: 0.45rem 0.5rem;
    }
}