/* Explain: Custom component styles: buttons, editorial cards, product image glow effects. */
.lace-panel {
    position: relative;
    overflow: hidden;
}

.lace-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(220, 199, 161, 0.28) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 45%, rgba(217, 167, 160, 0.22) 0 1px, transparent 3px),
        linear-gradient(135deg, transparent 0 48%, rgba(201, 199, 194, 0.18) 49% 51%, transparent 52% 100%);
    background-size: 44px 44px, 38px 38px, 28px 28px;
}

.btn-bridal {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: var(--espresso-color);
    color: var(--pearl-color);
    border: 1px solid var(--espresso-color);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-bridal:hover,
.btn-bridal:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-veil {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: rgba(251, 248, 243, 0.72);
    color: var(--espresso-color);
    border: 1px solid rgba(45, 36, 32, 0.24);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-veil:hover,
.btn-veil:focus-visible {
    border-color: var(--espresso-color);
    background: var(--surface-color);
}

.btn-add-cart {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: #FACC15;
    color: var(--espresso-color);
    border: 1px solid #EAB308;
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-add-cart:hover,
.btn-add-cart:focus-visible {
    background: #EAB308;
    transform: translateY(-1px);
}

.oval-frame {
    border-radius: 48% 48% 44% 44% / 54% 54% 40% 40%;
    border: 1px solid rgba(220, 199, 161, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.editorial-card {
    border: 1px solid rgba(201, 199, 194, 0.7);
    background: rgba(255, 253, 248, 0.78);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.product-card img {
    transition: transform 600ms ease;
}

.product-card:hover img {
    transform: scale(1.035);
}

@media (max-width: 639px) {
    .product-card {
        border-radius: 1.25rem;
    }
    
    .product-card .p-2\.5 {
        padding: 0.75rem !important;
    }
}

.product-img-glow {
    position: relative;
    background:
        radial-gradient(58% 52% at 50% 38%, #ffffff 0%, rgba(255, 255, 255, 0.62) 42%, rgba(255, 255, 255, 0) 74%),
        radial-gradient(72% 66% at 50% 56%, rgba(220, 199, 161, 0.34) 0%, rgba(220, 199, 161, 0) 72%),
        var(--surface-warm);
}

.product-img-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('https://files.cdn-files-a.com/uploads/12259553/normal_filter_nobg_6a541f34f0ec5.png?format=avif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 62% auto;
    opacity: 0.08;
}

.product-img-glow > img {
    position: relative;
    z-index: 1;
}

.gallery-thumb {
    border: 1px solid rgba(201, 199, 194, 0.7);
    opacity: 0.62;
    transition: all 240ms ease;
    cursor: pointer;
}

.gallery-thumb.is-active,
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 1;
    border-color: var(--espresso-color);
}

.option-chip {
    min-height: 2.75rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgba(201, 199, 194, 0.9);
    background: rgba(255, 253, 248, 0.72);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 240ms ease;
}

.option-chip.is-selected {
    border-color: var(--espresso-color);
    background: var(--espresso-color);
    color: var(--pearl-color);
}

.toast-bridal {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 80;
    transform: translateX(-50%) translateY(1rem);
    opacity: 0;
    pointer-events: none;
    transition: all 240ms ease;
}

.toast-bridal.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mobile-sticky-cta {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.catalog-card-dark {
    border: 1px solid rgba(201, 199, 194, 0.7);
    background: transparent;
    box-shadow: var(--shadow-card);
}

.catalog-card-dark:hover {
    border-color: var(--espresso-color);
}

.catalog-card-dark .product-img-glow {
    background:
        radial-gradient(60% 54% at 50% 38%, #ffffff 0%, rgba(255, 255, 255, 0.62) 44%, rgba(255, 255, 255, 0) 74%),
        radial-gradient(74% 68% at 50% 58%, rgba(220, 199, 161, 0.22) 0%, rgba(220, 199, 161, 0) 72%),
        var(--surface-warm);
}

.catalog-card-dark .product-img-glow > img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}
