:root {
    --amerce-bg: #f3ede4;
    --amerce-bg-alt: #e5d6c7;
    --amerce-surface: #fffcf8;
    --amerce-surface-strong: #ffffff;
    --amerce-text: #261b16;
    --amerce-text-muted: #746256;
    --amerce-heading: #1a120e;
    --amerce-bg-rgb: 243, 237, 228;
    --amerce-bg-alt-rgb: 229, 214, 199;
    --amerce-surface-rgb: 255, 252, 248;
    --amerce-surface-strong-rgb: 255, 255, 255;
    --amerce-text-rgb: 38, 27, 22;
    --amerce-heading-rgb: 26, 18, 14;
    --amerce-border: rgba(38, 27, 22, 0.12);
    --amerce-border-strong: rgba(38, 27, 22, 0.24);
    --amerce-accent: #a4512a;
    --amerce-accent-strong: #713116;
    --amerce-accent-rgb: 164, 81, 42;
    --amerce-accent-strong-rgb: 113, 49, 22;
    --amerce-accent-hover: #b76138;
    --amerce-accent-hover-rgb: 183, 97, 56;
    --amerce-accent-deep: #58240f;
    --amerce-accent-deep-rgb: 88, 36, 15;
    --amerce-accent-soft: rgba(164, 81, 42, 0.12);
    --amerce-highlight: #f0cda6;
    --amerce-highlight-strong: #d89a63;
    --amerce-highlight-rgb: 240, 205, 166;
    --amerce-highlight-strong-rgb: 216, 154, 99;
    --amerce-header-base: #241913;
    --amerce-header-base-rgb: 36, 25, 19;
    --amerce-header-deep: #1c130f;
    --amerce-header-deep-rgb: 28, 19, 15;
    --amerce-header-ink: #fff7f0;
    --amerce-header-ink-rgb: 255, 247, 240;
    --amerce-footer-deep: #120c09;
    --amerce-footer-deep-rgb: 18, 12, 9;
    --amerce-shadow: 0 30px 80px rgba(var(--amerce-header-base-rgb), 0.14);
    --amerce-shadow-soft: 0 20px 42px rgba(var(--amerce-header-base-rgb), 0.09);
    --amerce-success: #3c7e57;
    --amerce-danger: #aa4c41;

    --modern-bg: var(--amerce-bg);
    --modern-bg-alt: var(--amerce-bg-alt);
    --modern-surface: var(--amerce-surface);
    --modern-card: var(--amerce-surface-strong);
    --modern-accent: var(--amerce-accent);
    --modern-accent-soft: var(--amerce-accent-soft);
    --modern-accent-strong: var(--amerce-accent-strong);
    --modern-text: var(--amerce-text);
    --modern-text-muted: var(--amerce-text-muted);
    --modern-border: var(--amerce-border);
    --modern-success: var(--amerce-success);
    --modern-danger: var(--amerce-danger);
}

html,
body {
    background:
        radial-gradient(circle at top left, rgba(var(--amerce-highlight-rgb), 0.42), transparent 30%),
        radial-gradient(circle at 85% 0%, rgba(var(--amerce-accent-rgb), 0.12), transparent 24%),
        linear-gradient(180deg, rgba(var(--amerce-surface-rgb), 0.94) 0%, var(--amerce-bg) 48%, var(--amerce-bg-alt) 100%);
    color: var(--amerce-text);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
    position: relative;
    line-height: 1.7;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.5;
    pointer-events: none;
}

body::before {
    top: 8rem;
    left: -7rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(var(--amerce-highlight-rgb), 0.7) 0%, rgba(var(--amerce-highlight-rgb), 0) 72%);
}

body::after {
    right: -8rem;
    bottom: 8rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(var(--amerce-accent-rgb), 0.24) 0%, rgba(var(--amerce-accent-rgb), 0) 72%);
}

::selection {
    background: rgba(var(--amerce-accent-rgb), 0.2);
    color: var(--amerce-heading);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-heading h2,
.category-hero__title,
.modern-cart-hero__title,
.modern-order-hero__title,
.modern-orders-hero__title,
.amerce-hero__title,
.product-summary h1 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--amerce-heading);
}

.btn,
.btn-primary,
.btn-default,
.btn-ghost,
.btn-amerce-primary,
.btn-amerce-secondary,
.modern-cart__button {
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.95rem 1.45rem;
}

