/* Explain: Styles for UI components like buttons, cards, and animations. */
.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);
}

.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);
}

.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));
}

.bid-card.is-ended {
    opacity: 0.72;
}

.bid-countdown {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* Animated marketplace category heading */
.rotating-heading {
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-track {
    display: block;
    animation: rotateCategoryCycle 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rotating-item {
    display: block;
    height: 1.2em;
    line-height: 1.2em;
    white-space: nowrap;
}

@keyframes rotateCategoryCycle {
    0%, 22% { transform: translateY(0); }
    30%, 52% { transform: translateY(-1.2em); }
    60%, 82% { transform: translateY(-2.4em); }
    90%, 100% { transform: translateY(-3.6em); }
}

/* Full-screen vendor profile */
.vendor-profile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 200;
    background: var(--surface-color);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.vendor-profile-overlay.is-open {
    display: block;
}

.vendor-profile-panel {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-bottom: 3rem;
}

body.vendor-open {
    overflow: hidden;
}

/* Seller dashboard tabs */
.sd-tab {
    flex: 1 1 8rem;
    min-height: 2.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 240ms ease;
}

.sd-tab.is-active {
    background: var(--espresso-color);
    color: var(--pearl-color);
}

@media (prefers-reduced-motion: reduce) {
    .rotating-track {
        animation: none;
    }
}
