/* =========================================================
   MORPH — DESIGN SYSTEM
   Identidade visual: minimalista, funcional, branco/preto
   com acentos em vermelho promocional. Argentino, em es-AR.
   ========================================================= */

:root {
    /* Cores */
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --bg-soft: #fafafa;
    --fg: #0a0a0a;
    --fg-soft: #1f1f1f;
    --muted: #6b6b6b;
    --muted-2: #9a9a9a;
    --line: #e6e6e6;
    --line-strong: #cfcfcf;
    --accent: #e11d2e;
    --accent-soft: #fff1f2;
    --success: #16a34a;
    --warn: #f59e0b;
    --black: #000000;
    --white: #ffffff;

    /* Tipografia */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Archivo", "Inter", system-ui, sans-serif;

    /* Tamanhos */
    --container: 1400px;
    --container-narrow: 1200px;
    --radius: 4px;
    --radius-lg: 12px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

    /* Transições */
    --t-fast: 150ms ease;
    --t-base: 250ms ease;

    /* Header heights */
    --topbar-h: 36px;
    --header-h: 72px;
    --nav-h: 48px;
}

/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast), opacity var(--t-fast);
}

a:hover {
    opacity: 0.7;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 720px) {
    .container {
        padding: 0 16px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--muted);
}

/* =========================================================
   TOPBAR (anúncio rolante)
   ========================================================= */
.topbar {
    background: var(--black);
    color: var(--white);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.topbar__track {
    display: flex;
    gap: 64px;
    white-space: nowrap;
    animation: topbar-scroll 40s linear infinite;
    padding-left: 100%;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar__item strong {
    font-weight: 600;
}

@keyframes topbar-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header__main {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: var(--fg);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.header__logo img {
    display: block;
    height: 36px;
    width: auto;
}

.header__logo span {
    color: var(--accent);
}

.footer__brand .header__logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.header__search {
    position: relative;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.header__search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 0 48px 0 20px;
    outline: none;
    transition: border-color var(--t-fast), background var(--t-fast);
}

.header__search input:focus {
    border-color: var(--fg);
    background: var(--white);
}

.header__search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--fg);
    transition: background var(--t-fast);
    text-align: center;
    line-height: 1;
}

.header__action:hover {
    background: var(--bg-alt);
    opacity: 1;
}

.header__action svg {
    width: 22px;
    height: 22px;
}

.header__cart {
    position: relative;
}

.header__cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.header__burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    place-items: center;
}

@media (max-width: 980px) {
    .header__main {
        grid-template-columns: auto auto 1fr auto;
        gap: 12px;
    }
    .header__burger {
        display: grid;
    }
    .header__search {
        order: 4;
        grid-column: 1 / -1;
        margin: 0 0 12px 0;
    }
    .header__main {
        height: auto;
        padding: 12px 0;
    }
    .header__actions .header__action span {
        display: none;
    }
}

/* =========================================================
   NAV / MEGA MENU
   ========================================================= */
.nav {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.nav__list {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav__list::-webkit-scrollbar {
    display: none;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    height: var(--nav-h);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--fg);
    border-bottom: 2px solid transparent;
    transition: border-color var(--t-fast), color var(--t-fast);
}

.nav__link:hover {
    opacity: 1;
    border-bottom-color: var(--fg);
}

.nav__link--sale {
    color: var(--accent);
    font-weight: 700;
}

.sale-bar {
    background: var(--accent);
}

.sale-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    transition: opacity 0.2s ease;
}

.sale-bar__link:hover {
    opacity: 0.92;
}

.sale-bar__link svg {
    flex-shrink: 0;
}

.nav__link--active {
    border-bottom-color: var(--fg);
}

