/* ============================================================
   LOJA - ESTILO ATUALIZADO (ALINHADO AO CARROSSEL)
   Fontes: Syne (títulos) / Poppins (textos)
   ============================================================ */

/* ---------- Base geral da Loja ---------- */
body.woocommerce,
body.woocommerce-page {
    background: #faf7f2;
    color: #3f1418;
    font-family: "Poppins", sans-serif;
}

/* ---------- Hero / Cabeçalho ---------- */
.loja-hero {
    padding: clamp(8rem, 7vw, 5rem) 30px 30px;
    background: linear-gradient(135deg, rgba(255, 244, 236, 0.85), rgba(255, 232, 223, 0.9));
}

.loja-hero__wrap {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    width: min(1100px, 90vw);
    margin: 0 auto;
}

.loja-hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: rgba(193, 47, 58, 0.12);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a1422;
}

.loja-hero__title {
    font-family: "Syne", sans-serif;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.loja-hero__subtitle {
    max-width: 46ch;
    color: rgba(63, 20, 24, 0.75);
    margin: 0;
}

/* ---------- Grid geral da Loja ---------- */
.loja-grid {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

body.woocommerce ul.products,
body.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: clamp(1.8rem, 4vw, 2.8rem) !important;
    justify-content: center !important;
    justify-items: stretch !important;
    width: 100% !important;
    margin: 25px auto !important;
    padding: 0 !important;
}

@media (min-width: 1200px) {
    body.woocommerce ul.products,
    body.woocommerce-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

body.woocommerce ul.products::before,
body.woocommerce ul.products::after,
body.woocommerce-page ul.products::before,
body.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}

/* --- Correção de largura dos cards na grade --- */
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    width: 100% !important;
    display: flex !important;
}
.loja-card{
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.loja-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.loja-card__media,
.loja-card__body,
.loja-card__footer,
.loja-card__actions {
    width: 100%;
}

/* ============================================================
   CARTÕES DE PRODUTO (VISUAL ALINHADO AO CARROSSEL)
   ============================================================ */

.loja-card {
    position: relative;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width:100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loja-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.loja-card__link {
    display: grid;
    text-decoration: none;
    color: inherit;
}

/* ---------- Imagem ---------- */
.loja-card__media {
    padding: 1.2rem 1.2rem 0;
}

.loja-card__media-inner {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
    aspect-ratio: 4 / 3;
}

.loja-card__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.loja-card__media-inner:hover .loja-card__image {
    transform: scale(1.05);
}

/* ---------- Corpo ---------- */
.loja-card__body {
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem 1.6rem 0.6rem;
}

.loja-card__title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #111;
    margin: 0;
}

.loja-card__excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Rodapé ---------- */
.loja-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    background: #fff;
}

/* Categoria */
.loja-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #7a1422;
    font-size: 0.9rem;
    font-weight: 500;
}

.loja-card__badge i {
    font-size: 0.95rem;
    color: #c12f3a;
}

/* Preço */
.loja-card__price {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: right;
    color: #c42f3a;
}

.loja-card__price i {
    font-size: 1.05rem;
    color: #c12f3a;
    background: rgba(193, 47, 58, 0.08);
    padding: 0.45rem;
    border-radius: 50%;
}

.loja-card__price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.loja-card__price-old {
    font-size: 0.85rem;
    color: rgba(56, 16, 10, 0.45);
    text-decoration: line-through;
}

.loja-card__price-new {
    font-size: 1.05rem;
    font-weight: 700;
    color: #c42f3a;
}

.loja-card__price-single {
    font-size: 1rem;
    font-weight: 700;
    color: #3f1418;
}

/* ---------- Botão ---------- */
.loja-card__actions {
    padding: 0 1.2rem 1.4rem;
}

.loja-card__button {
    display: block;
    width: 100%;
    text-align: center;
    background: #f9f9f9;
    color: #53111c;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.9rem 1.2rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.loja-card__button:hover {
    background: #53111c;
    color: #fff;
}

/* ---------- Etiqueta de promoção ---------- */
body.woocommerce ul.products li.product .onsale,
body.woocommerce-page ul.products li.product .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    max-width: 50%;
    padding: 0.35rem 0.75rem 0.35rem 2.1rem;
    background: linear-gradient(145deg, #c12f3a, #7a1422);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(64, 10, 18, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1;
    z-index: 3;
}

body.woocommerce ul.products li.product .onsale::before {
    content: "\f06b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    position: absolute;
    left: 0.6rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
/* --- Ajuste de espaçamentos verticais nos cards --- */
.loja-card__media {
    padding: 1rem 1rem 0; /* reduz ligeiramente o padding */
}
.loja-card__body {
    padding: 1rem 1.4rem 0.4rem; /* menos espaço após o texto */
}
.loja-card__actions {
    padding: 0 1.2rem 1rem; /* reduz espaçamento inferior */
}
.loja-card__button {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
}
/* melhora o alinhamento entre rodapé e botão */
.loja-card__footer {
    padding-bottom: 0.6rem;
}

/* ---------- Ordenação ---------- */
.woocommerce-ordering {
    margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.woocommerce-ordering select {
    appearance: none;
    border: 1px solid rgba(193, 47, 58, 0.25);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 244, 236, 0.85), rgba(255, 232, 223, 0.9));
    padding: 0.65rem 2.8rem 0.65rem 1.2rem;
    font: 600 0.85rem "Syne", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a1422;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce-ordering::after {
    content: "\f107"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7a1422;
    pointer-events: none;
    font-size: 0.95rem;
}

.woocommerce-ordering select:hover {
    border-color: #c12f3a;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: #7a1422;
    box-shadow: 0 0 0 3px rgba(193, 47, 58, 0.18);
}

/* ---------- Responsividade ---------- */
@media (max-width: 640px) {
    .woocommerce-ordering {
        justify-content: flex-start;
    }
    .woocommerce-ordering select {
        width: 100%;
    }
    .loja-card__body,
    .loja-card__footer {
        padding: 1rem 1.2rem;
    }
    .loja-card__button {
        padding: 0.8rem 1rem;
    }
}
