@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=M+PLUS+Rounded+1c&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Quicksand:wght@300..700&family=Varela+Round&display=swap');

body {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.digital-menu {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.digital-menu .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 14px;
    height: calc(100% - 90px);
    margin: 40px 0 30px 0;
    padding: 10px 14px;
    overflow-y: auto;
}

.digital-menu .header {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    padding: 0 60px;
    top: 0;
    z-index: 5;
    left: 0;
    width: calc(100% - 120px);
    background: #fff;
    color: #313643;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.digital-menu .header h1{
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.digital-menu .header .bck-btn{
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: #525764;
    border: 0;
}

.digital-menu button {
    position: absolute;
    left: 14px;
}

.digital-menu .footer {
    width: 100%;
    height: 30px;
    display: flex;
    font-weight: 400;
    color: #ced1da;
    font-size: .8rem;
    justify-content: center;
    align-items: center;
    background: #313643;
    padding-left: 10px;
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
}

.digital-menu .footer img {
    padding: 0 0 8px 4px;
}

.digital-menu .content .category, .digital-menu .content .product {
    position: relative;
    border-radius: 14px;
    cursor: pointer;
    width: 100%; /* Dinamik genişlik */
    overflow: hidden; /* Fazlalık olan kısmı taşırır */
    background-color: #fff; /* Opsiyonel: arka plan rengi */
    box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
    transition: all .2s;
}

.digital-menu .content .category:hover, .digital-menu .content .product:hover {
    box-shadow: #0003 0 3px 8px;
    transform: scale(1.02);
}

.digital-menu .content .category, .digital-menu .content .product {
    height: 200px;
}

.digital-menu .content .category img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    min-width: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Opsiyonel: Görüntüyü kapsayacak şekilde yerleştirir */
    object-position: center center; /* Görüntüyü ortalar */
    filter: brightness(0.8);
}

.digital-menu .content .product img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
}