.btn-primary,
.btn-amerce-primary,
.modern-cart__button,
.product-card__actions .modern-cart__button {
    background: linear-gradient(135deg, var(--amerce-accent) 0%, var(--amerce-accent-strong) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 36px rgba(var(--amerce-accent-strong-rgb), 0.24);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-amerce-primary:hover,
.btn-amerce-primary:focus,
.modern-cart__button:hover,
.modern-cart__button:focus,
.product-card__actions .modern-cart__button:hover,
.product-card__actions .modern-cart__button:focus {
    background: linear-gradient(135deg, var(--amerce-accent-hover) 0%, var(--amerce-accent-deep) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(var(--amerce-accent-strong-rgb), 0.28);
}

.btn-default,
.btn-ghost,
.btn-amerce-secondary {
    background: rgba(var(--amerce-surface-rgb), 0.84);
    border-color: rgba(var(--amerce-text-rgb), 0.16);
    color: var(--amerce-accent-strong);
}

.btn-default:hover,
.btn-ghost:hover,
.btn-amerce-secondary:hover {
    background: rgba(var(--amerce-surface-strong-rgb), 1);
    border-color: rgba(var(--amerce-accent-rgb), 0.28);
    color: var(--amerce-accent-strong);
}

.amerce-header {
    background: linear-gradient(180deg, rgba(var(--amerce-header-base-rgb), 0.94) 0%, rgba(var(--amerce-header-deep-rgb), 0.88) 100%);
    border-bottom: 1px solid rgba(var(--amerce-header-ink-rgb), 0.12);
    box-shadow: 0 18px 44px rgba(var(--amerce-header-base-rgb), 0.22);
}

.amerce-header__main {
    min-height: 104px;
    gap: 1.25rem;
}

.amerce-brand a {
    gap: 0.9rem;
    color: var(--amerce-header-ink);
}

.amerce-brand__wordmark {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 2.5vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.modern-nav__list {
    gap: 0.55rem;
}

.modern-nav__list > li > a {
    padding: 0.82rem 1.05rem;
    border-radius: 999px;
    background: rgba(var(--amerce-header-ink-rgb), 0.06);
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(var(--amerce-header-ink-rgb), 0.9);
}

.modern-nav__list > li > a:hover,
.modern-nav__list > li > a:focus,
.modern-nav__list > li.open-mobile > a,
.modern-nav__list > li.open-desktop > a {
    background: rgba(var(--amerce-header-ink-rgb), 0.14);
    border-color: rgba(var(--amerce-highlight-rgb), 0.2);
    color: rgba(var(--amerce-header-ink-rgb), 1);
}

.amerce-utility {
    gap: 0.65rem;
}

.amerce-utility-link {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(var(--amerce-header-ink-rgb), 0.08);
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.1);
    color: var(--amerce-header-ink);
    box-shadow: none;
}

.amerce-utility-link:hover,
.amerce-utility-link:focus {
    background: rgba(var(--amerce-header-ink-rgb), 0.16);
    border-color: rgba(var(--amerce-highlight-rgb), 0.24);
    color: var(--amerce-header-ink);
}

.cart-badge {
    min-width: 22px;
    height: 22px;
    top: -6px;
    right: -5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amerce-highlight-strong) 0%, var(--amerce-highlight) 100%);
    color: var(--amerce-heading);
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(var(--amerce-highlight-strong-rgb), 0.35);
}

.mini-cart__panel {
    border-radius: 28px;
    border: 1px solid rgba(var(--amerce-text-rgb), 0.1);
    box-shadow: 0 34px 70px rgba(var(--amerce-header-base-rgb), 0.2);
}

.amerce-search-overlay__content {
    border-radius: 32px;
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--amerce-header-base-rgb), 0.95) 0%, rgba(var(--amerce-footer-deep-rgb), 0.94) 100%);
    box-shadow: 0 34px 80px rgba(var(--amerce-header-base-rgb), 0.36);
}

.amerce-search-input {
    border-radius: 18px;
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.16);
    background: rgba(var(--amerce-header-ink-rgb), 0.08);
    color: var(--amerce-header-ink);
}

.amerce-search-input::placeholder {
    color: rgba(var(--amerce-header-ink-rgb), 0.62);
}

.modern-nav__sub {
    background: rgba(var(--amerce-surface-strong-rgb), 0.98);
    border: 1px solid rgba(var(--amerce-text-rgb), 0.08);
    box-shadow: 0 24px 46px rgba(var(--amerce-header-base-rgb), 0.14);
}

.modern-nav__sub li a:hover {
    background: rgba(var(--amerce-highlight-rgb), 0.12);
    color: var(--amerce-accent);
}

.amerce-hero {
    padding-top: 1.5rem;
}

.amerce-hero__stage {
    position: relative;
    min-height: clamp(560px, 78vh, 760px);
    border-radius: 38px;
    overflow: hidden;
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.15);
    box-shadow: 0 45px 90px rgba(var(--amerce-header-base-rgb), 0.22);
}

.amerce-hero__stage::before {
    content: "";
    position: absolute;
    inset: 1.1rem;
    border-radius: 28px;
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.16);
    z-index: 1;
    pointer-events: none;
}

.amerce-hero__bg {
    transform: scale(1.04);
    filter: saturate(0.96) contrast(1.04);
}

