/* ============================================================
   IKIshop - Stile custom
   Le variabili CSS (--iki-*) sono definite in site/conf.php
   e generate dinamicamente nell'header.
   ============================================================ */

/* ── Accessibility ────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: .75rem 1.5rem;
    background: var(--iki-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 .5rem .5rem;
    text-decoration: none;
    transition: top .2s;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 3px solid var(--iki-accent);
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid var(--iki-secondary);
    outline-offset: 2px;
}

.btn-rf:focus-visible,
.btn-rf-outline:focus-visible,
.btn-hero:focus-visible {
    outline-color: var(--iki-accent);
    box-shadow: 0 0 0 4px rgba(245, 197, 24, .3);
    transform: none;
}

.nav-link:focus-visible {
    outline-color: currentColor;
    outline-offset: 4px;
}

.cart-qty-btn:focus-visible {
    outline: 2px solid var(--iki-secondary);
    outline-offset: -2px;
}

.product-thumb:focus-visible {
    border-color: var(--iki-secondary);
    outline: 2px solid var(--iki-accent);
    outline-offset: 2px;
}

/* ── Reset & Base ─────────────────────────────────────── */

body {
    font-family: var(--iki-font-body);
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--iki-font-heading);
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--iki-primary);
}

a {
    color: var(--iki-secondary);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--iki-primary);
}

/* ── Form placeholders ───────────────────────────────── */

::placeholder {
    color: #767676 !important;
    opacity: 1;
}

/* ── Country autocomplete ────────────────────────────── */

.country-autocomplete {
    position: relative;
}

.country-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.country-autocomplete-dropdown.show {
    display: block;
}

.country-autocomplete-item {
    padding: .45rem .75rem;
    font-size: .875rem;
    cursor: pointer;
    transition: background .15s;
}

.country-autocomplete-item:hover,
.country-autocomplete-item.active {
    background: var(--iki-bg-light);
    color: var(--iki-primary);
}

.country-autocomplete-empty {
    padding: .45rem .75rem;
    font-size: .85rem;
    color: #999;
}

/* ── Navbar ───────────────────────────────────────────── */

.transition-navbar {
    transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}

.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.navbar-scrolled .nav-link {
    color: var(--iki-primary) !important;
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
    color: var(--iki-secondary) !important;
}

.navbar-scrolled .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(.4);
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-left: .9rem !important;
    padding-right: .9rem !important;
}

/* ── Logo swap ────────────────────────────────────────── */

.navbar-brand {
    position: relative;
}

.navbar-brand img {
    transition: opacity .35s ease;
}

.navbar-brand img.d-none {
    display: block !important;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.navbar-brand img:not(.d-none) {
    opacity: 1;
}

/* ── Megamenu ────────────────────────────────────────── */

.megamenu-container {
    position: static;
}

.megamenu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.megamenu-section {
    border-right: 1px solid #eee;
    padding-right: 1rem;
}
.megamenu-section:last-child {
    border-right: none;
    padding-right: 0;
}

.megamenu-heading {
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--iki-primary);
}

.megamenu-heading a {
    color: var(--iki-primary);
    text-decoration: none;
}

.megamenu-heading a:hover {
    color: var(--iki-secondary);
}

.megamenu-links {
    margin: 0;
    padding: 0;
}

.megamenu-links li {
    margin-bottom: .35rem;
    break-inside: avoid;
}

.megamenu-links a {
    color: #555;
    text-decoration: none;
    font-size: .88rem;
    transition: color .2s ease;
}

.megamenu-links a:hover {
    color: var(--iki-secondary);
}

/* Categorie multi-colonna */
.megamenu-cats-2col { columns: 2; }
.megamenu-cats-3col { columns: 3; }

