/* ---- COLLEZIONE STYLES ---- */

/* ── Collection Editorial V7 ── */
.collection-editorial {
    background: var(--white);
}

.coll-hero {
    position: relative;
    height: 50vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.coll-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.8s ease;
}

.coll-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 12, 10, 0.3), rgba(15, 12, 10, 0.7));
}

.coll-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.coll-hero-content h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    margin: 20px 0;
}

.luxury-hero-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
}

.catalog-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    padding: 80px 0;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
}

.filter-section {
    margin-bottom: 50px;
}

.filter-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 25px;
}

.filter-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-links a {
    color: var(--text-light);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-links a:hover,
.filter-links a.active {
    color: var(--dark);
    font-weight: 600;
    transform: translateX(10px);
}

.filter-links a.active {
    color: var(--gold);
}

.products-grid-refined {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 60px 40px;
}

.product-card-luxury {
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding-bottom: 20px;
}

.product-card-luxury:hover {
    transform: translateY(-12px);
}

.prod-img-box {
    position: relative;
    aspect-ratio: 1/1;
    background: #fdfdfd;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    max-width: 450px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-luxury:hover .prod-img-box {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

.p-img {
    max-width: 85%;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card-luxury:hover .p-img {
    transform: scale(1.08);
}

.prod-brand-overlay {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--dark);
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    z-index: 5;
}

.product-card-luxury:hover .prod-brand-overlay {
    opacity: 1;
    transform: translateX(0);
}

.prod-quick-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white) !important;
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 6;
    text-decoration: none;
}

.product-card-luxury:hover .prod-quick-cta {
    transform: translateY(0);
}

.prod-quick-cta:hover {
    background: var(--gold);
}

.prod-details {
    padding: 10px 0;
}

.prod-cat {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.prod-name {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.product-card-luxury:hover .prod-name {
    color: var(--gold);
}

.prod-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 991px) {
    .catalog-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sticky-sidebar {
        position: static;
    }
}

/* ── Brand Grid & Collection V8 (Unification) ────── */
.marchi-unified-v8 {
    padding-bottom: 0;
}

.marchi-hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--white);
}

.marchi-hero h1 {
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 30px 0;
}

.brand-grid-refined {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin: 50px 0 120px;
}

.brand-item-minimal {
    background: #fdfdfd;
    border: 1px solid var(--border-light);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.brand-item-minimal::before {
    content: attr(data-brand);
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    opacity: 0.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 0;
}

.brand-item-minimal:hover {
    border-color: var(--gold);
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.brand-item-minimal img {
    max-width: 110px;
    max-height: 45px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.brand-item-minimal:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Feature Unification V8 */
.unified-collections {
    padding: 120px 0;
    background: var(--section-ivory);
}

.collections-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.showcase-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    text-decoration: none;
    display: block;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-item:hover .showcase-img {
    transform: scale(1.08);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.1) 70%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
    transition: background 0.5s ease;
}

.showcase-item:hover .showcase-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%);
}

.showcase-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    letter-spacing: -1px;
}

.showcase-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 80%;
}

.showcase-overlay .link-underline {
    display: inline-block;
    padding: 8px 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.showcase-item:hover .link-underline {
    border-bottom-color: var(--gold);
    color: var(--gold) !important;
}

@media (max-width: 768px) {
    .collections-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-item {
        height: 350px;
    }
}

/* Scroll Reveal Core Fix */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .service-luxury-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .service-luxury-info {
        max-width: 800px;
        margin: 0 auto;
    }

    .service-luxury-img {
        height: 450px;
    }

    .service-row-luxury {
        padding: 100px 0;
    }
}

/* Product category card */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ivory-dark);
    padding: 0;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 20px 24px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.product-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}


/* -------------------------------------- */

/* ── Hero ── */
.marchi-ec-hero {
    padding: 120px 0 80px;
    background: var(--ivory);
    overflow: hidden;
    position: relative;
}

