/* ═══════════════════════════════════════════════════════════════════
   GIOIELLERIA D'URBANO — Premium Gift Card Detail Styles
   Aesthetic: Warm Italian Luxury · Ivory, Honey Gold & Espresso
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --gc-gold:         #d9a84e;
    --gc-gold-light:   #edd08a;
    --gc-gold-pale:    #f5e5b8;
    --gc-gold-deep:    #b8842e;
    --gc-gold-glow:    rgba(217, 168, 78, 0.22);
    --gc-ink:          #2a1e12;
    --gc-espresso:     #3a2916;
    --gc-espresso-deep:#261a0c;
    --gc-ivory:        #fff9f1;
    --gc-cream:        #faf0e2;
    --gc-sand:         #f2e0c8;
    --gc-muted:        #7d6345;
    --gc-soft:         #a6845e;
    --gc-border-warm:  rgba(217, 168, 78, 0.35);
    
    --gc-serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --gc-sans:         'Jost', system-ui, -apple-system, sans-serif;
    
    --gc-shadow-sm:    0 6px 20px rgba(94, 66, 38, 0.08);
    --gc-shadow-md:    0 12px 35px rgba(94, 66, 38, 0.12);
    --gc-shadow-lg:    0 20px 50px rgba(94, 66, 38, 0.16);
    
    --gc-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --gc-t:            0.3s;
}

/* ── Container Principale ── */
.giftcard-page {
    background: var(--gc-espresso-deep);
    font-family: var(--gc-sans);
    color: var(--gc-ink);
    margin-top: -110px; /* Fa partire l'header dietro la navbar top */
    position: relative;
    z-index: 1;
}

/* Background Image Header con Overlay */
.giftcard-page .page-header.header-filter {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    height: auto !important;
    min-height: 100vh !important;
    padding: 100px 0 4rem 0 !important;
    display: flex;
    align-items: flex-start;
}

.giftcard-page .page-header.header-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(30, 18, 8, 0.55) 0%, 
        rgba(42, 28, 14, 0.40) 40%, 
        rgba(26, 16, 6, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.giftcard-page .page-header.header-filter > .container {
    position: relative;
    z-index: 2;
    max-width: 1140px !important; /* Larghezza contenuta e bilanciata come FAQ/Contatti */
    width: 100% !important;
}

/* ── Card Principale Bianco/Vetro che sale sotto la Navbar ── */
.giftcard-page .main-product-gift-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gc-border-warm);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(20, 10, 3, 0.35);
    opacity: 1 !important;
    transform: none !important;
    margin-top: -35px !important; /* Sale sotto la navbar come nello screenshot */
    margin-bottom: 2rem !important;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
}

/* Titoli */
.giftcard-page .card-title {
    font-family: var(--gc-serif) !important;
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: var(--gc-espresso) !important;
}

.giftcard-page .subtitle {
    font-family: var(--gc-serif);
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--gc-muted);
    font-style: italic;
}

/* Box di Personalizzazione */
.giftcard-page .customization-box {
    background: rgba(255, 248, 236, 0.6);
    border: 1px solid var(--gc-border-warm);
    border-radius: 12px;
    box-shadow: var(--gc-shadow-sm);
}

.giftcard-page .box-title {
    font-family: var(--gc-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gc-espresso);
    letter-spacing: 0.04em;
}

.giftcard-page .text-gold {
    color: var(--gc-gold-deep);
}

/* ── Form Inputs Premium ── */
.giftcard-page .form-group {
    margin-bottom: 1.2rem;
}

.giftcard-page .form-group label {
    font-family: var(--gc-sans);
    font-size: 0.7825rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gc-muted);
    margin-bottom: 0.4rem;
}

.giftcard-page .form-group label .required {
    color: #cc5038;
}

.giftcard-page .form-control {
    background: #fff !important;
    border: 1px solid var(--gc-border-warm) !important;
    border-radius: 6px !important;
    height: 42px;
    padding: 0.5rem 0.85rem !important;
    font-family: var(--gc-sans);
    font-size: 0.9125rem !important;
    color: var(--gc-espresso) !important;
    box-shadow: none !important;
    transition: border-color var(--gc-t), box-shadow var(--gc-t);
}