/* Prodotti novità */
.megamenu-product {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: .25rem;
    border-radius: .375rem;
    transition: background .2s ease;
}
.megamenu-product:hover {
    background: #f8f9fa;
}
.megamenu-product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: .375rem;
    margin-bottom: .4rem;
}
.megamenu-product-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #bbb;
    font-size: 2rem;
}
.megamenu-product-name {
    display: block;
    font-size: .8rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: .15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.megamenu-product-price {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--iki-secondary);
}

.megamenu-viewall {
    font-weight: 500;
    color: var(--iki-secondary);
    text-decoration: none;
}

.megamenu-viewall:hover {
    text-decoration: underline;
}

/* ── Shop dropdown multi-colonna ─────────────────────── */

.shop-dropdown-2col {
    min-width: 420px;
}
.shop-dropdown-3col {
    min-width: 620px;
}
.shop-dropdown-2col .shop-dropdown-cats {
    columns: 2;
}
.shop-dropdown-3col .shop-dropdown-cats {
    columns: 3;
}
.shop-dropdown-cats .dropdown-item {
    break-inside: avoid;
}

/* ── Bottoni custom ───────────────────────────────────── */

.btn-rf {
    display: inline-block;
    background-color: var(--iki-secondary);
    color: #fff;
    border: 2px solid var(--iki-secondary);
    padding: .8rem 2.2rem;
    font-family: var(--iki-font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: .5rem;
    letter-spacing: .03em;
    transition: background-color .25s, border-color .25s, color .25s, transform .2s;
    cursor: pointer;
}

.btn-rf:hover,
.btn-rf:focus {
    background-color: var(--iki-primary);
    border-color: var(--iki-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-rf-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--iki-secondary);
    border: 2px solid var(--iki-secondary);
    padding: .65rem 1.8rem;
    font-family: var(--iki-font-body);
    font-size: .95rem;
    font-weight: 600;
    border-radius: .5rem;
    letter-spacing: .03em;
    transition: background-color .25s, border-color .25s, color .25s, transform .2s;
    cursor: pointer;
}

.btn-rf-outline:hover,
.btn-rf-outline:focus {
    background-color: var(--iki-secondary);
    border-color: var(--iki-secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Off-canvas mobile menu ───────────────────────────── */

.mobile-nav .nav-item {
    border-bottom: 1px solid #eee;
}

.mobile-nav .nav-link {
    color: var(--iki-primary);
    font-weight: 500;
    font-size: 1.05rem;
    padding: .85rem 0;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    color: var(--iki-secondary);
}

/* ── Hero ─────────────────────────────────────────────── */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,58,110,.55) 0%, rgba(17,24,39,.65) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 5rem;
}

.hero-text {
    max-width: 55%;
}

.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Hero button: outline bianco, pieno su hover */
.btn-hero {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: .9rem 2.8rem;
    font-family: var(--iki-font-body);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: .5rem;
    letter-spacing: .03em;
    transition: background-color .25s, border-color .25s, color .25s, transform .2s;
}

.btn-hero:hover {
    background-color: var(--iki-secondary);
    border-color: var(--iki-secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Sezioni ──────────────────────────────────────────── */

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--iki-bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--iki-secondary);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* ── Chi siamo ────────────────────────────────────────── */

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* ── Card Prodotto ────────────────────────────────────── */

.product-card {
    border: none;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 400;
    color: #555;
}

/* ── Swiper Prodotti ──────────────────────────────────── */

.featured-swiper-wrap,
.latest-swiper-wrap,
.related-swiper-wrap,
.blog-swiper-wrap {
    position: relative;
}

.featured-swiper,
.latest-swiper,
.related-swiper,
.blog-swiper {
    overflow: hidden;
}

.featured-swiper .swiper-slide,
.latest-swiper .swiper-slide,
.related-swiper .swiper-slide,
.blog-swiper .swiper-slide {
    height: auto;
}

.featured-swiper-wrap .swiper-button-prev,
.featured-swiper-wrap .swiper-button-next,
.latest-swiper-wrap .swiper-button-prev,
.latest-swiper-wrap .swiper-button-next,
.related-swiper-wrap .swiper-button-prev,
.related-swiper-wrap .swiper-button-next,
.blog-swiper-wrap .swiper-button-prev,
.blog-swiper-wrap .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    color: var(--iki-primary);
    top: 40%;
    transition: background-color .2s, color .2s;
}

.featured-swiper-wrap .swiper-button-prev::after,
.featured-swiper-wrap .swiper-button-next::after,
.latest-swiper-wrap .swiper-button-prev::after,
.latest-swiper-wrap .swiper-button-next::after,
.related-swiper-wrap .swiper-button-prev::after,
.related-swiper-wrap .swiper-button-next::after,
.blog-swiper-wrap .swiper-button-prev::after,
.blog-swiper-wrap .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.featured-swiper-wrap .swiper-button-prev:hover,
.featured-swiper-wrap .swiper-button-next:hover,
.latest-swiper-wrap .swiper-button-prev:hover,
.latest-swiper-wrap .swiper-button-next:hover,
.related-swiper-wrap .swiper-button-prev:hover,
.related-swiper-wrap .swiper-button-next:hover,
.blog-swiper-wrap .swiper-button-prev:hover,
.blog-swiper-wrap .swiper-button-next:hover {
    background-color: var(--iki-secondary);
    color: #fff;
}

.featured-swiper-wrap .swiper-button-prev,
.latest-swiper-wrap .swiper-button-prev,
.related-swiper-wrap .swiper-button-prev,
.blog-swiper-wrap .swiper-button-prev {
    left: -22px;
}

.featured-swiper-wrap .swiper-button-next,
.latest-swiper-wrap .swiper-button-next,
.related-swiper-wrap .swiper-button-next,
.blog-swiper-wrap .swiper-button-next {
    right: -22px;
}

/* ── Categorie ────────────────────────────────────────── */

.category-box {
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}

.category-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease, filter .25s ease;
}

