@import url('constants.css');

#background-slider { position: relative; width: 100% !important; height: 600px !important; overflow: hidden; }

/* Main Slider Navigation Buttons */
.main-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 18px;
}

.main-slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.main-slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.main-slider-prev-btn {
    left: 20px;
}

.main-slider-next-btn {
    right: 20px;
}

@media (max-width: 768px) {
    .main-slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .main-slider-prev-btn {
        left: 10px;
    }

    .main-slider-next-btn {
        right: 10px;
    }
}

.homepage-greeting {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Mobile slider image switch */
@media (max-width: 768px) {
    .homepage-greeting {
        background-image: var(--mobile-bg) !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        min-height: 100% !important;
        height: 100% !important;
        width: 100% !important;
    }
}

.homepage-greeting-container {
    padding: 0 5%;
    display: flex;
    justify-content: start;
    flex-direction: column;
    float: left;
    font-family: "Poppins", serif;
    color: var(--white-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;/
}

.homepage-greeting-container .homepage-greeting-description {
    margin: 30px 0;
}

.homepage-greeting-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.homepage-greeting-container.visible {
    opacity: 1;
}

.homepage-greeting-title,
.homepage-greeting-description,
.homepage-greeting-button,
.bayiLogin {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.homepage-greeting-container.visible .homepage-greeting-title,
.homepage-greeting-container.visible .homepage-greeting-description,
.homepage-greeting-container.visible .homepage-greeting-button,
.homepage-greeting-container.visible .bayiLogin {
    opacity: 1;
    transform: translateY(0);
}


.homepage-greeting-container .homepage-greeting-title {

    font-weight: 600;
    font-size: 35px;
}

.homepage-greeting-container .homepage-greeting-description {
    width: 45%;

    font-weight: 400;
    font-size: 25px;
}

.homepage-greeting-container img {
    transform: rotate(90deg);
    width: 100px;
}

.homepage-greeting-container button.homepage-greeting-button {
    overflow: hidden;
    position: relative;
    margin-left: 10px;
    width: 400px;
    background-color: rgb(255 255 255 / 55%);
    color: #1f2326;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid #ffffff;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.5s ease;
}



button.homepage-greeting-button:before {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, .5);
    width: 60px;
    height: 30px;
    left: 0;
    top: 0;
    opacity: 0.8;
    filter: blur(15px);
    transform: translatex(-100px) skewx(-15deg);
}

button.homepage-greeting-button:after {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 100%;
    left: 30px;
    top: 0;
    opacity: 0;
    filter: blur(15px);
    transform: translate(-100px) skewx(-15deg);
}

button.homepage-greeting-button:hover {
    background-color: rgb(255 255 255 / 85%);
    color: #000000;
    border: 2px solid white;
}


button.homepage-greeting-button:hover:before {
    transform: translatex(300px) skewX(-15deg);
    opacity: 0.6;
    transition: .7s;
}

button.homepage-greeting-button:hover:after {
    transform: translatex(300px) skewX(-15deg);
    opacity: 1;
    transition: .7s;
}

/* Modern Slider Button Styles */
.slider-button-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.slider-cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1f2326;
    font-family: "Poppins", serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(0);
}

.slider-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
}

.slider-cta-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.slider-cta-button:hover::before {
    left: 100%;
}

.slider-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.slider-button-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.slider-button-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.slider-cta-button:hover .slider-button-icon {
    transform: translateX(4px);
}

.slider-button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.8s ease;
}

.slider-cta-button:hover .slider-button-shine {
    left: 100%;
}