@media (max-width: 980px) {
    .nav {
        display: none;
    }
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.hero__track {
    display: flex;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide {
    flex: 0 0 100%;
    min-height: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--bg-alt);
}

.hero__slide:nth-child(1) {
    background: linear-gradient(120deg, #f4f1ec 0%, #e8e2d6 100%);
}
.hero__slide:nth-child(2) {
    background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
}
.hero__slide:nth-child(3) {
    background: linear-gradient(120deg, #fdf2f8 0%, #fce7f3 100%);
}

.hero__copy {
    padding: 64px 8% 64px 8%;
    max-width: 600px;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.8;
}

.hero__title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero__desc {
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 440px;
    opacity: 0.85;
}

.hero__visual {
    position: relative;
    height: 100%;
    min-height: 460px;
    display: grid;
    place-items: center;
}

.hero__visual svg {
    width: 80%;
    max-width: 480px;
    opacity: 0.9;
}

.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 2;
    border: 1px solid var(--line);
}

.hero__nav--prev {
    left: 24px;
}
.hero__nav--next {
    right: 24px;
}

.hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    transition: background var(--t-base), width var(--t-base);
}

.hero__dot--active {
    background: var(--fg);
    width: 24px;
    border-radius: 999px;
}

@media (max-width: 820px) {
    .hero__slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero__visual {
        min-height: 280px;
        order: -1;
    }
    .hero__copy {
        padding: 32px 24px 64px;
    }
    .hero__nav {
        display: none;
    }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--t-fast), background var(--t-fast),
        color var(--t-fast), border-color var(--t-fast);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.btn--primary {
    background: var(--fg);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--accent);
}

.btn--accent {
    background: var(--accent);
    color: var(--white);
}

.btn--ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--fg);
}

.btn--ghost:hover {
    background: var(--fg);
    color: var(--white);
}

.btn--inverse {
    background: var(--white);
    color: var(--fg);
}

.btn--block {
    width: 100%;
}

.btn--lg {
    height: 56px;
    padding: 0 32px;
    font-size: 15px;
}

.btn--sm {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

/* =========================================================
   SECTION (cabeçalho de seção comum)
   ========================================================= */
.section {
    padding: 64px 0;
}

.section--tight {
    padding: 32px 0;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section__title {
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section__title em {
    font-style: normal;
    color: var(--accent);
}

.section__link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--fg);
    padding-bottom: 2px;
}

@media (max-width: 720px) {
    .section {
        padding: 48px 0;
    }
    .section__head {
        margin-bottom: 24px;
    }
}

/* =========================================================
   COLLECTIONS GRID (categorias visuais)
   ========================================================= */
.collections {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.collection {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    transition: transform var(--t-base);
}

.collection:hover {
    opacity: 1;
}

.collection__image {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
    transition: transform var(--t-base);
}

.collection:hover .collection__image {
    transform: translateY(-4px);
}

.collection__image > .ph,
.collection__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-base);
}

.collection:hover .collection__image > .ph,
.collection:hover .collection__image > img {
    transform: scale(1.05);
}

.collection__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg);
    line-height: 1;
}

.collection__name::after {
    content: "→";
    font-size: 14px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t-base), transform var(--t-base);
}

.collection:hover .collection__name::after {
    opacity: 1;
    transform: translateX(0);
}

.collection--sale .collection__name {
    color: #e11d2e;
}

.collection--sale .collection__image {
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection--sale .collection__image::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(225, 29, 46, 0.35);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events: none;
}

.collection__sale-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(22px, 2.6vw, 38px);
    letter-spacing: 0.1em;
    color: #e11d2e;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(225, 29, 46, 0.28);
}

.collection--sale:hover .collection__sale-text {
    transform: scale(1.05);
    transition: transform var(--t-base);
}

