/* =========================================================
   LAYOUT TOKENS (MATCHES YOUR SITE)
========================================================= */

:root {
    --ll-gold: #d4af37;
    --ll-gold-soft: #e6c96a;
    --ll-bg: #0b0f18;
    --ll-bg-2: #121722;
    --ll-surface: #171c28;
    --ll-text: #f3f3f3;
    --ll-muted: #9a9a9a;
    --ll-glow: #8aff00;
}

/* =========================================================
   TRUST BADGES
========================================================= */

.ll-trust-badges {
    margin-top: 10px;
}

.ll-badge {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 6px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: var(--ll-text);
    background: linear-gradient(180deg, var(--ll-surface), rgba(18, 23, 34, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.15);

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   FREE SHIPPING BAR
========================================================= */

.ll-free-shipping-bar {
    position: relative;
    overflow: hidden;

    padding: 14px 16px;
    margin-bottom: 15px;

    border-radius: 14px;

    background: linear-gradient(180deg, var(--ll-surface), rgba(18, 23, 34, 0.85));
    border: 1px solid rgba(212, 175, 55, 0.18);

    color: var(--ll-text);
    font-size: 14px;

    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.ll-free-shipping-bar::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -30%;
    width: 60%;
    height: 200%;

    background: radial-gradient(circle, rgba(212,175,55,0.10), transparent 65%);
    transform: rotate(25deg);
}

/* =========================================================
   PROGRESS BAR (GLOBAL)
========================================================= */

.ll-progress {
    width: 100%;
    height: 10px;

    margin-top: 10px;

    border-radius: 999px;
    overflow: hidden;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.12);
}

.ll-progress-fill {
    height: 100%;
    width: 0%;

    background: linear-gradient(90deg, var(--ll-gold), var(--ll-gold-soft), var(--ll-glow));

    transition: width 0.5s ease;
}

/* =========================================================
   SUGGESTED PRODUCT
========================================================= */

.ll-suggested-product {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid rgba(212,175,55,0.12);

    font-size: 13px;
}

.ll-suggested-product p {
    margin: 0 0 4px 0;
    color: var(--ll-muted);
}

.ll-suggested-product a {
    color: var(--ll-gold);
    font-weight: 600;
    text-decoration: none;
}

.ll-suggested-product a:hover {
    color: var(--ll-gold-soft);
}

/* =========================================================
   DESKTOP WIDTH CONSTRAINT
========================================================= */

@media (min-width: 1200px) {

    /* ONLY constrain main content, not whole site */
    .wp-site-blocks > main,
    .wp-site-blocks > .wp-block-group,
    .wp-site-blocks > .entry-content {
        max-width: 1240px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =========================================================
   SMART SEARCH DROPDOWN
========================================================= */

.mobile-header-search {
    position: relative;
}

.ll-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    z-index: 9999;

    background: linear-gradient(180deg, var(--ll-surface), rgba(18,23,34,0.96));

    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 14px;

    box-shadow: 0 18px 42px rgba(0,0,0,0.5);

    max-height: 320px;
    overflow-y: auto;
}

/* item */
.ll-search-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 10px;

    color: var(--ll-text);
    text-decoration: none;

    font-size: 13px;

    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ll-search-item:hover {
    background: rgba(255,255,255,0.04);
}

/* image */
.ll-search-item img {
    width: 34px;
    height: 34px;
    object-fit: cover;

    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.15);
}

/* text */
.ll-search-item span {
    font-weight: 600;
}

.ll-search-item small {
    color: var(--ll-gold);
}

/* =========================================================
   LOYALTY BOX
========================================================= */

.ll-collector-box {
    margin-top: 20px;
    padding: 16px;

    background: linear-gradient(180deg, var(--ll-surface), rgba(18,23,34,0.9));
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 14px;

    box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

.ll-collector-box h3 {
    margin: 0 0 10px 0;
    color: var(--ll-gold);
}

/* =========================================================
   HEADER RANK SYSTEM (CLEAN)
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.ll-header-rank-wrap {
    display: flex;
    align-items: center;
}

.ll-header-rank {
    display: flex;
    flex-direction: column;

    min-width: 150px;
    padding: 8px 10px;

    border-radius: 12px;

    background: linear-gradient(180deg, rgba(212,175,55,0.12), rgba(18,23,34,0.85));
    border: 1px solid rgba(212,175,55,0.25);

    box-shadow: 0 0 18px rgba(212,175,55,0.08);
}

.ll-rank-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ll-gold);
    margin-bottom: 6px;
}

.ll-rank-progress-bar {
    width: 100%;
    height: 6px;

    background: rgba(255,255,255,0.06);
    border-radius: 999px;

    overflow: hidden;
}

.ll-rank-progress-fill {
    height: 100%;
    width: 0%;

    background: linear-gradient(90deg, var(--ll-gold), var(--ll-gold-soft));
}

.ll-rank-progress-text {
    font-size: 10px;
    margin-top: 4px;
    color: var(--ll-muted);
}

/* =========================================================
   HUB DRAWER
========================================================= */

.ll-hub-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.6);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;

    z-index: 9998;
}