/* Animation for button appearance */
.homepage-greeting-container.visible .slider-cta-button {
    animation: slideInUp 0.6s ease 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-news-about-container {
    width: 100%;
    height: 550px;
    display: flex;
    flex-direction: row;
    position: relative;
}

.homepage-news-about-container .homepage-news-container {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 20px 5%;
    background-color: var(--white-color);
}

.homepage-news-about-container .homepage-about-container {
    flex: 1;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../../assets/slider/slider-2-maria.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 40px 5%;
}


.homepage-news-about-container .homepage-about-container * {
    position: relative;
    z-index: 2;
}

.homepage-about-container {
    font-family: "Poppins", serif;
    color: var(--white-color);
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.homepage-about-container .home-about-title {
    font-weight: 600;
    font-size: 32px;
}

.homepage-about-container .home-about-description {
    width: 100%;
    font-weight: 400;
    font-size: 22px;
    text-align: justify;
}

.homepage-about-container button.home-about-button {
    width: 100%;
    background-color: transparent;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid var(--white-color);
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.homepage-about-container button.home-about-button:hover {
    background-color: var(--brand-color);
    color: var(--white-color);
    border-color: var(--brand-color);
}


.delivery-container {
    box-sizing: border-box;
    width: 100%;
    height: 120px;
    border-bottom: 4px solid var(--success-color);
    border-top: 4px solid var(--success-color);
    background-color: var(--primary-color);
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    font-family: "Poppins", serif;
    font-weight: 500;
    color: var(--white-color);
    font-size: 1.2rem;
}

.delivery-container .delivery-title {
    width: 65%;
    text-align: justify;
}

.delivery-container img.delivery-icon {
    width: 85px;
    margin-right: 20px;
}

.delivery-container img.delivery-arrow {
    margin-top: auto;
    margin-bottom: 10px;
    width: 50px;
    margin-right: 20px;
    transform: rotate(60deg);

}

.delivery-container .home-delivery-button {
    background-color: transparent;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid var(--white-color);

}

.slider-title {
    margin-top: 20px;
}

.slider-container {
    padding: 0 !important;
}





.slider-buttons {
    padding: 0 80px;
}

button.bayiLogin {
    position: relative;

    margin-left: auto;
    width: 400px;
    height: 60px;
    border: none;
    background-color: var(--success-color);
    font-family: "Poppins", serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    /* İçerik dışarı taşmaması için */
    transition: all 0.5s ease;
    /* Geçiş efektleri */
}

@keyframes shine {
    0% {
        transform: translateX(-100px) skewX(-15deg);
        opacity: 0.8;
    }

    50% {
        transform: translateX(300px) skewX(-15deg);
        opacity: 0.6;
    }

    100% {
        transform: translateX(-100px) skewX(-15deg);
        opacity: 0.8;
    }
}

button.bayiLogin:before {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 30px;
    left: 0;
    top: 0;
    opacity: 0.8;
    filter: blur(15px);
    animation: shine 5s infinite;
    /* Animasyonu sadece :before için başlatıyoruz */
}

button.bayiLogin:after {
    content: '';
    display: block;
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 100%;
    left: 30px;
    top: 0;
    opacity: 0;
    filter: blur(15px);
    animation: shine 5s infinite;
    /* Animasyonu sadece :after için başlatıyoruz */
}

button.bayiLogin:hover {
    background-color: var(--success-color);
    color: var(--white-color);
}

button.bayiLogin:hover:before {
    opacity: 0.6;
    /* Hover durumunda :before elemanında değişiklik */
}

button.bayiLogin:hover:after {
    opacity: 1;
    /* Hover durumunda :after elemanında değişiklik */
}




.ribbon {
    position: relative;
    display: inline-block;
    background-color: #ff5722;
    color: white;
    height: 40px;
    min-width: 100px;
    line-height: 40px;
    text-align: center;
    padding: .2rem 1rem;
    font-family: "Poppins", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.ribbon::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 40px 22px 40px 0;
    border-right-color: white;
}

.ribbon::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: transparent #D84315 transparent transparent;
}

.homepage-news-container .background-icons img:nth-of-type(3) {
    width: 60px;
    left: 80%;
}

.homepage-news-container .background-icons img:nth-of-type(4) {
    top: 85%;
    left: 85%;
    max-height: 85px;
}

.homepage-news-container .background-icons img:nth-of-type(5) {
    top: 80%;
    left: 40%;
}

.homepage-news-container .news-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;


}

.homepage-news-container .news-container .news-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "Poppins", serif;
    color: var(--primary-color);
    width: 100%;
}

.homepage-news-container .news-container .news-text .home-news-title {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 32px;
}