.giftcard-page textarea.form-control {
    height: auto !important;
    min-height: 90px;
}

.giftcard-page .form-control:focus {
    border-color: var(--gc-gold-deep) !important;
    box-shadow: 0 0 8px rgba(217, 168, 78, 0.25) !important;
}

/* ── Bottone Aggiungi al Carrello ── */
.giftcard-page .btn-rose {
    background: linear-gradient(135deg, var(--gc-espresso) 0%, var(--gc-espresso-deep) 100%) !important;
    border: 1px solid var(--gc-espresso) !important;
    color: #fff !important;
    font-family: var(--gc-sans);
    font-size: 0.8425rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.95rem 2rem !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(58, 41, 22, 0.2) !important;
    transition: all var(--gc-t) var(--gc-ease) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giftcard-page .btn-rose:hover {
    background: linear-gradient(135deg, var(--gc-gold-deep) 0%, var(--gc-gold) 100%) !important;
    border-color: var(--gc-gold-deep) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px var(--gc-gold-glow) !important;
    transform: translateY(-1px);
}

.giftcard-page .btn-rose:active {
    transform: translateY(1px);
}

/* ── Accordion Custom ── */
.giftcard-page .accordion-custom .card-collapse {
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0.8rem;
}

.giftcard-page .accordion-custom .card-header {
    background: rgba(255, 248, 236, 0.5);
    border: 1px solid rgba(217, 168, 78, 0.25);
    border-radius: 8px;
    padding: 0.85rem 1.2rem;
    transition: background var(--gc-t);
}

.giftcard-page .accordion-custom .card-header h5 a {
    font-family: var(--gc-serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--gc-espresso) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none !important;
}

.giftcard-page .accordion-custom .card-header h5 a i {
    color: var(--gc-gold-deep);
    font-size: 0.95rem;
    transition: transform var(--gc-t);
}

.giftcard-page .accordion-custom .card-header h5 a.collapsed i {
    transform: rotate(0deg);
}

.giftcard-page .accordion-custom .card-header h5 a:not(.collapsed) i {
    transform: rotate(180deg);
}

.giftcard-page .accordion-custom .card-body {
    padding: 1rem 1.2rem;
    font-family: var(--gc-sans);
    font-size: 0.9225rem;
    line-height: 1.65;
    color: var(--gc-muted);
}

.giftcard-page .info-list li {
    list-style: none;
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.6rem;
}

.giftcard-page .info-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gc-gold);
    font-size: 0.7625rem;
}

/* ── Immagine Gift Card Destra ── */
.giftcard-page .image-container {
    position: sticky;
    top: 140px;
}

.giftcard-page .image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(42, 30, 18, 0.18);
    border: 1px solid var(--gc-border-warm);
    transition: transform var(--gc-t) var(--gc-ease);
}

.giftcard-page .image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 45px rgba(42, 30, 18, 0.25);
}

.giftcard-page .product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.giftcard-page .product-gallery__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gc-ivory);
    border: 1px solid var(--gc-border-warm);
}

.giftcard-page .product-gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
}

.giftcard-page .product-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.giftcard-page .product-gallery__zoom {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: zoom-in;
}

.giftcard-page .product-lightbox,
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: rgba(18, 12, 8, 0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.giftcard-page .product-lightbox.is-open,
.product-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-lightbox__img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    background: #fffdf8;
}

.product-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.giftcard-page .product-gallery__thumbs {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.giftcard-page .product-gallery__thumb {
    width: 64px;
    height: 64px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--gc-ivory);
    cursor: pointer;
}

.giftcard-page .product-gallery__thumb.is-active {
    border-color: var(--gc-gold);
}

.giftcard-page .product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsività */
@media (max-width: 991px) {
    .giftcard-page .main-product-gift-card {
        padding: 1.5rem 1rem;
        margin-top: -20px !important;
    }
    .giftcard-page .image-container {
        position: static;
    }
}
