/* Tema Arredamento - Custom CSS */

.arredamento-home-nav {
    display: none;
}

.arredamento-footer-newsletter {
    --arredamento-newsletter-accent: var(--menu-bg, var(--color-header-nav-bg, var(--color-primary)));
}

.arredamento-footer__logo {
    max-height: 2rem;
    max-width: min(13rem, 62vw);
}

.arredamento-footer-newsletter__title {
    margin-bottom: 1.65rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.arredamento-footer-newsletter .newsletter-signup {
    gap: 0.95rem;
}

.arredamento-footer-newsletter__row {
    display: grid;
    gap: 0.95rem;
}

.arredamento-footer-newsletter__input {
    min-height: 3.25rem;
    border: 0;
    border-radius: 0.8rem;
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
}

.arredamento-footer-newsletter__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.arredamento-footer-newsletter__input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--arredamento-newsletter-accent) 45%, transparent);
}

.arredamento-footer-newsletter__btn {
    min-height: 3.35rem;
    justify-content: center;
    border-radius: 0.8rem;
    background: var(--arredamento-newsletter-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--arredamento-newsletter-accent) 22%, transparent);
}

.arredamento-footer-newsletter__btn:hover {
    background: color-mix(in srgb, var(--arredamento-newsletter-accent) 88%, #000000);
}

.arredamento-footer-newsletter__btn[disabled] {
    background: var(--arredamento-newsletter-accent);
    opacity: 1;
}

.arredamento-footer-newsletter__privacy {
    margin-top: 0.75rem;
    line-height: 1.25;
}

.arredamento-footer-newsletter__privacy a {
    color: var(--menu-bg, var(--color-header-nav-bg, var(--color-primary)));
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.arredamento-footer-newsletter__privacy a:hover {
    color: color-mix(in srgb, var(--arredamento-newsletter-accent) 82%, #ffffff);
}

.arredamento-footer-newsletter .newsletter-signup__error,
.arredamento-footer-newsletter .newsletter-signup__success-text {
    color: #111827;
}

/* Home category carousel */
.home-categories--carousel {
    margin-top: 0;
}

.home-categories--carousel .home-categories__header {
    margin-bottom: 0.65rem;
}

.home-categories--carousel .home-categories__title {
    color: #0f0f0f;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
}

.home-categories--carousel .home-categories__carousel {
    gap: 1rem;
    padding-bottom: 0.7rem;
}

.home-categories--carousel .home-categories__carousel-item {
    flex-basis: clamp(13rem, 23vw, 15.25rem);
}

.home-categories--carousel .category-card {
    border-radius: 1.25rem;
    box-shadow: none;
    isolation: isolate;
}

.home-categories--carousel .category-card::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2.65rem;
    border-top-left-radius: 0.65rem;
    border-top-right-radius: 0.65rem;
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
    pointer-events: none;
}

.home-categories--carousel .category-card__img,
.home-categories--carousel .category-card .image-placeholder,
.home-categories--carousel .category-card .image-placeholder-png {
    width: 100%;
    height: 100%;
}

.home-categories--carousel .category-card .image-placeholder img,
.home-categories--carousel .category-card .image-placeholder-png img {
    width: 100%;
    height: 100%;
    object-fit: var(--fit-card-category, cover);
}

.home-categories--carousel .category-card__label {
    top: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    transform: none;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.home-categories--carousel + .home-carousel-controls,
.home-categories--carousel .home-carousel-controls {
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0;
}

.home-categories--carousel .home-carousel-controls__button {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    box-shadow: none;
}

.home-categories--carousel .home-carousel-controls__icon {
    width: 0.85rem;
    height: 0.85rem;
}

/* Cart buttons use the tenant secondary color in Arredamento. */
.product-card__btn--cart,
.product-card .js-add-to-cart-btn,
.product-detail .js-add-to-cart-btn,
form.js-add-to-cart .js-add-to-cart-btn {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #ffffff;
    --tw-ring-color: var(--color-secondary);
}

.product-card__btn--cart:hover,
.product-card .js-add-to-cart-btn:hover,
.product-detail .js-add-to-cart-btn:hover,
form.js-add-to-cart .js-add-to-cart-btn:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: #ffffff;
}

.product-card .js-add-to-cart-btn:focus,
.product-card .js-add-to-cart-btn:focus-visible,
.product-detail .js-add-to-cart-btn:focus,
.product-detail .js-add-to-cart-btn:focus-visible,
form.js-add-to-cart .js-add-to-cart-btn:focus,
form.js-add-to-cart .js-add-to-cart-btn:focus-visible {
    --tw-ring-color: var(--color-secondary);
}

@media (max-width: 767px) {
    .arredamento-footer__inner {
        padding-block: 1.75rem;
    }

    .arredamento-footer__logo {
        max-height: 1.9rem;
        max-width: min(12.5rem, 68vw);
    }

    .arredamento-footer__top {
        margin-bottom: 1rem;
    }

    .arredamento-footer__inner .site-footer__divider {
        margin-bottom: 1.55rem;
    }

    .site-footer__grid > * + * {
        border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
        padding-top: 1.75rem;
    }

    .arredamento-footer-newsletter__title {
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 1023px) {
    .arredamento-header__logo-img {
        max-width: 8rem;
        height: 2.1rem;
    }

    .arredamento-header__actions {
        column-gap: 0.25rem;
    }

    .arredamento-header__action--account {
        order: 1;
    }

    .arredamento-header__action--favorites {
        order: 2;
    }

    .arredamento-header__action--cart {
        order: 3;
    }

    .arredamento-header__mobile-search {
        padding-bottom: 0.45rem;
    }

    .arredamento-header__mobile-search .header-search {
        border: var(--search-border-width, 1px) solid var(--search-border-color, #e5e7eb);
        background: var(--search-bg, #f3f4f6);
        border-radius: 0.72rem;
        min-height: 3.05rem;
        padding-top: 0.72rem;
        padding-bottom: 0.72rem;
    }

    .arredamento-header__mobile-search .header-search input {
        color: var(--menu-text, var(--color-text));
        font-size: 1rem;
        line-height: 1.35;
    }

    .arredamento-header__mobile-search .header-search input::placeholder {
        color: color-mix(in srgb, var(--menu-text, #374151) 68%, transparent);
        opacity: 1;
    }

    .arredamento-header__mobile-search .header-search svg {
        color: color-mix(in srgb, var(--menu-text, #374151) 72%, transparent);
    }

    .arredamento-mobile-language {
        position: relative;
    }

    .arredamento-mobile-language__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0;
        color: #374151;
        font-size: 1rem;
        font-weight: 500;
        list-style: none;
        cursor: pointer;
    }

    .arredamento-mobile-language__summary::-webkit-details-marker {
        display: none;
    }

    .arredamento-mobile-language__summary::after {
        content: "";
        width: 0.45rem;
        height: 0.45rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-0.12rem);
        transition: transform 0.2s ease;
    }

    .arredamento-mobile-language[open] .arredamento-mobile-language__summary::after {
        transform: rotate(225deg) translateY(-0.12rem);
    }

    .arredamento-mobile-language__current {
        margin-left: auto;
        font-size: 0.9rem;
        font-weight: 600;
        color: #6b7280;
    }

    .arredamento-mobile-language__menu {
        display: grid;
        gap: 0.35rem;
        padding: 0.25rem 0 0.35rem;
    }

    .arredamento-mobile-language__option {
        display: block;
        padding: 0.55rem 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.65rem;
        color: #374151;
    }

    .arredamento-mobile-language__option:hover {
        color: var(--color-primary);
    }

    .arredamento-mobile-language__option--active {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: #fff;
    }

    .arredamento-mobile-language__option--active:hover {
        color: #fff;
    }
}

@media (min-width: 1024px) {
    .arredamento-header {
        position: relative;
        z-index: 60;
        background: transparent;
        box-shadow: none;
    }

    .arredamento-header__standard-main,
    .arredamento-header__standard-nav {
        display: none;
    }

    .arredamento-home-nav {
        display: block;
        width: min(calc(100% - 3rem), 1280px);
        margin: 1.4rem auto;
        color: var(--menu-text, var(--color-header-nav-text));
    }

    body[data-page="arredamento-home-hero"] .arredamento-header,
    body[data-page="arredamento-page-hero"] .arredamento-header,
    body[data-page="arredamento-product-hero"] .arredamento-header,
    body[data-page="arredamento-contact-hero"] .arredamento-header {
        position: absolute;
        inset: 0 0 auto;
        z-index: 60;
        background: transparent;
        box-shadow: none;
    }

    body[data-page="arredamento-home-hero"] .arredamento-home-nav,
    body[data-page="arredamento-page-hero"] .arredamento-home-nav,
    body[data-page="arredamento-product-hero"] .arredamento-home-nav,
    body[data-page="arredamento-contact-hero"] .arredamento-home-nav {
        margin-bottom: 0;
    }

    .arredamento-home-nav__inner {
        position: relative;
        display: grid;
        min-height: 3.55rem;
        grid-template-columns: auto minmax(0, 1fr) minmax(12rem, 18rem) auto;
        align-items: center;
        gap: clamp(0.75rem, 1.5vw, 1.5rem);
        padding: 0.35rem 1.15rem;
        border: 1px solid color-mix(in srgb, var(--menu-text, #374151) 12%, transparent);
        border-radius: 0.95rem;
        background: color-mix(in srgb, var(--menu-bg, #ffffff) 90%, transparent);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    }

    .arredamento-home-nav__brand {
        display: inline-flex;
        min-width: 0;
        max-width: 11rem;
        align-items: center;
        color: var(--menu-text, var(--color-header-nav-text));
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .arredamento-home-nav__logo {
        width: auto;
        max-width: 10rem;
        height: 2.2rem;
        object-fit: contain;
    }

    .arredamento-home-nav__links {
        display: flex;
        min-width: 0;
        height: 100%;
        align-items: stretch;
        gap: clamp(0.65rem, 1vw, 1.15rem);
        white-space: nowrap;
    }

    .arredamento-home-nav__links > .nav-link,
    .arredamento-home-nav__item > .nav-link {
        display: inline-flex;
        height: 100%;
        align-items: center;
        padding: 0;
        color: var(--menu-text, var(--color-header-nav-text));
        font-size: var(--menu-font-size, 0.875rem);
        line-height: 1;
    }

    .arredamento-home-nav__links .nav-link:hover {
        color: var(--menu-hover, var(--menu-text, var(--color-header-nav-text)));
    }

    .arredamento-home-nav__item {
        position: relative;
        display: flex;
        height: 100%;
        align-items: stretch;
    }

    .arredamento-home-nav__dropdown {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: -1rem;
        z-index: 70;
        width: max-content;
        min-width: 18rem;
        max-width: min(40rem, calc(100vw - 4rem));
        padding: 1rem;
        border: 1px solid color-mix(in srgb, var(--menu-dropdown-text, #374151) 12%, transparent);
        border-radius: 0.75rem;
        background: var(--menu-dropdown-bg, #ffffff);
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    }

    .arredamento-home-nav__dropdown .site-header__mega-inner {
        margin-left: 0;
    }

    .arredamento-home-nav__dropdown .nav-dropdown-link {
        color: var(--menu-dropdown-text, var(--color-header-nav-text));
    }

    .arredamento-home-nav__dropdown .nav-dropdown-link:hover {
        color: var(--menu-dropdown-hover, var(--menu-dropdown-text, var(--color-header-nav-text)));
    }

    .arredamento-home-nav__search {
        position: relative;
        min-width: 0;
    }

    .arredamento-home-nav__search .header-search {
        display: flex;
        min-height: 2.35rem;
        align-items: center;
        gap: 0.45rem;
        padding: 0.35rem 0.7rem;
        border-color: var(--search-border-color, #e5e7eb);
        border-radius: 0.65rem;
        background: var(--search-bg, #f3f4f6);
    }

    .arredamento-home-nav__search-icon {
        width: 0.95rem;
        height: 0.95rem;
        flex: 0 0 auto;
        color: color-mix(in srgb, var(--menu-text, #374151) 72%, transparent);
    }

    .arredamento-home-nav__search input {
        min-width: 0;
        color: var(--menu-text, var(--color-text));
        font-size: 0.75rem;
    }

    .arredamento-home-nav__search input::placeholder {
        color: color-mix(in srgb, var(--menu-text, #374151) 68%, transparent);
        opacity: 1;
    }

    .arredamento-home-nav__actions {
        display: flex;
        align-items: center;
        gap: 0.15rem;
    }

    .arredamento-home-nav__action {
        position: relative;
        display: inline-flex;
        width: 2rem;
        height: 2rem;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--menu-text, var(--color-header-nav-text));
        cursor: pointer;
        text-decoration: none;
        transition: color 160ms ease, background-color 160ms ease;
    }

    .arredamento-home-nav__action:hover {
        background: color-mix(in srgb, var(--menu-text, #374151) 10%, transparent);
        color: var(--menu-hover, var(--menu-text, var(--color-header-nav-text)));
    }

    .arredamento-home-nav__action svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .arredamento-home-nav__language {
        width: auto;
        min-width: 2rem;
        padding-inline: 0.4rem;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .arredamento-home-nav__language-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        display: flex;
        width: 8rem;
        flex-direction: column;
        padding: 0.4rem;
        border-radius: 0.55rem;
        background: var(--menu-dropdown-bg, #ffffff);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    }

    .arredamento-home-nav__language-menu a {
        padding: 0.45rem 0.6rem;
        border-radius: 0.35rem;
        color: var(--menu-dropdown-text, var(--color-header-nav-text));
        font-size: 0.75rem;
        text-decoration: none;
    }

    .arredamento-home-nav__language-menu a:hover {
        color: var(--menu-dropdown-hover, var(--menu-dropdown-text, var(--color-header-nav-text)));
    }

    .arredamento-home-nav__cart-count {
        position: absolute;
        top: -0.15rem;
        right: -0.15rem;
        display: inline-flex;
        min-width: 0.95rem;
        height: 0.95rem;
        align-items: center;
        justify-content: center;
        padding-inline: 0.18rem;
        border-radius: 999px;
        background: var(--color-danger, #dc2626);
        color: #ffffff;
        font-size: 0.55rem;
        font-weight: 700;
        line-height: 1;
    }

    .arredamento-home-nav__cart-count.hidden {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .arredamento-home-nav__inner {
        grid-template-columns: auto minmax(0, 1fr) minmax(10rem, 14rem) auto;
        gap: 0.7rem;
        padding-inline: 0.85rem;
    }

    .arredamento-home-nav__links {
        gap: 0.6rem;
    }

    .arredamento-home-nav__links > .nav-link,
    .arredamento-home-nav__item > .nav-link {
        font-size: var(--menu-font-size, 0.8125rem);
    }
}