.homepage-news-container .news-container .news-text .home-news-description {
    font-weight: 400;
    font-size: 22px;
    text-align: justify;
}

.home-news-img img {
    /*right: -20%;*/
    /*top: 30%;*/
    /*position: absolute;*/
    width: 600px;
    background-color: transparent;
    box-shadow: none;
}

.home-news-container-bottom {
    width: 95%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-family: "Poppins", serif;
    color: var(--primary-color);
    font-size: 1rem;
}

.home-news-container-bottom button {
    text-decoration: underline;
    background-color: transparent;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 0;
    border: none;
    cursor: pointer;
    transition: all 0.8s ease-in-out;
}


.homepage-news-about-container {
    opacity: 0;
    /* Başlangıçta görünmez */
    transition: opacity 0.8s ease;
    /* Geçiş animasyonu */
}

.homepage-news-about-container.visible {
    opacity: 1;
    /* Görünür hale gelince */
}

.home-news-title,
.home-news-description,
.home-news-details,
.home-news-date,
.home-about-title,
.home-about-description,
.home-about-button {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease, transform 0.5s ease;
}

.home-news-details {
    color: black;
    text-decoration: underline;
}

.homepage-news-about-container.visible .home-news-title,
.homepage-news-about-container.visible .home-news-description,
.homepage-news-about-container.visible .home-news-details,
.homepage-news-about-container.visible .home-news-date,
.homepage-news-about-container.visible .home-about-title,
.homepage-news-about-container.visible .home-about-description,
.homepage-news-about-container.visible .home-about-button {
    opacity: 1;
    transform: translateX(0);
}

.divider-end {
    margin-bottom: 0 !important;

}


.homepage-news-about-container {
    display: flex;
    flex-wrap: wrap;
}

.homepage-news-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    background: white;
    padding: 20px;
}


.homepage-about-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    background: white;
    padding: 20px 5%;
    text-align: center;
}

.news-container,
.home-about-description {
    flex-grow: 0;
}

.home-news-title,
.home-about-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.home-news-description,
.home-about-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

.home-news-container-bottom,
.home-about-button {
    margin-top: 20px;
}

.custom-toast {
    top: 1rem;
    right: 1rem;
    z-index: 1055;
    min-width: 250px;
    margin-top: 120px;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#orderToastContainer {
    top: 1rem;
    right: 13rem;
    z-index: 1055;
    min-width: 280px;
    max-width: 350px;
    padding: 0.75rem 1rem;
    background-color: #ffc107 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
    font-size: 14px;
}

@media (max-width: 768px) {

    .homepage-news-container,
    .homepage-about-container {
        min-height: auto;
        padding: 15px;
    }
}

@media (max-width: 1400px) {
    .homepage-greeting-container .homepage-greeting-title {
        font-size: 30px;
    }

    .homepage-greeting-container .homepage-greeting-description {
        width: 90%;
    }
}

@media (max-width: 992px) {

    .homepage-about-container .home-about-description,
    .homepage-about-container button.home-about-button {
        width: 100%;
    }

    .homepage-news-container .news-container .news-text .home-news-description,
    .homepage-about-container .home-about-description {
        font-size: 20px;
    }

    .ribbon {
        font-size: 1.5rem;

    }

    button.bayiLogin {
        width: 300px;
        font-size: 20px;
    }

    .homepage-greeting-container button.homepage-greeting-button {
        font-size: 16px
    }

    .homepage-greeting-container .homepage-greeting-description {
        font-size: 20px;
    }

    .homepage-greeting-container .homepage-greeting-title {
        font-size: 30px;
    }

    .homepage-news-about-container .homepage-news-container {
        padding: 40px 5%;
    }

    .homepage-news-about-container {
        flex-direction: column;
        height: auto;
    }

    .homepage-news-about-container .homepage-news-container,
    .homepage-news-about-container .homepage-about-container {
        width: 100%;
        height: auto;
    }

    .delivery-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    .delivery-container .delivery-title {
        width: 100%;
        font-size: 1.1rem;
    }

    .delivery-container img.delivery-icon,
    .delivery-container img.delivery-arrow {
        width: 50px;
    }
}