.category-box:hover .category-icon img {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(40%) sepia(15%) saturate(1500%) hue-rotate(260deg) brightness(90%) contrast(90%);
}

.category-name {
    font-family: var(--iki-font-body);
    font-weight: 600;
    font-size: .95rem;
    color: var(--iki-primary);
    letter-spacing: .03em;
}

/* ── Key Points ───────────────────────────────────────── */

.keypoint-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(107,91,149,.1);
    color: var(--iki-secondary);
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.keypoint-title {
    font-family: var(--iki-font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--iki-primary);
}

/* ── Language Switcher (dropdown) ──────────────────────── */

.language-switcher {
    margin-left: 1rem;
}

.language-switcher .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .6rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--iki-primary);
    background: transparent;
    border: 1px solid var(--iki-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
}
.language-switcher .lang-toggle::after {
    font-size: .6rem;
    vertical-align: .1em;
}
.language-switcher .lang-toggle:hover {
    background-color: rgba(0,0,0,.05);
}

.language-switcher .lang-dropdown {
    min-width: auto;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    overflow: hidden;
}

.language-switcher .lang-option {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    padding: .35rem 1.5rem;
}
.language-switcher .lang-option.active {
    background-color: var(--iki-primary);
    color: #fff;
    pointer-events: none;
}

/* Navbar scura: bottone bianco */
.navbar-dark .language-switcher .lang-toggle {
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.navbar-dark .language-switcher .lang-toggle:hover {
    background-color: rgba(255,255,255,.1);
}

/* ── Language Switcher – variante mobile (off-canvas) ─── */

.language-switcher-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 0 0;
}

.language-switcher-mobile .lang-pill {
    flex: 0 0 calc(50% - .25rem);
    text-align: center;
    padding: .5rem 0;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #999;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    transition: all .2s;
}
.language-switcher-mobile .lang-pill:hover {
    color: #666;
    border-color: #999;
}
.language-switcher-mobile .lang-pill.active {
    background-color: var(--iki-primary);
    color: #fff;
    pointer-events: none;
}