.amerce-hero__overlay {
    background:
        linear-gradient(95deg, rgba(var(--amerce-header-base-rgb), 0.88) 0%, rgba(var(--amerce-header-base-rgb), 0.64) 42%, rgba(var(--amerce-header-base-rgb), 0.28) 100%),
        radial-gradient(circle at 78% 18%, rgba(var(--amerce-highlight-rgb), 0.18), transparent 28%);
}

.amerce-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 5vw, 4rem);
    align-items: flex-end;
}

.amerce-hero__copy {
    max-width: 620px;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(var(--amerce-header-ink-rgb), 0.14) 0%, rgba(var(--amerce-header-ink-rgb), 0.08) 100%);
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(var(--amerce-header-base-rgb), 0.22);
}

.amerce-hero__brand {
    margin-bottom: 1.2rem;
}

.amerce-hero__brand-text {
    color: rgba(var(--amerce-header-ink-rgb), 0.92);
    letter-spacing: 0.18em;
}

.amerce-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(var(--amerce-header-ink-rgb), 0.12);
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.16);
    color: rgba(var(--amerce-header-ink-rgb), 0.88);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.amerce-hero__title {
    margin-top: 1.15rem;
    font-size: clamp(3.4rem, 7vw, 6rem);
    color: var(--amerce-header-ink);
    text-wrap: balance;
}

.amerce-hero__description {
    max-width: 34rem;
    margin-top: 1.05rem;
    color: rgba(var(--amerce-header-ink-rgb), 0.84);
    font-size: 1.05rem;
}

.amerce-hero__actions {
    margin-top: 1.6rem;
}

.amerce-hero__nav {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(var(--amerce-header-ink-rgb), 0.12);
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.16);
    color: var(--amerce-header-ink);
}

.amerce-hero__nav:hover {
    background: rgba(var(--amerce-header-ink-rgb), 0.22);
}

.amerce-hero__dot {
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: rgba(var(--amerce-header-ink-rgb), 0.24);
}

.amerce-hero__dot.is-active {
    background: linear-gradient(90deg, var(--amerce-highlight) 0%, var(--amerce-highlight-strong) 100%);
}

.amerce-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.amerce-section__heading {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.amerce-section__heading h2 {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3.3rem);
}

.amerce-section__heading p {
    max-width: 44rem;
    margin: 0;
    padding-left: 1.2rem;
    border-left: 3px solid rgba(var(--amerce-accent-rgb), 0.28);
    color: var(--amerce-text-muted);
    font-size: 1rem;
}

.amerce-category-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.amerce-category-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 102px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(var(--amerce-surface-rgb), 0.96) 0%, rgba(var(--amerce-bg-alt-rgb), 0.92) 100%);
    border: 1px solid rgba(var(--amerce-text-rgb), 0.1);
    box-shadow: var(--amerce-shadow-soft);
    color: var(--amerce-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    isolation: isolate;
}

.amerce-category-pill__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--amerce-category-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    transform: scale(1.02);
}

.amerce-category-pill__content {
    display: grid;
    gap: 0.55rem;
    max-width: calc(100% - 5rem);
}

.amerce-category-pill__title,
.amerce-category-pill__description {
    position: relative;
    z-index: 1;
}

.amerce-category-pill__description {
    color: var(--amerce-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.45;
    text-transform: none;
}

.amerce-category-pill--image {
    color: var(--amerce-header-ink);
    border-color: rgba(var(--amerce-header-ink-rgb), 0.12);
    background:
        linear-gradient(180deg, rgba(var(--amerce-header-base-rgb), 0.14) 0%, rgba(var(--amerce-header-base-rgb), 0.44) 100%);
}

.amerce-category-pill--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(var(--amerce-header-base-rgb), 0.1) 0%, rgba(var(--amerce-header-base-rgb), 0.68) 100%),
        linear-gradient(110deg, rgba(var(--amerce-highlight-rgb), 0.12) 0%, transparent 48%);
}

.amerce-category-pill--image .amerce-category-pill__media {
    opacity: 1;
}

.amerce-category-pill--image .amerce-category-pill__title,
.amerce-category-pill--image .amerce-category-pill__description {
    color: var(--amerce-header-ink);
}

.amerce-category-pill--image .amerce-category-pill__description {
    color: rgba(var(--amerce-header-ink-rgb), 0.82);
}

.amerce-category-pill::after {
    content: "Scopri";
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: rgba(var(--amerce-accent-strong-rgb), 0.7);
}

.amerce-category-pill:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--amerce-accent-rgb), 0.2);
    box-shadow: 0 28px 56px rgba(var(--amerce-header-base-rgb), 0.14);
}

.amerce-category-pill:hover .amerce-category-pill__media {
    transform: scale(1.06);
}

.amerce-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 1.2rem;
}