@media (max-width: 768px) {

    #background-slider { position: relative; width: 100% !important; height: 600px !important; overflow: hidden; }

    .homepage-greeting-container .homepage-greeting-title {
        font-size: 26px;
    }

    .homepage-greeting-container .homepage-greeting-description {
        width: 60%;
    }

    .background-icons {
        opacity: .5;
    }

    #background-slider { position: relative; width: 100% !important; height: 600px !important; overflow: hidden; }

    .homepage-greeting-container {
        justify-content: left;
        height: auto;
    }

    .homepage-greeting {
        align-items: center;
        justify-content: start;
    }

    .homepage-greeting-container .homepage-greeting-title {
        font-size: 2.5rem;
    }

    .homepage-greeting-container .homepage-greeting-description {
        width: 90%;
        font-size: 1.2rem;
    }

    .homepage-greeting-container .homepage-greeting-title {
        font-size: 26px;
    }

    .homepage-greeting-container {
        position: relative;
        bottom: 0;
        color: white;
        text-align: left;
        justify-content: left;
        align-items: flex-start;
    }

    .homepage-greeting-container button.homepage-greeting-button,
    .homepage-greeting-container button.bayiLogin {
        width: 100%;
    }

    .slider-cta-button {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .homepage-news-container .news-container {
        flex-direction: column;
        align-items: start;
        text-align: center;
    }

    .homepage-news-container .news-container .news-text {
        width: 90%;
    }

    .home-news-img img {
        width: 80%;
        height: auto;
        margin-top: 20px;
    }

    .slider-buttons {
        padding: 0 30px;
    }

    .ribbon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .homepage-greeting-container .homepage-greeting-title {
        font-size: 2rem;
    }

    .homepage-greeting-container .homepage-greeting-description {
        font-size: 1rem;
    }

    .delivery-container .home-delivery-button {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 1245px) {
    .background-slider {
        height: 500px;
    }

}



/* Product Mobil ve tablet uyumu */
@media (max-width: 1200px) {
    .home-product-card {
        width: 260px;
        height: 380px;
    }

    #background-slider { position: relative; width: 100% !important; height: 600px !important; overflow: hidden; }
}

@media (max-width: 992px) {

    .delivery-container img.delivery-icon,
    .delivery-container img.delivery-arrow {
        display: none;
    }

    .slider {
        gap: 20px;
    }

    .home-product-card {
        width: 220px;
        height: 350px;
    }

    .product-info .product-title {
        font-size: 1.3rem;
    }

    .product-info .product-content {
        font-size: 1rem;
    }

    .product-button .add {
        width: 140px;
        font-size: 0.9rem;
    }


    .delivery-container .home-delivery-button {
        width: 100%
    }

    #tıkla_gelsin {
        width: 100%
    }
}

@media (max-width: 768px) {
    .slider {
        padding: 15px;
        gap: 15px;
    }

    .slider-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .home-product-card {
        width: 180px;
        height: 300px;
    }

    .product-img {
        width: 160px;
    }

    .product-button .add {
        width: 120px;
        height: 40px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .slider {
        padding: 10px;
    }

    .home-product-card {
        width: 150px;
        height: 260px;
    }

    .product-img {
        width: 120px;
    }

    .product-button .add {
        width: 100px;
        height: 36px;
        font-size: 0.75rem;
    }

    .product-button .share,
    .product-heart {
        width: 36px;
        height: 36px;
    }

    .share img {
        width: 16px;
        height: 16px;
    }
}


@media (max-width: 768px) {
    .footer {
        margin-top: 0px !important;
    }

    .divider {
        margin: 0 !important;
    }

    .homepage-greeting-container.visible {
        padding: 0 5% !important;
    }

    /* Homepage Greeting */
    .homepage-greeting-container {
        height: auto;
    }

    .homepage-greeting-container span,
    .homepage-greeting-description {
        text-align: left;
    }

    .homepage-greeting-container button.homepage-greeting-button,
    .homepage-greeting-container button.bayiLogin {
        width: 100%;
        max-width: 400px;
    }

    .slider-cta-button {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .slider-button-icon {
        width: 18px;
        height: 18px;
    }

    .slider-button-icon svg {
        width: 18px;
        height: 18px;
    }

    /* News Container */
    .homepage-news-about-container {
        flex-direction: column;
        padding: 0px;
    }

    .home-news-img img {
        width: 90%;
        height: auto;
    }
}

@media (max-width: 576px) {

    /* Sepete Ekle Kart */
    .home-product-card {
        width: 150px;
        height: 260px;
    }

    .product-img {
        width: 120px;
    }

    .product-button .add {
        width: 90px;
        height: 36px;
        font-size: 0.7rem;
    }

    .product-button .share,
    .product-heart {
        width: 34px;
        height: 34px;
    }

    .share img {
        width: 16px;
        height: 16px;
    }

    /* Slider padding */
    .slider {
        padding: 0 10px;
    }

    /* Ribbon */
    .ribbon {
        font-size: 1.2rem;
        height: 30px;
        min-width: 80px;
        line-height: 30px;
    }
}

@media (max-width: 400px) {

    /* Daha küçük telefonlar */
    .home-product-card {
        width: 140px;
    }

    .homepage-greeting-title {
        font-size: 1.5rem;
    }

    .homepage-greeting-description {
        font-size: 1rem;
    }

    .delivery-container {
        padding: 15px;
    }
}

@media (max-width: 610px) {

    .custom-toast,
    #orderToastContainer {
        left: 8px;
        right: 8px;
        top: 8px;
        margin-top: 56px !important;
        margin-left: 40px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0.7rem;
        font-size: 13px;
        border-radius: 0.5rem;
    }

    .news-container {
        margin-top: 0px !important;
    }


    .ribbon,
    .home-news-img img {
        display: none !important;
    }

    .homepage-news-container .news-container {
        padding: 0px;
    }

    .delivery-container img.delivery-arrow {
        display: none;
    }

    .delivery-container .home-delivery-button,
    .homepage-news-container .news-container .news-text .home-news-description,
    .homepage-about-container .home-about-description,
    .homepage-about-container button.home-about-button {
        width: 100%;
    }
}


.news-read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--brand-color);
    /* amber ton */
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-read-more-btn:hover {
    background-color: var(--brand-dark);
}





@media (max-width: 767px) {

    .background-slider {
        height: 60vh;
    }

}


.swiper-slide {
    height: auto !important;
}


@media (max-width: 480px) {
    .homepage-greeting-container .homepage-greeting-title {
        font-size: 18px !important;
    }

    .homepage-greeting-container .homepage-greeting-description,
    .homepage-news-container .news-container .news-text .home-news-description,
    .homepage-about-container .home-about-description,
    .news-read-more-btn,
    .delivery-title {
        font-size: 16px !important;
    }
}

.menu-none {
    padding: 20px !important;
}



.homepage-news-about-container.visible {
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    .homepage-greeting-container .homepage-greeting-description {
        margin-top: 20px;
    }

    .homepage-greeting-container img,
    .homepage-greeting-container button.bayiLogin {
        display: none !important;
    }

    .homepage-greeting-container button.homepage-greeting-button {
        position: relative !important;


    }

    .slider-cta-button {
        padding: 10px 18px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .slider-button-icon {
        width: 16px;
        height: 16px;
    }

    .slider-button-icon svg {
        width: 16px;
        height: 16px;
    }
}



.homepage-greeting {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    display: none;
}

.homepage-greeting-container {
    /* position: absolute;*/
    /* bottom: 20%;*/
    color: white;
    width: 70%;
    /* Add other styling as needed */
}


.policy-features-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.policy-card {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
}

.policy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.policy-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.policy-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 180px;
    overflow: hidden;
}

.policy-button {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.policy-button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .policy-features-section {
        flex-direction: column;
    }

    .policy-card {
        margin-bottom: 20px;
    }

    .policy-card p {
        height: auto;
    }

    .franchise-header-container {
        flex-direction: column;
        text-align: center;
    }

    .franchise-header-left {
        flex-direction: column;
    }

    .franchise-header-text h1 {
        font-size: 30px;
    }
}

.franchise-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    margin-bottom: -30px;
}

