/**
 * Xeora Products — Dark Glassmorphism
 *
 * Shared dark premium style for public product catalog and product single pages.
 *
 * @package Xeora
 * @subpackage Assets/CSS/Products
 */

:root {
    --xeora-product-primary: #b8cc0b;
    --xeora-product-primary-rgb: 184, 204, 11;
    --xeora-product-secondary: #667eea;
    --xeora-product-secondary-rgb: 102, 126, 234;
    --xeora-product-bg-a: #0f0c29;
    --xeora-product-bg-b: #302b63;
    --xeora-product-bg-c: #24243e;
    --xeora-product-card: rgba(255, 255, 255, 0.06);
    --xeora-product-card-strong: rgba(255, 255, 255, 0.1);
    --xeora-product-border: rgba(255, 255, 255, 0.1);
    --xeora-product-text: rgba(255, 255, 255, 0.92);
    --xeora-product-text-muted: rgba(255, 255, 255, 0.58);
    --xeora-product-shadow: 0 16px 64px rgba(0, 0, 0, 0.38);
}

#xeora-product-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--xeora-product-text);
    background:
        radial-gradient(circle at 15% 10%, rgba(var(--xeora-product-secondary-rgb), 0.22), transparent 34%),
        radial-gradient(circle at 85% 18%, rgba(var(--xeora-product-primary-rgb), 0.16), transparent 30%),
        linear-gradient(135deg, var(--xeora-product-bg-a) 0%, var(--xeora-product-bg-b) 52%, var(--xeora-product-bg-c) 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#xeora-product-wrapper::before,
#xeora-product-wrapper::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
}

#xeora-product-wrapper::before {
    top: -160px;
    left: -120px;
    background: var(--xeora-product-secondary);
}

#xeora-product-wrapper::after {
    right: -140px;
    bottom: -180px;
    background: var(--xeora-product-primary);
}

#xeora-product-wrapper > * {
    position: relative;
    z-index: 1;
}

#xeora-product-wrapper > #xeora-header-menu,
#xeora-product-wrapper > .xeora-header-menu {
    position: fixed !important;
    z-index: 10000 !important;
    background: rgba(15, 12, 41, 0.86) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#xeora-product-wrapper #xeora-header-menu a,
#xeora-product-wrapper .xeora-header-menu a,
#xeora-product-wrapper #xeora-header-menu .header-title,
#xeora-product-wrapper .xeora-header-menu .header-title {
    color: #fff !important;
}

.xeora-product-container {
    max-width: 1280px !important;
    margin: 96px auto 56px !important;
    padding: 0 20px !important;
}

.xeora-products-archive-header,
.xeora-products-archive-toolbar,
.xeora-products-archive-card,
.xeora-products-archive-empty,
.xeora-product-header,
.xeora-reviews-section,
.xeora-review-form,
.xeora-review-item,
.xeora-no-reviews {
    background: var(--xeora-product-card) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--xeora-product-border) !important;
    box-shadow: var(--xeora-product-shadow) !important;
}

.xeora-products-archive-header,
.xeora-products-archive-toolbar,
.xeora-product-header,
.xeora-reviews-section,
.xeora-review-form {
    border-radius: 24px !important;
}

.xeora-products-archive-header h1,
.xeora-products-archive-card h2,
.xeora-products-archive-card h2 a,
.xeora-product-info h1,
.xeora-reviews-section h2,
.xeora-review-form h3,
.xeora-review-author,
.xeora-review-date {
    color: #fff !important;
}

.xeora-products-archive-header p,
.xeora-products-archive-current,
.xeora-products-archive-description,
.xeora-products-archive-empty p,
.xeora-product-brand,
.xeora-product-description,
.xeora-rating-text,
.xeora-rating-count,
.xeora-no-reviews p,
.xeora-login-notice,
.xeora-review-text {
    color: var(--xeora-product-text-muted) !important;
}

.xeora-products-archive-kicker,
.xeora-products-archive-category,
.xeora-products-archive-brand {
    color: var(--xeora-product-primary) !important;
}

.xeora-products-archive-card {
    border-radius: 22px !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
}

.xeora-products-archive-card:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(var(--xeora-product-primary-rgb), 0.35) !important;
}

.xeora-products-archive-image {
    background: rgba(255, 255, 255, 0.07) !important;
}

.xeora-products-archive-placeholder,
.xeora-product-placeholder {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.42) !important;
}

.xeora-products-archive-price {
    color: var(--xeora-product-primary) !important;
}

.xeora-products-archive-link {
    color: #fff !important;
}

.xeora-products-archive-link:hover {
    color: var(--xeora-product-primary) !important;
}

.xeora-products-archive-search input,
.xeora-review-form input[type="text"],
.xeora-review-form textarea,
.xeora-review-form input[type="radio"] + label {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.xeora-review-form label {
    color: #fff !important;
}

.xeora-review-form .xeora-form-group label {
    color: #fff !important;
}

.xeora-review-form input[type="radio"] + label {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.xeora-products-archive-search input::placeholder,
.xeora-review-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.42) !important;
}

.xeora-products-archive-search input:focus,
.xeora-review-form input[type="text"]:focus,
.xeora-review-form textarea:focus {
    border-color: rgba(var(--xeora-product-primary-rgb), 0.55) !important;
    box-shadow: 0 0 0 4px rgba(var(--xeora-product-primary-rgb), 0.12) !important;
}

.xeora-products-archive-submit,
.xeora-submit-btn {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--xeora-product-secondary), var(--xeora-product-primary)) !important;
    box-shadow: 0 12px 34px rgba(var(--xeora-product-secondary-rgb), 0.24) !important;
    cursor: pointer;
}

.xeora-products-archive-submit:hover,
.xeora-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(var(--xeora-product-secondary-rgb), 0.34) !important;
}

.xeora-products-archive-filter {
    background: rgba(255, 255, 255, 0.07) !important;
    color: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.xeora-products-archive-filter span {
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.xeora-products-archive-filter:hover,
.xeora-products-archive-filter.active {
    background: rgba(var(--xeora-product-primary-rgb), 0.18) !important;
    border-color: rgba(var(--xeora-product-primary-rgb), 0.45) !important;
    color: var(--xeora-product-primary) !important;
}

.xeora-products-archive-filter.active span {
    background: rgba(var(--xeora-product-primary-rgb), 0.22) !important;
    color: var(--xeora-product-primary) !important;
}

.xeora-product-image {
    border-radius: 22px !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34) !important;
}

.xeora-stars,
.xeora-review-rating {
    color: #fbbf24 !important;
}

.xeora-open-login-modal {
    color: var(--xeora-product-primary) !important;
}

@media (max-width: 900px) {
    .xeora-product-container {
        margin-top: 84px !important;
    }

    .xeora-products-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .xeora-products-archive-header,
    .xeora-products-archive-toolbar {
        padding: 22px !important;
        border-radius: 20px !important;
    }

    .xeora-products-archive-search {
        flex-direction: column !important;
    }

    .xeora-products-archive-submit {
        width: 100% !important;
    }

    .xeora-products-archive-grid {
        grid-template-columns: 1fr !important;
    }

    .xeora-product-grid {
        grid-template-columns: 1fr !important;
    }
}