.amerce-editorial-card {
    position: relative;
    display: flex;
    min-height: 300px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--amerce-header-base) 0%, var(--amerce-accent) 100%);
    color: var(--amerce-header-ink);
    box-shadow: 0 30px 70px rgba(var(--amerce-header-base-rgb), 0.18);
}

.amerce-editorial-card:first-child {
    grid-row: span 2;
    min-height: 620px;
}

.amerce-editorial-card__overlay {
    background:
        linear-gradient(180deg, rgba(var(--amerce-footer-deep-rgb), 0.08) 0%, rgba(var(--amerce-footer-deep-rgb), 0.7) 100%),
        linear-gradient(120deg, rgba(var(--amerce-highlight-rgb), 0.12) 0%, transparent 55%);
}

.amerce-editorial-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    padding: 1.9rem;
}

.amerce-editorial-card__eyebrow,
.amerce-editorial-card__link {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.amerce-editorial-card h3 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    color: rgba(var(--amerce-header-ink-rgb), 0.98);
}

.amerce-editorial-card p {
    margin: 0;
    max-width: 30rem;
    color: rgba(var(--amerce-header-ink-rgb), 0.82);
}

.amerce-editorial-card__link {
    color: var(--amerce-highlight);
}

.product-grid--compact {
    gap: 1.3rem;
}

.product-card {
    border-radius: 30px;
    border: 1px solid rgba(var(--amerce-text-rgb), 0.08);
    background: linear-gradient(180deg, rgba(var(--amerce-surface-strong-rgb), 0.98) 0%, rgba(var(--amerce-bg-alt-rgb), 0.96) 100%);
    box-shadow: var(--amerce-shadow-soft);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 70px rgba(var(--amerce-header-base-rgb), 0.16);
}

.product-card__media {
    background:
        radial-gradient(circle at top, rgba(var(--amerce-highlight-rgb), 0.28), transparent 40%),
        linear-gradient(180deg, rgba(var(--amerce-surface-rgb), 0.98) 0%, rgba(var(--amerce-bg-alt-rgb), 0.9) 100%);
}

.product-card__media::after {
    background: linear-gradient(180deg, rgba(var(--amerce-surface-strong-rgb), 0) 38%, rgba(var(--amerce-heading-rgb), 0.12) 100%);
}

.product-card__body {
    padding: 1.35rem 1.35rem 1.5rem;
    gap: 0.9rem;
}

.product-card__title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.15;
}

.product-card__meta {
    color: var(--amerce-text-muted);
}

.product-card__price,
.product-card .price-stack__current {
    color: var(--amerce-accent-strong);
    font-weight: 800;
}

.product-card .price-stack__badge,
.product-card__price-badge {
    border-radius: 999px;
    background: rgba(var(--amerce-accent-rgb), 0.12);
    color: var(--amerce-accent-strong);
}

.product-card__actions {
    gap: 0.65rem;
    align-items: stretch;
}

.product-card__actions .modern-cart__button {
    border-radius: 16px;
    min-height: 48px;
}

.product-card__icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(var(--amerce-accent-rgb), 0.08);
    border: 1px solid rgba(var(--amerce-accent-rgb), 0.14);
    color: var(--amerce-accent-strong);
}

.product-card__icon-btn:hover {
    background: rgba(var(--amerce-accent-rgb), 0.14);
}

.category-hero__panel,
.modern-orders-hero,
.modern-cart-hero,
.modern-order-hero,
.modern-account-hero,
.product-summary,
.modern-cart-panel,
.modern-cart-wide-panel,
.modern-order-detail,
.modern-order-delivery__inner,
.modern-orders-filter,
.modern-account-card,
.modern-account-secondary__panel,
.static-page__card,
.category-results-panel,
.contact-card,
.contact-form-card {
    border-radius: 30px;
    border: 1px solid rgba(var(--amerce-text-rgb), 0.08);
    background:
        linear-gradient(180deg, rgba(var(--amerce-surface-rgb), 0.96) 0%, rgba(var(--amerce-bg-alt-rgb), 0.92) 100%);
    box-shadow: var(--amerce-shadow-soft);
}

.category-hero__panel,
.modern-orders-hero,
.modern-cart-hero,
.modern-order-hero,
.modern-account-hero,
.product-summary {
    overflow: hidden;
    position: relative;
}

.category-hero__panel::before,
.modern-orders-hero::before,
.modern-cart-hero::before,
.modern-order-hero::before,
.modern-account-hero::before,
.product-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--amerce-highlight-strong) 0%, var(--amerce-accent) 55%, var(--amerce-accent-strong) 100%);
}

.modern-orders-table,
.modern-order-legacy .cart table {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(var(--amerce-surface-strong-rgb), 0.84);
}

.modern-orders-table th,
.modern-orders-table td,
.modern-order-legacy .cart table th,
.modern-order-legacy .cart table td {
    border-color: rgba(var(--amerce-text-rgb), 0.08);
}

