:root {
    --content-max-width: 1200px;
    --content-gutter: 40px;
    --content-side-padding: max(var(--content-gutter), calc((100% - var(--content-max-width)) / 2));
}

body {
    font-family: "Nunito Sans", sans-serif !important;
}

.header-fav,
.header-cart {
    font-size: 18px !important;
}

/* Native select dropdown'ların ok ikonunu kenardan uzaklaştır (Bootstrap .form-select hariç, o zaten kendi ikonunu doğru konumlar) */
select:not(.form-select) {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 11px 7px !important;
    padding-right: 40px !important;
    cursor: pointer;
}

.swal2-styled.swal2-confirm {
    background-color: #e53637 !important;
    border-radius: 8px !important;
}

.swal2-styled.swal2-cancel {
    border-radius: 8px !important;
}

.swal2-styled.swal2-deny {
    border-radius: 8px !important;
}

.swal2-popup {
    border-radius: 18px !important;
}

.swal2-actions .swal2-styled {
    font-size: 14px !important;
}

.header-1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background-color: #000;
    z-index: 1000;
    color: rgb(221, 221, 221);
    font-weight: 400;
    font-size: 14px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--content-side-padding);
    padding-right: var(--content-side-padding);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logins {
    display: flex;
    gap: 30px;
    align-items: center;

    a {
        color: white;
        text-decoration: none;
        font-weight: 500;

        transition: color 0.3s ease;
    }

    a:hover {
        color: #e8e8e8;
    }
}

.header-2 {
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    height: 68px;
    background-color: #ffffff;
    z-index: 1000;
    color: rgb(221, 221, 221);
    font-weight: 400;
    font-size: 14px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--content-side-padding);
    padding-right: var(--content-side-padding);

    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;

    img {
        width: 75px;
        height: auto;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .active {
        border-bottom: 3px solid #e53637;
    }
}

.navs {
    display: flex;
    align-items: center;
    gap: 40px;

    a {
        font-size: 17px;
        font-weight: 500;
        border-bottom: 3px solid transparent;

        transition: border-bottom 0.4s ease;
    }

    a:hover {
        border-bottom: 3px solid #e53637;
    }
}

.header-3 {
    position: relative;
    top: 106px;
    left: 0;
    width: 100%;
    background-color: rgb(243, 242, 238);
    color: rgb(221, 221, 221);
    font-weight: 400;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: var(--content-side-padding);
    padding-right: var(--content-side-padding);

    display: flex;
    flex-direction: column;
    gap: 4px;
    color: black;

    .fs-4 {
        font-size: 19px !important;
    }

    a {
        text-decoration: none;
        color: black;
    }
}

main {
    margin-top: 156px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--content-side-padding);
    padding-right: var(--content-side-padding);

    .search-case {
        position: relative;
        width: 300px;
    }

    .search-icon {
        position: absolute;
        top: 12px;
        right: 15px;
        color: gray;
    }

    .search {
        padding: 15px;
        width: 100%;
        border: 0.5px solid rgb(188, 188, 188);
        padding-right: 40px;
    }
}

.left-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;

    .categories {
        a {
            text-decoration: none;
            color: black;
            font-weight: 500;
            font-size: 18px;
            display: block;
            user-select: none;

            transition: border-bottom 0.3s ease;
            border-bottom: 3px solid transparent;
        }

        a:hover {
            border-bottom: 3px solid #e53637;
            cursor: pointer;
        }
    }
}

.line {
    width: 100%;
    height: 1px;
    background-color: rgb(188, 188, 188);
    margin: 20px 0;
}


.line-y {
    width: 0.5px;
    height: 100%;
    background-color: rgb(188, 188, 188);
    margin: 20px 0;
}

.right-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;

    select {
        width: 190px;
    }
}

.top {
    display: flex;
    justify-content: space-between;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.product {
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;

    img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: top;
        border-radius: 5px;
        margin-bottom: 15px;
        display: block;
    }

    .name {
        margin-top: 5px;
        font-size: 20px;
        font-weight: 500;
        color: black;
        text-decoration: none;
    }

    a {
        color: #000000;
        text-decoration: none;
        font-size: 21px;
        transition: border-bottom 0.3s ease;
        border-bottom: 3px solid transparent;
    }

    a:hover {
        border-bottom: 3px solid #e53637;
    }
}

.product:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .product {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .product {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header-2 {
        height: 100px;
    }
}

footer {
    background-color: #111111;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: var(--content-side-padding);
    padding-right: var(--content-side-padding);
    color: white;
    position: relative;
    bottom: 0;
    margin-top: 70px;
    font-size: 14px;

    img {
        width: 100px !important;
    }

    .fs-4 {
        font-size: 1.05rem !important;
    }

    .gap-3 {
        gap: 10px !important;
    }

    .mb-3 {
        margin-bottom: 8px !important;
    }

    .mt-5 {
        margin-top: 24px !important;
    }

    .footer-top {
        display: flex;
        justify-content: space-between;
        align-items: start;
    }

    .social {
        font-size: 15px;
        text-decoration: none;
        color: white;
        margin-bottom: 4px;
    }

    .instagram {
        position: relative;
        display: inline-block;
        padding: 5px 10px;
        border-radius: 8px;
        background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7, #0097f7, #00f2ea);
        color: #fff;
        transition: box-shadow 0.3s;
        z-index: 1;
        overflow: hidden;
        width: 140px;
        text-align: center;
    }

    .facebook {
        position: relative;
        display: inline-block;
        padding: 5px 10px;
        border-radius: 8px;
        background: linear-gradient(45deg, #1877f3, #3b5998, #00aaff);
        color: #fff;
        transition: box-shadow 0.3s;
        z-index: 1;
        overflow: hidden;
        width: 140px;
        text-align: center;
    }

    .youtube {
        position: relative;
        display: inline-block;
        padding: 5px 10px;
        border-radius: 8px;
        background: linear-gradient(45deg, #ff0000, #c4302b, #ff5e62);
        color: #fff;
        transition: box-shadow 0.3s;
        z-index: 1;
        overflow: hidden;
        width: 140px;
        text-align: center;
    }

    .instagram span,
    .instagram i,
    .facebook span,
    .facebook i,
    .youtube span,
    .youtube i {
        position: relative;
        z-index: 2;
    }

    .instagram:hover {
        box-shadow: 0 0 10px #ee2a7b55;
    }

    .facebook:hover {
        box-shadow: 0 0 10px #1877f355;
    }

    .youtube:hover {
        box-shadow: 0 0 10px #ff000055;
    }

    .link {
        text-decoration: none;
        color: rgb(206, 206, 206);
        font-size: 13px;

        transition: color 0.3s ease;
    }

    .link:hover {
        color: #e8e8e8;
    }
}

.selected {
    border-bottom: 3px solid #e53637;
}