.digital-menu .content .product .info {
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.digital-menu .content .product .fav-icon {
    position: absolute;
    top: 5px;
    z-index: 4;
    right: 5px;
    width: 18px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 50%;
    padding: 4px;
}

.digital-menu .content .product .info .name {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1rem;
    color: #5f5e67;
    padding: 0 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.digital-menu .content .product .info .price {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1rem;
    color: #de0909;
    text-align: center;
    padding: 4px 10px;
}

.digital-menu .content .product .info .price small {
    color: #de0909cc;
}

.digital-menu .content .category h2 {
    font-size: 1.5rem;
    line-height: 1.5rem;
    width: 90%;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0px 2px 4px rgb(0 0 0 / 40%);
}

.digital-menu .content .product {
    position: relative;
}

@media (min-width: 768px) {
    .digital-menu .content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .digital-menu .content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .digital-menu .content {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-auto-rows: 250px;
    }
    .digital-menu .content .category, .digital-menu .content .product {
        height: 250px;
    }

    .digital-menu .content .product img {
        width: 100%;
        height: 190px;
        object-fit: contain;
        display: block;
    }
}

.bg-a {
    background: linear-gradient(135deg, #fff6, #5d78ff) #5d78ff !important
}

.bg-b {
    background: linear-gradient(135deg, #fff6, #53bad9) #53bad9 !important
}

.bg-c {
    background: linear-gradient(135deg, #fff6, #ffa4a4) #ffa4a4 !important
}

.bg-d {
    background: linear-gradient(135deg, #fff6, #f26c73) #f26c73 !important
}

.bg-e {
    background: linear-gradient(135deg, #fff6, #9d8ed4) #9d8ed4 !important
}

.bg-f {
    background: linear-gradient(135deg, #fff6, #acda7e) #acda7e !important
}

.bg-g {
    background: linear-gradient(135deg, #fff6, #7dd5d9) #7dd5d9 !important
}

.bg-h {
    background: linear-gradient(135deg, #fff6, #f1d563) #f1d563 !important
}

.bg-i {
    background: linear-gradient(135deg, #fff6, #80beeb) #80beeb !important
}

.bg-j {
    background: linear-gradient(135deg, #fff6, #D7C0AE) #D7C0AE !important
}

.bg-k {
    background: linear-gradient(135deg, #fff6, #D3756B) #D3756B !important
}

.bg-l {
    background: linear-gradient(135deg, #fff6, #F1A661) #F1A661 !important
}

.bg-m {
    background: linear-gradient(135deg, #fff6, #FFD369) #FFD369 !important
}

.bg-n {
    background: linear-gradient(135deg, #fff6, #A084CA) #A084CA !important
}

.bg-o {
    background: linear-gradient(135deg, #fff6, #889E81) #889E81 !important
}

.bg-p {
    background: linear-gradient(135deg, #fff6, #8CC0DE) #8CC0DE !important
}

.bg-q {
    background: linear-gradient(135deg, #fff6, #A2D5F2) #A2D5F2 !important
}

.bg-r {
    background: linear-gradient(135deg, #fff6, #FF8787) #FF8787 !important
}

.bg-s {
    background: linear-gradient(135deg, #fff6, #ff9037) #ff9037 !important
}

.bg-t {
    background: linear-gradient(135deg, #fff6, #AEDEFC) #AEDEFC !important
}

.bg-u {
    background: linear-gradient(135deg, #fff6, #CC7351) #CC7351 !important
}

.bg-v {
    background: linear-gradient(135deg, #fff6, #B2A4FF) #B2A4FF !important
}

.bg-w {
    background: linear-gradient(135deg, #fff6, #F9B208) #F9B208 !important
}

.bg-x {
    background: linear-gradient(135deg, #fff6, #B2A4FF) #B2A4FF !important
}

.bg-y {
    background: linear-gradient(135deg, #fff6, #4E9F3D) #4E9F3D !important
}

.bg-z {
    background: linear-gradient(135deg, #fff6, #47B5FF) #47B5FF !important
}

.bg-9 {
    background: linear-gradient(135deg, #fff6, #80beeb) #80beeb !important;
}

/* --- Filtre Çubuğu --- */
.digital-menu .filter-bar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 4;
    background: #fff;
    padding: 8px 14px;
    box-sizing: border-box;
    box-shadow: rgba(33, 35, 38, 0.08) 0px 4px 6px -4px;
}

.digital-menu .filter-bar form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.digital-menu .filter-bar .filter-search {
    flex: 1;
    min-width: 100px;
    height: 34px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0 12px;
    font-family: inherit;
    font-size: .85rem;
    outline: none;
    box-sizing: border-box;
}

.digital-menu .filter-bar .filter-btn {
    position: static;
    height: 34px;
    padding: 0 16px;
    border-radius: 20px;
    border: none;
    background: #313643;
    color: #fff;
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.digital-menu .filter-bar .filter-clear {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #888;
    text-decoration: none;
    font-size: .9rem;
    flex-shrink: 0;
}

.digital-menu.has-filter-bar .content {
    height: calc(100% - 140px);
    margin-top: 90px;
}

.product-detail-container {
    display: flex;
    height: calc(100% - 90px);
    margin: 40px 0 30px 0;
    padding: 10px 14px;
    overflow-y: auto;
}

.product-detail-image {
    width: 40%;
    height: 100%;
    padding-left: 10%;
    padding-right: 1%;
}

.product-detail-image .main-img {
    width: 100%;
    border-radius: .5rem;
    margin-bottom: 1rem;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.product-detail-image .second-img {
    height: 100px;
    width: auto;
    margin: 0 .5rem;
    border-radius: .5rem;
    border: 1px solid #ebe8ef;
}

.product-detail-image .second-img:hover {
    border: 1px solid #cbcade;
    cursor: pointer;
}

.product-detail-image .second-img.active {
    border: 1px solid #cbcade;
}

.product-detail-image .second-images {
    display: flex;
    justify-content: center;
}

.product-detail-content {
    width: 60%;
    height: 100%;
    padding-right: 10%;
    padding-left: 1%;
}

.product-detail-content h1 {
    color: #263038;
    font-size: 1.4rem;
}

.product-detail-content h2 {
    color: #263038;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-detail-content h3 {
    color: #263038;
    font-size: 1rem;
    margin: .5rem 0;
    font-weight: 600;
}

.product-detail-content h5 {
    color: #4e5d6c;
    font-size: .8rem;
    margin: .5rem 0;
    font-weight: 600;
}

.product-detail-content .product-prices {
    margin: 1rem 0;
    width: fit-content;
    padding: .25rem 1rem;
    background: #f3f5f7;
    border-radius: .5rem;
}

.product-detail-content .product-desc{
    background: #f3f5f7;
    padding: .5rem 1rem;
    border-radius: .5rem;
}

.product-detail-content .product-desc p{
    font-size: .9rem;
    margin: .5rem 0;
}

@media (max-width: 736px) {

    .product-detail-container {
        flex-direction: column;
    }

    .product-detail-image {
        width: 100%;
        padding: 0;
    }

    .product-detail-content {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
        margin-top: 2.5rem;
    }

    .product-detail-image .second-img {
        height: auto;
        width: 70px;
        margin: 0 .25rem;
    }
}
