/* Explain: Styles for UI components, luxury accents, and specific elements like shipping options. */
.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 [class*="aspect-"] {
    aspect-ratio: 1 / 1 !important;
    background: var(--surface-warm);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 600ms ease;
}

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

.gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0.25rem;
    border-radius: 1.25rem;
    background: var(--surface-warm);
    border: 1px solid rgba(201, 199, 194, 0.7);
    opacity: 0.62;
    transition: all 240ms ease;
    cursor: pointer;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
}

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

.barcode-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 52mm;
    height: 36mm;
    padding: 0.45rem;
    border: 1px dashed var(--border-color);
    border-radius: 0.6rem;
    background: #ffffff;
}

.barcode-label-name {
    font-size: 0.65rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--espresso-color);
}

.barcode-label-img {
    max-width: 100%;
    height: auto;
    max-height: 15mm;
    object-fit: contain;
}

.barcode-label-code {
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin: 0.15rem 0 0;
    color: var(--text-color);
}

.barcode-label-price {
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0.15rem 0 0;
    color: var(--espresso-color);
}

/* Τίτλοι προϊόντων σε κεφαλαία γράμματα (αυτόματα παντού) */
.product-card h1,
.product-card h2,
.product-card h3,
.collection-grid h1,
.collection-grid h2,
.collection-grid h3,
.product-detail-grid h1,
.product-detail-grid h2,
.product-detail-grid h3,
[data-qv-name],
[data-qv-name] *,
#quickViewModal h2,
#cartItems h1,
#cartItems h2,
#cartItems h3,
#checkoutCartSummary h2,
[data-product-title] {
    text-transform: uppercase;
}

/* Φίλτρα συλλογής */
.filter-bar {
    border: 1px solid rgba(201, 199, 194, 0.7);
    background: rgba(255, 253, 248, 0.85);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgba(201, 199, 194, 0.85);
    background: rgba(255, 253, 248, 0.75);
    color: var(--espresso-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 260ms ease;
}

.filter-chip small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.6;
}

.filter-chip:hover {
    border-color: var(--espresso-color);
    transform: translateY(-1px);
}

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

.filter-chip.is-active small {
    opacity: 0.85;
}

.filter-select {
    min-height: 2.6rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgba(201, 199, 194, 0.85);
    background-color: rgba(255, 253, 248, 0.8);
    padding: 0.5rem 2.1rem 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--espresso-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.6' stroke='%232D2420'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.7rem;
}

.filter-input {
    min-height: 2.6rem;
    width: 5.5rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgba(201, 199, 194, 0.85);
    background: rgba(255, 253, 248, 0.8);
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--espresso-color);
}

/* Στοιχεία ορατά μόνο στον συνδεδεμένο διαχειριστή */
.admin-only-hidden {
    display: none !important;
}

/* Πολυτελή διακοσμητικά στοιχεία σελίδας συλλογής */
.luxury-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--champagne-color);
}

.luxury-divider::before,
.luxury-divider::after {
    content: '';
    height: 1px;
    width: clamp(1.5rem, 10vw, 5rem);
    background: linear-gradient(90deg, transparent, var(--champagne-color));
}

.luxury-divider::after {
    background: linear-gradient(90deg, var(--champagne-color), transparent);
}

.luxury-frame {
    position: relative;
    border-radius: 50% 50% 46% 46% / 52% 52% 42% 42%;
    padding: 0.7rem;
    border: 1px solid rgba(220, 199, 161, 0.9);
    background: linear-gradient(155deg, rgba(220, 199, 161, 0.4), rgba(217, 167, 160, 0.16));
    box-shadow: var(--shadow-soft);
}

.luxury-frame .oval-frame {
    box-shadow: none;
    border-color: rgba(255, 253, 248, 0.9);
}

.luxury-mini-divider {
    display: block;
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne-color), transparent);
}

.luxury-hero {
    background: linear-gradient(160deg, rgba(255, 253, 248, 0.95), rgba(244, 238, 228, 0.82));
}

.luxury-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.5;
}

.luxury-glow-left {
    width: 18rem;
    height: 18rem;
    top: -6rem;
    left: -6rem;
    background: rgba(220, 199, 161, 0.55);
}

.luxury-glow-right {
    width: 16rem;
    height: 16rem;
    bottom: -6rem;
    right: -5rem;
    background: rgba(217, 167, 160, 0.45);
}

.luxury-corner {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--champagne-color);
    opacity: 0.8;
    pointer-events: none;
}

.luxury-corner-tl {
    top: 1.4rem;
    left: 1.4rem;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 1.4rem;
}

.luxury-corner-br {
    bottom: 1.4rem;
    right: 1.4rem;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 1.4rem;
}

.luxury-orb {
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    border: 1px solid rgba(220, 199, 161, 0.9);
    pointer-events: none;
}

.luxury-orb-small {
    left: auto;
    right: -1rem;
    top: auto;
    bottom: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(217, 167, 160, 0.25);
    border: none;
}

.luxury-category {
    border: 1px solid rgba(220, 199, 161, 0.5);
}

.luxury-category:hover {
    border-color: var(--champagne-color);
    box-shadow: 0 26px 70px rgba(45, 36, 32, 0.16);
}

.luxury-filter {
    border: 1px solid rgba(220, 199, 161, 0.6);
    background: linear-gradient(160deg, rgba(255, 253, 248, 0.95), rgba(244, 238, 228, 0.9));
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.product-card {
    border: 1px solid rgba(220, 199, 161, 0.4);
    transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.product-card:hover {
    border-color: var(--champagne-color);
    box-shadow: 0 26px 65px rgba(45, 36, 32, 0.15);
    transform: translateY(-4px);
}

#collectionGrid {
    scroll-margin-top: 7rem;
}

/* Επιλογή τρόπου αποστολής στο ταμείο */
.ship-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(201, 199, 194, 0.9);
    background: rgba(255, 253, 248, 0.72);
    color: var(--espresso-color);
    cursor: pointer;
    transition: all 240ms ease;
}

.ship-option:hover {
    border-color: var(--espresso-color);
}

.ship-option:has(input:checked) {
    border-color: var(--espresso-color);
    background: var(--espresso-color);
    color: var(--pearl-color);
}

.ship-option input {
    accent-color: var(--rose-nude-color);
}

.ship-price {
    font-weight: 700;
    white-space: nowrap;
}
