:root {
    --primary-color: #E1E0D6;
    --primary-dark: #C8C7BD;
    --text-dark: #333333;
    --text-light: #777777;
    --accent-color: #8B7D6B;
    --background-color:#F9F9F7;
}
        
* { 
    margin: 0;   
    padding: 0;    
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      text-decoration: none;
}





  html {
    font-size: 62.5%;
    
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
    overflow-x: hidden;
    text-decoration: none;
  }



body {
    background-color:#F9F9F7;
    height: 100vh;
    width: 100vw;

  overflow-x: hidden;
}




.hidden{
  display: none !important;
}

/* kod başlangıç masaüstü */


.arka-plan{
    width: 100%;
    height: fit-content;
    display: flex;
    padding: 12rem 7%;
    

}

.urun-container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
     overflow: visible;
    

}

.left-container{
    width: 63%;
}

.right-container{
    width:33%;
}

.gallery{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.büyük-foto{
    width: 100%;
    height: fit-content;
}

.büyük-foto img {
    width: 90%;
    height: auto;
    border-radius: 2rem;
}

.kucuk-foto{
    display: flex;
    flex-wrap: nowrap;
    width: 90%;
    gap: 1rem;
    overflow-x: scroll;
}

.kucuk-foto img {
    width: 13rem;
    max-height:8.66rem;
    border-radius: 1rem;
}



.urun-baslık{
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.urun-acıklama{
    font-size: 1.5rem;
    font-weight: 400;
}






.sepete-ekle-alan {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.urun-fiyat-goster {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sepete-ekle-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.adet-alan {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.adet-btn {
    width: 36px;
    height: 42px;
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.adet-btn:hover { background: #e5e5e5; }

#adet-input {
    width: 50px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

.sepete-ekle-btn {
    padding: 12px 30px;
    background: #222;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s;
    flex: 1;
    max-width: 220px;
}

.sepete-ekle-btn:hover { background: #444; }















/* .tablo-baslık {
    margin-top: 3rem;
    text-align: center;
    font-weight: 700;
    font-size: 2rem;

} */



/* tab links başlanıç  */

/* TAB MENU */
.urun-tab {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-top: 3rem;
}

.urun-tab button {
    flex: 1;
    background: none;
    border: none;
    padding: 14px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    color: #3a3939;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.urun-tab button:hover {
    color:#333333 ;
}

.urun-tab button.active {
    color: #333333;
    border-bottom: 3px solid var(--accent-color);
}

/* TAB CONTENT */
.tabcontent {
    display: none;
    padding-top: 2rem;
    height: auto;
    min-height: 40rem;
}




/* tab links bitiş  */

.right-container table{
    width: 100%;
    height: 10rem;
    text-align: left;
    font-size: 1.5rem;
 /*    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.233) ; */ 
    margin-bottom: 1rem;
  /*   padding-bottom: 1rem; */

    border: none;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}



.right-container table tr:hover{
    background-color: #8b7d6b25;

}

.ozellik{
    width: 100%;  

}

.baslık{
    font-size: 1.8rem ;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;

}


.ozellik .satir{
    display: flex;
    font-size: 1.5rem;
}

.ozellik .satir :not(:last-child) {
    margin-bottom: 3rem;
}

.ozellik .satir .bold{
    font-weight: bold;
    width: 30%;
}

.ozellik .satir .lighter{
    width: 70%;
}




/* benzer ürünler başlangıç  */






div.scroll-container {
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 7rem 0;
  max-width: 100%;
}



.scroll-container .highlighter-baslik{
  font-size: 2rem;
  font-weight: bold;
  text-align: center !important;
  margin-top: 5rem;
  width: fit-content;
  margin-bottom: 2rem;
  position: sticky;
  left: 2rem;
}


div.scroll-container .wrap{
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-height: fit-content;
  gap: 1rem;
}

div.scroll-container div.highlighter-urun {
  width: 16vw ;
  height:auto;
  margin-bottom: 1rem;
}

div.scroll-container div.highlighter-urun img {
  padding: 0;
  width: 15vw;
  border-radius: 1rem;
}











.highlighter-urun {
  position: relative;
  width: 50%;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff59;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.highlighter-urun:hover .overlay {
  height: 20%;
}

.text {
  color: rgb(0, 0, 0);
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}



/* benzer ürünler bitiş  */





/* responsive tasarım başlangıç  */



@media (min-width: 320px) and (max-width: 480px) {

    /* ─── GENEL SAYFA ─── */
    .arka-plan {
        width: 100%;
        height: fit-content;
        display: flex;
        padding: 10rem 0 4rem 0;
    }

    .urun-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 4%;
        overflow: visible;
        height: auto;
    }

    /* ─── SOL: GALERİ ─── */
    .left-container {
        width: 100%;
    }

    .product-container {
        display: flex;
        width: 100%;
    }

    .gallery {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .büyük-foto {
        width: 100%;
        height: fit-content;
    }

    .büyük-foto img {
        width: 100%;
        height: auto;
        border-radius: 1rem;
    }

    .kucuk-foto {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0.8rem;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .kucuk-foto::-webkit-scrollbar {
        display: none;
    }

    .kucuk-foto img {
        width: 11rem;
        height: auto;
        border-radius: 0.5rem;
        flex-shrink: 0;
    }

    /* ─── SAĞ: ÜRÜN BİLGİLERİ ─── */
    .right-container {
        width: 100%;
        height: auto;
        margin-top: 3rem;
        overflow: visible;
    }

    .urun-baslık {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .urun-acıklama {
        font-size: 1.5rem;
        font-weight: 400;
        line-height: 1.6;
    }

    /* ─── SEPETE EKLE ALANI ─── */
    .sepete-ekle-alan {
        margin: 15px 0;
        padding: 15px 0;
    }

    .urun-fiyat-goster {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .sepete-ekle-form {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .sepete-ekle-btn {
        flex: 1;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* ─── MODÜL SEÇİCİ ─── */
    .modul-secici {
        padding: 15px;
        margin: 15px 0;
    }

    .modul-secici-baslik {
        font-size: 12px;
    }

    .modul-satir {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .modul-sol {
        width: 100%;
    }

    .modul-sag {
        width: 100%;
        justify-content: flex-end;
    }

    .modul-adi {
        font-size: 13px;
    }

    .modul-birim-fiyat {
        font-size: 1.1rem;
    }

    .modul-fiyat {
        min-width: 70px;
        font-size: 13px;
    }

    .fiyat-ozet-toplam {
        font-size: 16px;
    }

    /* ─── TAB MENÜ ─── */
    .urun-tab {
        margin-top: 2rem;
    }

    .urun-tab button {
        font-size: 1.3rem;
        padding: 12px 8px;
    }

    /* ─── TAB İÇERİKLERİ ─── */
    /* KRİTİK: height sabit olmamalı, içerik ne kadar uzunsa o kadar açılmalı */
    .tabcontent {
        display: none;
        padding-top: 1.5rem;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* ─── ÖLÇÜLER TABLOSU ─── */
    .olcu-tablo-wrap {
        margin-top: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .olcu-tablo-wrap table {
        min-width: 100%;
        font-size: 1.2rem;
    }

    .olcu-tablo-wrap th {
        font-size: 1.1rem;
        padding: 8px 8px;
    }

    .olcu-tablo-wrap td {
        font-size: 1.2rem;
        padding: 9px 8px;
    }

    /* ─── ÜRÜN ÖZELLİKLERİ ─── */
    .ozellik {
        width: 100%;
    }

    .baslık {
        font-size: 1.6rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }

    .ozellik .satir {
        display: flex;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .ozellik .satir .bold {
        font-weight: bold;
        width: 35%;
        flex-shrink: 0;
    }

    .ozellik .satir .lighter {
        width: 65%;
    }

    /* ─── EKSTRA ÖZELLİKLER (KRİTİK KISIM) ─── */
    /* Bu alan scroll-container ile üst üste biniyordu */
    .ekstra-ozellikler {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        /* Kesinlikle position: static kalmalı */
        position: static;
        overflow: visible;
    }

    .ozellik-grid {
        display: grid;
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 8px;
        margin-top: 10px;
    }

    .ozellik-kart {
        padding: 10px;
        gap: 8px;
    }

    .ozellik-icon {
        font-size: 18px;
    }

    .ozellik-metin strong {
        font-size: 1.2rem;
    }

    .ozellik-metin span {
        font-size: 1.1rem;
    }

    /* ─── TABLO (right-container içindeki genel tablo) ─── */
    .right-container table {
        width: 100%;
        height: auto;
        text-align: left;
        font-size: 1.4rem;
        border-bottom: 0.1rem solid rgba(0, 0, 0, 0.233);
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .right-container table tr:hover {
        background-color: #8b7d6b25;
    }

    /* ─── BENZERİ ÜRÜNLER (scroll-container) ─── */
    /* Bu elementin üst üste binmemesi için right-container'ın
       tam olarak bitmesini beklememiz gerekiyor */
    div.scroll-container {
        overflow: auto;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 4rem 0 5rem 0;
        max-width: 100%;
        /* Kesinlikle position: static veya relative kalmalı */
        position: relative;
        clear: both;
    }

    .scroll-container .highlighter-baslik {
        font-size: 2rem;
        font-weight: bold;
        text-align: left;
        margin-top: 2rem;
        width: fit-content;
        margin-bottom: 1.5rem;
        position: sticky;
        left: 0;
    }

    div.scroll-container .wrap {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    div.scroll-container div.highlighter-urun {
        width: 43vw;
        height: auto;
        margin-bottom: 1rem;
        flex-shrink: 0;
        display: inline-block;
        white-space: normal;
    }

    div.scroll-container div.highlighter-urun img {
        padding: 0;
        width: 40vw;
        height: 26.4vw;
        border-radius: 1rem;
        display: block;
    }

    /* ─── OVERLAY (hover efekti mobilde her zaman görünsün) ─── */
    .highlighter-urun {
        position: relative;
    }

    .highlighter-urun .overlay {
        height: 15%;
        background-color: #ffffffa0;
    }
    
 
    

    .text {
        color: rgb(0, 0, 0);
        font-size: 1.2rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        white-space: normal;
        width: 90%;
    }

}






/* responsive tasarım başlangıç  */