.home-text-hero {
    width: min(calc(100% - 2rem), var(--site-layout-width));
    margin-inline: auto;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.home-hero-slider {
    width: min(calc(100% - 2rem), var(--site-layout-width));
    margin-inline: auto;
    padding-block: 1.5rem;
}

.hero-gallery {
    position: relative;
    scroll-behavior: smooth;
}

.home-text-hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: clamp(17rem, 28vw, 21rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    background-color: #fff;
    background-image:
        linear-gradient(rgba(161, 161, 170, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(161, 161, 170, 0.075) 1px, transparent 1px);
    background-size: 32px 32px;
}

.home-text-hero-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58%;
    content: '';
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 78% at 0% 100%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.28) 43%, transparent 76%),
        radial-gradient(ellipse 60% 78% at 100% 100%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.28) 43%, transparent 76%);
}

.home-text-hero-card > * {
    position: relative;
    z-index: 1;
}

.home-text-hero-kicker {
    margin: 0;
    color: var(--brand-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-text-hero-card h1 {
    max-width: 44rem;
    margin: 0.45rem 0 0;
    color: #18181b;
    font-size: clamp(1.75rem, 4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.home-text-hero-description {
    max-width: 38rem;
    margin: 0.9rem 0 0;
    color: #52525b;
    font-size: 0.92rem;
    line-height: 1.7;
}

.home-text-hero-button {
    display: inline-flex;
    min-height: 42px;
    margin-top: 1.25rem;
    padding: 0 1.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.home-text-hero-button:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.hero-slide-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    flex: 0 0 100%;
    scroll-snap-align: center;
    overflow: hidden;
    background: #fff;
}

.hero-slide-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-frame picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #27272a;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    box-shadow: 0 5px 18px rgba(24, 24, 27, 0.18);
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-arrow:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-arrow-left {
    left: 18px;
}

.hero-arrow-right {
    right: 18px;
}

@media (max-width: 899px) {
    .hero-slide-frame {
        width: 100%;
        aspect-ratio: 16 / 7;
        flex-basis: 100%;
    }

    .hero-arrow {
        display: none;
    }
}

.product-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.home-kicker {
    margin: 0;
    color: var(--brand-primary);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-section-title {
    margin: 2px 0 0;
    color: #18181b;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.home-section-link {
    flex: 0 0 auto;
    color: var(--brand-primary);
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
}

.home-section-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-grid {
    display: grid;
    margin-top: 11px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
}

.category-card {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.category-card-extra {
    display: none;
}

.category-card-media {
    display: flex;
    width: 52px;
    height: 52px;
    overflow: hidden;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-card-media .lucide-menu-icon {
    width: 25px;
    height: 25px;
    color: var(--brand-primary);
}

.category-card-media img {
    border-radius: inherit;
}

.category-card:hover .category-card-media {
    border-color: var(--brand-primary);
    box-shadow: 0 5px 14px rgba(24, 24, 27, 0.08);
    transform: translateY(-2px);
}

.category-card-title {
    width: 100%;
    overflow: hidden;
    margin: 5px 0 0;
    color: #27272a;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card-count {
    margin: 1px 0 0;
    color: #71717a;
    font-size: 0.61rem;
    line-height: 1.3;
}

.home-description {
    max-width: 36rem;
    margin: 6px 0 0;
    color: #52525b;
    font-size: 0.78rem;
    line-height: 1.65;
}

.home-promo {
    border: 1px solid rgba(127, 29, 29, 0.42);
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
    box-shadow: 0 12px 30px rgb(0 102 100 / 0.16);
}

.home-promo .home-kicker {
    color: #fecaca;
}

.home-promo .home-section-title {
    color: #fff;
}

.home-promo .home-description {
    color: #fee2e2;
}

.home-primary-button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgb(0 102 100 / 0.16);
}

.home-promo .home-primary-button {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 5px 16px rgb(0 102 100 / 0.22);
}

.home-promo .home-primary-button:hover {
    background: #fef2f2;
}

.home-primary-button:hover {
    background: var(--brand-primary-hover);
}

.product-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 12px 28px rgba(24, 24, 27, 0.1);
    transform: translateY(-3px);
}

.product-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.product-card-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.product-card:hover .product-card-media > img {
    transform: scale(1.035);
}

.product-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #a1a1aa;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card-placeholder .lucide-menu-icon {
    width: 28px;
    height: 28px;
}

.product-card-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    min-height: 24px;
    padding: 0 9px;
    align-items: center;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(24, 24, 27, 0.12);
}

.product-card-featured {
    left: 10px;
    background: var(--brand-primary);
    color: #fff;
}

.product-card-stock {
    right: 10px;
    background: rgba(24, 24, 27, 0.88);
    color: #fff;
}

.product-card-content {
    display: flex;
    min-height: 0;
    padding: 12px;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-card-category {
    overflow: hidden;
    margin: 0;
    color: var(--brand-primary);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0;
    color: #18181b;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--brand-primary);
}

.product-card-description {
    margin: 0.3rem 0 0;
    color: #71717a;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-meta {
    display: flex;
    min-height: 18px;
    margin-top: 3px;
    align-items: center;
    gap: 8px;
    color: #71717a;
    font-size: 0.6rem;
}

.product-card-meta > span + span::before {
    margin-right: 8px;
    color: #d4d4d8;
    content: '•';
}

.product-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.product-card-rating svg {
    width: 13px;
    height: 13px;
    color: #f59e0b;
}

.product-card-footer {
    display: flex;
    margin-top: 5px;
    padding-top: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.product-card-price-label {
    display: block;
    margin-bottom: 2px;
    color: #a1a1aa;
    font-size: 0.55rem;
}

.product-card-price {
    margin: 0;
    color: var(--brand-primary);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.product-card-consult {
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-card-footer.is-whatsapp-mode {
    align-items: center;
}

.product-card-action {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--brand-primary);
    transition: background 160ms ease, color 160ms ease;
}

.product-card-action:hover {
    background: var(--brand-primary);
    color: #fff;
}

.product-card-action svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 639px) {
    .home-text-hero-card {
        min-height: 16.5rem;
        padding: 1.35rem;
        background-size: 26px 26px;
    }

    .home-text-hero-kicker {
        font-size: 0.58rem;
    }

    .home-text-hero-card h1 {
        font-size: 1.7rem;
    }

    .home-text-hero-description {
        font-size: 0.78rem;
    }

    .home-text-hero-button {
        min-height: 38px;
        margin-top: 1rem;
        font-size: 0.72rem;
    }

    .home-kicker {
        font-size: 0.52rem;
    }

    .home-section-title {
        font-size: 0.86rem;
    }

    .home-section-link {
        font-size: 0.68rem;
    }

    .home-description {
        font-size: 0.73rem;
    }

    .home-primary-button {
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.69rem;
    }

    .product-card {
        border-radius: 13px;
    }

    .product-card-content {
        padding: 9px;
    }

    .product-card-badge {
        top: 7px;
        min-height: 21px;
        padding: 0 7px;
        font-size: 0.52rem;
    }

    .product-card-featured {
        left: 7px;
    }

    .product-card-stock {
        right: 7px;
    }

    .product-card-title {
        font-size: 0.72rem;
    }

    .product-card-meta {
        gap: 5px;
        font-size: 0.56rem;
    }

    .product-card-meta > span + span::before {
        margin-right: 5px;
    }

    .product-card-footer {
        margin-top: 5px;
        padding-top: 0;
    }

    .product-card-price {
        font-size: 0.76rem;
    }

    .product-card-action {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }
}

@media (min-width: 640px) {
    .home-text-hero {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .home-hero-slider {
        padding-block: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card-extra {
        display: flex;
    }

    .category-card-media {
        width: 60px;
        height: 60px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .home-text-hero {
        padding-top: 4.5rem;
    }

    .home-hero-slider {
        padding-block: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}