.modern-orders-table th,
.modern-order-legacy .cart table th {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amerce-text-muted);
}

.modern-form-field input,
.modern-form-field select,
.modern-form-field textarea,
.modern-cart-form input,
.modern-cart-form select,
.modern-cart-form textarea,
.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select,
.amerce-footer__form input {
    border-radius: 16px;
    border: 1px solid rgba(var(--amerce-text-rgb), 0.12);
    background: rgba(var(--amerce-surface-strong-rgb), 0.86);
    box-shadow: inset 0 1px 0 rgba(var(--amerce-surface-strong-rgb), 0.45);
}

.modern-form-field input:focus,
.modern-form-field select:focus,
.modern-form-field textarea:focus,
.modern-cart-form input:focus,
.modern-cart-form select:focus,
.modern-cart-form textarea:focus,
.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus,
.amerce-footer__form input:focus {
    outline: none;
    border-color: rgba(var(--amerce-accent-rgb), 0.32);
    box-shadow: 0 0 0 4px rgba(var(--amerce-accent-rgb), 0.08);
}

.modern-account-card__icon,
.modern-account-hero__avatar,
.modern-section-icon {
    background: linear-gradient(135deg, rgba(var(--amerce-highlight-rgb), 0.3) 0%, rgba(var(--amerce-accent-rgb), 0.2) 100%);
    color: var(--amerce-accent-strong);
    box-shadow: none;
}

.amerce-footer {
    position: relative;
    margin-top: 4rem;
    background:
        radial-gradient(circle at top right, rgba(var(--amerce-highlight-rgb), 0.12), transparent 26%),
        linear-gradient(180deg, var(--amerce-header-base) 0%, var(--amerce-footer-deep) 100%);
    color: rgba(var(--amerce-header-ink-rgb), 0.76);
}

