﻿@font-face {
    font-family: 'main-font';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
}

* {
    font-family: 'main-font', Arial;
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
}

:root {
    --border: 1px solid #c8c8c8;
    --red: #e42220;
    --red-hover: #871514;
    --black: #333;
}

img {
    user-select: none;
}

body {
    overflow-x: hidden;
}

main {
    margin: 73px 2rem 2rem 2rem;
}


/*#region Loader*/
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    background: white;
    z-index: 100;
    top: 0;
    width: 100vw;
    height: 100vh;
}

.spinner-container {
    width: 112px;
    height: 112px;
    position: relative;
    margin: 30px auto;
    overflow: hidden;
}

.spinner {
    position: absolute;
    width: calc(90% - 9.9px);
    height: calc(90% - 9.9px);
    border: 5px solid transparent;
    border-radius: 50%;
    border-top-color: var(--red);
    animation: spin 5s cubic-bezier(0.17, 0.49, 0.96, 0.79) infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/*#endregion*/


.categorie-cart-custom {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: max-content;
    padding: 2rem;
}

    .categorie-cart-custom > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.4s ease;
    }

    .categorie-cart-custom:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

        .categorie-cart-custom:hover > img {
            transform: scale(1.08);
        }
/*#region Header*/
header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-bottom: var(--border);
    position: fixed;
    width: 100vw;
    z-index: 99;
    top: 0;
}

    header > div {
        max-width: 1200px;
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
        padding: 1rem 0;
    }



        header > div > a img {
            width: 100px;
        }

        header > div > ul {
            display: flex;
            gap: 1.5rem;
            list-style: none;
        }

            header > div > ul > li {
                position: relative; /* alt menüyü konumlandırmak için */
            }

                header > div > ul > li > a {
                    cursor: pointer;
                    display: block;
                    padding: 0.5rem 0.8rem;
                    text-decoration: none;
                    color: var(--black);
                    font-weight: 500;
                    transition: 200ms;
                    font-size: 13px;
                }

                    header > div > ul > li > a:hover {
                        color: #871514;
                    }

                header > div > ul > li > div {
                    transition: 300ms;
                    position: absolute;
                    top: 100%; /* ana linkin hemen altına gelsin */
                    left: 0;
                    background: #fff;
                    padding: 0.5rem 0;
                    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
                    min-width: 200px;
                    z-index: 99;
                    opacity: 0;
                    transform: translateY(10px);
                    user-select: none;
                    pointer-events: none;
                    border-radius: 5px;
                }

                    header > div > ul > li > div a {
                        display: block;
                        padding: 0.4rem 0.6rem;
                        text-decoration: none;
                        color: #333;
                        font-size: 0.95rem;
                        font-size: 12px;
                    }

                        header > div > ul > li > div a:hover {
                            background: #f2f2f2;
                        }

                header > div > ul > li:hover > div {
                    user-select: all;
                    pointer-events: all;
                    opacity: 1; /* hover olunca göster */
                    transform: translateY(0); /* hover olunca göster */
                }

        header > div > div {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

    header div button {
        background: none;
        outline: 0;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header > div button:first-of-type svg {
        width: 25px;
        height: 25px;
    }

    header > div > div > label input {
        padding: 5px 30px 5px 10px;
    }

    header > div > div > label svg {
        position: absolute;
        right: 5px;
        width: 15px;
        height: 15px;
        transform: translateY(-50%);
        top: 50%;
        stroke-width: 1;
    }

.dropdownLang {
    position: relative;
    border: var(--border);
    border-radius: 5px;
    padding: 5px 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

    .dropdownLang p {
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0;
    }

        .dropdownLang p svg {
            width: 15px;
            height: 17px;
        }

    .dropdownLang span {
        position: absolute;
        top: 110%;
        right: -3px;
        display: none;
        flex-direction: column;
        background: #fff;
        border: var(--border);
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 10;
        overflow: hidden;
        padding: 4px 5px;
    }

        .dropdownLang span a {
            padding: 8px 5px;
            display: flex;
            align-items: center;
            gap: 5px;
            border-radius: 5px;
            transition: background 0.2s;
            color: black;
        }

            .dropdownLang span a svg {
                width: 16px;
                height: 17px;
            }

            .dropdownLang span a:hover {
                background: #f5f5f5;
            }
/*#endregion*/

/*#region Footer*/

footer {
    background: #f2f2f2;
    color: #fff;
    padding: 40px 20px;
}

    footer > div {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        gap: 40px;
        /* otomatik responsive grid */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    /* içerik stilleri aynı kalıyor */
    footer h3 {
        margin-bottom: 15px;
        font-size: 18px;
        color: var(--black);
    }

    footer > div > div:first-of-type img {
        width: 120px;
        margin-bottom: 15px;
    }

    footer > div > div:first-of-type p {
        font-size: 12px;
        line-height: 1.6;
        color: var(--black);
    }

    footer > div > div a {
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        color: #5b5b5b;
        transition: color 0.2s;
    }

        footer > div > div a:hover {
            color: #949494;
        }

    footer > div > div:last-of-type p {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
        margin-bottom: 10px;
        color: #5b5b5b;
    }

    footer > div > div:last-of-type svg,
    footer > div > div:last-of-type i {
        color: #5b5b5b;
    }

/*#endregion*/

/*#region Content Header*/

.content-header {
    display: flex;
    max-width: 1200px;
    align-items: center;
    position: relative;
    justify-self: center;
    width: 100%;
    background: linear-gradient(to bottom right, #ffeded, #ffe9e9);
    height: 180px;
    margin-bottom: 6rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

    .content-header > div:first-of-type {
        width: 100%;
        padding-left: 5rem;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .content-header h1 {
        font-weight: 100;
        position: absolute;
        font-size: 24.8em;
        z-index: -1;
        bottom: 0;
        left: 0;
        right: 0;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1.5px;
        width: 100%;
        color: #ff59591c;
        font-family: fantasy;
    }

    .content-header > div:first-of-type div {
    }

        .content-header > div:first-of-type div a {
            color: #505050;
            transition: 300ms;
        }

        .content-header > div:first-of-type div span {
        }

        .content-header > div:first-of-type div a:hover {
            color: red;
        }

        .content-header > div:first-of-type div p {
            color: black;
        }

    .content-header > div:first-of-type div {
        display: flex;
        gap: 0.5rem;
        font-size: 10px;
    }

    .content-header > div:last-of-type {
        position: relative;
    }

        .content-header > div:last-of-type img {
            width: 243px;
            position: absolute;
            top: -71px;
            right: 50px;
            border-radius: 9px;
            max-height: 220px;
            object-fit:contain;
        }


/*#endregion*/
/*#region BTN / INPUT / SELEECT*/
.btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 5px;
    transition: 300ms;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    width: max-content;
    border: 0;
    outline: 0;
}

    .btn > svg {
        width: 17px;
        height: 17px;
    }

.btn-red {
    background: var(--red);
    color: white;
}

    .btn-red:hover {
        background: var(--red-hover);
    }

.btn-border {
    border: var(--border);
}

    .btn-border:hover {
        background: #ebebeb;
    }

select,
input {
    width: 100%;
    padding: 5px 10px;
    border-radius: 5px;
    outline: none;
    border: var(--border);
}

/*#endregion*/

/*#region PicturePopup */
#PicturePopup {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000006e;
    z-index: 100;
    top: 0;
    left: 0;
    display: none;
}

    #PicturePopup > div {
        width: 80%;
        height: 80%;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 5px;
        position: relative;
    }

        #PicturePopup > div > img {
            width: auto;
            height: 83vh;
            cursor: pointer;
            user-select: none;
            object-fit: contain;
        }

    #PicturePopup .closePopup {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 30px;
        cursor: pointer;
        color: white;
        z-index: 1000;
    }

/*#endregion*/

/*#region Alert*/
#Alert {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 100;
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0;
    animation: slideIn 0.5s ease forwards, slideOut 0.5s ease 2.5s forwards;
}

#AlertJS {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 100;
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0;
    transition: top 0.5s ease, opacity 0.5s ease;
}


    #Alert > i,
    #AlertJS > i {
        font-size: 15px;
    }

