
/* BIBLIOTECA DELTA PRA DELTA */

:root {
    --red: #d71930;
    --red-dark: #a81022;
    --black: #101012;
    --white: #ffffff;
    --background: #f5f5f7;
    --text: #19191d;
    --muted: #66666e;
    --border: #e2e2e7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, sans-serif;
}

a {
    color: inherit;
}

header {
    background: var(--black);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(5vw, 20px);
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #ffffff15;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand img {
    width: 85px;
    height: 62px;
    object-fit: contain;
}

.brand small {
    display: block;
    font-size: 10px;
    color: #aaa;
    letter-spacing: 2px;
}

.red, em {
    color: #ff4657;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}

nav a:hover {
    color: #ff4657;
}

.wrap {
    max-width: 1280px;
    margin: auto;
    padding: 56px 30px;
}

/* DESTAQUE PRINCIPAL */

.hero {
    background:
        radial-gradient(ellipse at 90% 40%, #661321 0%, transparent 55%),
        linear-gradient(115deg, #101012 35%, #241013);
    color: white;
    border-bottom: 4px solid var(--red);
}

.hero .wrap {
    padding-top: 100px;
    padding-bottom: 100px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--red-dark);
}

.hero .eyebrow {
    color: #ff8792;
}

h1, h2, h3, p {
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -3px;
    font-weight: 900;
}

h2 {
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -1.4px;
    font-weight: 850;
}

h3 {
    line-height: 1.3;
}

.hero p {
    max-width: 560px;
    color: #d0cdd0;
    margin: 26px 0;
    font-size: 18px;
}

/* BOTOES */

.btn {
    display: inline-block;
    background: var(--red);
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px #d7193025;
}

/* CATALOGO */

.sectionhead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

#count {
    color: var(--muted);
    font-size: 13px;
    background: #e9e9ed;
    padding: 6px 12px;
    border-radius: 20px;
}

.filters {
    display: flex;
    gap: 14px;
    margin: 22px 0 32px;
    flex-wrap: wrap;
}

input, select, textarea {
    font: inherit;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    padding: 14px 16px;
    max-width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #d7193040;
    border-color: var(--red);
}

.filters input {
    flex: 1;
    min-width: 200px;
}

.filters select {
    min-width: 230px;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.product {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px #00000006;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px #00000012;
}

.cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ededf0, #dedee3);
    padding: 30px;
    min-height: 290px;
    text-decoration: none;
    overflow: hidden;
}

.cover img {
    width: auto;
    max-width: 100%;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(8px 12px 10px #00000030);
    transition: transform .3s;
}

.product:hover .cover img {
    transform: scale(1.04);
}

.productbody {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.productbody h3 {
    font-size: 23px;
    margin-top: 10px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.productbody p, .muted {
    color: var(--muted);
    font-size: 14px;
}

.productbody p {
    flex: 1;
}

.price {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 20px 0 15px;
}

.product .btn {
    display: block;
    text-align: center;
    width: 100%;
}

.secondary {
    display: block;
    margin: 14px 0 0;
    color: var(--red-dark);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.product .secondary {
    text-align: center;
}

.secondary:hover {
    text-decoration: underline;
}

/* COMO FUNCIONA */

.how {
    background: #ebebef;
    border-top: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.steps > div {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.steps b {
    display: block;
    color: var(--red);
    font-size: 34px;
    margin-bottom: 12px;
    font-weight: 900;
}

.steps p {
    color: var(--muted);
    font-size: 14px;
}

/* PAGINA DO MATERIAL */

.detail {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    margin: 25px 0;
    align-items: start;
}

.detail .cover {
    border-radius: 16px;
}

.detail .cover img {
    height: auto;
    max-height: 520px;
}

.detail h1 {
    font-size: clamp(30px, 5vw, 52px);
    margin-top: 10px;
    letter-spacing: -1.5px;
}

/* RODAPE */

footer {
    background: var(--black);
    color: #ddd;
    padding: 40px max(5vw, 20px);
    font-size: 13px;
    border-top: 3px solid var(--red);
}

footer a {
    color: #bbb;
}

/* PAINEL ADMINISTRATIVO */

form label {
    display: block;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 600;
}

form label input:not([type=checkbox]), textarea {
    display: block;
    width: 100%;
    max-width: 650px;
    margin-top: 6px;
}

details {
    background: white;
    padding: 24px;
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
}

summary {
    cursor: pointer;
    font-weight: 750;
}

[hidden] {
    display: none !important;
}

/* ACESSIBILIDADE */

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #ff4657;
    outline-offset: 4px;
}

/* TABLETS */

@media (max-width: 950px) {
    .catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail {
        gap: 25px;
    }
}

/* CELULARES */

@media (max-width: 600px) {
    .wrap {
        padding: 35px 20px;
    }

    header {
        padding: 12px 20px;
    }

    .brand img {
        width: 65px;
        height: 50px;
    }

    nav {
        gap: 18px;
    }

    .hero .wrap {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    h1 {
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .catalog, .detail, .steps {
        grid-template-columns: 1fr;
    }

    .filters input, .filters select {
        width: 100%;
        min-width: 0;
    }

    .sectionhead {
        align-items: flex-start;
    }

    .cover {
        min-height: 260px;
    }

    .cover img {
        height: 260px;
    }

    .productbody {
        padding: 22px;
    }
}

/* REDUCAO DE MOVIMENTO */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