.marchi-ec-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5vw;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1280px) {
    .marchi-ec-hero-inner {
        padding: 0 40px;
    }
}

.marchi-ec-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.marchi-ec-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 28px;
}

.marchi-ec-title em {
    font-style: italic;
    color: var(--gold);
}

.marchi-ec-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 40px;
    font-weight: 300;
}

.marchi-ec-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Hero Decoration ── */
.marchi-ec-hero-deco {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.marchi-ec-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.marchi-ec-orb-1 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--gold-bg) 0%, transparent 70%);
    top: 0;
    left: 0;
    animation: orbFloat1 6s ease-in-out infinite;
}

.marchi-ec-orb-2 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    bottom: 0;
    right: 0;
    opacity: 0.3;
    animation: orbFloat2 8s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(15px) scale(1.1);
    }
}

.marchi-ec-hero-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 1.5px solid rgba(184, 146, 62, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.marchi-ec-hero-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px dashed rgba(184, 146, 62, 0.2);
    border-radius: 50%;
    animation: frameSpin 20s linear infinite;
}

@keyframes frameSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.marchi-ec-frame-inner {
    text-align: center;
}

.marchi-ec-frame-icon {
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.marchi-ec-frame-inner span {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}


/* -------------------------------------- */

/* ── Catalog Section ── */
.brand-page-catalog {
    padding: 48px 0 80px;
}

/* ── Filter Bar ── */
.brand-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.brand-filter-tabs {
    position: relative;
    display: inline-flex;
    background: var(--ivory-dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    gap: 0;
}

.brand-tab {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.brand-tab.active {
    color: var(--dark);
    font-weight: 600;
}

.brand-tab-count {
    font-size: 0.72rem;
    background: var(--border);
    border-radius: 10px;
    padding: 1px 7px;
    color: var(--text-light);
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.brand-tab.active .brand-tab-count {
    background: var(--gold);
    color: var(--white);
}

/* Sliding pill indicator */
.brand-tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 0;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.brand-filter-results {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ── Product Grid (Brand Page) ── */
.brand-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.brand-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.brand-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
    border-color: var(--gold-light);
}

.brand-card-hidden {
    display: none !important;
}

.brand-prod-img-wrap {
    position: relative;
    background: var(--ivory);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.brand-prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.brand-prod-badge-vista {
    background: rgba(45, 65, 100, 0.85);
    color: #fff;
}

.brand-prod-badge-sole {
    background: rgba(184, 120, 30, 0.85);
    color: #fff;
}

.brand-prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand-product-card:hover .brand-prod-img {
    transform: scale(1.06);
}

.brand-prod-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: opacity 0.35s;
}

.brand-product-card:hover .brand-prod-overlay {
    opacity: 1;
}

.brand-prod-cta-btn {
    background: var(--gold);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 11px 22px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.3s;
    transform: translateY(8px);
}

.brand-product-card:hover .brand-prod-cta-btn {
    transform: translateY(0);
}

.brand-prod-cta-btn:hover {
    background: var(--gold-dark);
}

.brand-prod-details {
    padding: 20px 22px 24px;
}

.brand-prod-meta {
    margin-bottom: 6px;
}

.brand-prod-type {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
}

.brand-prod-name {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.brand-prod-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.brand-prod-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s, color 0.3s;
}

.brand-prod-link:hover {
    gap: 10px;
    color: var(--gold-dark);
}

/* ── No Results ── */
.brand-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.brand-no-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ivory-dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--text-light);
}

.brand-no-results h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}

/* ── Prenota CTA Section ── */
.brand-page-prenota {
    background: var(--ivory-dark);
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.brand-prenota-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-prenota-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 10px;
}

.brand-prenota-text p {
    color: var(--text-light);
    margin: 0;
}

.brand-prenota-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}


/* ════════════════════════════════════════════════════
   COLLEZIONE E-COMMERCE (collezione.php)
   ════════════════════════════════════════════════════ */

.coll-ec {
    padding-top: 72px;
}

