@import url(fonts.css);
@import url(shop.css);

@view-transition {
    navigation: auto;
  }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: rgba(0, 0, 0, 0.5);
}

:root {
    background-color: #f1f1f1;
    font-family: "Poppins", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #1b1b1b;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "General Sans", Helvetica, Arial, sans-serif;
}

input {
    font-family: "Poppins", Helvetica, Arial, sans-serif;
}

body {
    width: 100%;
}

@keyframes show {
    0% {
        transform: rotateX(-20deg);
        opacity: 0;
    }
    
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

main {
    animation: show 0.6s ease-out;
    border-right: 1px solid black;
    border-left: 1px solid black;
    margin: auto;
    max-width: 100rem;
}

h2 {
    letter-spacing: -0.05rem;
}

.us .section-title h2 {
    width: 100%;
}

button {
    box-shadow: none;
    outline: none;
    border: none;
}

.theme-color {
    color: #265185;
}

.bold {
    font-weight: 600;
}

hr {
    color: #1b1b1b;
}

a {
    text-align: center;
    color: unset;
}

a:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

header {
    border-bottom: 1px solid #1b1b1b;
    user-select: none;
    padding: 0.5rem;
    width: 100%;
}

header .logo {
    scale: 1;
    text-align: left;
    text-decoration: none;
    width: 66rem;
    gap: 1rem;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

header .logo:hover {
    padding: 0;
    scale: 0.9;
    border-radius: 1rem;
    background-color: rgba(57, 121, 197, 0.2);
}

header .logo h2 {
    letter-spacing: -0.1rem;
    font-weight: 600;
    line-height: 120%;
    font-size: 2rem;
}

header .links {
    gap: 0.5rem;
    width: -webkit-fill-available;
    width: -moz-available;
    justify-content: flex-end;
    align-items: center;
}

header .m-header-actions {
    display: none;
    padding: 0.5rem;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.hero-1 {
    text-align: center;
    gap: 0.8rem;
    color: white;
    background-image: url(../media/hero-1.avif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80vh;
    max-height: 40rem;
}

.hero-1 h2 {
    font-size: 4rem;
    font-family: "General Sans", sans-serif;
    text-shadow: 0px 0px 4px white;
}

.hero-1 p {
    font-size: 1.5rem;
}

search {
    justify-content: center;
    border-radius: 0.5rem;
    min-width: 23rem;
    width: 100%;
    max-width: 40rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    color: #6B6B6B;
    font-size: 1.5rem;
    background: #DFDFDF;
}

search form {
    gap: 0.5rem;
    width: 100%;
}

search input {
    width: 100%;
    font-size: 1.25rem;
    border: 0;
    background: transparent;
    font-family: "General Sans", sans-serif;
    font-style: italic;
}

search button {
    font-size: 1rem;
}

search input:focus-visible {
    outline: none;
}

.actions {
    gap: 0.8rem;
}

.shop-sections {
    background-image: url(../media/texture-sand.jpg );
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-title {
    align-items: center;
}

.section-title h2 {
    font-size: 2.25rem;
}

.section-title p {
    font-size: 1.25rem;
}

.card {
    font-size: 1.25rem;
    font-weight: 500;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    min-height: 170px;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    color: white;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

.bento-section {
    max-width: 80vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
}

.section-title h2 {
    text-transform: capitalize;
    color: #1b1b1b;
}

.section-title p {
    color: #5a5a5a;
}

#bento1 {
    background-image: url(../media/Card-0.jpg);
    grid-area: 1 / 1 / 2 / 2;
}

#bento2 {
    background-image: url(../media/Card-1.jpg);
    grid-area: 1 / 2 / 2 / 4;
}

#bento3 {
    background-image: url(../media/Card-2.jpg);
    grid-area: 2 / 1 / 3 / 3;
}

#bento4 {
    background-image: url(../media/Card-3.jpg);
    grid-area: 2 / 3 / 3 / 4;
}

#bento5 {
    background-image: url(../media/Card-4.jpg);
    grid-area: 3 / 1 / 4 / 4;
}

.brands .section-title {
    padding: 2rem;

    p {
        text-align: center;
        width: 100%;
    }
}

.section-brands {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;

    .splide__track .splide__list img {
        max-height: 72px;
        object-fit: contain;
    }
}

.us {
    padding: 4rem;
}

.contacts {
    padding: 1rem;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;

    .contact-card {
        padding: 1rem;
        border: 1px solid black;

        h4 {
            font-size: 1.2rem;
        }
    }
}



footer {
    border-top: 1px solid black;
    padding: 3rem;
    width: 100%;
}

footer .right {
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 20%;
}

footer .left {
    justify-content: space-around;
    align-items: flex-end;
    width: 80%;
}

/* things */

.toaster {
    top: 0;
    left: 0;
    position: sticky;
    z-index: 99;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    animation: toaster-appear 0.5s ease;
}

@keyframes toaster-appear {
    from { opacity: 0; transform: translateY(-1rem) rotateY(-25deg);}
    to { opacity: 1; transform: translateY(0) rotateY(0deg);}
}

.toaster[type = notification] {
    background-color: #3992c5;
    color: white;
}

.toaster[type = success] {
    background-color: #39c555;
    color: white;
}

.toaster[type = warning] {
    background-color: #c5a439;
    color: white;
}

.toaster[type = error] {
    background-color: #c53939;
    color: white;
}

.toaster[type = info] {
    background-color: #c5395c;
    color: white;
}

/* 800px = 50rem */
@media (max-width:50rem) {
    .toaster {
        text-align: center;
        justify-content: center;
    }
}

[d-button] {
    width: fit-content;
    cursor: pointer;
    font-size: 16px;
    align-items: center;
    text-wrap: nowrap;
    gap: 0.5rem;
    transition-behavior: allow-discrete;
    transition-property: all;
    transition-duration: 0.25s;
    text-decoration: none;
    font-family: "General Sans", sans-serif;
    font-weight: 600;
    border-radius: 0.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
}

[d-button]:hover {
    box-shadow: inset 0 0 66px rgba(255, 255, 255, 0.5);
}

[d-button="circle-1"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: #3979C5;
}

[d-button="1"] {
    color: white;
    background: #3979C5;
}

[d-button="2"] {
    color: white;
    background-color: #39C568;
}

[d-button="grey"] {
    color: #E7E7E7;
    background: #A1A1A1;
}

[d-button="transparent"] {
    color: white;
    background: transparent;
}

[d-button="transparent"]:hover {
    background-color: #1b1b1b;
    color: white;
}

[d-button="border-1"] {
    color: white;
    background: transparent;
    border: 1px solid white;
}

[d-button="border-black"] {
    color: black;
    background: transparent;
    border: 1px solid black;
}

[d-button="black"] {
    color: white;
    background-color: black;
}

[d-button="black-circle"] {
    color: white;
    background-color: black;
    padding: 0.5rem;
    clip-path: circle();
}

[d-button="black-circle"]:hover {
    scale: 1.1;
}

[d-button="red"] {
    background-color: var(--baseRed);
    color: white;
}

[flex] {
    display: flex;
}

[flex="column"] {
    display: flex;
    flex-direction: column;
}

[content="text"] {
    margin: auto;
    max-width: 60rem;
    text-wrap: balance;
}

/* 48rem = 768px */
@media screen and (max-width:48rem) {
    header .logo {
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;

        img {
            width: 72px;
        }
    }

    header .logo h2 {
        font-size: 1.5rem;
    }

    .bento-section {
        min-width: 90%;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 1fr);
    }

    #bento1 {
        grid-area: 1 / 1 / 2 / 2;
    }

    #bento2 {
        grid-area: 2 / 1 / 3 / 2;
    }

    #bento3 {
        grid-area: 3 / 1 / 4 / 2;
    }

    #bento4 {
        grid-area: 4 / 1 / 5 / 2;
    }

    #bento5 {
        grid-area: 5 / 1 / 6 / 2;
    }

    .brands .section-title {
        p {
            text-align: start;
        }
    }
}

/* 40rem = 640px */
@media screen and (max-width:40rem) {
    header {
        flex-direction: column;
    }

    header .logo h2 {
        text-align: start;
    }

    header .m-header-actions {
        display: flex;
    }

    header .links {
        display: none;
        width: 100%;
        justify-content: center;
    }

    .hero-1 h2 {
        font-size: 3rem;
    }

    .hero-1 p {
        font-size: 1rem;
    }

    .us {
        padding: 2rem;
        gap: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    footer {
        flex-direction: column;

        .right {
            width: 100%;
            margin-bottom: 3rem;
        }

        .left {
            justify-content: start;
            align-items: start;
            width: 100%;

            a {
                padding: 0.4rem;
            }
        }
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}