/* ================================
   RESET E VARIÁVEIS
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cor-primaria: #ff751f;
    --cor-secundaria: #001b3d;
    --text-light: #ffffff;
    --text-muted: #cccccc;
}

/* ================================
   FONTES
================================ */
@font-face {
    font-family: 'Garet';
    src: url('./fonts/Garet.otf') format('opentype');
}

@font-face {
    font-family: 'Adumu';
    src: url('./fonts/Adumu.ttf') format('truetype');
}

@font-face {
    font-family: 'LostInSouth';
    src: url('./fonts/LostInSouth.otf') format('opentype');
}

/* ================================
   BASE
================================ */
html,
body {
    height: 100%;
    /* overflow: hidden; */
    font-size: clamp(14px, 1.2vw, 18px);
    font-family: 'Garet', sans-serif;
    color: var(--text-light);
    background:
        linear-gradient(to bottom right,
            color-mix(in srgb, var(--cor-secundaria) 70%, transparent) 0%,
            color-mix(in srgb, var(--cor-secundaria) 40%, transparent) 25%,
            color-mix(in srgb, var(--cor-secundaria) 20%, transparent) 50%,
            transparent 60%) fixed,
        linear-gradient(to top,
            color-mix(in srgb, var(--cor-secundaria) 60%, transparent) 0%,
            color-mix(in srgb, var(--cor-secundaria) 20%, transparent) 25%,
            color-mix(in srgb, var(--cor-secundaria) 10%, transparent) 50%,
            transparent 55%) fixed,
        linear-gradient(color-mix(in srgb, var(--cor-secundaria) 24%, transparent),
            color-mix(in srgb, var(--cor-secundaria) 24%, transparent)) fixed,
        url('./img/background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/* ================================
   CONTAINERS
================================ */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
}

/* ================================
   HEADER
================================ */
.header {
    flex: 0 0 auto;
    padding: 4vh 0 2vh;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    flex-wrap: wrap;
}

#logo-img {
    height: clamp(10vh, 18vh, 22vh);
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.logo-text h1 {
    display: flex;
    align-items: baseline;
    font-size: clamp(3rem, 7vh, 8vh);
    line-height: 0.9;
}

.hot {
    font-family: 'Adumu', sans-serif;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-right: -0.3vw;
}

.roll {
    font-family: 'LostInSouth', cursive;
    color: var(--cor-primaria);
    letter-spacing: 0.1em;
}

#site-subtitle {
    font-family: 'Garet', sans-serif;
    color: #ffffff;
    font-size: clamp(1.6rem, 2vw, 1.6rem);
    font-weight: 600;
    align-self: flex-end;
}

/* ================================
   FOOTER
================================ */
.footer {
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 2vh 0;
    text-align: center;
}

.contact-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    flex-wrap: wrap;
    margin-bottom: 1vh;
}

.contact-line a {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-line a i {
    color: var(--cor-primaria);
    font-size: 1.1em;
}

.contact-line a:hover {
    color: var(--cor-primaria);
    transform: translateY(-0.3vh);
}

.contact-line a:hover i {
    color: #ffffff;
}

.copyright {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    color: var(--text-muted);
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .logo-text {
        align-items: center;
    }

    .contact-line {
        flex-direction: column;
    }

    .contact-line a {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
}

.main {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.products-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-card {
    max-width: 900px;

    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;

    padding: 20px 22px;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);

    text-decoration: none;
    color: inherit;

    transition: transform 0.18s ease, background 0.18s ease;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.015);
}

/* INFO DO CARD */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* impede quebra da imagem */
}

.product-title {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 700;
    margin: 0 0 6px;
}

/* DESCRIÇÃO LONGA — LIMITAR ALTURA */
.product-desc {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    opacity: 0.85;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* exibe até 3 linhas sem estourar */
    -webkit-box-orient: vertical;
    overflow: auto;
    scrollbar-width: None;
    position: relative;

    line-height: 1.4;
}

/* PREÇOS */
.product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

.price-old {
    text-decoration: line-through;
    font-size: 1rem;
    opacity: 0.45;
}

/* IMAGEM */
.product-image {
    width: 135px;
    height: 135px;

    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
    .main {
        flex-direction: column;
        padding-bottom: 2rem;
    }

    .products-list {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin-left: 0;
    }

    .product-desc {
        -webkit-line-clamp: 4;
    }
}

.tag {
    position: absolute;

    bottom: 5px;
    left: 200px;

    width: 50px;
    height: auto;
    z-index: 10;
}