/* === Ana Alan === */
.order-padding {
    padding: 40px 5%;
    margin: 0 auto;
}

.detail-container {
    display: grid;
    grid-template-columns: minmax(420px, 0%) 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    max-height: unset;

}

.image-wrapper {
    width: 100%;
    height: auto;
}

.product-detail-img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    display: block;

}

/* Sadece içeriğe padding */
.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    margin-right: 30px;

}


/* === Başlık ve Açıklama === */
.detail-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

.detail-content {
    font-size: 1rem;
    color: #666;
    font-family: "Poppins", sans-serif;
    margin-top: 10px;
}


.detail-info .detail-title {
    text-align: start;
    font-family: "Poppins", serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.detail-info .detail-content {
    font-family: "Poppins", serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-color);
    padding-bottom: 5px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

}



.detail-content li:nth-child(odd) {
    grid-column: 1;
}

.detail-content li:nth-child(even) {
    grid-column: 2;
}


.detail-button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.detail-button .button-wrapper {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sepete Ekle */
.add-menu-carts,
.add{
    width: 100%;
    height: 50px;
    background-color: var(--success-color);
    font-family: "Poppins", serif;
    font-size: .8rem;
    font-weight: 600;
    color: var(--white-color);
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

/* Artır Azalt Buton Kutusu */
.add-remove-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 50px;
    background-color: transparent;
    border: 1px solid #69B42EFF;
    border-radius: 10px;
    width: 100%;
}

.add-remove-button button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #69B42EFF;
    cursor: pointer;
}

.add-remove-button span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: "Poppins", serif;
}

/* Paylaş Butonu */
.share {
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #69B42EFF;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share img {
    width: 24px;
    height: 24px;
}

/* Kalp Butonu */
.order-heart {
    width: 100%;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #69B42EFF;
    border-radius: 10px;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.order-heart:hover,
.order-heart.active {
    background-color: var(--error-color);
    color: var(--white-color);
}


.margin {
    margin-right: 25px
}

.detail-price {
    font-family: "Poppins", serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
}

.detail-price span {
    font-family: "Poppins", serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--grey-color);
    text-decoration: line-through;
}

.add-remove-button span {
    font-family: "Poppins", serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.add-remove-button button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #69B42EFF;
    cursor: pointer;
}



.remove-button {
    margin-bottom: 10px
}

.animated-icon {
    z-index: 0;
    position: absolute;
    animation: float 8s infinite ease-in-out;
    width: 100px;
}

.background-icons img:nth-of-type(1) {
    width: 70px;
    top: 20%;
    left: 0;
}

.background-icons img:nth-of-type(2) {
    top: 70%;
    left: -2%;
}

.background-icons img:nth-of-type(3) {
    top: 40%;
    left: 96%;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}


/*menu select*/


.select-field {
    margin-top:15px;
    width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease-in-out;
}

.select-field:hover {
    border-color: var(--primary-color);
    background-color: #fff;
}

.select-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    filter: brightness(0.3);
}

.selector.open .arrow-icon {
    transform: rotate(180deg);
}

/* === Başlık ve Açıklama === */


.select-menu-container {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    width: 96%;
    justify-content: space-between;
}

.select-menu-container.menu {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    width: 96%;
    justify-content: space-between;

}


/* === Her bir Select alanı (label + dropdown) === */
.selector {
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
}

.sub-name {
    font-weight: 500;
    color: #333;
}

/* === Dropdown görünümü === */
.select-field {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    color: #222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.select-field:hover {
    border-color: var(--primary-color);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease-in-out;
    filter: brightness(0.5);
}

.selector.open .arrow-icon {
    transform: rotate(180deg);
}

/* === Açılan liste === */
.list {
    position: absolute;
    margin-top: 97px;
    width: 109%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    z-index: 999;

    overflow-x: hidden;
}

.list li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: background-color 0.2s ease;
}

.list li:hover {
    background-color: var(--primary-color);
    color: white;
}




