.hero{
  width: 100%;
  aspect-ratio: 1580 / 700; 
  overflow: hidden;
}

.hero-image{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}
@media (max-width: 900px){
  .hero{
    height: calc(100svh - var(--shopHeaderH));
    aspect-ratio: 0; 
  }

  .hero-image img{
    object-fit: contain;       /* não corta */
    object-position: center;   /* centraliza */
  }
}

/* ===== HERO CARDS (3 desktop / 2 tablet-mobile / 1 pequeno) ===== */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.hero-card img {
    width: 100%;
    max-width: 382px;
    height: auto;
    border-radius: 15px;
    display: block;
}

@media (max-width: 900px) {
    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 0 16px;
        margin: 24px auto;
    }

    .hero-card {
        min-height: 80px;
    }

    .hero-card img {
        max-width: 100%;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .hero-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== PROMO CARROSSEL ===== */
.promo-container {
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.promo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.promo-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: .2px;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-arrows {
    display: flex;
    gap: 8px;
}

.promo-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #111;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.promo-arrow:hover {
    background: #000;
}

.promo-arrow:active {
    transform: scale(.98);
}

.promo-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.promo-viewport {
    width: 100%;
    overflow: hidden;
}

.promo-track {
    display: flex;
    gap: 18px;
    will-change: transform;
    transition: transform .35s ease;
    min-width: 0;
    max-width: 100%;
    padding: 10px 0 18px;
}

.promo-card {
    flex: 0 0 auto;
    width: 260px;
    min-width: 260px;
    max-width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, .10);
}

.promo-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.promo-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffd400;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 3;
}

.promo-media {
    position: relative;
    width: 100%;
    height: 280px;
    padding: 10px;
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.promo-media img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    transition: opacity .22s ease, transform .22s ease;
    user-select: none;
    -webkit-user-drag: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.promo-media .img-front {
    opacity: 1;
    transform: scale(1);
}

.promo-media .img-back {
    opacity: 0;
    transform: scale(1.02);
}

.promo-card:hover .promo-media .img-front {
    opacity: 0;
}

.promo-card:hover .promo-media .img-back {
    opacity: 1;
    transform: scale(1);
}

.promo-title {
    margin: 12px 12px 8px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .2px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #111;
    min-height: 40px;
}

.promo-price {
    margin: 0 12px;
}

.promo-price strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    margin-top: 2px;
}

.promo-price small {
    display: block;
    font-size: 12px;
    color: rgba(0, 0, 0, .65);
    margin-top: -2px;
}

.promo-sub {
    margin: 8px 12px 14px;
    display: grid;
    gap: 4px;
}

.promo-sub .old {
    font-size: 13px;
    font-weight: 800;
    color: rgba(0, 0, 0, .62);
}

.promo-sub .installments {
    font-size: 11px;
    color: rgba(0, 0, 0, .55);
    line-height: 1.25;
}

.promo-card::after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(0, 0, 0, .06);
    margin: 0 12px 10px;
}

.image-grid-home {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Card */
.tile {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;

    flex: 1 1 240px;
    max-width: 320px;
    aspect-ratio: 3 / 4;

    border-radius: 18px;
    background: #111;

    /* sombra mais bonita */
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .18),
        0 2px 6px rgba(0, 0, 0, .12);

    transform: translateY(0);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* brilho/gradiente pra legibilidade do texto */
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .70) 0%, rgba(0, 0, 0, .10) 55%, rgba(0, 0, 0, 0) 100%);
    opacity: .95;
    pointer-events: none;
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transform: scale(1.02);
    transition: transform .45s ease, filter .45s ease;
}

/* Hover elegante */
.tile:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .25),
        0 6px 12px rgba(0, 0, 0, .18);
}

.tile:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.05);
}

/* Overlay (conteúdo embaixo) */
.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    /* acima do gradiente */

    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 0 14px;
    pointer-events: none;
}

/* Tarja mais “design” */
.tag {
    background: #ffd400;
    color: #fff;
    font-weight: 900;
    letter-spacing: .16em;
    padding: 14px 26px;
    text-transform: uppercase;
    line-height: 1;

    border-radius: 12px;

    /* recorte moderno */
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);

    /* sombra da tarja */
    box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
}

/* Texto de baixo mais visível e com “vidrinho” */
.sub {
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;

    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
}

.catalog-container {
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: #111;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.catalog-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

/* GRID: 4 por linha */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Card ocupa a coluna inteira do grid (e não força largura fixa) */
.catalog-grid .promo-card {
    width: 100%;
    min-width: 0;
}

/* Tablet: 2 por linha */
@media (max-width: 1024px) {
    .promo-card:hover {
        all: unset;
    }

    .catalog-container {
        padding: 0 16px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 por linha */
@media (max-width: 520px) {
    .catalog-container {
        padding: 0 10px;
    }

    .promo-card:hover {
        all: unset;
    }
}


@media (prefers-reduced-motion: reduce) {

    .tile,
    .tile img {
        transition: none;
    }

    .tile:hover {
        transform: none;
    }

    .tile:hover img {
        transform: none;
    }
}



@media (max-width: 1024px) {
    .image-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-card:hover {
        all: unset;
    }
}

@media (max-width: 520px) {
    .image-grid-home {
        grid-template-columns: 1fr;
    }

    .promo-card:hover {
        all: unset;
    }
}

/* ================= TABLET / NOTEBOOK ================= */
@media (max-width: 1024px) {
    .promo-container {
        padding: 0 16px;
    }

    .promo-card:hover {
        all: unset;
    }

    .promo-card {
        width: 240px;
        min-width: 240px;
    }

    .promo-media {
        height: 180px;
    }
}

/* ================= MOBILE & TABLET (2 CARDS) ================= */
@media (max-width: 760px) {
    .promo-container {
        padding: 0 14px;
    }

    .promo-head h2 {
        font-size: 18px;
    }

    .promo-track {
        gap: 12px;
    }

    .promo-card {
        width: calc((100% - 12px) / 2);
        min-width: calc((100% - 12px) / 2);
    }

    .promo-card:hover {
        all: unset;
    }

    .promo-media {
        height: 160px;
    }

    .promo-title {
        font-size: 11px;
        min-height: 32px;
    }

    .promo-price strong {
        font-size: 18px;
    }
}

/* ================= MOBILE PEQUENO (CONTINUA 2) ================= */
@media (max-width: 420px) {
    .promo-container {
        padding: 0 10px;
    }

    .promo-card:hover {
        all: unset;
    }

    .promo-track {
        gap: 10px;
    }

    .promo-card {
        width: calc((100% - 10px) / 2);
        min-width: calc((100% - 10px) / 2);
    }

    .promo-media {
        height: 140px;
    }

    .promo-price strong {
        font-size: 16px;
    }
}

@media (hover: none) {

    .promo-card:hover .promo-media .img-front {
        opacity: 1;
    }

    .promo-card:hover .promo-media .img-back {
        opacity: 0;
    }
}
