/* AdvertPlace homepage: hero */
.advert-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(100px, 12vw, 190px);
    background-color: transparent;
    background-blend-mode: normal;
    overflow: hidden;
}

.ap-marketplace-hero {
    min-height: 630px;
    display: flex;
    align-items: center;
    padding-block: 85px 115px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ap-marketplace-hero .ap-hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ap-marketplace-hero .ap-hero-background__layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 2.5s ease-in-out;
    will-change: opacity;
}

.ap-marketplace-hero .ap-hero-background__layer.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ap-marketplace-hero .ap-hero-background__layer {
        transition: none;
    }
}

.ap-marketplace-hero::after {
    content: none;
    display: none;
}

.ap-marketplace-hero .container {
    position: static;
    width: 100%;
    max-width: none;
    padding-inline: clamp(24px, 4vw, 76px);
}

.ap-hero-eyebrow {
    display: inline-block;
    margin: 0 0 24px;
    padding: 8px 18px;
    border: 1px solid #3765aa;
    border-radius: 100px;
    background: linear-gradient(110deg, #091b35df, #17112bdf, #2b1119df);
    color: #d6e7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ap-marketplace-hero .hero__title {
    max-width: 800px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 4.5vw, 70px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-align: left;
}

.ap-marketplace-hero p {
    max-width: 600px;
    color: #d0c3e0;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

.ap-marketplace-hero .ap-hero-search-row {
    position: absolute;
    left: clamp(24px, 4vw, 76px);
    right: clamp(24px, 4vw, 76px);
    bottom: 18px;
    margin: 0;
    z-index: 2;
}

.ap-marketplace-hero .hero-search-form {
    max-width: 740px;
    margin: 0;
    border: 1px solid #35578d88;
    box-shadow: 0 24px 80px #0008;
}

.ap-marketplace-hero .hero-search-form input {
    border-radius: 10px;
}

.ap-marketplace-hero .hero-search-btn {
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(#12182b, #12182b) padding-box,
        var(--ap-action-edge) border-box !important;
    border: 1px solid transparent;
}

/* Homepage sections below the approved category experience. */
.ap-home-section {
    position: relative;
    background: radial-gradient(ellipse at 10% 5%, rgba(17, 78, 165, .12), transparent 55%),
        radial-gradient(ellipse at 88% 85%, rgba(146, 26, 42, .10), transparent 55%), #0b0914;
    color: #d3cde1;
}
.ap-home-section:nth-of-type(even) {
    background: radial-gradient(ellipse at 80% 10%, rgba(37, 72, 148, .12), transparent 58%),
        radial-gradient(ellipse at 10% 90%, rgba(17, 78, 165, .10), transparent 55%), #0e0b19;
}
.ap-home-section .section-title,
.ap-home-section .box-header .section-title,
.ap-home-section h2,
.ap-home-section h3 {
    color: #f8f6ff;
}
.ap-home-section .section-header p,
.ap-home-section .box-header p,
.ap-home-section .product-card p {
    color: #c7c1d5;
}
.ap-home-section .product-card,
.ap-home-section .post-card,
.ap-home-section .testimonial-card {
    background: #121827;
    color: #e8e3f2;
    border: 1px solid #354967;
    border-radius: 18px;
    overflow: hidden;
}
.ap-review-stars{font-size:17px;line-height:1.4}
.ap-review-stars__filled{color:#f5bd45}
.ap-review-stars__empty{color:#7d8298}
.ap-home-section .product-title a,
.ap-home-section .post-card__title a,
.ap-home-section .testimonial-card .name,
.ap-home-section .product-price {
    color: #fff;
}
.ap-home-section .testimonial-card p,
.ap-home-section .post-card p {
    color: #cbc5da;
}
.ap-home-section .custom--nav-tabs .nav-link {
    color: #d9d2e8;
    background: linear-gradient(#111827, #111827) padding-box,
        var(--ap-action-edge) border-box;
    border: 1px solid transparent;
    border-radius: 12px;
}
.ap-home-section .custom--nav-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(#162542, #162542) padding-box,
        var(--ap-action-edge) border-box;
    border-color: transparent;
}
.ap-latest-products .nav-tabs {
    border-color: #403455;
}
.ap-testimonials .testimonial-slider .slick-dots li.slick-active button {
    background: var(--ap-action-edge);
    background-color: transparent;
}
.ap-testimonials .testimonial-card {
    box-shadow: 0 15px 35px rgba(0,0,0,.22);
}
.ap-home-section .text--base,
.ap-home-section .read-more {
    color: #83a9ff !important;
}
.ap-subscribe {
    background: linear-gradient(105deg, #07152b 0%, #13112d 52%, #260e1c 100%);
    border-block: 1px solid #35304d;
}
.ap-subscribe .subscribe-form button {
    border-radius: 10px;
}

/* AdvertPlace homepage: category section */
.advert-categories {
    background: var(--ap-bg);
    padding-block: 20px 36px;
}

.advert-categories__container {
    padding-inline: clamp(14px, 2vw, 36px);
}

.advert-categories .category-wrapper {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.advert-categories__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.advert-categories__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #bb75f5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.advert-categories__eyebrow::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    margin-right: 12px;
    vertical-align: middle;
    background: var(--ap-gradient);
}

.advert-categories__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 2.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.advert-categories__heading h2 span {
    background: var(--ap-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.advert-categories__grid > [class*="col-"] {
    display: flex;
}

/* Category color identities: matched to the twelve displayed category artworks */
.advert-categories .ap-category-tone-1 {
    --category-accent: #338dff;
    --category-glow: rgba(51,141,255, 0.48);
    --category-wash: rgba(51,141,255, 0.10);
}

.advert-categories .ap-category-tone-2 {
    --category-accent: #04d9c1;
    --category-glow: rgba(4,217,193, 0.48);
    --category-wash: rgba(4,217,193, 0.10);
}

.advert-categories .ap-category-tone-3 {
    --category-accent: #ff9a24;
    --category-glow: rgba(255,154,36, 0.48);
    --category-wash: rgba(255,154,36, 0.10);
}

.advert-categories .ap-category-tone-4 {
    --category-accent: #bd55ff;
    --category-glow: rgba(189,85,255, 0.48);
    --category-wash: rgba(189,85,255, 0.10);
}

.advert-categories .ap-category-tone-5 {
    --category-accent: #ff579c;
    --category-glow: rgba(255,87,156, 0.48);
    --category-wash: rgba(255,87,156, 0.10);
}

.advert-categories .ap-category-tone-6 {
    --category-accent: #12c6f4;
    --category-glow: rgba(18,198,244, 0.48);
    --category-wash: rgba(18,198,244, 0.10);
}

.advert-categories .ap-category-tone-7 {
    --category-accent: #ff315f;
    --category-glow: rgba(255,49,95, 0.48);
    --category-wash: rgba(255,49,95, 0.10);
}

.advert-categories .ap-category-tone-8 {
    --category-accent: #647aff;
    --category-glow: rgba(100,122,255, 0.48);
    --category-wash: rgba(100,122,255, 0.10);
}

.advert-categories .ap-category-tone-9 {
    --category-accent: #ffc43c;
    --category-glow: rgba(255,196,60, 0.48);
    --category-wash: rgba(255,196,60, 0.10);
}

.advert-categories .ap-category-tone-10 {
    --category-accent: #19baff;
    --category-glow: rgba(25,186,255, 0.48);
    --category-wash: rgba(25,186,255, 0.10);
}

.advert-categories .ap-category-tone-11 {
    --category-accent: #21dab1;
    --category-glow: rgba(33,218,177, 0.48);
    --category-wash: rgba(33,218,177, 0.10);
}

.advert-categories .ap-category-tone-12 {
    --category-accent: #ff446d;
    --category-glow: rgba(255,68,109, 0.48);
    --category-wash: rgba(255,68,109, 0.10);
}

/* AdvertPlace homepage: category cards */
.advert-categories .category-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #1c1228 60%, var(--category-wash));
    border: 1px solid var(--category-accent, #9146b3);
    padding: 0;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.advert-categories .category-item:hover {
    transform: translateY(-4px);
    border-color: var(--category-accent, #e843a5);
    box-shadow: 0 10px 30px var(--category-glow, #9b4dff30);
}

.advert-categories .category-item__icon {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
    overflow: hidden;
    background: #11091d;
}

.advert-categories .category-item__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.advert-categories .category-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    margin-top: 0;
    padding: 9px 10px 9px;
}

.advert-categories .category-item__name {
    display: block;
    min-height: 34px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.advert-categories .category-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.advert-categories .category-item__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bfb0d0;
    font-size: 11px;
}

.advert-categories .category-item__count i {
    color: var(--category-accent, #bd70ff);
    font-size: 16px;
}

.advert-categories .category-item__arrow {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    border: 1px solid var(--category-accent, #c24ef0);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--category-glow, #bd4cf0aa);
    text-shadow: 0 0 8px var(--category-glow, #bd4cf0aa);
    transition: background 0.2s ease;
}

.advert-categories .category-item:hover .category-item__arrow {
    background: var(--category-accent, #9b4dff);
    box-shadow: 0 0 20px var(--category-glow, #bd4cf0aa);
}

@media (max-width: 767px) {
    .ap-marketplace-hero {
        min-height: 540px;
        padding-block: 70px 115px;
    }

    .ap-marketplace-hero .ap-hero-search-row {
        bottom: 14px;
    }

    .ap-marketplace-hero .hero__title {
        font-size: clamp(36px, 9vw, 56px);
    }

    .advert-categories .category-wrapper {
        padding: 0;
    }

    .advert-categories .category-item__content {
        padding: 9px;
    }
}

@media (max-width: 575px) {
    .advert-categories .category-item__name {
        font-size: 12px;
    }

    .advert-categories .category-item__count {
        font-size: 11px;
    }

    .advert-categories .category-item__arrow {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
}