.ll-hub-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ll-hub-drawer {
    position: fixed;
    top: 0;
    right: -380px;

    width: 360px;
    height: 100%;

    background: var(--ll-surface);
    border-left: 1px solid rgba(212,175,55,0.2);

    z-index: 9999;

    transition: right 0.3s ease;

    display: flex;
    flex-direction: column;

    box-shadow: -20px 0 50px rgba(0,0,0,0.45);
}

.ll-hub-drawer.active {
    right: 0;
}

.ll-hub-header {
    display: flex;
    justify-content: space-between;

    padding: 16px;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

.ll-hub-header h3 {
    color: var(--ll-gold);
    margin: 0;
}

.ll-hub-content {
    padding: 16px;
}

.ll-hub-section {
    margin-bottom: 16px;
}

.ll-hub-section h5 {
    margin: 0 0 8px 0;
}

.ll-hub-perks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ll-hub-perks-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ll-muted {
    color: var(--ll-muted);
    font-size: 12px;
}

.ll-product-lock-badge {
    margin: 12px 0;
    padding: 10px 12px;

    border-radius: 10px;

    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.25);

    color: var(--ll-gold);
    font-weight: 700;
    font-size: 13px;
}

/* =========================================================
   Rank Lock badge
========================================================= */

.ll-lock-badge {
    margin-top: 10px;
    padding: 8px 10px;

    font-size: 12px;
    font-weight: 700;

    border-radius: 10px;

    color: #fff;

    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
}

/* Sold Out UX styling moved to modules/shop-improvements/sold-out.css in V5.9. */

/* =========================================================
   BACK IN STOCK MODULE STYLING
   File: modules/shop-improvements/back-in-stock.css (or style.css)
========================================================= */

