:root {
  --primary: #5c3e98;
  --primary-dark: #4b327d;
  --accent: #f5f1fc;
  --text: #2f2a33;
  --muted: #777;
  --border: #ddd3f0;
  --success: #5e9b64;
  --danger: #d94b4b;
  --white: #fff;
  --shadow: 0 8px 24px rgba(92, 62, 152, 0.10);
  --transition: all 0.3s ease;
}
body.boxed-layout {
    background: #f3f4f6;
}
body.boxed-layout .page-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.03), 0 18px 44px rgba(17, 24, 39, 0.08);
}
@media (max-width: 1360px) {
    body.boxed-layout .page-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
}
#toast-container > .toast {
    opacity: 1 !important;
    background-image: none !important;
}
#toast-container > .toast-success {
    background-color: #2e7d32 !important;
}
#toast-container > .toast-error {
    background-color: #c62828 !important;
}
#toast-container > .toast-info {
    background-color: #1565c0 !important;
}
#toast-container > .toast-warning {
    background-color: #ef6c00 !important;
}
#toast-container .toast-title,
#toast-container .toast-message {
    color: #ffffff !important;
    display: block !important;
    line-height: 1.4 !important;
    font-size: 13px !important;
}

/* Gradient refresh for header/footer */
.header-7 .header-top {
    background: url('theme/header-top.png') no-repeat center center;
}
.header-7 .header-top,
.header-7 .header-top a,
.header-7 .header-top i {
    /* color: #ffffff !important; */
}
.header-7 .header-top .header-dropdown > a {
    color: #ffffff !important;
}
.header-7 .header-middle {
    border-bottom: 0;
}
.entry-media img{
    height:250px;
}
/* ── Active nav link highlight ─────────────────────── */
.main-nav .menu > li.active > a {
    color: #eee !important;
    background: #5c3e98;
    border-radius: 20px;
    padding: 6px 16px !important;
}
.main-nav .menu > li.active > a:hover {
    color: #5c3e98 !important;
    background: rgba(92, 62, 152, 0.16);
}

/* ── Cart badge as superscript ──────────────────────── */
.cart-dropdown .dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cart-dropdown .dropdown-toggle .fa-bag-shopping {
    font-size: 22px;
}
.cart-dropdown .dropdown-toggle .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    padding: 0 4px;
    border-radius: 50%;
    background: #5c3e98;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 6px rgba(92,62,152,.4);
}

/* ── User account dropdown ─────────────────────────── */
.hud-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.hud-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 24px;
    padding: 4px 12px 4px 5px;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: background .18s, border-color .18s;
    line-height: 1;
}
.hud-trigger:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.4);
}
.hud-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c3e98, #3d2470);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.hud-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}
.hud-caret {
    font-size: 10px;
    color: rgba(255,255,255,.7);
    transition: transform .2s;
}
.hud-wrap.open .hud-caret,
.hud-caret.rotated { transform: rotate(180deg); }