@media (max-width: 980px) {
    .collections {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .collections {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--t-fast), transform var(--t-fast),
        box-shadow var(--t-base);
    position: relative;
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    overflow: hidden;
}

.card__media img,
.card__media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.card__img--primary,
.card__img--secondary {
    position: absolute;
    inset: 0;
    transition: opacity 350ms ease, transform 600ms ease;
}

.card__img--secondary {
    opacity: 0;
    pointer-events: none;
}

/* Só faz o fade entre primary/secondary quando há 2+ imagens */
.card:hover .card__media--multi .card__img--primary {
    opacity: 0;
}

.card:hover .card__media--multi .card__img--secondary {
    opacity: 1;
}

.card:hover .card__media img,
.card:hover .card__media svg {
    transform: scale(1.04);
}

.card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--white);
}

.badge--ship {
    background: var(--success);
}

.badge--new {
    background: var(--fg);
}

.card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.card__name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--fg);
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.1;
}

.card__old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
    line-height: 1.3;
}

.card__discount {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.card__installments {
    font-size: 12px;
    color: #16a3b8;
    line-height: 1.3;
    margin-top: 2px;
}

.card__cta {
    margin-top: 14px;
    align-self: flex-start;
    height: 36px;
    background: var(--fg);
    color: var(--white);
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 0 22px;
    transition: background var(--t-fast);
}

.card__cta:hover {
    background: var(--accent);
    color: var(--white);
}

@media (max-width: 760px) {
    .card__body {
        padding: 12px;
    }
    .card__cta {
        display: none;
    }
}

/* =========================================================
   BRAND STRIP
   ========================================================= */
.brands {
    background: var(--bg-alt);
    padding: 40px 0;
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: center;
}

.brand {
    aspect-ratio: 2 / 1;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--fg);
    border: 1px solid var(--line);
    transition: transform var(--t-base);
}

.brand:hover {
    transform: translateY(-2px);
    opacity: 1;
}

@media (max-width: 980px) {
    .brands__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   USP STRIP (frete grátis, parcelamento, etc)
   ========================================================= */
.usp {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    background: var(--white);
}

.usp__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.usp__item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.usp__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.usp__title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.usp__desc {
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .usp__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .usp__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--fg);
    color: var(--white);
    padding-top: 64px;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand .header__logo {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.footer__about {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    transition: background var(--t-fast);
}

.footer__social a:hover {
    background: var(--accent);
    opacity: 1;
}

.footer__col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 700;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.footer__col a:hover {
    color: var(--white);
    opacity: 1;
}

.footer__newsletter {
    grid-column: span 1;
}

.footer__newsletter form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer__newsletter input {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 16px;
    color: var(--white);
    outline: none;
}

.footer__newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter button {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.footer__payments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.payment {
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
}

@media (max-width: 980px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PLP (Listagem)
   ========================================================= */
.plp {
    padding: 32px 0 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb span:last-child {
    color: var(--fg);
    font-weight: 500;
}

.plp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 16px;
}

.plp__title {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* ===== Sale banner ===== */
.sale-banner {
    background: #FFF8DC;
    border: 1px solid #F0D87A;
    border-left: 4px solid #C4922F;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 8px 0 24px;
    color: #4E2A0E;
}
.sale-banner__body {
    text-align: left;
}
.sale-banner__body p {
    margin: 0;
    color: #4E2A0E;
    line-height: 1.5;
}
.sale-banner__headline {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sale-banner__sub,
.sale-banner__urgency,
.sale-banner__cta {
    font-size: 14px;
    margin-bottom: 4px !important;
}
.sale-banner__cta {
    margin-bottom: 0 !important;
    margin-top: 6px !important;
}
.sale-banner__body strong {
    color: #3E1F08;
    font-weight: 700;
}
@media (max-width: 640px) {
    .sale-banner {
        padding: 14px 16px;
    }
    .sale-banner__headline {
        font-size: 14px;
        margin-bottom: 6px !important;
    }
    .sale-banner__sub,
    .sale-banner__urgency,
    .sale-banner__cta {
        font-size: 13px;
    }
}

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

.plp__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plp__sort select {
    height: 40px;
    padding: 0 32px 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L5 5L9 1' stroke='%230a0a0a' stroke-width='1.5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.plp__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.plp__filters h4 {
    font-size: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: 0;
    text-transform: none;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 32px 0 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L5 5L9 1' stroke='%230a0a0a' stroke-width='1.5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.filter-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-links a {
    display: block;
    font-size: 14px;
    color: var(--fg);
    transition: color var(--t-fast);
    line-height: 1.4;
}

.filter-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.filter-links a.filter-link--active {
    font-weight: 700;
    color: var(--accent);
    position: relative;
    padding-left: 14px;
}

.filter-links a.filter-link--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.filter-links a.filter-link--clear {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    display: inline-block;
}

.filter-links a.filter-link--clear:hover {
    color: var(--fg);
}

.filter-group ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--fg);
}

.filter-group label:hover {
    color: var(--accent);
}

.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--fg);
}

.filter-group .count {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
}

.plp__loadmore {
    display: grid;
    place-items: center;
    margin-top: 48px;
}

@media (max-width: 980px) {
    .plp__layout {
        grid-template-columns: 1fr;
    }
    .plp__filters {
        display: none;
    }
}

/* =========================================================
   PDP (Página de produto)
   ========================================================= */
.pdp {
    padding: 24px 0 64px;
}

.pdp__layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.pdp__gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-h) + var(--nav-h) + 16px);
}

.pdp__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp__thumb {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--t-fast);
    padding: 0;
    display: block;
}