.failed {
    background: #f6cfce !important;
}

    .failed > i {
        color: #ea5553;
    }

.success {
    background: #d8f1d0 !important;
}

    .success > i {
        color: #9ed08e;
    }

@keyframes slideIn {
    0% {
        top: -100px;
        opacity: 0;
    }

    100% {
        top: 13px;
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        top: 13px;
        opacity: 1;
    }

    100% {
        top: -100px;
        opacity: 0;
    }
}
/*#endregion*/
/*#region responsive header*/

.responsive-header {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 73px;
    position: fixed;
    top: 0;
    width: calc(100% - 4rem);
    padding: 0 2rem;
    background: white;
    z-index: 9;
    display: none;
}

    .responsive-header > a {
        position: absolute;
        transform: translateX(-50%);
        left: 50%;
    }

        .responsive-header > a img {
            width: 120px;
        }

    .responsive-header > div:first-of-type {
        display: flex;
        align-items: center;
        gap: 5px;
        justify-content: center;
    }

    .responsive-header > button {
        background: none;
        outline: 0;
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .responsive-header > div:first-of-type button:first-of-type svg {
        width: 25px;
        height: 25px;
    }

    .responsive-header > div button {
        background: white;
        border-radius: 6px;
        padding: 0 10px;
        gap: 0.6rem;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        outline: 0;
    }

    .responsive-header > div:first-of-type button svg {
        stroke-width: 1;
        width: 20px;
        height: 20px;
    }




.responsive-bar {
    z-index: 9999;
    background: #0000004d;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

    .responsive-bar > div {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        background: white;
        height: 100%;
        width: 220px;
        padding: 1rem;
        position: relative;
        transition: 200ms;
        transform: translateX(-200px);
    }

        .responsive-bar > div > a {
            border-bottom: var(--border);
            padding-bottom: 10px;
        }

            .responsive-bar > div > a img {
                width: 120px;
            }

.close-responsive-bar-btn {
    position: absolute;
    right: 10px;
    top: 15px;
}

    .close-responsive-bar-btn i {
    }

.responsive-bar > div ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

    .responsive-bar > div ul li {
        color: black;
        border-bottom: 1px solid #e7e7e7;
        padding-bottom: 10px;
        position: relative;
    }

        .responsive-bar > div ul li > a {
            color: black;
            display: block;
            font-size: 12px;
        }

            .responsive-bar > div ul li > a i {
                font-size: 12px;
                position: absolute;
                right: 10px;
                top: 5px;
                transition: 300ms;
            }

                .responsive-bar > div ul li > a i.active {
                    transform: rotate(90deg)
                }

        .responsive-bar > div ul li div {
            display: none;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 10px;
            margin-top: 15px;
            padding-bottom: 1rem;
            padding-left: 1rem;
        }

            .responsive-bar > div ul li div a {
                color: black;
                font-size: 11px;
            }

.responsive-bar > div p {
    font-size: 10px;
    position: absolute;
    bottom: 40px;
    left: 10px;
    color: gray;
}

/* Popup container */
.popup-search {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    /* Arka plan */
    .popup-search .popup-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
    }

    /* İç kutu */
    .popup-search .popup-box {
        position: relative;
        background: #ffeeee;
        border-radius: 12px;
        padding: 2rem;
        z-index: 2;
        max-width: 1200px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Kapat butonu */
    .popup-search .popup-close {
        position: absolute;
        top: 15px;
        right: 15px;
        border: 0;
        color: black;
        font-size: 20px;
        cursor: pointer;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        line-height: 35px;
        text-align: center;
        cursor: pointer;
        z-index: 5;
        background: none;
    }


    /* ----- Aynı senin CSS ----- */
    .popup-search > .popup-box > div {
        position: relative;
        max-width: 1200px;
        width: 100%;
        align-items: center;
        display: flex;
        justify-self: center;
        gap: 1rem;
        padding: 1rem 0;
        z-index: 1;
    }

        .popup-search > .popup-box > div > h2 {
            font-weight: 100;
            position: absolute;
            font-size: 24.8em;
            z-index: -1;
            bottom: 0;
            left: 0;
            right: 0;
            -webkit-text-fill-color: transparent;
            -webkit-text-stroke-width: 1.5px;
            width: 100%;
            color: #ff59591c;
            font-family: fantasy;
        }

        .popup-search > .popup-box > div > div:first-of-type img {
            width: 500px;
            height: 100%;
        }

        .popup-search > .popup-box > div > div {
            width: 100%;
            position: relative;
            z-index: 1;
        }

            .popup-search > .popup-box > div > div:last-of-type > h1 {
                font-size: 44px;
            }

            .popup-search > .popup-box > div > div:last-of-type > p {
                color: gray;
                margin: 6px 0;
            }

            .popup-search > .popup-box > div > div:last-of-type > label {
                display: flex;
                align-items: center;
                gap: 1rem;
                background: white;
                padding: 5px;
                border-radius: 10px;
                transition: box-shadow 0.2s ease;
            }

                .popup-search > .popup-box > div > div:last-of-type > label:focus-within {
                    box-shadow: 0 0 8px rgb(211 80 80 / 30%);
                }

                .popup-search > .popup-box > div > div:last-of-type > label > input {
                    border: 0;
                    height: 50px;
                    outline: none;
                }

                .popup-search > .popup-box > div > div:last-of-type > label > button {
                    height: 51px;
                }

            .popup-search > .popup-box > div > div:last-of-type > div:first-of-type {
                font-size: 12px;
                margin: 1rem 0;
            }

                .popup-search > .popup-box > div > div:last-of-type > div:first-of-type > p {
                    display: flex;
                    align-items: center;
                    gap: 1rem;
                }

                    .popup-search > .popup-box > div > div:last-of-type > div:first-of-type > p > span {
                        border: 1px solid blue;
                        padding: 2px 10px;
                        background: #efefff;
                        border-radius: 20px;
                        cursor: pointer;
                    }

            .popup-search > .popup-box > div > div:last-of-type > div:last-of-type {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

                .popup-search > .popup-box > div > div:last-of-type > div:last-of-type > p {
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    align-items: center;
                    font-size: 29px;
                    font-weight: 600;
                    color: red;
                }

                    .popup-search > .popup-box > div > div:last-of-type > div:last-of-type > p > span {
                        font-size: 11px;
                        color: gray;
                        font-weight: normal;
                    }



.layout-contact-us {
    display: flex;
    align-items: center;
    height: 125px;
}

    .layout-contact-us .btn-red {
        background: var(--red);
        color: white;
        white-space: nowrap;
    }

    .layout-contact-us div:first-of-type {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #4a4a4a;
        color: white;
        height: 100%;
    }

        .layout-contact-us div:first-of-type h2 {
            font-size: 18px;
            text-align: center;
        }

    .layout-contact-us div:last-of-type {
        width: calc(40% - 60px);
        height: 100%;
        display: flex;
        align-items: center;
        background: var(--black);
        padding-left: 60px;
    }
/* ----- Responsive aynı şekilde ----- */
@media (max-width: 992px) {
    .responsive-header {
        display: flex !important;
    }

    .popup-search > .popup-box > div {
        width: calc(100% - 2rem);
        gap: 1rem;
        padding: 1rem 0;
        flex-direction: column;
    }

        .popup-search > .popup-box > div > h2 {
            display: none;
        }

        .popup-search > .popup-box > div > div {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 6px;
        }

            .popup-search > .popup-box > div > div:last-of-type > label {
                width: calc(100% - 2rem);
            }

            .popup-search > .popup-box > div > div:first-of-type img {
                display: none;
            }

            .popup-search > .popup-box > div > div:last-of-type > div:last-of-type {
                width: calc(100% - 2rem);
            }

            .popup-search > .popup-box > div > div:last-of-type > div:first-of-type {
                width: calc(100% - 2rem);
            }
}

@media (max-width: 768px) {
    .layout-contact-us div:first-of-type h2 {
        font-size: 16px;
    }

    .content-header > div:last-of-type img {
        display: none;
    }

    .content-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .popup-search > .popup-box > div > div:last-of-type > h1 {
        font-size: 25px;
    }

    .popup-search > .popup-box > div > div:last-of-type > p {
        text-align: center;
        font-size: 12px;
    }

    .popup-search > .popup-box > div > div:last-of-type > div:last-of-type > p {
        font-size: 20px;
    }

    .popup-search > .popup-box > div > div:last-of-type > div:first-of-type > p > span {
        padding: 2px 7px;
        font-size: 10px;
        text-align: center;
    }

    .popup-search > .popup-box > div > div:last-of-type > label > input {
        height: max-content;
    }

    .popup-search > .popup-box > div > div:last-of-type > label > button {
        height: 35px;
    }

    .layout-contact-us div:last-of-type, .layout-contact-us div:first-of-type h2 {
        padding-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        background: #4a4a4a;
    }

    .layout-contact-us {
        flex-direction: column;
        height: max-content;
        background: #4a4a4a;
    }
}

/*#endregion*/
@media(max-width:1400px) {
}

@media(max-width:1200px) {
    header > div {
        padding: 1rem 2rem;
    }
}

@media(max-width:992px) {

    * {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
    }

    header {
        display: none;
    }

    .content-header > div:last-of-type img {
        width: 200px;
        top: -71px;
        right: 25px;
    }
}

@media(max-width:768px) {
    .content-header > div:first-of-type h2 {
        font-size: 13px;
    }

    .content-header > div:first-of-type div {
        font-size: 9px;
        flex-wrap: wrap;
        max-width: 370px;
    }
}

@media(max-width:576px) {
    .responsive-header > a {
        position: relative;
        transform: none;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .responsive-header > a img {
            width: 80px;
        }

    .responsive-header > div:first-of-type button:first-of-type svg {
        width: 20px;
        height: 20px;
    }

    /*    .dropdownLang {
        padding: 3px 6px;
        font-size: 12px;
    }
*/

    .dropdownLang p svg {
        width: 13px;
        height: 13px;
    }

    .content-header > div:first-of-type {
        padding-left: 1rem;
    }

    footer > div {
        grid-template-columns: 1fr;
        text-align: center;
    }

        footer > div > div:last-of-type p {
            justify-content: center;
        }
}