/* ── Contact Page ─────────────────────────────────────── */

.contact-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(107,91,149,.1);
    color: var(--iki-secondary);
    font-size: 1.15rem;
    margin-right: 1rem;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
    background-color: var(--iki-bg-dark);
    color: #ccc;
}

.footer-title {
    color: #fff;
    font-family: var(--iki-font-body);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .08em;
}

.footer-links li {
    margin-bottom: .4rem;
}

.footer-links a {
    color: #c0c0c0;
    font-size: .9rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: #fff;
}

.text-light-muted {
    color: #a0a0a0;
}

.footer-social {
    color: #c0c0c0;
    transition: color .2s;
}

.footer-social:hover {
    color: var(--iki-tertiary);
}

.footer-link-sub {
    color: #a0a0a0;
    font-size: .85rem;
    transition: color .2s;
}

a.footer-link-sub:hover {
    color: #fff;
}

/* ── Page Header (pagine interne) ─────────────────────── */

.page-header {
    background-color: var(--iki-primary);
    padding: 7rem 0 2.5rem;
    color: #fff;
}

.page-header-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.page-header .breadcrumb {
    font-size: .85rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,.85);
}

.page-header .breadcrumb-item a:hover {
    color: #fff;
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.7);
}

/* ── Shop sidebar ────────────────────────────────────── */

@media (min-width: 992px) {
    .shop-sidebar {
        position: sticky;
        top: 100px;
    }
}

.sidebar-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-block:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-family: var(--iki-font-body);
    font-weight: 600;
    font-size: .85rem;
    color: var(--iki-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.sidebar-categories li {
    margin-bottom: .25rem;
}

.sidebar-categories > li > a {
    display: block;
    padding: .35rem 0;
    color: #555;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.sidebar-categories > li > a:hover,
.sidebar-categories > li > a.active {
    color: var(--iki-secondary);
}

.sidebar-categories > li > a.active {
    font-weight: 600;
}

.sidebar-subcategories {
    padding-left: 1rem;
    margin-top: .15rem;
}

.sidebar-subcategories li a {
    display: block;
    padding: .25rem 0;
    color: #777;
    font-size: .85rem;
    transition: color .2s;
}

.sidebar-subcategories li a:hover,
.sidebar-subcategories li a.active {
    color: var(--iki-secondary);
}

.sidebar-subcategories li a.active {
    font-weight: 600;
}

/* ── Shop toolbar ────────────────────────────────────── */

.shop-toolbar {
    padding-bottom: .75rem;
    border-bottom: 1px solid #eee;
}

/* ── Product card: label categoria ───────────────────── */

.product-category-label {
    font-size: .75rem;
    color: var(--iki-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Product card: placeholder immagine ──────────────── */

.product-no-image {
    height: 220px;
    background: #f0f1f5;
}

/* ── Page Header variante compatta ───────────────────── */

.page-header-sm {
    padding: 5.5rem 0 1.5rem;
}

/* ── Scheda prodotto (dettaglio) ─────────────────────── */

.product-main-image a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    cursor: zoom-in;
}
.product-main-image a::after {
    content: "\F52A";
    font-family: "bootstrap-icons";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,.85);
    background: rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.product-main-image a:hover::after,
.product-main-image a:focus-visible::after {
    opacity: 1;
}
.product-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #f9f9fb;
    transition: transform .35s ease;
}
.product-main-image a:hover img {
    transform: scale(1.05);
}

.product-no-image-lg {
    width: 100%;
    height: 400px;
    background: #f0f1f5;
}

.product-thumbnails {
    overflow-x: auto;
}

.product-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--iki-secondary);
}

.product-thumb {
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.has-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814z'/%3E%3C/svg%3E") no-repeat center/contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
    pointer-events: none;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.product-detail-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--iki-primary);
    margin-bottom: .5rem;
}