.hud-dropdown {
    position: fixed;
    min-width: 190px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(30,10,60,.18), 0 2px 8px rgba(0,0,0,.08);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s cubic-bezier(.34,1.3,.64,1);
    z-index: 9999;
}
.hud-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.hud-item,
button.hud-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #000000 !important;
    text-decoration: none !important;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .14s, color .14s;
    text-align: left;
    box-sizing: border-box;
    line-height: 1.3;
}
.hud-item:hover {
    background: #f5f1fc;
    color: #5c3e98 !important;
}
.hud-item i { font-size: 14px; width: 16px; text-align: center; color: #8b7ab5 !important; }
.hud-item:hover i { color: #5c3e98 !important; }

.hud-item--danger,
button.hud-item--danger { color: #c0392b !important; }
.hud-item--danger i { color: #c0392b !important; }
.hud-item--danger:hover { background: #fdf0f0; color: #a93226 !important; }

.hud-logout-form { margin: 0; padding: 0; }

/* ── Login highlight button ────────────────────────── */
a.hud-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #5c3e98, #3d2470) !important;
    color: #fff !important;
    border: none;
    border-radius: 24px;
    padding: 6px 16px 6px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(92,62,152,.45);
    transition: transform .15s, box-shadow .15s;
}
a.hud-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(92,62,152,.55);
    color: #fff !important;
}
a.hud-login-btn i { color: #fff !important; font-size: 13px; }

    .category-header {
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;
    }

    .category-header h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #333;
    }

    .category-description {
        font-size: 14px;
        line-height: 1.6;
        color: #666;
    }

    .filter-link {
        display: block;
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .filter-link:hover {
        color: #5c3e98;
        font-weight: 600;
    }

    .filter-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }

    .product-price {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .discount-badge {
        display: inline-block;
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
        animation: badge-pulse 2s ease-in-out infinite;
        white-space: nowrap;
    }

    @keyframes badge-pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }

 /* ── Footer redesign — product-detail palette ── */
    .kv-footer {
        background: #1a1025;
        color: #c8bfdc;
        font-size: 14px;
        line-height: 1.7;
    }

    /* Newsletter bar */
    .kv-footer-newsletter {
        background: linear-gradient(90deg, #5c3e98 0%, #4b327d 100%);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 28px 0;
    }
    .kv-footer-newsletter .nl-label {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 4px;
    }
    .kv-footer-newsletter .nl-sub {
        font-size: 13px;
        color: rgba(255,255,255,0.7);
        margin: 0;
    }
    .kv-nl-form {
        display: flex;
        max-width: 440px;
        border-radius: 40px;
        overflow: hidden;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.2);
    }
    .kv-nl-form input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        padding: 13px 20px;
        color: #fff;
        font-size: 13px;
    }
    .kv-nl-form input::placeholder { color: rgba(255,255,255,0.5); }
    .kv-nl-form button {
        background: #fff;
        border: none;
        padding: 0 26px;
        color: #5c3e98;
        font-weight: 700;
        font-size: 13px;
        letter-spacing: .4px;
        cursor: pointer;
        transition: background .2s, color .2s;
        white-space: nowrap;
    }
    .kv-nl-form button:hover { background: #f5f1fc; color: #4b327d; }

    /* Main body */
    .kv-footer-body {
        padding: 56px 0 40px;
    }

    /* Logo & about */
    .kv-footer .footer-logo {
        /* filter: brightness(0) invert(1); */
        opacity: .9;
        margin-bottom: 18px;
    }
    .kv-footer .about-text {
        color: #a898c0;
        font-size: 13.5px;
        max-width: 280px;
        line-height: 1.75;
    }
    .kv-footer .about-trust {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    .kv-footer .trust-badge {
        background: rgba(92,62,152,0.2);
        border: 1px solid rgba(221,211,240,0.15);
        border-radius: 6px;
        padding: 5px 11px;
        font-size: 11px;
        color: #c8bfdc;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .kv-footer .trust-badge i { font-size: 13px; color: #a480e0; }

    /* Widget headings */
    .kv-footer .kv-widget-title {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: #fff;
        margin-bottom: 22px;
        position: relative;
        padding-bottom: 12px;
    }
    .kv-footer .kv-widget-title::after {
        content: '';
        position: absolute;
        left: 0; bottom: 0;
        width: 28px; height: 2px;
        background: #5c3e98;
        border-radius: 2px;
        box-shadow: 0 0 8px rgba(92,62,152,0.6);
    }

    /* Link lists */
    .kv-footer .kv-link-list {
        list-style: none;
        padding: 0; margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .kv-footer .kv-link-list li a {
        color: #a898c0;
        text-decoration: none;
        font-size: 13.5px;
        display: flex;
        align-items: center;
        gap: 7px;
        transition: color .2s, padding-left .2s;
    }
    .kv-footer .kv-link-list li a::before {
        content: '';
        display: inline-block;
        width: 5px; height: 5px;
        border-radius: 50%;
        background: #5c3e98;
        opacity: 0;
        transition: opacity .2s;
        flex-shrink: 0;
    }
    .kv-footer .kv-link-list li a:hover {
        color: #f5f1fc;
        padding-left: 6px;
    }
    .kv-footer .kv-link-list li a:hover::before { opacity: 1; }

    /* Contact items */
    .kv-contact-item {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        margin-bottom: 18px;
    }
    .kv-contact-icon {
        width: 36px; height: 36px;
        border-radius: 8px;
        background: rgba(92,62,152,0.2);
        border: 1px solid rgba(221,211,240,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .kv-contact-icon i { color: #a480e0; font-size: 15px; }
    .kv-contact-text { font-size: 13px; }
    .kv-contact-text span {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: #6b5d80;
        margin-bottom: 2px;
    }
    .kv-contact-text a {
        color: #c8bfdc;
        text-decoration: none;
        transition: color .2s;
    }
    .kv-contact-text a:hover { color: #f5f1fc; }

    /* Divider */
    .kv-footer-divider {
        border: none;
        border-top: 1px solid rgba(221,211,240,0.08);
        margin: 0;
    }

    /* Bottom bar */
    .kv-footer-bottom {
        padding: 20px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
    }
    .kv-footer-bottom .copy {
        font-size: 12.5px;
        color: #6b5d80;
    }
    .kv-footer-bottom .copy a {
        color: #a898c0;
        text-decoration: none;
        transition: color .2s;
    }
    .kv-footer-bottom .copy a:hover { color: #f5f1fc; }

    /* Social icons */
    .kv-socials { display: flex; gap: 8px; }
    .kv-social-btn {
        width: 36px; height: 36px;
        border-radius: 8px;
        background: rgba(92,62,152,0.15);
        border: 1px solid rgba(221,211,240,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #a898c0;
        text-decoration: none;
        font-size: 14px;
        transition: background .2s, color .2s, border-color .2s, transform .2s;
    }
    .kv-social-btn:hover {
        background: #5c3e98;
        border-color: #5c3e98;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(92,62,152,0.4);
    }

    @media (max-width: 767px) {
        .kv-footer-body { padding: 40px 0 28px; }
        .kv-footer .kv-widget-title { margin-top: 30px; }
        .kv-footer-bottom { flex-direction: column; text-align: center; }
        .kv-nl-form { max-width: 100%; }
    }

    /* Floating AI widget */
    :root {
        --ai-blue: #0f6fff;
        --ai-blue-soft: #eaf1ff;
        --ai-text: #1a2341;
        --ai-muted: #7c859f;
        --ai-border: #e8ecf5;
        --ai-bg: #f6f8fc;
    }

    .ai-fab {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--ai-blue) 0%, #4fa1ff 100%);
        box-shadow: 0 18px 42px rgba(15, 111, 255, 0.28);
        display: grid;
        place-items: center;
        cursor: pointer;
        z-index: 1999;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .ai-fab:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 46px rgba(15, 111, 255, 0.34);
    }

    .ai-fab svg {
        pointer-events: none;
    }

    .ai-widget {
        position: fixed;
        top: 0px;
        right: 0px;
        bottom: 0px;
        width: 420px;


        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border-radius: 0px;
        box-shadow: 0 20px 60px rgba(16, 60, 139, 0.12), 0 12px 30px rgba(16, 60, 139, 0.08);
        border: 1px solid var(--ai-border);
        backdrop-filter: blur(6px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        z-index: 2000;
        opacity: 0;
        transform: translateX(120%);
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.22s ease, box-shadow 0.25s ease;
    }

    .ai-widget.ai-open {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .ai-head {
        position: relative;
        padding: 16px 18px 12px;
        color: var(--ai-text);
        background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
        border-bottom: 1px solid var(--ai-border);
    }

    .ai-head::after {
        position: absolute;
        inset: auto 0 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(15, 111, 255, 0.35), transparent);
        content: "";
    }

    .ai-head-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: relative;
        z-index: 1;
    }

    .ai-agent {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ai-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(145deg, #f7f9ff 0%, #e3eaff 100%);
        display: grid;
        place-items: center;
        font-weight: 800;
        color: var(--ai-blue);
        box-shadow: inset 0 0 0 1px rgba(15, 111, 255, 0.08);
    }

    .ai-agent h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: var(--ai-text);
    }

    .ai-agent small {
        display: block;
        color: var(--ai-muted);
        font-weight: 600;
    }

    .ai-close {
        background: #f2f4fb;
        border: 1px solid var(--ai-border);
        color: var(--ai-muted);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: grid;
        place-items: center;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .ai-close:hover {
        background: #e8edfb;
        color: var(--ai-text);
        transform: translateY(-1px);
    }

    .ai-status {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 4px 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--ai-muted);
    }

    .ai-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #2fd067;
        box-shadow: 0 0 0 6px rgba(47, 208, 103, 0.15);
    }

    .ai-body {
        padding: 18px 18px 14px;
        background: linear-gradient(180deg, #f7f9ff 0%, #f2f5fb 100%);
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: 100%;
        /* max-height: 520px; */
        overflow-y: auto;
    }

    .ai-row {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .ai-row.ai-out {
        justify-content: flex-end;
    }

    .ai-bubble {
        padding: 12px 14px;
        border-radius: 18px;
        max-width: 82%;
        line-height: 1.52;
        font-size: 14px;
        box-shadow: 0 8px 20px rgba(17, 25, 43, 0.06);
        background: #fff;
        color: var(--ai-text);
        border: 1px solid var(--ai-border);
    }

    .ai-row.ai-out .ai-bubble {
        background: linear-gradient(135deg, var(--ai-blue) 0%, #4fa1ff 100%);
        color: #fff;
        border: none;
        box-shadow: 0 14px 30px rgba(15, 111, 255, 0.18);
    }

    .ai-chip {
        align-self: flex-start;
        padding: 10px 14px;
        background: linear-gradient(135deg, var(--ai-blue) 0%, #4fa1ff 100%);
        color: #fff;
        border-radius: 18px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 12px 26px rgba(15, 111, 255, 0.2);
    }

    .ai-quick {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 6px 0 8px;
    }

    .ai-quick button {
        border-radius: 22px;
        padding: 8px 12px;
        border: 1.5px solid var(--ai-blue);
        background: #fff;
        color: var(--ai-blue);
        font-weight: 600;
        font-size: 13px;
        transition: all 0.2s ease;
        box-shadow: 0 6px 12px rgba(12, 92, 245, 0.08);
        cursor: pointer;
    }

    .ai-quick button:hover {
        background: var(--ai-blue);
        color: #fff;
        box-shadow: 0 10px 20px rgba(12, 92, 245, 0.18);
    }

    .ai-typing {
        width: 52px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 10px 14px;
        background: #fff;
        border: 1px solid var(--ai-border);
        box-shadow: 0 8px 18px rgba(17, 25, 43, 0.05);
        border-radius: 12px;
    }

    .ai-typing span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #9aa4c4;
        animation: aiBounce 1s infinite ease-in-out;
    }

    .ai-typing span:nth-child(2) {
        animation-delay: 0.15s;
    }

    .ai-typing span:nth-child(3) {
        animation-delay: 0.3s;
    }

    @keyframes aiBounce {

        0%,
        80%,
        100% {
            transform: translateY(0);
            opacity: 0.5;
        }

        40% {
            transform: translateY(-4px);
            opacity: 1;
        }
    }

    .ai-foot {
        padding: 14px 12px 12px;
        background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
        border-top: 1px solid var(--ai-border);
        box-shadow: 0 -10px 30px rgba(16, 60, 139, 0.05);
    }

    .ai-form {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .ai-input-shell {
        flex: 1;
        background: #fff;
        border-radius: 999px;
        display: flex;
        align-items: center;
        padding: 8px 12px 8px 14px;
        border: 1px solid var(--ai-border);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(15, 111, 255, 0.08);
        transition: all 0.2s ease;
    }

    .ai-input-shell:focus-within {
        border-color: var(--ai-blue);
        box-shadow: 0 0 0 4px rgba(15, 111, 255, 0.12);
        background: #fff;
    }

    .ai-input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        color: var(--ai-text);
    }

    .ai-tools {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ai-icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: transparent;
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .ai-icon-btn:hover {
        background: rgba(12, 92, 245, 0.08);
        transform: translateY(-1px);
    }

    .ai-send {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, var(--ai-blue) 0%, #4fa1ff 100%);
        box-shadow: 0 14px 32px rgba(0, 128, 255, 0.26);
        display: grid;
        place-items: center;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .ai-send:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        box-shadow: none;
    }

    .ai-send:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(0, 128, 255, 0.3);
    }

    .ai-meta {
        margin-top: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--ai-muted);
        font-size: 12px;
        padding: 0 4px;
    }

    .ai-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
    }

    .ai-products {
        display: grid;
        gap: 10px;
        margin-top: 4px;
    }

    .ai-product-card {
        background: #fff;
        border: 1px solid #e5e8f2;
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 13px;
        box-shadow: 0 6px 16px rgba(17, 25, 43, 0.06);
    }

    .ai-product-card a {
        color: var(--ai-blue);
        font-weight: 700;
    }

    @media (max-width: 560px) {
        .ai-widget {
            width: calc(100% - 28px);
            right: 14px;
            top: 14px;
            max-height: calc(100vh - 28px);
        }

        .ai-fab {
            right: 16px;
            bottom: 16px;
        }
    }