.ll-back-in-stock-box {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.ll-back-in-stock-box input {
    padding: 10px;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.ll-notify-btn {
    padding: 10px 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================================================
   FILTER SYSTEM v2 - PREMIUM UI
========================================================= */

.ll-filter-shell {
    margin: 10px 0 20px;
    background: var(--ll-surface);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* TOP BAR */
.ll-filter-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ll-filter-label {
    font-weight: 600;
    color: var(--ll-text);
}

/* =========================================================
   DESKTOP PILLS
========================================================= */

.ll-filter-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ll-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ll-bg-2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--ll-text);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.ll-pill:hover {
    border-color: var(--ll-gold);
}

.ll-pill.active {
    background: var(--ll-gold);
    color: #111;
}

/* =========================================================
   MOBILE SHEET TRIGGER
========================================================= */

.ll-filter-open {
    display: none;
    background: var(--ll-bg-2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--ll-text);
    padding: 8px 12px;
    border-radius: 10px;
}

/* =========================================================
   BOTTOM SHEET (MOBILE)
========================================================= */

.ll-filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: var(--ll-surface);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    transition: 0.3s ease;
    z-index: 9999;
    max-height: 70vh;
    overflow: hidden;
}

.ll-filter-sheet.open {
    bottom: 0;
}

.ll-sheet-header {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--ll-text);
    font-weight: 600;
}

.ll-sheet-content {
    overflow-y: auto;
    max-height: 60vh;
}

.ll-sheet-item {
    display: block;
    padding: 12px;
    color: var(--ll-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ll-sheet-item:hover {
    background: var(--ll-bg-2);
}

/* =========================================================
   MOBILE SWITCH
========================================================= */

@media (max-width: 768px) {
    .ll-filter-desktop {
        display: none;
    }

    .ll-filter-open {
        display: inline-block;
    }
}

body.ll-filter-lock {
    overflow: hidden;
}

/* optional: improves touch feel */
.ll-filter-sheet {
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   STRIPE / PAYMENT BOX FIX
========================================================= */

.wc-stripe-elements-field,
.woocommerce-checkout-payment .payment_box,
#wc-stripe-card-element,
.StripeElement {

    background: var(--ll-surface) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    box-shadow: none !important;
    color: var(--ll-text) !important;
}


/* Remove ugly default grey */
.woocommerce-checkout-payment .payment_box {
    background: var(--ll-surface) !important;
}


/* Focus glow (premium feel) */
.StripeElement--focus {
    border-color: var(--ll-gold) !important;
    box-shadow: 0 0 0 1px var(--ll-gold-soft) !important;
}


/* Error state */
.StripeElement--invalid {
    border-color: #ff4d4f !important;
}


/* Labels */
.woocommerce-checkout label {
    color: var(--ll-text) !important;
    font-weight: 600;
}


/* Payment method wrapper */
.woocommerce-checkout-payment {
    background: var(--ll-bg-2) !important;
    border-radius: 14px;
    padding: 15px;
}


/* =========================================================
   SMART SEARCH V2
========================================================= */

.ll-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 99999;
    background: var(--ll-surface, #171c28);
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    overflow: hidden;
    max-height: 520px;
    overflow-y: auto;
}

.ll-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--ll-text, #f3f3f3);
    font-size: 13px;
}

.ll-clear-search-history,
.ll-remove-history-term,
.ll-history-term {
    cursor: pointer;
}

.ll-clear-search-history {
    background: transparent;
    border: 0;
    color: var(--ll-gold-soft, #e6c96a);
    font-weight: 700;
    font-size: 12px;
}

.ll-search-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: var(--ll-text, #f3f3f3);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ll-search-item:hover {
    background: rgba(212,175,55,0.08);
    color: var(--ll-text, #f3f3f3);
}

.ll-search-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    flex: 0 0 54px;
}

.ll-search-item-content {
    min-width: 0;
}

.ll-search-item-content span {
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

.ll-search-item-content small {
    display: block;
    margin-top: 3px;
    color: var(--ll-gold-soft, #e6c96a);
    font-weight: 700;
}

.ll-search-meta {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    font-size: 11px;
    color: var(--ll-muted, #9a9a9a);
}

.ll-search-meta b,
.ll-search-meta em {
    font-style: normal;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    padding: 2px 7px;
    border-radius: 999px;
}

.ll-view-all-results {
    display: block;
    padding: 12px;
    text-align: center;
    color: var(--ll-gold-soft, #e6c96a);
    font-weight: 800;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
}

.ll-search-empty {
    padding: 16px;
    color: var(--ll-text, #f3f3f3);
}

.ll-search-empty strong,
.ll-search-empty span {
    display: block;
}

.ll-search-empty span {
    margin-top: 4px;
    color: var(--ll-muted, #9a9a9a);
    font-size: 13px;
}

.ll-search-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ll-history-term {
    flex: 1;
    text-align: left;
    padding: 12px;
    background: transparent;
    border: 0;
    color: var(--ll-text, #f3f3f3);
    font-weight: 700;
}

.ll-remove-history-term {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    color: var(--ll-muted, #9a9a9a);
    font-size: 20px;
}

.ll-remove-history-term:hover,
.ll-history-term:hover {
    background: rgba(212,175,55,0.08);
}

/* =========================================================
   SMART SEARCH V4 — PREMIUM HEADER DROPDOWN OVERRIDES
   Matches LL desktop/mobile menu system and prevents nav overlap.
========================================================= */

.ll-premium-header,
.ll-header-top-row,
.ll-header-search-wrap,
.ll-searchbar,
.ll-searchbar form,
.ll-header-search-wrap form {
    overflow: visible !important;
}

.ll-premium-header,
.ll-header-top-row,
.ll-header-search-wrap,
.ll-searchbar {
    position: relative !important;
    z-index: 999900 !important;
}

.ll-header-nav-row,
.lldcm-wrap {
    position: relative;
    z-index: 50 !important;
}

.ll-searchbar,
.ll-searchbar form,
.ll-header-search-wrap,
.ll-header-search-wrap form {
    isolation: isolate;
}

.ll-search-results {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;

    max-height: min(520px, 70vh) !important;
    overflow: hidden auto !important;

    padding: 10px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;

    background:
        radial-gradient(circle at top right, rgba(138, 255, 0, 0.11), transparent 34%),
        radial-gradient(circle at top left, rgba(132, 62, 255, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(18, 23, 34, 0.985), rgba(8, 11, 18, 0.985)) !important;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.045) inset,
        0 0 26px rgba(138, 255, 0, 0.075) !important;

    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.ll-search-results::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: linear-gradient(90deg, #7c35ff, #d4af37, #8aff00);
    border-radius: 999px;
    pointer-events: none;
}

.ll-search-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    min-height: 44px !important;
    padding: 8px 8px 12px !important;

    background: transparent !important;
    border: 0 !important;
    color: #f3f3f3 !important;
}

.ll-search-header strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em;
    color: #f3f3f3 !important;
}

.ll-search-header strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8aff00, #d4af37);
    box-shadow: 0 0 12px rgba(138, 255, 0, 0.36);
    flex: 0 0 auto;
}

.ll-clear-search-history {
    appearance: none !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;

    background:
        linear-gradient(180deg, rgba(230, 201, 106, 0.98), rgba(212, 175, 55, 0.98)) !important;
    color: #080b11 !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow:
        0 9px 20px rgba(0, 0, 0, 0.35),
        0 0 14px rgba(212, 175, 55, 0.14) !important;
}

.ll-clear-search-history:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.46),
        0 0 20px rgba(138, 255, 0, 0.18) !important;
}

.ll-search-history-box {
    max-width: 100%;
}

.ll-search-history-item,
.ll-search-item {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    min-height: 48px !important;
    margin: 0 0 7px !important;
    padding: 0 !important;

    border: 1px solid rgba(212, 175, 55, 0.13) !important;
    border-radius: 16px !important;

    background:
        linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.018)),
        rgba(18, 23, 34, 0.66) !important;

    color: #f3f3f3 !important;
    text-decoration: none !important;
    overflow: hidden !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 8px 18px rgba(0,0,0,0.18) !important;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.ll-search-history-item::before,
.ll-search-item::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.78);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.18);
    flex: 0 0 auto;
}

.ll-search-history-item:hover,
.ll-search-item:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.42) !important;
    background:
        linear-gradient(90deg, rgba(132, 62, 255, 0.14), rgba(138, 255, 0, 0.085)),
        rgba(18, 23, 34, 0.82) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 12px 24px rgba(0,0,0,0.34),
        0 0 18px rgba(138,255,0,0.075) !important;
}

.ll-history-term {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 12px 0 0 !important;

    display: flex !important;
    align-items: center !important;

    background: transparent !important;
    border: 0 !important;
    color: #f3f3f3 !important;

    font-size: 14px !important;
    font-weight: 850 !important;
    text-align: left !important;
}

.ll-remove-history-term {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    margin: 5px 6px 5px 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 13px !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    background: rgba(212, 175, 55, 0.08) !important;
    color: #e6c96a !important;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.ll-remove-history-term:hover {
    background: linear-gradient(180deg, rgba(230,201,106,0.95), rgba(212,175,55,0.95)) !important;
    color: #080b11 !important;
}

.ll-search-item {
    padding: 10px 12px !important;
}

.ll-search-item::before {
    margin-left: 4px;
    background: rgba(138, 255, 0, 0.72);
    box-shadow: 0 0 10px rgba(138, 255, 0, 0.22);
}

.ll-search-item img {
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
    border-radius: 13px !important;
    object-fit: cover !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(212, 175, 55, 0.16) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.26) !important;
}

.ll-search-item-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.ll-search-item-content span {
    display: block !important;
    color: #f3f3f3 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ll-search-item-content small {
    display: block !important;
    margin-top: 4px !important;
    color: #e6c96a !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

.ll-search-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 7px !important;
}

.ll-search-meta b,
.ll-search-meta em {
    border-radius: 999px !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    background: rgba(255,255,255,0.055) !important;
    color: rgba(243,243,243,0.72) !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 850 !important;
}

.ll-view-all-results {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    margin-top: 9px !important;
    padding: 0 14px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(212, 175, 55, 0.34) !important;
    background: linear-gradient(180deg, rgba(230, 201, 106, 0.98), rgba(212, 175, 55, 0.98)) !important;
    color: #080b11 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.32) !important;
}

.ll-view-all-results:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.42),
        0 0 18px rgba(138,255,0,0.18) !important;
}