.pdp__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-soft);
}

.pdp__thumb--active {
    border-color: var(--fg);
    border-width: 2px;
}

.pdp__main {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    line-height: 0;
}

.pdp__main img {
    width: 100%;
    height: auto;
    display: block;
}

.pdp__title {
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pdp__sku {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 24px;
}

.pdp__price-block {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.pdp__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.pdp__price {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pdp__old {
    font-size: 18px;
    color: var(--muted);
    text-decoration: line-through;
}

.pdp__discount {
    background: var(--accent);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.pdp__tax {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.pdp__installments {
    margin-top: 12px;
    font-size: 14px;
    color: #16a3b8;
    line-height: 1.5;
}

.pdp__installments strong {
    color: #0e7c8b;
    font-weight: 700;
}

.pdp__stock {
    color: #16a3b8;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.pdp__leadtime {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.pdp__leadtime-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    margin-right: 6px;
    text-transform: uppercase;
    vertical-align: middle;
}

.pdp__highlights {
    margin-top: 16px;
    padding-left: 20px;
    list-style: disc;
}

.pdp__highlights li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.pdp__variants {
    margin-bottom: 24px;
}

.pdp__variants h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-sans);
    margin-bottom: 12px;
}

.pdp__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--t-fast);
}

.chip:hover {
    border-color: var(--fg);
    opacity: 1;
}

.chip--active {
    border-color: var(--fg);
    border-width: 2px;
    background: var(--fg);
    color: var(--white);
}

.swatch {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.swatch__dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.swatch:hover {
    border-color: var(--fg);
}

.swatch--active {
    border-color: var(--fg);
    border-width: 2px;
}

.pdp__qty {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.qty button {
    width: 40px;
    height: 44px;
    font-size: 18px;
    font-weight: 600;
}

.qty input {
    width: 50px;
    height: 44px;
    text-align: center;
    border: 0;
    outline: none;
    font-weight: 600;
}

.pdp__actions {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.pdp__addons {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}

.pdp__addons-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-sans);
}

.pdp__addons-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.pdp__addons-list {
    display: grid;
    gap: 10px;
}

.pdp__addon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.pdp__addon:hover {
    border-color: var(--fg);
    background: var(--bg-soft);
}

.pdp__addon--selected {
    border-color: var(--fg);
    border-width: 2px;
    background: var(--bg-soft);
    padding: 9px;
}

.pdp__addon--selected .pdp__addon-add {
    background: #2e8b57;
}

.pdp__addon-media {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.pdp__addon-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdp__addon-body {
    flex: 1;
    min-width: 0;
}

.pdp__addon-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.pdp__addon-price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.pdp__addon-add {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--fg);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.pdp__shipping {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}

.pdp__shipping h4 {
    font-size: 14px;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.pdp__shipping-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp__shipping-title svg {
    flex-shrink: 0;
}

.pdp__cep {
    display: flex;
    gap: 8px;
}

.pdp__cep input {
    flex: 1;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0 16px;
    outline: none;
    font-size: 14px;
}

.pdp__cep input:focus {
    border-color: var(--fg);
}

.pdp__cep .btn {
    border-radius: 0;
    border: 1.5px solid var(--fg);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 13px;
    padding: 0 16px;
    height: 42px;
}

.pdp__cep-result {
    margin-top: 16px;
}

.pdp__cep-result:not(:empty) {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.ship-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.ship-option + .ship-option {
    border-top: 1px solid var(--line);
}

.ship-option__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--muted, #8a8a8a);
}

.ship-option__icon svg {
    width: 100%;
    height: 100%;
}

.ship-option__body {
    flex: 1;
    min-width: 0;
}

.ship-option__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
}

.ship-option__desc {
    font-size: 12px;
    color: var(--muted, #8a8a8a);
    margin-top: 2px;
}

.ship-option__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
}

.ship-option__price--free {
    color: #2e8b57;
}

.pdp__benefits {
    display: grid;
    gap: 12px;
}

.pdp__benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.pdp__benefit svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.pdp__tabs {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    padding-top: 48px;
}

.tabs__nav {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
    overflow-x: auto;
}

.tabs__nav button {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.tabs__nav button.active {
    color: var(--fg);
    border-bottom-color: var(--fg);
}

.tabs__panel {
    display: none;
    max-width: 800px;
    line-height: 1.7;
    color: var(--fg-soft);
}

.tabs__panel.active {
    display: block;
}

.tabs__panel h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.tabs__panel p {
    margin-bottom: 12px;
}

.stars {
    color: #f5b50a;
    letter-spacing: 1px;
    display: inline-block;
}

.stars--lg {
    font-size: 24px;
    line-height: 1;
}

.review-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-card__name {
    font-weight: 600;
}

.review-card__time {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.review-card__text {
    margin-top: 8px;
    line-height: 1.5;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.reviews-summary__rating {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.reviews-summary__meta {
    font-size: 14px;
    color: var(--muted);
}

.specs {
    width: 100%;
    border-collapse: collapse;
}

.specs td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.specs td:first-child {
    color: var(--muted);
    width: 200px;
}

@media (max-width: 980px) {
    .pdp__layout {
        grid-template-columns: 1fr;
    }
    .pdp__gallery {
        position: static;
        grid-template-columns: 1fr;
    }
    .pdp__main {
        order: 1;
        width: 100%;
    }
    .pdp__thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
    }
    .pdp__thumb {
        flex: 0 0 88px;
        height: 88px;
        aspect-ratio: 1 / 1;
    }
    .pdp__title {
        font-size: 24px;
    }
    .pdp__price {
        font-size: 28px;
    }
}

/* =========================================================
   CART
   ========================================================= */
.cart {
    padding: 48px 0 80px;
}

.cart__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.cart__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    align-items: center;
}

.cart-item__media {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.cart-item__media img,
.cart-item__media > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item__title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item__variant {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.cart-item__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.cart-item__qty button {
    width: 28px;
    height: 32px;
    font-size: 14px;
}

.cart-item__qty span {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-item__price {
    text-align: right;
}

.cart-item__price strong {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.cart-item__remove {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.cart-item__remove:hover {
    color: var(--accent);
    opacity: 1;
}

.cart-summary {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + var(--nav-h) + 16px);
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.cart-summary__row--total {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 0;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--fg);
}

.cart-summary__cta {
    margin-top: 16px;
}

.coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.coupon input {
    flex: 1;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--white);
    outline: none;
    font-size: 13px;
}

@media (max-width: 980px) {
    .cart__layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

/* =========================================================
   TRACKING PAGE
   ========================================================= */
.tracking {
    padding: 32px 0 80px;
}

.tracking__hero {
    text-align: center;
    max-width: 640px;
    margin: 24px auto 32px;
}

.tracking__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: grid;
    place-items: center;
    color: var(--fg);
}

.tracking__hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.tracking__hero p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.tracking__form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 16px;
}

.tracking__form input {
    flex: 1;
    height: 56px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 15px;
    outline: none;
    transition: border-color var(--t-fast);
}

.tracking__form input:focus {
    border-color: var(--fg);
}

.tracking__form .btn {
    flex-shrink: 0;
}

.tracking__hint {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    max-width: 520px;
    margin: 0 auto 48px;
}

.tracking__hint a {
    color: var(--fg);
    border-bottom: 1px solid var(--fg);
    padding-bottom: 1px;
}

.tracking__error {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.tracking__result {
    max-width: 720px;
    margin: 0 auto;
}

.tracking__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.tracking__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.tracking__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 4px;
}

.tracking__code {
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tracking__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-alt);
    font-size: 13px;
    font-weight: 600;
}

.tracking__status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn);
    animation: tracking-pulse 1.5s ease-in-out infinite;
}

.tracking__status--done {
    background: #e8f5e9;
    color: var(--success);
}

.tracking__status--done .dot {
    background: var(--success);
    animation: none;
}

@keyframes tracking-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.tracking__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 36px;
    position: relative;
}

.tracking__steps::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 12px;
    transition: all var(--t-base);
}

.step--done .step__dot {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step--current .step__dot {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--white);
}

.step--current .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white);
    animation: tracking-pulse 1.4s ease-in-out infinite;
}