.product-stock {
    font-size: .9rem;
    font-weight: 500;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.product-description {
    line-height: 1.8;
    font-size: .95rem;
}

.shop-description {
    line-height: 1.7;
    font-size: .95rem;
}
.shop-description p:last-child {
    margin-bottom: 0;
}

/* ── Spin icon (loading) ──────────────────────────────── */

@keyframes rfSpin {
    to { transform: rotate(360deg); }
}

.spin-icon {
    display: inline-block;
    animation: rfSpin .8s linear infinite;
}

/* ── Carrello ─────────────────────────────────────────── */

.cart-header {
    display: flex;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 2px solid #eee;
    font-family: var(--iki-font-body);
    font-size: .8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cart-header-product { flex: 2; }
.cart-header-price   { flex: 1; text-align: center; }
.cart-header-qty     { flex: 1; text-align: center; }
.cart-header-subtotal{ flex: 1; text-align: right; }
.cart-header-action  { width: 40px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
}

.cart-item-no-image {
    width: 100%;
    height: 100%;
    background: #f0f1f5;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--iki-font-body);
    font-weight: 600;
    font-size: .95rem;
    color: var(--iki-primary);
    text-decoration: none;
    display: block;
    transition: color .2s;
}

.cart-item-name:hover {
    color: var(--iki-secondary);
}

.cart-item-unit-price {
    font-size: .85rem;
    color: #888;
    margin-top: .2rem;
    display: block;
}

.cart-item-price {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    font-size: .95rem;
    color: #555;
    align-items: center;
    justify-content: center;
}

.cart-item-qty {
    flex: 0 0 auto;
}

.cart-qty-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: .4rem;
    overflow: hidden;
}

.cart-qty-btn {
    background: #f8f8f8;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 1rem;
    transition: background .15s, color .15s;
}

.cart-qty-btn:hover {
    background: var(--iki-secondary);
    color: #fff;
}

.cart-qty-input {
    width: 44px;
    height: 34px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: .9rem;
    font-weight: 500;
    color: #333;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-subtotal {
    flex: 0 0 auto;
    width: 100px;
    text-align: right;
    font-size: .95rem;
    font-weight: 600;
    color: var(--iki-primary);
}

.cart-item-remove {
    flex: 0 0 auto;
    width: 40px;
    text-align: center;
}

.cart-item-unavailable {
    opacity: 0.5;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.1rem;
    cursor: pointer;
    padding: .3rem;
    transition: color .2s;
}

.cart-remove-btn:hover {
    color: #dc3545;
}

/* Riepilogo ordine */
.cart-summary {
    background: var(--iki-bg-light);
    border-radius: .75rem;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-family: var(--iki-font-heading);
    font-weight: 700;
    color: var(--iki-primary);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    font-size: .9rem;
    color: #555;
}

.cart-summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--iki-primary);
}

/* ── Checkout ─────────────────────────────────────────── */

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: default;
}

.checkout-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--iki-font-body);
    font-weight: 600;
    font-size: .9rem;
    transition: background .3s, color .3s;
}

.checkout-step.active .checkout-step-number,
.checkout-step.completed .checkout-step-number {
    background: var(--iki-secondary);
    color: #fff;
}

.checkout-step.completed .checkout-step-number {
    background: var(--iki-primary);
}

.checkout-step-label {
    font-family: var(--iki-font-body);
    font-size: .85rem;
    font-weight: 500;
    color: #6b7280;
    transition: color .3s;
}

.checkout-step.active .checkout-step-label,
.checkout-step.completed .checkout-step-label {
    color: var(--iki-primary);
}

.checkout-step-line {
    flex: 0 0 60px;
    height: 2px;
    background: #e9ecef;
    margin: 0 .75rem;
    transition: background .3s;
}

.checkout-step-line.completed {
    background: var(--iki-primary);
}

.checkout-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: .75rem;
    padding: 2rem;
}