.franchise-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.franchise-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.franchise-header-icon {
    width: 64px;
    height: 64px;
    filter: invert(1);
}

.franchise-header-text h1 {
    font-size: 30px;
    margin: 0;
    line-height: 1.3;
}

.franchise-header-text p {
    font-size: 18px;
    margin: 8px 0 0;
    opacity: 0.9;
}

.franchise-apply-btn {
    background-color: #f2f2f2;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 400;
    color: var(--primary-color);
    width: 100%;
    display: block;
    text-align: left;
    font-size: 1.5rem;
}

.franchise-apply-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.homepage-franchise-header-img {
    width: 121px;
    height: 120px;
}

.food-delivery-services-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #fafafa;
    box-shadow: 0 6px 20px -16px rgba(0, 0, 0, 0.35);
}

.food-delivery-services-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.delivery-divider-icon {
    width: 80%;
    max-width: 1100px;
    height: auto;
}

/* ========================================
   VIDEO SLIDER & MOBILE OVERLAY STYLES
   ======================================== */
.homepage-greeting-video {
    position: relative;
    overflow: hidden;
    background: #000;
}

.homepage-slider-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.homepage-greeting-mobile-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@media (max-width: 768px) {
    #background-slider { position: relative; width: 100% !important; height: 600px !important; overflow: hidden; }

    .homepage-slider-video {
        display: none !important;
        position: relative !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        /* Siyah bantları yok et (Ekranı kapla) */
    }

    .homepage-greeting-mobile-fallback {
        display: block !important;
    }

    .homepage-greeting-video {
        min-height: 100% !important;
        height: 100% !important;
    }

    .homepage-greeting-video .homepage-greeting-container {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding-left: 30px !important;
        padding-right: 20px !important;
        padding-bottom: 25vh !important;
    }
}

