/* AdvertPlace public frontend design tokens */
:root {
    --ap-bg: #09080f;
    --ap-surface: #15111f;
    --ap-border: #30253e;
    --ap-text: #f7f4fc;
    --ap-muted: #b9aec9;
    --ap-accent: #6f91ed;
    --ap-blue: #356dff;
    --ap-red: #dc2839;
    --ap-magenta: #7538c6;
    --ap-action-edge: linear-gradient(110deg, #147dff 0%, #7138f5 52%, #e32635 100%);
    --ap-action-bg: #0d0b16;
    --ap-action-hover-bg: #17132a;
    --ap-gradient: linear-gradient(110deg, #147dff 0%, #7138f5 52%, #e32635 100%);
}

body {
    background: radial-gradient(ellipse 85% 42% at 12% 5%, rgba(20, 70, 165, 0.18), transparent 75%), radial-gradient(ellipse 70% 38% at 85% 38%, rgba(92, 42, 158, 0.13), transparent 78%), radial-gradient(ellipse 75% 35% at 62% 85%, rgba(156, 25, 44, 0.11), transparent 78%), var(--ap-bg);
    color: #e7e2f0;
}

a {
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ap-accent);
}

/* Consistent readable surfaces for the public site and customer area. */
main, .main-wrapper {
    color: #e7e2f0;
}
.section-header .section-title,
.box-header .section-title {
    color: #f8f6ff;
}
.section-header p,
.box-header p {
    color: #c7c1d5;
}
.form--control,
.form-control,
textarea.form--control,
select.form--control {
    background-color: #191629;
    border: 1px solid #3c4163;
    color: #f7f4fc;
}
.form--control::placeholder,
.form-control::placeholder {
    color: #aaa6bd;
}
.form--control:disabled,
.form-control:disabled {
    background-color: #242336;
    color: #c6c0d2;
}

/* Shared cinematic actions. Category-specific controls retain their own styling. */
.btn,
.ap-latest-products .custom--nav-tabs .nav-link,
.hero-search-btn,
.cart-btn,
.header-search-form .header-search-btn,
.subscribe-form button,
.scroll-to-top,
.action-btn,
.card-view-btn-area button {
    position: relative;
    isolation: isolate;
    background: linear-gradient(var(--ap-action-bg), var(--ap-action-bg)) padding-box,
        var(--ap-action-edge) border-box !important;
    border: 1px solid transparent !important;
    border-radius: 12px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(113, 56, 245, 0.14);
    transition: box-shadow 0.45s ease, transform 0.45s ease, color 0.45s ease;
}

.btn:hover:not(:disabled),
.btn:focus-visible,
.ap-latest-products .custom--nav-tabs .nav-link:hover,
.ap-latest-products .custom--nav-tabs .nav-link.active,
.hero-search-btn:hover,
.cart-btn:hover,
.header-search-form .header-search-btn:hover,
.subscribe-form button:hover,
.scroll-to-top:hover,
.hero-search-btn:focus-visible,
.cart-btn:focus-visible,
.action-btn:hover,
.card-view-btn-area button:hover {
    background: linear-gradient(var(--ap-action-hover-bg), var(--ap-action-hover-bg)) padding-box,
        var(--ap-action-edge) border-box !important;
    color: #fff;
    border-color: transparent !important;
    box-shadow: -5px 0 18px rgba(20, 125, 255, 0.45),
        0 0 20px rgba(113, 56, 245, 0.35),
        5px 0 18px rgba(227, 38, 53, 0.40);
    transform: translateY(-2px);
}

.btn:disabled,
.btn.disabled,
.cart-btn:disabled,
.action-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .action-btn,
    .card-view-btn-area button,
    .ap-latest-products .custom--nav-tabs .nav-link,
    .hero-search-btn,
    .cart-btn,
    .header-search-form .header-search-btn,
    .subscribe-form button,
    .scroll-to-top,
    .btn-outline--base {
        transition: none;
        transform: none;
    }
}

.form--control:focus,
.form-control:focus {
    border-color: var(--ap-blue) !important;
    box-shadow: 0 0 0 3px rgb(53 109 255 / 18%) !important;
}

.form-check-input:checked {
    background-color: var(--ap-blue) !important;
    border-color: var(--ap-blue) !important;
}

/* Shared product empty state: text is rendered separately for localisation. */
.ap-product-empty {
    max-width: 560px;
    margin: 20px auto;
    padding: clamp(20px, 4vw, 44px);
    color: #f4f4ff;
}
.ap-product-empty__image {
    display: block;
    width: min(100%, 400px);
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
}
.ap-product-empty__heading {
    margin: 0 0 6px;
    color: #80b5ff;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
}
.ap-product-empty__message {
    margin: 0;
    color: #e3e7f5;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 600;
}

::selection {
    background: var(--ap-blue);
    color: #fff;
}

/* FAQ accordion: same gradient rim as AdvertPlace action buttons */
.ap-faq .custom--accordion .accordion-item {
    background: var(--ap-action-edge);
    border: 0;
    border-radius: 18px;
    padding: 1px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: none;
}
.ap-faq .custom--accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    background: var(--ap-action-edge);
}
.ap-faq .custom--accordion .accordion-item .accordion-button,
.ap-faq .custom--accordion .accordion-item .accordion-button.collapsed,
.ap-faq .custom--accordion .accordion-item .accordion-button.collapsed:hover,
.ap-faq .custom--accordion .accordion-item .accordion-button:not(.collapsed) {
    background: #15152b;
    color: #fff;
    border: 0;
    box-shadow: none;
    padding: 12px 44px 12px 20px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
}
.ap-faq .custom--accordion .accordion-item .accordion-button::after {
    color: #d4dcff;
    filter: none;
    opacity: 1;
}
.ap-faq .custom--accordion .accordion-item .accordion-body {
    background: #15152b;
    color: #fff;
    padding: 24px 28px;
    border-top: 1px solid rgba(126, 91, 213, 0.25);
    line-height: 1.75;
}
.ap-faq .custom--accordion .accordion-item .accordion-body,
.ap-faq .custom--accordion .accordion-item .accordion-body p,
.ap-faq .custom--accordion .accordion-item .accordion-body span,
.ap-faq .custom--accordion .accordion-item .accordion-body li {
    color: #fff !important;
}
.ap-faq .custom--accordion .accordion-item .accordion-button:focus-visible {
    outline: 2px solid #6592ff;
    outline-offset: -2px;
}