.step__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 4px;
}

.step--pending .step__label {
    color: var(--muted-2);
}

.step__desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

.tracking__info {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.tracking__info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tracking__info-row:last-child {
    border-bottom: 0;
}

.tracking__info-row span {
    color: var(--muted);
}

.tracking__info-row strong {
    color: var(--fg);
    font-weight: 600;
}

.tracking__items-title {
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 16px;
}

.tracking__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tracking__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-items: center;
}

.tracking__item-img {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft);
    border-radius: 6px;
    overflow: hidden;
}

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

.tracking__item-img .ph {
    width: 100%;
    height: 100%;
}

.tracking__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tracking__item-info strong {
    font-size: 14px;
    font-weight: 500;
}

.tracking__item-qty {
    font-size: 12px;
    color: var(--muted);
}

.tracking__item-price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.tracking__total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--fg);
    margin-bottom: 24px;
    font-size: 16px;
}

.tracking__total strong {
    font-size: 22px;
    font-weight: 800;
}

.tracking__contact {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    background: var(--bg-soft);
    padding: 16px;
    border-radius: 8px;
}

.tracking__contact a {
    color: var(--fg);
    font-weight: 600;
    border-bottom: 1px solid var(--fg);
    padding-bottom: 1px;
}

@media (max-width: 720px) {
    .tracking__form {
        flex-direction: column;
    }
    .tracking__card {
        padding: 20px;
    }
    .tracking__steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    .step__label {
        font-size: 11px;
    }
    .step__desc {
        display: none;
    }
}