.ll-search-empty {
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.16) !important;
    background: rgba(255,255,255,0.035) !important;
    color: #f3f3f3 !important;
}

.ll-search-empty strong {
    font-weight: 900 !important;
}

.ll-search-empty span {
    margin-top: 5px !important;
    color: rgba(243,243,243,0.62) !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .ll-search-results {
        border-radius: 18px !important;
        max-height: 62vh !important;
    }

    .ll-search-item-content span,
    .ll-history-term {
        font-size: 13px !important;
    }
}


/* =========================================================
   V7.4 — MOBILE/IPAD SEARCH DROPDOWN ALIGNMENT FIX
   Keeps live search centred under the visible search bar.
========================================================= */
@media (max-width: 1180px) {
    .ll-header-search-wrap,
    .ll-searchbar,
    .mobile-header-search {
        position: relative !important;
        overflow: visible !important;
    }

    .ll-header-search-wrap .ll-search-results,
    .ll-searchbar .ll-search-results,
    .mobile-header-search .ll-search-results {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(calc(100vw - 32px), 640px) !important;
        max-width: calc(100vw - 32px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        z-index: 2147480500 !important;
    }
}


/* =========================================================
   Lincs Lootcave - Shop count row + in-stock toggle switch
========================================================= */
.ll-shop-loop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 10px 0 18px;
}