.hide {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-field {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.select-field:hover {
    border-color: #69B42EFF;
}

.select-text {
    font-size: 1rem;
    color: #333;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.selector.open .arrow-icon {
    transform: rotate(180deg);
}
.order-like-title {
    font-family: "Poppins", serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 40px 0;
}


.sub-name{margin-top:20px;    display: block;}

/*slider*/
.slider-container {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 0;
}

.slider-track {
    height: 500px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 260px;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: var(--white-color);
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 50%;
}

.left-btn {
    left: 5px;
}

.right-btn {
    right: 5px;
}



.selector {
    position: relative;
    width: 46%;
    height: 60px;
    margin-bottom: 25px;
}




/* === 1200px ve altı: Laptoplar === */
@media (max-width: 1380px) {
    .img-div{aspect-ratio:0!important;}
    .selector{width:auto;}
    .detail-info {

    padding: 5px;

}
    .detail-container {
        grid-template-columns: minmax(320px, 0) 1fr;
        gap: 30px;
        max-height: unset;
    }

    .select-menu-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .detail-button {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .detail-button .button-wrapper {
        flex: 1 1 45%;
        max-width: 48%;
    }

    .selector {
        width: 90%;
    }

        .detail-info .detail-content {
            margin-bottom: 0 !important;
        }

}



/* === 992px ve altı: Tabletler === */
@media (max-width: 900px) {
    .img-div{height:400px;}

    .detail-container {
        grid-template-columns: 1fr;
        max-height: unset;
    }

    .image-wrapper {
        height: 280px;
    }

    .product-detail-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: unset;
    }

    .detail-info {
        padding: 24px;
        margin-right: 0;
    }

    .detail-button {
        flex-direction: row;
        gap: 10px;
    }

    .add-remove-button {
        padding: 0 8px;
    }

    .selector {
        width: 100%;
    }

    .list {
        width: 105% ;
        left: 0 !important;
        margin-top: 95px;
    }
}


/* === 768px ve altı: Küçük Tablet / Büyük Telefonlar === */
@media (max-width: 768px) {

    /* Her button-wrapper %100 alan kaplasın */
    .detail-button .button-wrapper {
        width: 100%;
    }

    /* İçindeki bileşenler de tam genişlikte dursun */
    .add-menu-carts,
    .add,
    .add-remove-button,
    .share,
    .order-heart {
        width: 100%;
    }

    .add-remove-button {
        justify-content: space-between;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .share,
    .order-heart {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0; /* kenar boşluk varsa kaldır */
    }

    .share img {
        width: 24px;
        height: 24px;
    }

}




/* === 480px ve altı: Küçük Telefonlar === */
@media (max-width: 480px) {

    .select-text, .select-field {
        font-size: 0.9rem;
        WIDTH: 90%;
    }

    .image-wrapper {
        height: 180px;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .detail-price {
        font-size: 1.3rem;
    }

    .arrow-icon {
        width: 14px;
        height: 14px;
    }

    .list li {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .order-like-title {
        font-size: 1.2rem;
    }

    .add-remove-button span {
        font-size: 1.2rem;
    }

    .selector {
        position: relative;
        height: 60px;
        margin-bottom: 25px;
        width: 100%;
    }

    .detail-button .button-wrapper {
        width: 100%;
    }

    .add-menu-carts,
    .add,
    .add-remove-button,
    .order-heart,
    .share {
        font-size: 1rem;
    }
}


@media (width: 1024px) {
    .product-detail-img {
        width: 100%;
        height: 708px;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }
}

.detail-white{background-color: transparent!important;}

#menu-pop:not(.active) {
    display: none !important;
}

#order-pop:not(.active) {
    display: none !important;
}


/*paylaş*/
.copy-section {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
}

.copy-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.copy-section button {
    padding: 8px 14px;
    background-color: #69b42e;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.copy-section button:hover {
    background-color: #45a049;
}


.share-links {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
}

.share-links a {
    color: #333;
    transition: transform 0.2s ease;
}

.share-links a:hover {
    transform: scale(1.2);
}

.share-links .whatsapp { color: #25d366; }
.share-links .facebook { color: #1877f2; }
.share-links .twitter { color: #000000; }

.share-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.share-modal.hidden {
    display: none;
}

.share-modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 300px;
    animation: popIn 0.3s ease;
    position: relative;
}

.share-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
}

.share-links a {
    display: block;
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


@media (max-width: 1550px) {

    .detail-title{font-size:1.5rem!important}

    .detail-info {

    padding:14px;


}}



.select-menu-container.menu {
    position: relative;
    z-index: 1;
}

.selector {
    position: relative;
}

.selector .list {
    position: absolute;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 5px 0;
}

.selector .hide {
    display: none;
}
