@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
    --red: rgb(170, 28, 28);
    --black: #111;
}

* {
    box-sizing: border-box;
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    font-weight: 400;
    color: var(--black);
    font-size: 18px;
    font-family: 'SF Pro Display', sans-serif;
}

body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.header-top {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--black);
    color: white;
    padding-left: 5%;
    padding-right: 5%;
}

.header-top div {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top div img {
    height: 20px;
}

header {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
}

.header-left {
    width: 20%;
}

.header-left img {
    height: 50px;
    object-fit: contain;
    cursor: pointer;
    filter: brightness(0.2);
}

.header-mid {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

a {
    text-decoration: none;
}

.header-mid a {
    border-radius: 50px;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    transition-duration: 0.3s;
}

.header-mid a:hover {
    background-color: #dedede;
}

.header-right {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.header-right box-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    padding: 5px;
    transition-duration: 0.3s;
}

.header-right box-icon:hover {
    background-color: #dedede;
}

.herosection {
    width: 100%;
    display: flex;
    height: 700px;
}

.herosection-left {
    width: 45%;
    background-color: var(--red);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.herosection-left div {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 10px;
}

.herosection-left h1 {
    font-size: 60px;
    color: white;
    font-weight: 600;
    max-width: 600px;
    text-align: left;
}

.herosection-left p {
    font-size: 20px;
    color: #dedede;
}

.herosection-left a {
    padding: 10px;
    padding-left: 25px;
    padding-right: 25px;
    color: white;
    background-color: var(--black);
    border-radius: 500px;
    margin-top: 10px;
    transition-duration: 0.3s;
}

.herosection-left a:hover {
    opacity: 0.5;
}

.herosection-right {
    width: 55%;
    background-color: var(--black);
}

.herosection-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2 {
    font-size: 40px;
    margin-top: 100px;
    font-weight: 600;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 70%;
    margin-top: 50px;
}

.product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.product span {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--black);
    color: white;
    font-weight: 300;
    font-size: 15px;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 500px;
}

a {
    cursor: pointer;
}

.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background-color: #f3f3f3;
    padding: 30px;
    object-fit: contain;
    transition-duration: 0.3s;
}

.product h3 {
    font-weight: 600;
    font-size: 25px;
    margin-top: 10px;
}

.product p {
    color: #666;
}

.product:hover img {
    background-color: #dedede;
}

.product div {
    margin-top: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 20px;
    gap: 5px;
}

.product div small {
    font-weight: 400;
    font-size: 17px;
    color: #666;
    text-decoration: line-through;
}

@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .products {
        grid-template-columns: repeat(1, 1fr);
    }
}

.productview {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.233);
    display: none;
    align-items: center;
    justify-content: center;
}

.productview-inside {
    width: 95%;
    max-width: 1000px;
    height: 500px;
    background-color: white;
    border-radius: 50px;
    padding: 0px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    overflow: hidden;
}

.productview-inside-left {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.productview-inside-left img {
    width: 100%;
    height: 500px;
    background-color: #f3f3f3;
    padding: 30px;
}

.productview-inside-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 5px;
    position: relative;
    height: 100%;
}

.productview-inside-right p {
    font-weight: 400;
    color: #666;
    margin-top: 20px;
}

.productview-inside-right a {
    margin-top: 20px;
    background-color: var(--black);
    color: white;
    position: absolute;
    bottom: 30px;
    width: calc(100% - 60px);
    text-align: center;
    border-radius: 20px;
    padding: 10px;
    transition-duration: 0.3s;
}

.productview-inside-right a:hover {
    opacity: 0.7;
}

.productview-inside-right h1 {
    font-weight: 600;
    font-size: 30px;
}

.productview-inside-right div {
    font-weight: 600;
    font-size: 20px;
}

footer {
    background-color: var(--red);
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 100px;
    text-align: center;
}

.avresi {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: white;
    border: 2px solid #999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 20px);
    max-width: 400px;
    border-radius: 10px;
    gap: 10px;
    transition: opacity 1s ease-in-out;
}

.avresi img {
    width: 100%;
    max-width: 200px;
}

.avresi p {
    font-weight: 400;
}

.avresi div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avresi div a {
    width: 49%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    transition: opacity 0.3s;
}

.avresi div a.blue {
    background-color: oklch(.546 .245 262.881);
}

.avresi div a:hover {
    opacity: 0.7;
}

@media screen and (max-width: 900px) {
    .header-mid{
        display: none;
    }
    .products{
        width: 90%;
    }
}

@media screen and (max-width: 800px) {
    .herosection-right{
        display: none;
    }
    .herosection-left{
        width: 100%;
    }
    .herosection-left div{
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    .herosection-left h1{
        text-align: center;
    }
}