.ll-shop-loop-controls .ll-per-page-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.ll-shop-loop-controls .ll-per-page-form label {
  margin: 0;
  font-weight: 800;
  color: #f3f3f3;
}

.ll-shop-loop-controls .ll-per-page-form select {
  min-height: 38px;
}

.ll-stock-switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-decoration: none !important;
  color: #f3f3f3 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ll-stock-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: rgba(243, 243, 243, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(138, 255, 0, 0.08);
  transition: all 0.22s ease;
}

.ll-stock-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f3f3f3;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(255, 255, 255, 0.25);
  transition: all 0.22s ease;
}

.ll-stock-switch.is-active .ll-stock-switch-track {
  background:
    radial-gradient(circle at 25% 50%, rgba(138, 255, 0, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(18, 23, 34, 0.98), rgba(33, 78, 47, 0.95));
  border-color: rgba(138, 255, 0, 0.85);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(138, 255, 0, 0.35);
}

.ll-stock-switch.is-active .ll-stock-switch-thumb {
  left: 32px;
}

.ll-stock-switch-label {
  color: #f3f3f3;
  text-shadow: 0 0 10px rgba(138, 255, 0, 0.12);
}

.ll-stock-switch:hover .ll-stock-switch-track {
  border-color: rgba(230, 201, 106, 0.82);
}

@media (max-width: 520px) {
  .ll-shop-loop-controls {
    gap: 10px;
  }

  .ll-stock-switch {
    gap: 8px;
    font-size: 13px;
  }

  .ll-stock-switch-track {
    width: 54px;
    height: 30px;
  }

  .ll-stock-switch-thumb {
    width: 22px;
    height: 22px;
  }

  .ll-stock-switch.is-active .ll-stock-switch-thumb {
    left: 28px;
  }
}

/* ==========================================================
   Lincs Loot Enhancer v10.8 — Amazon-level predictive search
   Safe cross-device dropdown overrides. Mobile layout preserved.
   ========================================================== */
body:not(.wp-admin) .mobile-header-search,
body:not(.wp-admin) .ll-header-search-wrap,
body:not(.wp-admin) .ll-searchbar,
body:not(.wp-admin) .ll-search-container,
body:not(.wp-admin) .wp-block-search,
body:not(.wp-admin) .woocommerce-product-search,
body:not(.wp-admin) form[role="search"],
body:not(.wp-admin) .ll-search-active-host {
    position: relative !important;
    overflow: visible !important;
}

body:not(.wp-admin) .ll-search-results {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: min(360px, calc(100vw - 24px)) !important;
    max-width: min(720px, calc(100vw - 24px)) !important;
    max-height: min(72vh, 680px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9998 !important;
    background: linear-gradient(180deg, rgba(18,23,34,.98), rgba(7,10,17,.98)) !important;
    border: 1px solid rgba(212,175,55,.34) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.04) inset !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    color: #f3f3f3 !important;
    padding: 8px !important;
}

body:not(.wp-admin) .ll-header-search-wrap .ll-search-results,
body:not(.wp-admin) .ll-searchbar .ll-search-results,
body:not(.wp-admin) .ll-search-container .ll-search-results,
body:not(.wp-admin) .woocommerce-product-search .ll-search-results,
body:not(.wp-admin) .wp-block-search .ll-search-results {
    transform: none !important;
}

body:not(.wp-admin) .ll-search-header,
body:not(.wp-admin) .ll-search-section {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    color: #9a9a9a !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}

body:not(.wp-admin) .ll-search-header strong,
body:not(.wp-admin) .ll-search-section span {
    color: #e6c96a !important;
    font-weight: 900 !important;
}

body:not(.wp-admin) .ll-clear-search-history {
    appearance: none !important;
    border: 1px solid rgba(212,175,55,.26) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.04) !important;
    color: #f3f3f3 !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

body:not(.wp-admin) .ll-search-item,
body:not(.wp-admin) .ll-search-category,
body:not(.wp-admin) .ll-search-suggestion,
body:not(.wp-admin) .ll-search-history-item,
body:not(.wp-admin) .ll-view-all-results {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: #f3f3f3 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: background .16s ease, border-color .16s ease, transform .16s ease !important;
}

body:not(.wp-admin) .ll-search-item:hover,
body:not(.wp-admin) .ll-search-category:hover,
body:not(.wp-admin) .ll-search-suggestion:hover,
body:not(.wp-admin) .ll-search-history-item:hover,
body:not(.wp-admin) .ll-view-all-results:hover,
body:not(.wp-admin) .ll-search-keynav.active {
    background: rgba(138,255,0,.08) !important;
    border-color: rgba(138,255,0,.18) !important;
    transform: translateY(-1px) !important;
}

body:not(.wp-admin) .ll-search-item img {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(212,175,55,.22) !important;
    background: rgba(255,255,255,.04) !important;
}

body:not(.wp-admin) .ll-search-item-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

body:not(.wp-admin) .ll-search-item-content span,
body:not(.wp-admin) .ll-search-category > span:not(.ll-search-icon),
body:not(.wp-admin) .ll-search-suggestion {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

body:not(.wp-admin) .ll-search-item-content strong,
body:not(.wp-admin) .ll-search-category strong,
body:not(.wp-admin) .ll-search-suggestion strong {
    color: #8aff00 !important;
    font-weight: 950 !important;
}

body:not(.wp-admin) .ll-search-item-content small,
body:not(.wp-admin) .ll-search-category small {
    color: #9a9a9a !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

body:not(.wp-admin) .ll-search-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 2px !important;
}

body:not(.wp-admin) .ll-search-meta b,
body:not(.wp-admin) .ll-search-meta em,
body:not(.wp-admin) .ll-search-meta i {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-style: normal !important;
}

body:not(.wp-admin) .ll-search-meta b {
    color: #8aff00 !important;
    background: rgba(138,255,0,.1) !important;
    border: 1px solid rgba(138,255,0,.18) !important;
}

body:not(.wp-admin) .ll-search-meta em {
    color: #0b0f18 !important;
    background: linear-gradient(135deg, #d4af37, #e6c96a) !important;
}

body:not(.wp-admin) .ll-search-meta i {
    color: #f3f3f3 !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

body:not(.wp-admin) .ll-search-icon {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    color: #8aff00 !important;
    background: rgba(138,255,0,.08) !important;
}

body:not(.wp-admin) .ll-history-term,
body:not(.wp-admin) .ll-remove-history-term {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    cursor: pointer !important;
}

body:not(.wp-admin) .ll-history-term {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    text-align: left !important;
    font-weight: 800 !important;
}

body:not(.wp-admin) .ll-remove-history-term {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    color: #9a9a9a !important;
}

body:not(.wp-admin) .ll-remove-history-term:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}

body:not(.wp-admin) .ll-search-empty {
    padding: 16px 12px !important;
    color: #f3f3f3 !important;
    text-align: left !important;
}

body:not(.wp-admin) .ll-search-empty strong,
body:not(.wp-admin) .ll-search-empty span {
    display: block !important;
    writing-mode: horizontal-tb !important;
}

body:not(.wp-admin) .ll-search-empty span {
    color: #9a9a9a !important;
    margin-top: 4px !important;
}

body:not(.wp-admin) .ll-view-all-results {
    justify-content: center !important;
    margin-top: 6px !important;
    color: #0b0f18 !important;
    background: linear-gradient(135deg, #d4af37, #e6c96a) !important;
    border-color: rgba(212,175,55,.45) !important;
    font-weight: 950 !important;
}

@media (max-width: 767px) {
    body:not(.wp-admin) .ll-search-results {
        min-width: 100% !important;
        max-width: calc(100vw - 18px) !important;
        max-height: 64vh !important;
        border-radius: 16px !important;
    }
}

/* ==========================================================
   Lincs Loot Enhancer v10.9 — iPad/tablet search dropdown fix
   The desktop/tablet dropdown is now floated to <body>, so it cannot
   be clipped by header/search wrappers with overflow:hidden.
   Mobile keeps the existing in-container behaviour.
   ========================================================== */
body:not(.wp-admin) .ll-search-results-floating {
    position: fixed !important;
    right: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
    isolation: isolate !important;
    overscroll-behavior: contain !important;
}

@media (min-width: 768px) {
    body:not(.wp-admin) .ll-search-results-floating {
        max-height: min(62vh, 620px) !important;
    }

    body:not(.wp-admin) .ll-premium-header,
    body:not(.wp-admin) .ll-header-search-wrap,
    body:not(.wp-admin) .ll-searchbar,
    body:not(.wp-admin) .ll-search-container,
    body:not(.wp-admin) .mobile-header-search,
    body:not(.wp-admin) .wp-block-search,
    body:not(.wp-admin) .woocommerce-product-search,
    body:not(.wp-admin) form[role="search"] {
        overflow: visible !important;
    }
}
