/* ===================================================================
   OneView Store — Página inicial configurável
   =================================================================== */
:root {
    --ovs-home-accent: var(--ovs-primary, #4f46e5);
}

.ovs-home-storefront {
    --ovs-home-surface: #ffffff;
    --ovs-home-page: #f6f7f9;
    --ovs-home-text: #172033;
    --ovs-home-muted: #667085;
    --ovs-home-line: #e8ebf0;
    background: var(--ovs-home-page);
    color: var(--ovs-home-text);
    font-family: var(--ovs-font);
    padding: clamp(2.5rem, 5vw, 4.75rem) 1.25rem;
}

.ovs-home-section,
.ovs-home-trust {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.ovs-home-section + .ovs-home-section {
    margin-top: clamp(3rem, 5vw, 5rem);
}

.ovs-home-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ovs-home-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ovs-home-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ovs-home-section__heading h2,
.ovs-home-trust h2 {
    margin: .3rem 0 .35rem;
    color: var(--ovs-home-text);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.ovs-home-section__heading p {
    max-width: 650px;
    margin: 0;
    color: var(--ovs-home-muted);
    font-size: .94rem;
    line-height: 1.5;
}

.ovs-home-section__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .35rem;
    color: var(--ovs-home-accent);
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
}

.ovs-home-section__link:hover { color: var(--ovs-home-text); }

.ovs-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--ovs-home-line);
    border-radius: 18px;
    background: var(--ovs-home-surface);
    box-shadow: 0 12px 32px rgba(15,23,42,.04);
}

.ovs-home-category {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    padding: 1.1rem .75rem 1rem;
    border-right: 1px solid var(--ovs-home-line);
    color: var(--ovs-home-text);
    gap: .55rem;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.ovs-home-category:last-child { border-right: 0; }
.ovs-home-category:hover { background: #fafbfc; transform: translateY(-2px); }

.ovs-home-category__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 2px solid #eef0f3;
    border-radius: 50%;
    background-color: #f6f7f9;
    background-repeat: no-repeat;
    background-size: 400% 300%;
    box-sizing: border-box;
}

.ovs-home-category__image img {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
}

.ovs-home-category__image i { color: var(--ovs-home-accent); font-size: 1.7rem; }
.ovs-home-category__name { max-width: 13ch; font-size: .78rem; font-weight: 750; line-height: 1.25; }
.ovs-home-category__count { color: #98a2b3; font-size: .68rem; }

.ovs-home-categories--rounded .ovs-home-category__image { border-radius: 18px; }
.ovs-home-categories--minimal .ovs-home-categories__grid { border-radius: 0; border-right: 0; border-left: 0; box-shadow: none; }
.ovs-home-categories--minimal .ovs-home-category { padding-top: .85rem; padding-bottom: .85rem; }
.ovs-home-categories--minimal .ovs-home-category__image { width: 58px; height: 58px; border-width: 0; }

.ovs-home-featured__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ovs-home-product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ovs-home-line);
    border-radius: 16px;
    background: var(--ovs-home-surface);
    box-shadow: 0 5px 16px rgba(15,23,42,.04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ovs-home-product:hover {
    border-color: color-mix(in srgb, var(--ovs-home-accent) 28%, #e8ebf0);
    box-shadow: 0 15px 28px rgba(15,23,42,.11);
    transform: translateY(-3px);
}

.ovs-home-product__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f3f5;
}

.ovs-home-product__image img {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.ovs-home-product:hover .ovs-home-product__image img { transform: scale(1.035); }
.ovs-home-product__badge {
    position: absolute;
    top: .65rem;
    left: .65rem;
    padding: .24rem .48rem;
    border-radius: 999px;
    background: #0f9f6e;
    color: #fff;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ovs-home-product__body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: .85rem; }
.ovs-home-product__body h3 { margin: 0; font-size: .9rem; line-height: 1.28; }
.ovs-home-product__body h3 a { color: var(--ovs-home-text); text-decoration: none; }
.ovs-home-product__body h3 a:hover { color: var(--ovs-home-accent); }
.ovs-home-product__body p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ovs-home-muted); font-size: .74rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ovs-home-product__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.ovs-home-product__price { color: var(--ovs-home-text); font-size: .98rem; font-weight: 800; }
.ovs-home-product__footer a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--ovs-home-accent) 10%, white); color: var(--ovs-home-accent); text-decoration: none; }
.ovs-home-product__footer a:hover { background: var(--ovs-home-accent); color: #fff; }

.ovs-home-featured--compact .ovs-home-featured__grid { gap: .7rem; }
.ovs-home-featured--compact .ovs-home-product { border-radius: 12px; }
.ovs-home-featured--compact .ovs-home-product__body { padding: .7rem; }
.ovs-home-featured--compact .ovs-home-product__body p { display: none; }

.ovs-home-trust {
    margin-top: clamp(3rem, 5vw, 5rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--ovs-home-line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.ovs-home-trust h2 { margin-top: 0; font-size: 1.15rem; }
.ovs-home-trust__items { display: flex; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; }
.ovs-home-trust__items div { display: inline-flex; align-items: center; gap: .5rem; color: #475467; font-size: .82rem; font-weight: 650; }
.ovs-home-trust__items i { color: var(--ovs-home-accent); font-size: 1.15rem; }
.ovs-home-trust--dark { border-color: #202a3b; background: #172033; }
.ovs-home-trust--dark h2, .ovs-home-trust--dark .ovs-home-trust__items div { color: #f8fafc; }
.ovs-home-trust--dark .ovs-home-trust__items i { color: #a5b4fc; }
.ovs-home-trust--primary { border-color: var(--ovs-home-accent); background: var(--ovs-home-accent); }
.ovs-home-trust--primary h2, .ovs-home-trust--primary .ovs-home-trust__items div, .ovs-home-trust--primary .ovs-home-trust__items i { color: #fff; }

@media (max-width: 1024px) {
    .ovs-home-categories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ovs-home-category:nth-child(3n) { border-right: 0; }
    .ovs-home-category:nth-child(n + 4) { border-top: 1px solid var(--ovs-home-line); }
    .ovs-home-featured__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .ovs-home-storefront { padding: 2rem .75rem calc(2rem + env(safe-area-inset-bottom)); }
    .ovs-home-section__heading { align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
    .ovs-home-section__heading h2 { font-size: 1.32rem; }
    .ovs-home-section__heading p { font-size: .82rem; }
    .ovs-home-section__link { padding-top: .2rem; font-size: .74rem; white-space: nowrap; }
    .ovs-home-categories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; }
    .ovs-home-category { min-height: 132px; padding: .8rem .3rem .65rem; gap: .38rem; }
    .ovs-home-category__image { width: 58px; height: 58px; }
    .ovs-home-category__name { font-size: .68rem; }
    .ovs-home-category__count { font-size: .61rem; }
    .ovs-home-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .ovs-home-product { border-radius: 13px; }
    .ovs-home-product__body { padding: .65rem; gap: .38rem; }
    .ovs-home-product__body h3 { font-size: .76rem; }
    .ovs-home-product__body p { display: none; }
    .ovs-home-product__price { font-size: .84rem; }
    .ovs-home-product__footer a { width: 27px; height: 27px; }
    .ovs-home-trust { margin-top: 2.5rem; padding: 1.1rem .85rem; border-radius: 14px; }
    .ovs-home-trust h2 { font-size: 1rem; }
    .ovs-home-trust__items { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .ovs-home-trust__items div { font-size: .76rem; text-align: left; }
}