.checkout-panel-title {
    font-family: var(--iki-font-heading);
    font-weight: 700;
    color: var(--iki-primary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #eee;
}

/* Payment options */
.checkout-payment-options {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.checkout-payment-option {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.checkout-payment-option:hover {
    border-color: var(--iki-tertiary);
}

.checkout-payment-option.selected,
.checkout-payment-option:has(input:checked) {
    border-color: var(--iki-secondary);
    background: rgba(107, 91, 149, .04);
}

.checkout-payment-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-payment-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkout-payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(107, 91, 149, .1);
    color: var(--iki-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Review blocks */
.checkout-review-block {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-review-block:last-of-type {
    border-bottom: none;
}

.checkout-review-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
}

.checkout-review-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: .35rem;
    overflow: hidden;
}

.checkout-review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-review-no-img {
    width: 100%;
    height: 100%;
    background: #f0f1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: .9rem;
}

.checkout-review-info {
    flex: 1;
    min-width: 0;
}

.checkout-review-name {
    font-family: var(--iki-font-body);
    font-weight: 600;
    font-size: .9rem;
    color: var(--iki-primary);
    display: block;
}

.checkout-review-price {
    font-weight: 600;
    color: var(--iki-primary);
    font-size: .9rem;
    white-space: nowrap;
}

.checkout-secure-note {
    text-align: center;
    font-size: .8rem;
    color: #6b7280;
}

/* ── Checkout: Account tabs ──────────────────────────── */

#accountTabs .nav-link {
    font-family: var(--iki-font-body);
    font-weight: 500;
    font-size: .9rem;
    color: #888;
    border: none;
    border-bottom: 2px solid transparent;
    padding: .6rem 1.2rem;
}

#accountTabs .nav-link.active {
    color: var(--iki-secondary);
    border-bottom-color: var(--iki-secondary);
    background: transparent;
}

/* ── Checkout: Saved addresses ───────────────────────── */

.checkout-saved-address {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: .5rem;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.checkout-saved-address:hover {
    border-color: var(--iki-tertiary);
}

.checkout-saved-address:has(input:checked),
.checkout-saved-address.selected {
    border-color: var(--iki-secondary);
    background: rgba(107, 91, 149, .04);
}

.checkout-saved-address input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-saved-address-content strong {
    font-family: var(--iki-font-body);
    font-size: .9rem;
    color: var(--iki-primary);
}

.checkout-new-address-option {
    border-style: dashed;
}

.checkout-new-address-option .bi-plus-circle {
    color: var(--iki-secondary);
    font-size: 1.1rem;
}

.checkout-new-address-option:hover {
    border-color: var(--iki-secondary);
    background: rgba(107, 91, 149, .03);
}

/* ── Checkout: Save address option ───────────────────── */

#saveAddressOption .form-check-label {
    font-size: .9rem;
}

/* Order confirmed icon */
.order-confirm-icon {
    font-size: 4rem;
    color: #28a745;
    line-height: 1;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 991.98px) {
    .hero-text {
        max-width: 80%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .checkout-step-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .checkout-step-line {
        flex: 0 0 30px;
    }

    .checkout-panel {
        padding: 1.25rem;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    .cart-item-subtotal {
        width: auto;
        text-align: left;
        margin-left: auto;
    }

    .cart-item-remove {
        width: auto;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
        padding-bottom: 3.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .btn-hero {
        display: block;
        width: 100%;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* ── Button navy ───────────────────────────────────────── */

.btn-navy {
    background-color: var(--iki-primary);
    border-color: var(--iki-primary);
    color: #fff;
}

.btn-navy:hover {
    background-color: #162d57;
    border-color: #162d57;
    color: #fff;
}

.btn-outline-navy {
    background-color: #f0f1f5;
    border-color: #e2e4ea;
    color: #6c757d;
}
.btn-outline-navy:hover {
    background-color: #e5e7ed;
    border-color: #d5d8e0;
    color: #495057;
}
.btn-check:checked + .btn-outline-navy {
    background-color: var(--iki-primary);
    border-color: var(--iki-primary);
    color: #fff;
}

/* ── Utilities ─────────────────────────────────────────── */

.text-navy {
    color: var(--iki-primary) !important;
}

/* ── Cart badge ────────────────────────────────────────── */

.cart-badge {
    position: absolute;
    top: 2px;
    right: -6px;
    font-size: .6rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Account Section - Sidebar ────────────────────────── */

.account-sidebar {
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    overflow: hidden;
    position: sticky;
    top: 140px;
}

.account-sidebar-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--iki-primary), var(--iki-secondary));
    color: #fff;
}

.account-sidebar-header h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .25rem;
}

.account-sidebar-header small {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
}

.account-sidebar-nav {
    padding: .5rem 0;
}

.account-sidebar-item {
    display: block;
    padding: .875rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: .95rem;
    transition: all .2s;
    border-left: 3px solid transparent;
}

.account-sidebar-item:hover {
    background: var(--iki-bg-light);
    color: var(--iki-primary);
    border-left-color: var(--iki-secondary);
}

.account-sidebar-item.active {
    background: var(--iki-bg-light);
    color: var(--iki-primary);
    font-weight: 600;
    border-left-color: var(--iki-primary);
}

.account-sidebar-item.text-danger:hover {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.account-sidebar-item i {
    width: 20px;
    text-align: center;
}

/* ── Account Section - Address Cards ──────────────────── */

.address-card {
    border: 2px solid #e9ecef;
    transition: all .2s;
}

.address-card:hover {
    border-color: var(--iki-secondary);
    box-shadow: 0 4px 12px rgba(107, 91, 149, .1);
}

.address-card .dropdown-toggle::after {
    display: none;
}

/* ── Account Section - Order Cards ────────────────────── */

.order-card {
    border: 1px solid #e9ecef;
    transition: all .2s;
}

.order-card:hover {
    border-color: var(--iki-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.order-card .order-details-inner {
    background: var(--iki-bg-light);
    margin: 1rem -1.25rem -1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0 0 .375rem .375rem;
}

/* ── Account Section - Mobile ─────────────────────────── */

@media (max-width: 767.98px) {
    .account-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .account-sidebar-header {
        padding: 1rem;
    }

    .account-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
    }

    .account-sidebar-nav hr {
        display: none;
    }

    .account-sidebar-item {
        flex: 1 1 50%;
        text-align: center;
        padding: .75rem .5rem;
        font-size: .85rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .account-sidebar-item:hover,
    .account-sidebar-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--iki-primary);
    }

    .account-sidebar-item.text-danger:hover {
        border-left-color: transparent;
        border-bottom-color: #dc3545;
    }

    .order-card .row > div {
        margin-bottom: .5rem;
    }

    .order-card .text-end {
        text-align: left !important;
    }
}

/* ── Blog Post Content: layout a cascata ─────────────── */

.blog-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: .375rem;
}

.blog-post-content iframe {
    display: block;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: .375rem;
    margin: 1.5rem auto;
}

/* ── Reduced Motion ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── User avatar placeholder ──────────────────────────── */
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--iki-primary, #1E3A6E);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* ── Billing type radio cards ──────────────────────── */

.billing-radio-card {
    display: block;
    cursor: pointer;
}

.billing-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing-radio-body {
    border: 2px solid var(--bs-gray-300, #dee2e6);
    border-radius: .5rem;
    padding: .75rem 1rem;
    text-align: center;
    transition: border-color .2s, background-color .2s;
    font-size: .9rem;
}

.billing-radio-card:hover .billing-radio-body {
    border-color: var(--iki-primary, var(--bs-primary));
}

.billing-radio-card input[type="radio"]:checked + .billing-radio-body {
    border-color: var(--iki-primary, var(--bs-primary));
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), .08);
    font-weight: 600;
}
