.kartela-buton {
    width: 28%;
    height: 40px;
    margin-left: 100px;
    transition: background-color 0.8s, color 0.8s;
    /* Geçiş efekti */
    background-color: #e1251b;
    display: flex;
    /* Flexbox kullanarak içeriği hizalayalım */
    align-items: center;
    /* Dikey hizalama */
    justify-content: center;
    /* Yatay hizalama */
    text-decoration: none;
    /* Alt çizgiyi kaldır */
    color: white;
    /* Varsayılan metin rengi */
    border-radius: 6px;
}

.kartela-buton:hover {
    background-color: #004a98;
    /* Hover sırasında arka plan rengi */
    color: #ffffff;
    /* Hover sırasında metin rengi */
}

.kartela-buton a {
    text-decoration: none;
    /* Linkin altını çizmemek için */
    color: inherit;
    /* Ebeveyn rengini miras al */
    display: flex;
    /* Flexbox kullanarak içeriği hizalayalım */
    align-items: center;
    /* Dikey hizalama */
}

.kartela-buton a img {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.kartela-buton a span {
    font-weight: bolder;
}

/* Ana galeri container'ı */
.gallery {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    /* Dikey kaydırma */
    max-height: auto;
    /* Maksimum yükseklik ayarı */
}

/* Her bir küçük resim container'ı */
.image-container {
    width: calc(25% - 20px);
    /* 4 resmi yanyana sığdırmak için */
    padding: 10px;

}

/* Küçük resim */
.thumbnail {
    width: 100%;
    height: 200px;
    cursor: pointer;
}

/* Overlay container */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    /* Dikey kaydırma */
    z-index: 1000;
    /* Diğer içeriklerin üstünde olması için */
}

/* Büyük resim */
.popup {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 50%;
}

/* Altındaki küçük resimler container'ı */
.additional-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
    /* Alt kenara yakın */
    left: 50%;
    /* Orta hizaya getir */
    transform: translateX(-50%);
    /* Merkezden kaydır */
    top: 85%;

}

/* Altındaki küçük resim */
.additional-image {
    width: 150px;
    height: auto;
    margin: 5px;
    cursor: pointer;
    border: 5px solid rgb(0, 17, 255);

}

/* Popup kapatma düğmesi */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 35px;
    z-index: 1001;
    /* Popup'ın üstünde olması için */
}

/* ===== Hakkımızda Sayfası ===== */

.section-title {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.highlight-text {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
}

.values-item {
    margin-bottom: 25px;
}

.values-item strong {
    font-size: 18px;
    color: #000;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.why-list li {
    margin-bottom: 10px;
    font-weight: 600;
}

/* ===== Header Layout: Logo Sol - Menü Ortalı ===== */

#Top_bar .top_bar_left,
#Top_bar.is-sticky .top_bar_left {
    display: flex !important;
    align-items: center;
    width: 100% !important;
}

/* Logo: solda, 16:9 oran */
.header-stack #Top_bar .logo,
#Top_bar.is-sticky .logo {
    width: auto !important;
    border-bottom: none !important;
    padding: 10px 30px !important;
    margin: 0 !important;
    flex-shrink: 0;
}

#Top_bar #logo,
#Top_bar.is-sticky #logo {
    height: auto !important;
    line-height: normal !important;
    padding: 10px 0 !important;
}

#Top_bar #logo img,
#Top_bar.is-sticky #logo img {
    width: 107px !important;
    height: 60px !important;
    max-height: none !important;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

/* Sticky header: ana menü ile aynı yükseklik */
#Top_bar.is-sticky {
    height: auto !important;
}

/* Menü: ortala */
.header-stack #Top_bar .menu_wrapper,
#Top_bar.is-sticky .menu_wrapper {
    clear: none !important;
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

#Top_bar .menu>li {
    display: inline-block;
    float: none !important;
}

.header-stack #Top_bar .menu_wrapper .menu>li>a,
#Top_bar.is-sticky .menu_wrapper .menu>li>a {
    padding: 20px 15px !important;
    line-height: normal !important;
}