/* ── Hero Slim ── */
.coll-ec-hero {
    background: var(--ivory-dark);
    border-bottom: 1px solid var(--border);
    padding: 36px 0 32px;
}

.coll-ec-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coll-ec-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.coll-ec-breadcrumb a {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
}

.coll-ec-breadcrumb a:hover {
    color: var(--gold-dark);
}

.coll-bc-sep {
    font-size: 0.6rem;
    color: var(--border);
}

.coll-ec-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coll-ec-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid rgba(184, 146, 62, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.coll-ec-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--dark);
    margin: 0;
}

/* ── Main Catalog ── */
.coll-ec-main {
    min-width: 0;
}

/* Toolbar */
.coll-ec-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.coll-ec-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.coll-ec-count strong {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 700;
}

.coll-ec-count-cat {
    color: var(--gold);
    font-weight: 500;
}

.coll-ec-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-bg);
    color: var(--gold-dark);
    border: 1px solid rgba(184, 146, 62, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.coll-ec-brand-badge:hover {
    background: var(--border);
}

/* Product Grid */
.coll-ec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.coll-ec-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.coll-ec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
    border-color: var(--gold-light);
}

.coll-ec-card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--ivory);
    overflow: hidden;
}

.coll-ec-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.coll-ec-cat-badge-vista {
    background: rgba(45, 65, 100, 0.85);
    color: #fff;
}

.coll-ec-cat-badge-sole {
    background: rgba(184, 120, 30, 0.85);
    color: #fff;
}

.coll-ec-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.coll-ec-card:hover .coll-ec-card-img {
    transform: scale(1.05);
}

/* Overlay removed from markup */

.coll-ec-card-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.coll-ec-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.coll-ec-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1;
}

.coll-ec-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.coll-ec-freq-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold-dark);
    text-transform: uppercase;
    line-height: 1;
}

.coll-ec-meta-sep {
    font-size: 0.65rem;
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1;
}

.coll-ec-type-name {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1;
}

.coll-ec-card-name {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.coll-ec-card-desc {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.coll-ec-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 50px;
    margin-top: auto;
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Stacked meta row for lenses */
.coll-ec-meta-row-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.coll-ec-card-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 146, 62, 0.3);
}

.coll-ec-card-link i {
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.coll-ec-card-link:hover i {
    transform: translateX(3px);
}

/* Empty State */
.coll-ec-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.coll-ec-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ivory-dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--text-light);
}

.coll-ec-empty h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE - All New Sections
   ════════════════════════════════════════════════════ */

/* container-large helper */
.container-large {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

@media (min-width: 1280px) {
    .container-large {
        padding: 0 40px;
    }
}


/* -------------------------------------- */

/* ── collezione layout ── */
@media (max-width: 1023px) {
    .coll-ec-layout {
        grid-template-columns: 1fr;
    }

    .coll-sidebar-sticky {
        position: static;
    }

    .coll-sidebar-chevron {
        transform: rotate(0deg);
    }
}

@media (max-width: 640px) {
    .coll-ec-hero-content {
        flex-wrap: wrap;
        gap: 14px;
    }

    .coll-ec-hero-icon {
        display: none;
    }

    .coll-ec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-bottom: 80px;
    }

    .coll-ec-card-body {
        padding: 15px 12px 20px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .coll-ec-card-name {
        font-size: 0.82rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.8em;
        line-height: 1.4;
    }

    .coll-ec-card-desc {
        display: none;
    }

    .coll-ec-card-meta {
        margin-bottom: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .coll-ec-meta-row {
        gap: 6px;
    }

    .coll-ec-brand-name {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        font-weight: 700;
    }

    .coll-ec-type-name,
    .coll-ec-freq-label {
        font-size: 0.6rem;
        padding: 0;
        line-height: 1;
        opacity: 0.8;
    }

    /* Hide category tag on mobile, keep only availability badge */
    .coll-ec-cat-tag {
        display: none;
    }

    /* Move badge to left so overflow:hidden on wrap doesn't cut it */
    .coll-ec-status-badge {
        left: 8px;
        right: auto;
        font-size: 0.58rem;
        padding: 3px 8px;
    }

    .coll-ec-card-overlay {
        display: none !important;
    }

    /* Disable hover effects on touch devices */
    .coll-ec-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border);
    }

    .coll-ec-card:hover .coll-ec-card-img {
        transform: none;
    }

    /* CTA link as minimal outlined button on mobile */
    .coll-ec-card-link,
    .coll-ec-card-link.cta-primary,
    .coll-ec-card-link.cta-outline,
    .coll-ec-card-link.cta-whatsapp {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: transparent;
        border: 1px solid var(--gold);
        border-radius: 50px;
        padding: 10px 10px;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--gold);
        box-shadow: none;
        width: 100%;
        margin-top: auto;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .coll-ec-card-link.cta-outline {
        border-color: var(--dark);
        color: var(--dark);
    }

    .coll-ec-card-link.cta-whatsapp {
        border-color: #25d366;
        color: #25d366;
    }
}