/* =========================================================
   PLACEHOLDERS DE PRODUTOS (SVG genéricos)
   Trocar por fotos oficiais da Morph quando disponíveis.
   ========================================================= */
.ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0ebe4 0%, #d8d0c2 100%);
    display: grid;
    place-items: center;
    position: relative;
    color: rgba(0, 0, 0, 0.4);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    padding: 16px;
    overflow: hidden;
}

.ph::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.ph--dark {
    background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
    color: rgba(255, 255, 255, 0.7);
}
.ph--warm {
    background: linear-gradient(135deg, #f5e9dc 0%, #e8d4b8 100%);
}
.ph--rose {
    background: linear-gradient(135deg, #fce4e4 0%, #f5c4c4 100%);
}
.ph--sage {
    background: linear-gradient(135deg, #e6ebe2 0%, #c4d0bc 100%);
}
.ph--sky {
    background: linear-gradient(135deg, #e3edf4 0%, #c0d4e3 100%);
}

.ph span {
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

/* =========================================================
   MOBILE NAV (drawer)
   ========================================================= */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
}

.drawer--open {
    pointer-events: auto;
    visibility: visible;
}

.drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--t-base);
}

.drawer--open .drawer__overlay {
    opacity: 1;
}

.drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(85%, 360px);
    background: var(--white);
    transform: translateX(-100%);
    transition: transform var(--t-base);
    overflow-y: auto;
    padding: 16px;
}

.drawer--open .drawer__panel {
    transform: translateX(0);
}

.drawer__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-left: auto;
    margin-bottom: 16px;
}

