/* Depoimentos, ícones do menu e redes sociais do rodapé */

/* ── Ícones do menu principal ─────────────────────────────────────── */
.nav-link__icon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
    transition: opacity .2s, transform .2s;
}
.primary-nav .nav-link { display: inline-flex; align-items: center; gap: 8px; }
.primary-nav .nav-link:hover .nav-link__icon,
.primary-nav .nav-link[aria-current="page"] .nav-link__icon { opacity: 1; transform: translateY(-1px); }
.nav-link--sale .nav-link__icon { opacity: .8; }

/* ── Seção de depoimentos ─────────────────────────────────────────── */
.testimonials { background: linear-gradient(180deg, var(--white), var(--surface)); }
.testimonials-score { display: grid; gap: 16px; }
.testimonials-score > p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.testimonials-score__badge {
    display: inline-grid;
    justify-items: start;
    gap: 2px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.testimonials-score__badge strong { color: var(--navy); font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.testimonials-score__badge span { color: #f0a92b; font-size: var(--fs-md); letter-spacing: .1em; }
.testimonials-score__badge small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

.testimonials-layout { display: grid; grid-template-columns: 1.35fr .8fr; align-items: start; gap: 34px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* Sem depoimentos publicados: o formulário ocupa a largura toda da seção. */
.testimonials-layout--solo { grid-template-columns: 1fr; }
.testimonials-layout--solo .testimonial-form { position: static; padding: 38px 40px; }
.testimonials-layout--solo .testimonial-form > p { max-width: 620px; }
.testimonials-layout--solo .testimonial-form__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.testimonials-layout--solo .testimonial-form__text { margin-top: 16px; }
.testimonials-layout--solo .testimonial-form textarea { min-height: 132px; }
.testimonials-layout--solo .testimonial-form .button { width: auto; min-width: 280px; }
.testimonials-layout--solo .testimonial-form .form-message { text-align: center; }

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card__rating { color: #f0a92b; font-size: var(--fs-md); letter-spacing: .12em; }
.testimonial-card blockquote {
    position: relative;
    flex: 1;
    margin: 0;
    color: var(--ink);
    font-size: var(--fs-md);
    line-height: 1.65;
}
.testimonial-card blockquote::before {
    content: "“";
    position: absolute;
    top: -18px;
    left: -6px;
    color: var(--mint);
    font-size: 54px;
    line-height: 1;
}
.testimonial-card footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.testimonial-card__avatar {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--navy-3));
    font-size: var(--fs-md);
    font-weight: 800;
}
.testimonial-card footer strong { display: block; color: var(--navy); font-size: var(--fs-md); }
.testimonial-card footer small { color: var(--muted); font-size: var(--fs-xs); }

/* ── Formulário de depoimento ─────────────────────────────────────── */
.testimonial-form {
    position: sticky;
    top: 120px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.testimonial-form h3 { margin: 0 0 6px; font-size: 21px; }
.testimonial-form > p { margin: 0 0 20px; color: var(--muted); font-size: var(--fs-sm); }
.testimonial-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.testimonial-form label > span { display: block; margin-bottom: 6px; color: var(--navy); font-size: var(--fs-xs); font-weight: 700; }
.testimonial-form label > span small { color: var(--muted); font-weight: 500; }
.testimonial-form input[type="text"], .testimonial-form input[type="email"], .testimonial-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface);
    outline: 0;
    font: inherit;
    font-size: var(--fs-sm);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.testimonial-form textarea { min-height: 108px; line-height: 1.6; resize: vertical; }
.testimonial-form input:focus, .testimonial-form textarea:focus {
    border-color: var(--teal-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(36, 163, 150, .12);
}
.testimonial-form__text { display: block; margin-top: 12px; }
.testimonial-form .check-field span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.testimonial-form .button { justify-content: center; width: 100%; }
.testimonial-form .form-message { color: var(--navy); font-size: var(--fs-sm); text-align: left; }

.testimonial-rating { margin: 16px 0 0; padding: 0; border: 0; }
.testimonial-rating legend { padding: 0; color: var(--navy); font-size: var(--fs-xs); font-weight: 700; }
.testimonial-rating__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-top: 6px; }
.testimonial-rating__stars input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.testimonial-rating__stars label { color: #dce7e9; cursor: pointer; font-size: 27px; line-height: 1; transition: color .15s, transform .15s; }
/* Preenche da primeira estrela até a nota escolhida, sem depender da ordem dos irmãos. */
.testimonial-rating__stars:has(#nota-1:checked) label[for="nota-1"],
.testimonial-rating__stars:has(#nota-2:checked) label[for="nota-1"],
.testimonial-rating__stars:has(#nota-2:checked) label[for="nota-2"],
.testimonial-rating__stars:has(#nota-3:checked) label[for="nota-1"],
.testimonial-rating__stars:has(#nota-3:checked) label[for="nota-2"],
.testimonial-rating__stars:has(#nota-3:checked) label[for="nota-3"],
.testimonial-rating__stars:has(#nota-4:checked) label[for="nota-1"],
.testimonial-rating__stars:has(#nota-4:checked) label[for="nota-2"],
.testimonial-rating__stars:has(#nota-4:checked) label[for="nota-3"],
.testimonial-rating__stars:has(#nota-4:checked) label[for="nota-4"],
.testimonial-rating__stars:has(#nota-5:checked) label[for="nota-1"],
.testimonial-rating__stars:has(#nota-5:checked) label[for="nota-2"],
.testimonial-rating__stars:has(#nota-5:checked) label[for="nota-3"],
.testimonial-rating__stars:has(#nota-5:checked) label[for="nota-4"],
.testimonial-rating__stars:has(#nota-5:checked) label[for="nota-5"] { color: #f0a92b; }
/* Mesmo resultado para navegadores sem :has() — os inputs vêm de 5 a 1 no HTML. */
.testimonial-rating__stars input:checked ~ label { color: #f0a92b; }
.testimonial-rating__stars label:hover, .testimonial-rating__stars label:hover ~ label { color: #f0a92b; }
.testimonial-rating__stars label:hover { transform: scale(1.12); }
.testimonial-rating__stars input:focus-visible + label { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 4px; }

/* ── Cards da vitrine: comprar e favoritar ────────────────────────── */
.ecommerce-card__media { position: relative; }
.ecommerce-card__add {
    border: 0;
    cursor: pointer;
    padding: 0;
    background: var(--navy);
}
.ecommerce-card__add svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.ecommerce-card__add:hover { background: var(--teal-dark); }
.ecommerce-card__add:focus-visible, .ecommerce-card .favorite-button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.ecommerce-card .favorite-button { width: 36px; height: 36px; }
.ecommerce-card .favorite-button svg { width: 17px; height: 17px; }
.ecommerce-card__button { background: transparent; cursor: pointer; font-family: inherit; }

/* ── Avaliação na página do produto ───────────────────────────────── */
.product-rating a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.product-rating a:hover { color: var(--navy); }
.product-rating__tag {
    padding: 5px 11px;
    border-radius: 99px;
    color: var(--teal-dark);
    background: var(--teal-pale);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Painel de privacidade na área do cliente ─────────────────────── */
.privacy-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.privacy-action + .privacy-action, .privacy-panel > details { margin-top: 14px; }
.privacy-action h3 { margin: 0 0 5px; color: var(--navy); font-size: var(--fs-md); }
.privacy-action p { margin: 0; max-width: 60ch; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.privacy-action button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--navy);
    border-radius: 99px;
    color: var(--navy);
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: 800;
    transition: color .2s, background .2s;
}
.privacy-action button:hover { color: #fff; background: var(--navy); }

.privacy-action--danger { display: block; border-color: #f0c5c8; background: #fff7f7; }
.privacy-action--danger summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.privacy-action--danger summary::-webkit-details-marker { display: none; }
.privacy-action--danger summary span { color: #a33b43; font-size: var(--fs-md); font-weight: 800; }
.privacy-action--danger summary small { color: var(--muted); font-size: var(--fs-xs); }
.privacy-action--danger > p { margin: 16px 0 8px; }
.privacy-retention { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.privacy-delete-form { display: grid; gap: 12px; max-width: 460px; }
.privacy-delete-form label > span { display: block; margin-bottom: 6px; color: var(--navy); font-size: var(--fs-xs); font-weight: 700; }
.privacy-delete-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    outline: 0;
    font: inherit;
    font-size: var(--fs-sm);
}
.privacy-delete-form input[type="password"]:focus { border-color: #a33b43; box-shadow: 0 0 0 3px rgba(163, 59, 67, .12); }
.privacy-delete-form button {
    min-height: 46px;
    border: 0;
    border-radius: 99px;
    color: #fff;
    background: #a33b43;
    font-size: var(--fs-sm);
    font-weight: 800;
}
.privacy-delete-form button:hover { background: #8b2f36; }
.privacy-contact { margin: 16px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.privacy-contact a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
    .privacy-action { align-items: stretch; flex-direction: column; }
    .privacy-action button { width: 100%; }
}

/* ── Ícones das listas do rodapé ──────────────────────────────────── */
.footer-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
    transition: opacity .2s, transform .2s;
}
.footer-column h2 { display: flex; align-items: center; gap: 9px; }
.footer-column h2 .footer-icon { flex-basis: 14px; width: 14px; height: 14px; color: var(--teal); opacity: .95; }
.footer-column a, .footer-column span, .footer-column p { display: flex; align-items: flex-start; gap: 9px; }
.footer-column p .footer-icon, .footer-column h2 .footer-icon { margin-top: 1px; }
.footer-column a:hover .footer-icon { opacity: 1; transform: translateX(1px); }
.footer-column a:hover .footer-icon, .footer-review-link .footer-icon { color: var(--teal); opacity: 1; }

.payment-tags { flex-wrap: wrap; }
.payment-tags span { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; }
.payment-tags .footer-icon { flex-basis: 13px; width: 13px; height: 13px; opacity: .8; }

.footer-legal a { display: inline-flex; align-items: center; gap: 6px; }
.footer-legal .footer-icon { flex-basis: 12px; width: 12px; height: 12px; opacity: .5; }

/* ── Redes sociais no rodapé ──────────────────────────────────────── */
/* store.css deixa .footer-social em flex; aqui o rótulo fica na mesma linha
   dos ícones e centralizado verticalmente com eles. */
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.footer-social__label {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}
.footer-social__links { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; }
.footer-social__links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .05);
    transition: border-color .2s, background .2s, transform .2s;
}
.footer-social__links a:hover {
    border-color: var(--teal);
    background: rgba(111, 200, 195, .18);
    transform: translateY(-2px);
}
.footer-social__links svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-social__links a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.footer-review-link { display: inline-block; margin-top: 14px; color: var(--teal); font-size: var(--fs-sm); font-weight: 700; }

@media (max-width: 1080px) {
    .testimonials-layout { grid-template-columns: 1fr; }
    .testimonial-form { position: static; }
    .testimonials-layout--solo .testimonial-form__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-layout--solo .testimonial-form { padding: 30px 28px; }
}
@media (max-width: 720px) {
    .testimonials-grid, .testimonial-form__grid { grid-template-columns: 1fr; }
    .testimonial-form { padding: 24px 20px; }
    .testimonials-layout--solo .testimonial-form { padding: 24px 20px; }
    .testimonials-layout--solo .testimonial-form__grid { grid-template-columns: 1fr; }
    .testimonials-layout--solo .testimonial-form .button { width: 100%; min-width: 0; }
    .testimonials-score__badge { justify-self: start; }
    .footer-social__links a { width: 38px; height: 38px; }
}
