/*
 * Wallys Private Parts
 * Site-Specific Custom CSS
 */


/* =========================================================
   PRODUCT NAVIGATION SUBMENU
   Place icons beside menu labels
========================================================= */

.sub-menu li > a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.sub-menu li > a img,
.sub-menu li > a svg,
.sub-menu li > a i {
    display: inline-block !important;
    flex: 0 0 auto !important;

    margin: 0 !important;

    vertical-align: middle !important;
}

.sub-menu li > a span {
    display: inline !important;
    margin: 0 !important;
}


/* =========================================================
   SEARCH CATEGORY DROPDOWN

   Hide Automize's hard-coded:
   - All Categories
   - Home
========================================================= */

.rbb-search-form
.rbb-search-categories
ul.categories
> li:nth-child(1),

.rbb-search-form
.rbb-search-categories
ul.categories
> li:nth-child(2) {

    display: none !important;
}


/* =========================================================
   SOLD OVERLAY - SINGLE PRODUCT MAIN IMAGE
========================================================= */

.single-product div.product {
    position: relative;
}

.single-product .wpp-sold-badge-single {

    position: absolute;

    top: 260px;
    left: 50%;

    z-index: 100;

    transform:
        translateX(-50%)
        rotate(-18deg);

    background: transparent !important;

    color: #d00000;

    font-size: clamp(56px, 8vw, 110px);
    font-weight: 900;

    line-height: 1;

    letter-spacing: 6px;

    padding: 0;
    margin: 0;

    text-transform: uppercase;

    white-space: nowrap;

    pointer-events: none;

    text-shadow:
        2px 2px 0 rgba(255,255,255,0.8),
        -2px -2px 0 rgba(255,255,255,0.8),
        2px -2px 0 rgba(255,255,255,0.8),
        -2px 2px 0 rgba(255,255,255,0.8);
}


/* =========================================================
   SOLD OVERLAY - PRODUCT SHOP / CATEGORY CARDS
========================================================= */

.item-product .thumbnail-container {
    position: relative;
}

.item-product .wpp-card-sold-overlay {

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 100;

    transform:
        translate(-50%, -50%)
        rotate(-18deg);

    background: transparent !important;

    color: #d00000;

    font-size: clamp(40px, 5vw, 72px);
    font-weight: 900;

    line-height: 1;

    letter-spacing: 4px;

    padding: 0;
    margin: 0;

    white-space: nowrap;

    text-transform: uppercase;

    pointer-events: none;

    text-shadow:
        2px 2px 0 rgba(255,255,255,0.9),
        -2px -2px 0 rgba(255,255,255,0.9),
        2px -2px 0 rgba(255,255,255,0.9),
        -2px 2px 0 rgba(255,255,255,0.9);
}


/* =========================================================
   SOLD OVERLAY - AUTOMIZE LIVE SEARCH RESULTS
========================================================= */

.rbb_results
.search-item
.wpp-search-sold-overlay {

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 100;

    transform:
        translate(-50%, -50%)
        rotate(-18deg);

    background: transparent !important;

    color: #d00000;

    font-size: clamp(28px, 3vw, 48px);
    font-weight: 900;

    line-height: 1;

    letter-spacing: 3px;

    padding: 0;
    margin: 0;

    white-space: nowrap;

    text-transform: uppercase;

    pointer-events: none;

    text-shadow:
        2px 2px 0 rgba(255,255,255,0.9),
        -2px -2px 0 rgba(255,255,255,0.9),
        2px -2px 0 rgba(255,255,255,0.9),
        -2px 2px 0 rgba(255,255,255,0.9);
}