#Top_bar.is-sticky .menu>li>a,
#Top_bar.is-sticky .menu>li>a span {
    line-height: normal !important;
}

/* Mobil */
@media only screen and (max-width: 767px) {
    #Top_bar .top_bar_left {
        flex-wrap: wrap;
    }

    .header-stack #Top_bar .logo {
        width: 100% !important;
        text-align: center;
    }

    .header-stack #Top_bar .menu_wrapper {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Footer: Ortalı ve Aralıklı ===== */

#Footer .widgets_wrapper .container {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 20px;
}

#Footer .widgets_wrapper .container .column {
    float: none !important;
    text-align: center;
    margin: 0 !important;
}

#Footer .widgets_wrapper .container .column.one-fourth {
    width: auto !important;
    min-width: 200px;
    max-width: 300px;
}

#Footer .widgets_wrapper .textwidget ul {
    margin-left: 0 !important;
    width: auto !important;
    text-align: center;
}

#Footer .footer_copy {
    text-align: center;
}

#Footer .footer_copy .container-footer {
    text-align: center;
}

/* ===== Ürün listesi: her satırda 3 görsel, eşit boyutlu ===== */
.products_wrapper .products.grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: start;
}

.products_wrapper .products.grid::before,
.products_wrapper .products.grid::after {
    display: none !important;
    content: none !important;
}

.products_wrapper .products.grid .product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
    contain: layout style paint;
}

.products.grid .product .hover_box_product {
    width: 100%;
}

.products.grid .product .hover_box_product .hover_box_wrapper {
    width: 100% !important;
    overflow: hidden;
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
}

.products.grid .product .hover_box_product .hover_box_wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    display: block;
    object-fit: cover;

}

/* ===== Logo hover overlay (CSS ile, ayrı img gerektirmez) ===== */
.products.grid .product .hover_box_product .hover_box_wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92) url('../images/ankara-sogutma-logo.webp') no-repeat center center;
    background-size: 60%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    z-index: 2;
    will-change: opacity;
    transform: translateZ(0);
}

.products.grid .product .hover_box_product .hover_box_wrapper:hover::after {
    opacity: 1;
}

/* Ürün kodu (PR-001 vb.) gizlendi */
.products.grid .product .desc {
    display: none !important;
}

/* ===== Ürün görseli lightbox (sayfa açılmaz) + Zoom ===== */
.product-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.product-lightbox-overlay.is-open {
    display: flex;
}

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

/* Zoom wrapper */
.product-lightbox-img-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
    cursor: zoom-in;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.product-lightbox-img-wrapper.is-zoomed {
    cursor: grab;
}

.product-lightbox-img-wrapper.is-zoomed:active {
    cursor: grabbing;
}

.product-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: none;
    -webkit-user-drag: none;
}

/* Zoom yüzde göstergesi */
.product-lightbox-zoom-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-lightbox-zoom-indicator.is-visible {
    opacity: 1;
}

/* Zoom yardım metni */
.product-lightbox-zoom-hint {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    z-index: 10;
}

.product-lightbox-zoom-hint.is-visible {
    opacity: 1;
}

/* Masaüstünde mobile mesaj gizle, mobilde masaüstü mesaj gizle */
.zoom-hint-mobile {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .zoom-hint-desktop {
        display: none;
    }

    .zoom-hint-mobile {
        display: inline;
    }
}

.product-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 11;
}

.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Ürün listesi: tablette 2, mobilde 1 sütun */
@media only screen and (max-width: 959px) {
    .products_wrapper .products.grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .products_wrapper .products.grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Mobil footer */
@media only screen and (max-width: 767px) {
    #Footer .widgets_wrapper .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #Footer .widgets_wrapper .container .column.one-fourth {
        max-width: 100%;
        width: 100% !important;
    }
}

/* ===== Anasayfa Slider Görsel Hizalaması ===== */
.shop_slider .hover_box_wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.shop_slider .hover_box_wrapper {
    height: 270px !important;
    /* HTML içindeki inline style ile aynı veya override */
    width: 100% !important;
    max-width: 350px !important;
}

/* ===== Body Padding Reset ===== */
body {
    padding-bottom: 0 !important;
}