.homepage-greeting-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.platform-banner-wrapper {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    width: 100%;
}

.platform-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.platform-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: transform 0.3s ease;
}

.platform-logo-img:hover {
    transform: scale(1.1);
}
/* =========================================
   MARIA PIZZA - GLOBAL MOBILE FIXES
   ========================================= */

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---- MOBILE SLIDER FIX ---- */
/* When JS hides slides with display:none and shows with fadeIn,
   the initial slide must be shown correctly */
@media (max-width: 768px) {
    #background-slider { position: relative; width: 100% !important; height: 600px !important; overflow: hidden; }

    .homepage-greeting {
        background-image: var(--mobile-bg) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-color: var(--primary-color, #1a1a2e) !important;
        background-repeat: no-repeat !important;
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .main-slider-nav-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }
}

/* ---- FRANCHISE/NEWS SECTION MOBILE ---- */
@media (max-width: 768px) {
    .homepage-news-about-container {
        flex-direction: column;
        height: auto;
    }

    .homepage-news-about-container .homepage-news-container,
    .homepage-news-about-container .homepage-about-container {
        width: 100% !important;
        min-height: 280px;
    }

    .homepage-about-container .home-about-title { font-size: 22px; }
    .homepage-about-container .home-about-description { font-size: 14px; }
}

/* ---- POLICY CARDS MOBILE ---- */
@media (max-width: 768px) {
    .policy-features-section {
        flex-direction: column;
        padding: 30px 16px;
        gap: 20px;
    }
    .policy-card { width: 100%; }
}

/* ---- FRANCHISE HEADER MOBILE ---- */
@media (max-width: 768px) {
    .franchise-header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .franchise-header-left { flex-direction: column; align-items: center; }
    .franchise-header-right { width: 100%; text-align: center; }
    .franchise-apply-btn { display: block; text-align: center; }
}

/* ---- GENERAL CONTENT SECTIONS MOBILE ---- */
@media (max-width: 768px) {
    .slider-title { font-size: 22px; padding: 0 16px; }
    .slider-container { padding: 0 8px; }

    .content-home {
        flex-direction: column;
        padding: 20px 16px;
    }

    .divider { margin: 10px 0; }
}

/* ---- FOOTER MOBILE ---- */
@media (max-width: 768px) {
    footer, .footer {
        padding: 30px 16px;
    }
}