.drawer__list a {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
}

/* =========================================================
   TOAST · BOUNCE · FLY-TO-CART · BUTTON FLASH
   Feedback rico ao adicionar produto ao carrinho.
   ========================================================= */

/* Bounce do ícone do carrinho */
@keyframes cart-bounce {
    0% {
        transform: translateY(0) rotate(0);
    }
    20% {
        transform: translateY(-8px) rotate(-10deg);
    }
    40% {
        transform: translateY(-2px) rotate(0);
    }
    60% {
        transform: translateY(-5px) rotate(8deg);
    }
    80% {
        transform: translateY(-1px) rotate(-3deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

.header__cart--bounce svg {
    animation: cart-bounce 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    transform-origin: 50% 70%;
}

/* Pop no contador */
@keyframes count-pop {
    0% {
        transform: scale(1);
        background: var(--accent);
    }
    35% {
        transform: scale(1.6);
        background: var(--success);
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    }
    65% {
        transform: scale(0.92);
        background: var(--success);
    }
    100% {
        transform: scale(1);
        background: var(--accent);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.header__cart-count--pop {
    animation: count-pop 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Flash do botão */
.btn--flash-success,
.card__cta.btn--flash-success {
    background: var(--success) !important;
    color: var(--white) !important;
    border-color: var(--success) !important;
    transform: scale(0.97);
    transition: transform 200ms ease;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 14px;
    display: grid;
    grid-template-columns: 32px 64px 1fr auto;
    gap: 12px;
    align-items: center;
    z-index: 200;
    transform: translateX(420px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 320ms ease;
}

.toast--show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.toast__check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    animation: toast-check-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-check-pop {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast__media {
    width: 64px;
    height: 64px;
    background: var(--bg-soft);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

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

.toast__media .ph {
    width: 100%;
    height: 100%;
}

.toast__content {
    min-width: 0;
}

.toast__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.toast__name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast__cta {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 6px;
    height: 36px;
    padding: 0 16px;
    background: var(--fg);
    color: var(--white);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    text-decoration: none;
}

.toast__cta:hover {
    background: var(--accent);
    color: var(--white);
    opacity: 1;
}

.toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}

.toast__close:hover {
    background: var(--bg-alt);
    color: var(--fg);
}

/* Barra de progresso do auto-dismiss */
.toast--show::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--success);
    border-radius: 2px;
    transform-origin: left center;
    animation: toast-progress 3.5s linear forwards;
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 540px) {
    .toast {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .toast__cta {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 200ms ease;
        transform: none;
    }
    .header__cart--bounce svg,
    .header__cart-count--pop,
    .toast__check {
        animation: none;
    }
    .toast--show::after {
        animation: none;
    }
}

/* =========================================================
   FADE-IN ANIMATION
   ========================================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 600ms ease both;
}