.amerce-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(var(--amerce-header-ink-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(var(--amerce-header-ink-rgb), 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.18;
    pointer-events: none;
}

.amerce-footer > .container {
    position: relative;
    z-index: 1;
}

.amerce-footer__newsletter {
    align-items: center;
    gap: 1.4rem;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(var(--amerce-header-ink-rgb), 0.08) 0%, rgba(var(--amerce-header-ink-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--amerce-header-ink-rgb), 0.1);
    box-shadow: 0 28px 80px rgba(var(--amerce-footer-deep-rgb), 0.24);
    transform: translateY(-42px);
    margin-bottom: -10px;
}

.amerce-footer__eyebrow {
    color: var(--amerce-highlight);
    letter-spacing: 0.18em;
    font-weight: 800;
}

.amerce-footer__newsletter h3 {
    margin: 0.4rem 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
    color: rgba(var(--amerce-header-ink-rgb), 0.98);
}

.amerce-footer__form input {
    height: 56px;
    min-width: min(320px, 100%);
    background: rgba(var(--amerce-header-ink-rgb), 0.08);
    border-color: rgba(var(--amerce-header-ink-rgb), 0.12);
    color: var(--amerce-header-ink);
}

.amerce-footer__form input::placeholder {
    color: rgba(var(--amerce-header-ink-rgb), 0.54);
}

.amerce-footer__grid {
    gap: 2rem;
}

.amerce-footer__column h4,
.amerce-footer__column h5 {
    color: rgba(var(--amerce-header-ink-rgb), 0.97);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.4rem;
}

.footer-list a,
.footer-bottom__links a,
.footer-meta a,
.link-muted {
    color: rgba(var(--amerce-header-ink-rgb), 0.74);
}

.footer-list a:hover,
.footer-bottom__links a:hover,
.footer-meta a:hover,
.link-muted:hover {
    color: var(--amerce-highlight);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(var(--amerce-header-ink-rgb), 0.1);
}

@media (min-width: 1101px) {
    .amerce-header__main {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas:
            ". brand utility"
            "nav nav nav";
        align-items: center;
        row-gap: 1rem;
        min-height: auto;
        padding: 1.1rem 0 0.95rem;
    }

    .amerce-nav__toggle,
    .modern-nav__toggle {
        display: none !important;
    }

    .amerce-nav {
        grid-area: nav;
        width: 100%;
        max-width: 100%;
        position: static;
        padding: 0;
        background: transparent;
        border: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .amerce-brand {
        grid-area: brand;
        justify-content: center;
        justify-self: center;
    }

    .amerce-utility {
        grid-area: utility;
        justify-self: end;
    }

    .modern-nav__list {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.45rem;
        width: 100%;
        max-width: 100%;
    }

    .modern-nav__list > li {
        flex: 0 0 auto;
    }

    .modern-nav__list > li > a {
        white-space: nowrap;
        padding: 0.78rem 0.92rem;
        font-size: clamp(0.67rem, 0.58rem + 0.18vw, 0.75rem);
    }
}

@media (max-width: 1199px) {
    .amerce-editorial-grid {
        grid-template-columns: 1fr;
    }

    .amerce-editorial-card:first-child {
        grid-row: auto;
        min-height: 420px;
    }
}

@media (max-width: 1100px) {
    .amerce-header__main {
        min-height: 88px;
        grid-template-columns: auto 1fr auto;
    }

    .amerce-brand {
        justify-content: flex-start;
    }

    .amerce-brand__wordmark {
        font-size: 1.8rem;
        letter-spacing: 0.12em;
    }

    .amerce-hero__copy {
        max-width: 100%;
    }

    .amerce-hero__title {
        font-size: clamp(2.8rem, 10vw, 4.4rem);
    }

    .amerce-footer__newsletter {
        transform: translateY(-28px);
    }
}

@media (max-width: 767px) {
    .amerce-header {
        background: rgba(var(--amerce-header-base-rgb), 0.98);
    }

    .amerce-utility-link {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .amerce-hero {
        padding-top: 1rem;
    }

    .amerce-hero__stage {
        min-height: 520px;
        border-radius: 28px;
    }

    .amerce-hero__stage::before {
        inset: 0.8rem;
        border-radius: 22px;
    }

    .amerce-hero__content {
        padding: 1.15rem;
        align-items: flex-end;
    }

    .amerce-hero__copy {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .amerce-hero__description {
        font-size: 0.95rem;
    }

    .amerce-section__heading p {
        padding-left: 0.95rem;
    }

    .amerce-category-pills,
    .product-grid--compact {
        gap: 0.9rem;
    }

    .amerce-footer__newsletter {
        margin-bottom: 0;
        transform: none;
    }

    .amerce-footer__form input {
        min-width: 100%;
    }
}

/* Compact vertical rhythm: avoids large empty bands on sparse dynamic pages. */
.amerce-hero {
	padding-top: clamp(1.25rem, 3vw, 2.25rem) !important;
	padding-bottom: clamp(1.25rem, 3vw, 2.25rem) !important;
}

.amerce-hero__stage {
	min-height: clamp(360px, 54vh, 560px) !important;
}

.amerce-hero__content,
.amerce-hero__copy {
	padding: clamp(1.15rem, 2.5vw, 2rem) !important;
}

.amerce-section,
.page-content > .container,
main.page-content > .container,
.modern-cart-section {
	/*padding-top: clamp(1.25rem, 3vw, 2.25rem) !important;
	padding-bottom: clamp(1.25rem, 3vw, 2.25rem) !important;*/
    padding-top: 0;
    padding-bottom: 0;
}

.amerce-section__heading,
.section-heading {
	margin-bottom: clamp(0.85rem, 2vw, 1.25rem) !important;
}

.product-layout,
.info-tabs,
.modern-cart-hero,
.modern-cart-panel,
.glass-panel,
.empty-state {
	padding: clamp(1rem, 2.5vw, 1.75rem) !important;
}

.empty-state,
.search-empty-card .empty-state {
	min-height: 140px !important;
}

.modern-footer,
.amerce-footer {
	margin-top: 2rem !important;
	padding-top: 2.25rem !important;
	padding-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
	.amerce-hero__stage {
		min-height: 340px !important;
	}

	.amerce-hero,
	.amerce-section,
	.page-content > .container,
	main.page-content > .container,
	.modern-cart-section {
		padding-top: 1rem !important;
		padding-bottom: 1rem !important;
	}
}

/* Checkout layout tuning: rebalance cart panels and tighten sparse summary pages. */
.modern-cart-section #form-cart:not(.modern-order-inline-form) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > .col-sm-4,
.modern-cart-section #form-cart:not(.modern-order-inline-form) > .col-md-4,
.modern-cart-section #form-cart:not(.modern-order-inline-form) > .col-lg-4 {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    grid-column: span 4;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > .modern-cart-wide-panel {
    grid-column: 1 / -1;
    margin-top: 0;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > .modern-cart-wide-panel--coupon {
    grid-column: span 5;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > .modern-cart-wide-panel--summary {
    grid-column: span 7;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > .modern-cart-wide-panel--summary .form-area {
    max-width: none;
    margin: 0;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > [id^="hb"] {
    display: none;
}

.modern-cart-section .modern-cart-coupon-field {
    min-width: min(100%, 260px);
}

.modern-cart-section .modern-cart-coupon-actions {
    align-self: stretch;
}

.modern-cart-section .modern-cart-coupon-actions .btn {
    min-width: 150px;
}

.modern-cart-section .table-order-details td:first-child {
    padding-right: 1rem;
}

.modern-cart-section .table-order-details td:last-child {
    text-align: right;
    white-space: nowrap;
}

.modern-cart-section .delivery-method-col #deliveryMethodsTable td,
.modern-cart-section .payments-method-col #deliveryMethodsTable td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    vertical-align: top;
}

.modern-cart-section .shipping-specific-products {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    line-height: 1.4;
}

.modern-cart-section .payment-info-cell,
.modern-cart-section .payment-option-header,
.modern-cart-section .payment-option-desc,
.modern-cart-section .payment-details-content,
.modern-cart-section .modern-payment-notes,
.modern-order-details-flow .payments-method-col label,
.modern-order-details-flow .payments-method-col td,
.modern-order-legacy .cart table td {
    overflow-wrap: anywhere;
}

.modern-cart-section .payment-meta-cell {
    width: auto;
    min-width: 108px;
}

.modern-cart-section .payment-meta {
    flex-wrap: wrap;
}

.modern-cart-section #form-cart:not(.modern-order-inline-form) > .address-method-col,
.modern-cart-section #form-cart:not(.modern-order-inline-form) > .delivery-method-col {
    align-self: start;
}

.modern-cart-section .address-method-col .form-area-cart,
.modern-cart-section .delivery-method-col .form-area-cart {
    height: auto;
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.modern-cart-section .address-method-col .form-content,
.modern-cart-section .delivery-method-col .form-content {
    gap: 0.75rem;
}

.modern-cart-section .address-method-col .panel-group,
.modern-cart-section .address-method-col .panel:last-child,
.modern-cart-section .delivery-method-col #deliveryMethodsTable:last-child {
    margin-bottom: 0;
}

.modern-cart-section .address-method-col .panel-body,
.modern-cart-section .delivery-method-col #deliveryMethodsTable td {
    padding-bottom: 0.75rem;
}

.modern-cart-section .form-area-cart {
    padding: 1rem;
}

.modern-cart-section .form-heading {
    margin-bottom: 0.65rem;
}

.modern-cart-section .address-method-col .panel-heading {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.modern-cart-section .address-method-col .panel-body {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.modern-cart-section .address-detail-container {
    gap: 0.2rem;
    line-height: 1.35;
    padding-top: 0;
}

.modern-cart-section .address-detail-container p:empty {
    display: none;
}

.modern-cart-section .delivery-method-col #deliveryMethodsTable td,
.modern-cart-section .payments-method-col #deliveryMethodsTable td {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.modern-order-legacy {
    padding-top: clamp(1rem, 2vw, 1.5rem);
}

.modern-order-legacy .cart {
    overflow: visible;
}

.modern-order-legacy .cart table th,
.modern-order-legacy .cart table td {
    vertical-align: top;
    padding: 0.85rem 1rem;
}

.modern-order-legacy .cart table .tab-spec-order {
    display: block;
    margin-top: 0.25rem;
}

.modern-order-details-flow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

.modern-order-details-flow > .clearfix50 {
    display: none;
}

.modern-order-details-flow #form-cart.modern-order-inline-form {
    grid-column: span 8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: inherit;
    margin: 0;
}

.modern-order-details-flow #form-cart.modern-order-inline-form--single {
    grid-column: span 4;
    grid-template-columns: minmax(0, 1fr);
}

.modern-order-details-flow #form-cart.modern-order-inline-form .address-method-col,
.modern-order-details-flow #form-cart.modern-order-inline-form .delivery-method-col {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.modern-order-details-flow .payments-method-col,
.modern-order-details-flow .modern-order-notes-col {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    grid-column: span 4;
}

.modern-order-details-flow .modern-order-panel .form-area,
.modern-order-details-flow .payments-method-col .form-area {
    height: 100%;
}

.modern-order-details-flow .modern-order-notes-col {
    border: 1px solid var(--modern-border);
    border-radius: 24px;
    background: var(--modern-card, rgba(255, 255, 255, 0.84));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.modern-order-details-flow .modern-order-notes-label {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--modern-text-muted);
}

.modern-order-details-flow .checkouttext {
    display: block;
    width: 100%;
    min-height: 220px;
    resize: vertical;
}

.modern-order-details-flow .payments-method-col #deliveryMethodsTable {
    table-layout: fixed;
    width: 100%;
}

.modern-order-details-flow .payments-method-col td,
.modern-order-details-flow .delivery-method-col td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    vertical-align: top;
}

.modern-order-details-flow .payments-method-col td:first-child {
    width: 34%;
    padding-right: 0.9rem;
}

.modern-order-details-flow .payments-method-col label {
    display: block;
    line-height: 1.45;
    white-space: normal;
}

.modern-order-details-flow .modern-order-actions-col {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
}

.modern-order-details-flow .cart-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modern-order-details-flow .cart-button > a,
.modern-order-details-flow .cart-button > div,
.modern-order-details-flow .cart-button > button {
    float: none;
}

.modern-order-details-flow #cart-button-submit {
    margin-left: auto;
}

@media (max-width: 991px) {
    .modern-cart-section #form-cart:not(.modern-order-inline-form) {
        grid-template-columns: minmax(0, 1fr);
    }

    .modern-cart-section #form-cart:not(.modern-order-inline-form) > .col-sm-4,
    .modern-cart-section #form-cart:not(.modern-order-inline-form) > .col-md-4,
    .modern-cart-section #form-cart:not(.modern-order-inline-form) > .col-lg-4,
    .modern-cart-section #form-cart:not(.modern-order-inline-form) > .modern-cart-wide-panel,
    .modern-order-details-flow,
    .modern-order-details-flow #form-cart.modern-order-inline-form,
    .modern-order-details-flow .payments-method-col,
    .modern-order-details-flow .modern-order-notes-col {
        grid-column: 1 / -1;
    }

    .modern-order-details-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .modern-order-details-flow #form-cart.modern-order-inline-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .modern-order-details-flow .payments-method-col td:first-child {
        width: auto;
        padding-right: 0.5rem;
    }

    .modern-order-details-flow .cart-button,
    .modern-order-details-flow #cart-button-submit {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .modern-order-details-flow .cart-button > a,
    .modern-order-details-flow .cart-button > div {
        width: 100%;
        text-align: center;
    }

    .modern-cart-section .table-order-details td:last-child {
        white-space: normal;
    }

    .modern-cart-section .payment-meta-cell {
        min-width: 0;
    }
    }