@media (max-width: 420px) {
    .coll-ec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .coll-ec-card-name {
        font-size: 0.85rem;
    }
}


/* ════════════════════════════════════════════════════
   LENTI GRADUATE PAGE (lenti-graduate.php)
   ════════════════════════════════════════════════════ */

.lg-page {
    padding-top: 72px;
}


/* -------------------------------------- */

/* ════════════════════════════════════════════════════
   PRODUCT STATUS BADGES & CTAs
   ════════════════════════════════════════════════════ */

.coll-ec-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-status-available {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.badge-status-incoming {
    background: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}

.badge-status-out-of-stock {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

/* Category Tags (Top Left) */
.coll-ec-cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(15, 12, 10, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Prevent text overflow from colliding with right badge */
    max-width: calc(50% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coll-ec-cat-tag-occhiali {
    border-left: 3px solid #3b82f6; /* Blue for Occhiali */
}

.coll-ec-cat-tag-lenti-contatto {
    border-left: 3px solid #10b981; /* Green for LAC */
}

.coll-ec-cat-tag-lenti-graduate {
    border-left: 3px solid #8b5cf6; /* Purple for Lenti Graduate */
}



/* CTA Color Variants for Buttons & Links */

/* Primary: Provalo in Negozio (Gold Filled) */
.btn-ec-overlay.cta-primary {
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-ec-overlay.cta-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px) scale(1.05);
}

/* Updated minimal button styles */
.coll-ec-card-link.cta-primary {
    background: transparent;
    color: var(--gold-dark);
    border-color: var(--gold);
}

.coll-ec-card-link.cta-primary:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.coll-ec-card-link.cta-outline {
    background: transparent;
    color: var(--gold-dark);
    border-color: var(--gold);
}

.coll-ec-card-link.cta-outline:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.coll-ec-card-link.cta-whatsapp {
    background: transparent;
    color: #128c7e;
    border-color: #25d366;
    font-weight: 700;
}

.coll-ec-card-link.cta-whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.coll-ec-card-link i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.coll-ec-card-link:hover i {
    transform: translateX(4px);
}

/* Modalità mobile per badge e pulsanti (override specifico) */
@media (max-width: 640px) {
    /* Sposta il badge a sinistra per evitare tagli */
    .coll-ec-status-badge {
        left: 8px;
        right: auto;
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    /* Trasforma i pulsanti in text-link */
    .coll-ec-card-link.cta-primary,
    .coll-ec-card-link.cta-outline,
    .coll-ec-card-link.cta-whatsapp {
        background: transparent !important;
        border: none !important;
        border-radius: 0;
        border-top: 1px solid var(--border-light) !important;
        padding: 10px 4px 0 !important;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--gold-dark) !important;
        box-shadow: none !important;
    }

    .coll-ec-card-link.cta-whatsapp {
        color: #128c7e !important;
    }
}