.category-area .category-item {
    background:#151525;
    border:1px solid #353a5a;
    border-radius:18px;
    transition:border-color .2s,transform .2s
}

.category-area .category-item:hover {
    border-color:#4289ff;
    transform:translateY(-4px)
}

.category-area .category-item__icon img {
    width:60px;
    height:60px;
    object-fit:contain
}

.category-area .category-item__content .caption {
    color:#f7f4fc
}

/* Category detail: accessible subcategory navigation cards */
.ap-subcategory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    height: 100%;
    padding: 16px 20px;
    color: #f7f4ff;
    background: linear-gradient(135deg, #121d33 0%, #1b1530 75%, #251429 100%);
    border: 1px solid #425a86;
    border-radius: 13px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ap-subcategory-card__name {
    color: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ap-subcategory-card .las {
    flex: 0 0 auto;
    color: #9bc0ff;
    font-size: 19px;
}

.ap-subcategory-card:hover,
.ap-subcategory-card:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #172d51 0%, #21183d 65%, #38172f 100%);
    border-color: #658fff;
    box-shadow: -5px 0 15px rgba(20, 125, 255, .18), 5px 0 15px rgba(227, 38, 100, .15);
    transform: translateY(-2px);
}

.ap-subcategory-card:focus-visible {
    outline: 2px solid #87b2ff;
    outline-offset: 3px;
}

.ap-subcategory-card:hover .las,
.ap-subcategory-card:focus-visible .las {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .ap-subcategory-card {
        transition: none;
    }
    .ap-subcategory-card:hover,
    .ap-subcategory-card:focus-visible {
        transform: none;
    }
}

.product-card,.product-item {
    border-radius:18px;
    overflow:hidden;
    transition:transform .2s,box-shadow .2s
}

.product-card:hover,.product-item:hover {
    transform:translateY(-3px);
    box-shadow:0 18px 48px #0005
}

.product-card img,.product-item img {
    max-width:100%
}

.pagination .page-link {
    background:#151525;
    border-color:#353a5a;
    color:#e6d9f6
}

.pagination .active .page-link {
    background:#315fca;
    border-color:#315fca;
    color:#fff
}

@media(prefers-reduced-motion:reduce) {
    .category-area .category-item,.product-card,.product-item {
        transition:none
    }

}

/* Product listing layout: same horizontal gutter as the AdvertPlace header. */
.ap-product-listings {
    padding-block: clamp(32px, 4vw, 58px) clamp(72px, 7vw, 110px);
}
.ap-product-listings > .ap-product-listings__container {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: clamp(24px, 4vw, 76px);
}
.ap-product-listings h1.ap-product-listings__title {
    display: block;
    max-width: 100%;
    margin: 0 0 clamp(26px, 3vw, 40px);
    color: #fff;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.35;
    text-align: center;
}
@media (max-width: 991px) {
    .ap-product-listings__title { margin-bottom: 22px; }
}

/* Catalog filters and search */
.ap-catalog-filters {
    background: linear-gradient(145deg, #101b2e, #171326 70%, #20111c);
    border: 1px solid #344768;
    border-radius: 18px;
    color: #e8e9f5;
    padding: 22px;
}
.ap-catalog-filters .action-widget__title,
.ap-catalog-filters .form-check-label {
    color: #e5e8f4;
}
.ap-catalog-filters .form--control {
    background: #0e1525;
    border: 1px solid #354b72;
    color: #fff;
}
.ap-catalog-filters .input-group-text.searchBtn {
    background: linear-gradient(#101727, #101727) padding-box,
        var(--ap-action-edge) border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    transition: box-shadow .4s ease;
}
.ap-catalog-filters .input-group-text.searchBtn:hover {
    box-shadow: -3px 0 12px #147dff66, 3px 0 12px #e3263566;
}
.ap-catalog-filters .form-check-input:checked {
    background-color: #287de9;
    border-color: #287de9;
}
.card-view-btn-area button.active {
    background: linear-gradient(#19243a, #19243a) padding-box,
        var(--ap-action-edge) border-box !important;
    border: 1px solid transparent;
    color: #fff;
}

/* All Categories uses the approved homepage category card design. */
/* AdvertPlace homepage: category section */
.ap-all-categories {
    background: var(--ap-bg);
    padding-block: 36px 75px;
}

.ap-all-categories__container {
    padding-inline: clamp(14px, 2vw, 36px);
}

.ap-all-categories .category-wrapper {
    margin-top: 0;
    padding: clamp(20px, 2.6vw, 42px);
    background: linear-gradient(#15101e, #15101e) padding-box,
        var(--ap-action-edge) border-box;
    border: 1px solid transparent;
    border-radius: 26px;
    box-shadow: 0 0 40px rgba(20, 125, 255, .08);
}

.ap-all-categories__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 30px;
}

.ap-all-categories__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #bb75f5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ap-all-categories__eyebrow::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    margin-right: 12px;
    vertical-align: middle;
    background: var(--ap-gradient);
}

.ap-all-categories__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ap-all-categories__heading h2 span {
    background: var(--ap-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.ap-all-categories__view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #f7f6ff;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 100px;
    background: linear-gradient(#111525, #111525) padding-box,
        var(--ap-action-edge) border-box;
    transition: box-shadow .45s ease, transform .45s ease, color .45s ease;
}

.ap-all-categories__view-all:hover,
.ap-all-categories__view-all:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: -4px 0 14px rgba(20,125,255,.4),
        0 0 14px rgba(113,56,245,.3),
        4px 0 14px rgba(227,38,53,.35);
}

.ap-all-categories__grid > [class*="col-"] {
    display: flex;
}

/* Category color identities: matched to the twelve displayed category artworks */
.ap-all-categories .ap-category-tone-1 {
    --category-accent: #338dff;
    --category-glow: rgba(51,141,255, 0.48);
    --category-wash: rgba(51,141,255, 0.10);
}

.ap-all-categories .ap-category-tone-2 {
    --category-accent: #04d9c1;
    --category-glow: rgba(4,217,193, 0.48);
    --category-wash: rgba(4,217,193, 0.10);
}

.ap-all-categories .ap-category-tone-3 {
    --category-accent: #ff9a24;
    --category-glow: rgba(255,154,36, 0.48);
    --category-wash: rgba(255,154,36, 0.10);
}

.ap-all-categories .ap-category-tone-4 {
    --category-accent: #bd55ff;
    --category-glow: rgba(189,85,255, 0.48);
    --category-wash: rgba(189,85,255, 0.10);
}

.ap-all-categories .ap-category-tone-5 {
    --category-accent: #ff579c;
    --category-glow: rgba(255,87,156, 0.48);
    --category-wash: rgba(255,87,156, 0.10);
}

.ap-all-categories .ap-category-tone-6 {
    --category-accent: #12c6f4;
    --category-glow: rgba(18,198,244, 0.48);
    --category-wash: rgba(18,198,244, 0.10);
}

.ap-all-categories .ap-category-tone-7 {
    --category-accent: #ff315f;
    --category-glow: rgba(255,49,95, 0.48);
    --category-wash: rgba(255,49,95, 0.10);
}

.ap-all-categories .ap-category-tone-8 {
    --category-accent: #647aff;
    --category-glow: rgba(100,122,255, 0.48);
    --category-wash: rgba(100,122,255, 0.10);
}

.ap-all-categories .ap-category-tone-9 {
    --category-accent: #ffc43c;
    --category-glow: rgba(255,196,60, 0.48);
    --category-wash: rgba(255,196,60, 0.10);
}

.ap-all-categories .ap-category-tone-10 {
    --category-accent: #19baff;
    --category-glow: rgba(25,186,255, 0.48);
    --category-wash: rgba(25,186,255, 0.10);
}

.ap-all-categories .ap-category-tone-11 {
    --category-accent: #21dab1;
    --category-glow: rgba(33,218,177, 0.48);
    --category-wash: rgba(33,218,177, 0.10);
}

.ap-all-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 */
.ap-all-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: 18px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ap-all-categories .category-item:hover {
    transform: translateY(-4px);
    border-color: var(--category-accent, #e843a5);
    box-shadow: 0 10px 30px var(--category-glow, #9b4dff30);
}

.ap-all-categories .category-item__icon {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.83;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
    overflow: hidden;
    background: #11091d;
}

.ap-all-categories .category-item__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ap-all-categories .category-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0;
    padding: 12px 15px 12px;
}

.ap-all-categories .category-item__name {
    display: block;
    min-height: 36px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.ap-all-categories .category-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ap-all-categories .category-item__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bfb0d0;
    font-size: 13px;
}

.ap-all-categories .category-item__count i {
    color: var(--category-accent, #bd70ff);
    font-size: 16px;
}

.ap-all-categories .category-item__arrow {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    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;
}

.ap-all-categories .category-item:hover .category-item__arrow {
    background: var(--category-accent, #9b4dff);
    box-shadow: 0 0 20px var(--category-glow, #bd4cf0aa);
}