/* Header, categories and overflow fixes. */
html,
body,
.modern-site {
	max-width: 100%;
	overflow-x: hidden;
}

.amerce-header__main,
.amerce-header__main > *,
.amerce-nav,
.modern-nav__list,
.amerce-category-pills,
.amerce-category-pill,
.product-grid,
.amerce-editorial-grid {
	min-width: 0;
}

.amerce-hero > .container {
	max-width: var(--amerce-container) !important;
	padding-left: clamp(1rem, 3vw, 2.5rem) !important;
	padding-right: clamp(1rem, 3vw, 2.5rem) !important;
}

.amerce-hero__stage {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media (min-width: 1101px) {
	.amerce-header__main {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) auto minmax(180px, 0.65fr) !important;
		grid-template-areas: "nav brand utility" !important;
		align-items: center;
		column-gap: clamp(1rem, 2.5vw, 2.4rem);
		row-gap: 0;
		min-height: 82px;
		padding: 0.75rem 0;
	}

	.amerce-nav {
		grid-area: nav;
		justify-self: start;
		width: 100%;
	}

	.amerce-brand {
		grid-area: brand;
		justify-self: center;
	}

	.amerce-utility {
		grid-area: utility;
		justify-self: end;
		flex: 0 0 auto;
	}

	.modern-nav__list {
		justify-content: flex-start !important;
		flex-wrap: wrap !important;
		gap: 0.35rem 0.45rem !important;
	}

	.modern-nav__list > li > a {
		white-space: normal !important;
		border-radius: 8px;
		background: transparent;
		padding: 0.58rem 0.7rem;
		font-size: clamp(0.68rem, 0.62rem + 0.16vw, 0.76rem);
		letter-spacing: 0.08em;
		line-height: 1.2;
	}

	.modern-nav__list > li > a:hover,
	.modern-nav__list > li > a:focus,
	.modern-nav__list > li.open-mobile > a,
	.modern-nav__list > li.open-desktop > a {
		background: rgba(var(--amerce-header-ink-rgb), 0.1);
	}
}

.amerce-category-pills {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.15rem !important;
}

.amerce-category-pill {
	min-height: 190px !important;
	justify-content: flex-end !important;
	padding: 1.25rem !important;
	border-radius: 8px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: 0 16px 38px rgba(var(--amerce-header-base-rgb), 0.1) !important;
}

.amerce-category-pill__content {
	width: 100%;
	max-width: none !important;
	gap: 0.45rem;
}

.amerce-category-pill__title {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0;
}

.amerce-category-pill__description {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 34ch;
	font-size: 0.88rem !important;
	line-height: 1.45 !important;
}

.amerce-category-pill::after {
	content: "Scopri" !important;
	top: 1rem;
	right: 1rem;
	bottom: auto;
	padding: 0.28rem 0.58rem;
	border-radius: 999px;
	background: rgba(var(--amerce-surface-rgb), 0.82);
	color: var(--amerce-accent-strong);
	font-size: 0.68rem;
	font-weight: 800;
}

.amerce-category-pill--image::before {
	background:
		linear-gradient(180deg, rgba(var(--amerce-header-base-rgb), 0.02) 0%, rgba(var(--amerce-header-base-rgb), 0.76) 100%),
		linear-gradient(110deg, rgba(var(--amerce-highlight-rgb), 0.18) 0%, transparent 48%) !important;
}

@media (max-width: 900px) {
	.amerce-category-pills {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 560px) {
	.amerce-category-pills {
		grid-template-columns: 1fr !important;
	}

	.amerce-category-pill {
		min-height: 150px !important;
	}
}
