
/* MEHERIMA PREMIUM QUICK SHOP V8.0 */

#rightOffcanvas:has(.mh80-header) {
    --mh-blue: #2457d6;
    --mh-soft-blue: #e8efff;
    --mh-ink: #182133;
    --mh-border: #e1e7f0;

    width: 440px !important;
    max-width: 100vw !important;
    padding: 0 !important;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -12px 0 45px rgba(15,23,42,.12);
}

#rightOffcanvas .mh80-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
    padding: 18px 20px;
    background: #2457d6;
    color: #ffffff;
}

#rightOffcanvas .mh80-header-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    font-size: 26px;
}

#rightOffcanvas .mh80-header-text {
    flex: 1;
    min-width: 0;
}

#rightOffcanvas .mh80-header h5 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 750;
}

#rightOffcanvas .mh80-header-text span {
    color: #dbe7ff;
    font-size: 11px;
}

#rightOffcanvas .mh80-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #ffffff;
    font-size: 20px;
}

#rightOffcanvas .mh80-body {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 20px !important;
    scrollbar-width: thin;
    scrollbar-color: #dce3ee transparent;
}

#rightOffcanvas .mh80-showcase {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

#rightOffcanvas .mh80-image-column {
    flex: 0 0 116px;
    min-width: 0;
}

#rightOffcanvas .mh80-image {
    width: 100%;
    height: 148px;
    background: #f3f5f8;
    border-radius: 12px !important;
}

#rightOffcanvas .mh80-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

#rightOffcanvas .mh80-product-column {
    flex: 1;
    min-width: 0;
}

#rightOffcanvas .mh80-brand {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
    color: #2457d6;
    margin-bottom: 6px;
}

#rightOffcanvas .mh80-product-name {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
    color: #182133;
    margin: 0 0 8px;
}

#rightOffcanvas .mh80-pricing {
    margin: 0 !important;
}

#rightOffcanvas .mh80-pricing-label {
    display: none;
}

#rightOffcanvas .mh80-base-price {
    background: transparent;
    padding: 0;
}

#rightOffcanvas .mh80-base-price strong {
    color: #2457d6 !important;
    font-size: 23px !important;
    font-weight: 800 !important;
}

#rightOffcanvas .mh80-base-price del {
    font-size: 12px !important;
    color: #8992a3;
}

#rightOffcanvas .mh80-variation-heading {
    margin: 18px 0 10px;
}

#rightOffcanvas .mh80-variation-heading h5 {
    color: #182133 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

#rightOffcanvas .mh80-variation-heading h5 i {
    color: #2457d6;
}

#rightOffcanvas .mh80-options {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
}

#rightOffcanvas .mh80-options .aiz-megabox-elem {
    border: 1px solid #e1e7f0 !important;
    border-radius: 8px !important;
    background: #f8f9fc;
    transition: background .15s, border-color .15s;
}

#rightOffcanvas .mh80-options .mh80-option-value {
    min-width: 54px;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

#rightOffcanvas .mh80-options
.aiz-megabox input:checked ~ .aiz-megabox-elem {
    background: #2457d6 !important;
    border-color: #2457d6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(36,87,214,.18);
}

#rightOffcanvas .mh80-options
.aiz-megabox input:checked ~ .mh80-option-value::after {
    content: "\2713";
    font-size: 11px;
    margin-left: 5px;
}

#rightOffcanvas .mh80-options
.aiz-megabox input:focus-visible ~ .aiz-megabox-elem {
    outline: 2px solid #2457d6;
    outline-offset: 2px;
}

#rightOffcanvas .mh80-summary {
    margin: 16px 0 0;
    padding: 15px;
    background: #f0f5ff;
    border: 1px solid #dce7fc;
    border-radius: 12px;
}

#rightOffcanvas .mh80-total-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#rightOffcanvas .mh80-total-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

#rightOffcanvas .mh80-summary #chosen_price {
    font-size: 27px !important;
    color: #2457d6 !important;
    font-weight: 800 !important;
}

#rightOffcanvas .mh80-summary #available-quantity {
    color: #16803d;
    font-weight: 700;
}

#rightOffcanvas .mh80-stepper {
    background: #ffffff;
    padding: 4px;
    border: 1px solid #dce5f4;
    border-radius: 9px;
}

#rightOffcanvas .mh80-stepper button {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 7px !important;
}

#rightOffcanvas .mh80-stepper button[data-type="minus"] {
    background: #e8efff !important;
}

#rightOffcanvas .mh80-stepper button[data-type="plus"] {
    background: #2457d6 !important;
}

#rightOffcanvas .mh80-stepper button[data-type="plus"] svg rect {
    fill: #ffffff;
}

#rightOffcanvas .mh80-stepper button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#rightOffcanvas .mh80-stepper input {
    background: transparent;
    margin: 0 4px !important;
    font-size: 15px !important;
}

#rightOffcanvas .mh80-selection {
    border-top: 1px solid #d6e2fa;
    padding-top: 12px;
    margin-top: 4px;
}

#rightOffcanvas .mh80-selection p {
    color: #2457d6 !important;
}

#rightOffcanvas .mh80-selection > span {
    color: #64748b !important;
    line-height: 1.5;
}

#rightOffcanvas .mh80-footer {
    position: relative !important;
    flex: 0 0 auto;
    padding: 15px 20px 12px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    background: #ffffff;
    border-top: 1px solid #e4e9f1;
}

#rightOffcanvas .mh80-footer > div:first-child {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 9px;
    margin-bottom: 10px !important;
}

#rightOffcanvas .mh80-footer .buy-now,
#rightOffcanvas .mh80-footer .add-to-cart {
    flex: 1;
    min-width: 0;
    width: auto !important;
    height: 48px;
    padding: 0 8px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

#rightOffcanvas .mh80-footer .buy-now {
    background: #2457d6 !important;
    color: #ffffff !important;
}

#rightOffcanvas .mh80-footer .add-to-cart {
    background: #e8efff !important;
    color: #2457d6 !important;
}

#rightOffcanvas .mh80-footer .buy-now:hover {
    background: #1946bb !important;
}

#rightOffcanvas .mh80-footer .add-to-cart:hover {
    background: #d9e5ff !important;
}

#rightOffcanvas .mh80-footer button i {
    font-size: 17px;
    vertical-align: middle;
}

#rightOffcanvas .mh80-footer button:disabled {
    opacity: .6;
}

#rightOffcanvas .mh80-footer .d-none {
    display: none !important;
}

#rightOffcanvas .mh80-footer .out-of-stock {
    border-radius: 9px !important;
    background: #eef0f4 !important;
    color: #64748b !important;
}

#rightOffcanvas .mh80-footer .text-right {
    text-align: center !important;
}

#rightOffcanvas .mh80-footer a {
    font-size: 12px !important;
    color: #64748b !important;
}

/* Keep the floating back-to-top control
   outside the active Quick Shop experience. */

body:has(#rightOffcanvas.active .mh80-header)
.aiz-scroll-top,
body:has(#rightOffcanvas.active .mh80-header)
#scroll-top,
body:has(#rightOffcanvas.active .mh80-header)
#back-to-top {
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 575.98px) {

    #rightOffcanvas:has(.mh80-header) {
        width: 100vw !important;
    }

    #rightOffcanvas .mh80-header {
        padding: 14px 15px;
    }

    #rightOffcanvas .mh80-body {
        padding: 14px 15px !important;
    }

    #rightOffcanvas .mh80-image-column {
        flex-basis: 100px;
    }

    #rightOffcanvas .mh80-image {
        height: 128px;
    }

    #rightOffcanvas .mh80-showcase {
        gap: 12px;
    }

    #rightOffcanvas .mh80-product-name {
        font-size: 13px;
    }

    #rightOffcanvas .mh80-base-price strong {
        font-size: 21px !important;
    }

    #rightOffcanvas .mh80-footer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #rightOffcanvas .mh80-footer .buy-now,
    #rightOffcanvas .mh80-footer .add-to-cart {
        height: 46px;
        font-size: 12px !important;
    }
}


/* MEHERIMA QUICK SHOP V8.1 PREMIUM COLORS */

#rightOffcanvas:has(.mh80-header) {
    --mh-blue: #172B4D;
    --mh-soft-blue: #F5F7FA;
    --mh-ink: #172B4D;
    --mh-border: #DCE1E8;

    background: #F5F7FA !important;
    box-shadow: -12px 0 40px rgba(23,43,77,.10);
}

/* Deep Navy Header */

#rightOffcanvas .mh80-header {
    background: #172B4D !important;
    color: #FFFFFF;
}

#rightOffcanvas .mh80-header-icon {
    background: rgba(255,255,255,.12);
}

#rightOffcanvas .mh80-header-text span {
    color: #DCE3EE;
}

#rightOffcanvas .mh80-close {
    background: rgba(255,255,255,.12);
}

#rightOffcanvas .mh80-close:hover {
    background: rgba(255,255,255,.22);
}

/* Soft Cool Grey Body */

#rightOffcanvas .mh80-body {
    background: #F5F7FA !important;
    scrollbar-color: #D5DAE2 transparent;
}

/* Product Information */

#rightOffcanvas .mh80-brand {
    color: #64748B;
}

#rightOffcanvas .mh80-product-name {
    color: #172B4D;
}

#rightOffcanvas .mh80-base-price strong {
    color: #172B4D !important;
}

#rightOffcanvas .mh80-showcase {
    border-bottom-color: #DCE1E8;
}

/* Variation Selection */

#rightOffcanvas .mh80-variation-heading h5 {
    color: #172B4D !important;
}

#rightOffcanvas .mh80-variation-heading h5 i {
    color: #64748B;
}

#rightOffcanvas .mh80-options {
    background: #FFFFFF;
    border-color: #DCE1E8;
}

#rightOffcanvas .mh80-options .mh80-option-value {
    background: #FFFFFF;
    border-color: #DCE1E8 !important;
    color: #172B4D;
}

#rightOffcanvas .mh80-options
.aiz-megabox input:checked ~ .mh80-option-value {
    background: #172B4D !important;
    border-color: #172B4D !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 5px rgba(23,43,77,.12);
}

#rightOffcanvas .mh80-options
.aiz-megabox input:focus-visible ~ .aiz-megabox-elem {
    outline-color: #172B4D;
}

/* Quantity Controller */

#rightOffcanvas .mh80-stepper {
    background: #F5F7FA;
    border-color: #DCE1E8;
}

#rightOffcanvas .mh80-stepper button[data-type="minus"] {
    background: #E9EDF3 !important;
    color: #172B4D !important;
}

#rightOffcanvas .mh80-stepper button[data-type="plus"] {
    background: #172B4D !important;
    color: #FFFFFF !important;
}

/* Clean White Selection Summary */

#rightOffcanvas .mh80-summary {
    background: #FFFFFF;
    border-color: #DCE1E8;
}

#rightOffcanvas .mh80-summary #chosen_price {
    color: #172B4D !important;
}

#rightOffcanvas .mh80-total-label {
    color: #64748B;
}

#rightOffcanvas .mh80-selection {
    border-top-color: #E2E6EC;
}

#rightOffcanvas .mh80-selection p {
    color: #172B4D !important;
}

/* Preserve Natural Stock Color */

#rightOffcanvas .mh80-summary #available-quantity {
    color: #16803D;
}

/* Original Marketplace Purchase Buttons */

#rightOffcanvas .mh80-footer {
    background: #FFFFFF;
    border-top-color: #DCE1E8;
}

#rightOffcanvas .mh80-footer .add-to-cart {
    background: #E8EFFF !important;
    color: #2457D6 !important;
}

#rightOffcanvas .mh80-footer .buy-now {
    background: #2457D6 !important;
    color: #FFFFFF !important;
}

#rightOffcanvas .mh80-footer .add-to-cart:hover {
    background: #D9E5FF !important;
}

#rightOffcanvas .mh80-footer .buy-now:hover {
    background: #1946BB !important;
}


/* =========================================
   MEHERIMA QUICK SHOP V8.2
   MOBILE RESPONSIVE FIX
   ========================================= */

@media (max-width: 767.98px) {

    /* FULL VIEWPORT PANEL */

    #rightOffcanvas:has(.mh80-header) {
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 100vh !important;
        height: 100dvh !important;

        min-height: 0 !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;

        box-sizing: border-box !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;
        overscroll-behavior: contain;

        background: #F5F7FA !important;

        transition:
            right .3s ease,
            visibility 0s linear .3s !important;
    }

    /* COMPLETELY HIDE CLOSED PANEL */

    #rightOffcanvas:not(.active):has(.mh80-header) {
        right: -100% !important;
        visibility: hidden !important;
        pointer-events: none !important;
        box-shadow: none !important;
    }

    /* ACTIVE PANEL */

    #rightOffcanvas.active:has(.mh80-header) {
        right: 0 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transition:
            right .3s ease,
            visibility 0s !important;
    }

    /* FIXED HEADER */

    #rightOffcanvas .mh80-header {
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;

        padding: 11px 14px !important;
        padding-top:
            max(11px, env(safe-area-inset-top)) !important;

        gap: 10px !important;
        background: #172B4D !important;
    }

    #rightOffcanvas .mh80-header-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 9px !important;
        font-size: 23px !important;
    }

    #rightOffcanvas .mh80-header h5 {
        font-size: 17px !important;
        margin-bottom: 2px !important;
    }

    #rightOffcanvas .mh80-header-text span {
        font-size: 10px !important;
    }

    #rightOffcanvas .mh80-close {
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
    }

    /* INDEPENDENT SCROLLABLE BODY */

    #rightOffcanvas .mh80-body {
        position: relative !important;
        inset: auto !important;

        flex: 1 1 0% !important;

        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: none !important;

        box-sizing: border-box !important;
        padding: 12px 14px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;

        background: #F5F7FA !important;
    }

    /* COMPACT PRODUCT SHOWCASE */

    #rightOffcanvas .mh80-showcase {
        gap: 10px !important;
        padding-bottom: 12px !important;
        align-items: flex-start !important;
    }

    #rightOffcanvas .mh80-image-column {
        flex: 0 0 88px !important;
        max-width: 88px !important;
        padding: 0 !important;
    }

    #rightOffcanvas .mh80-image {
        width: 88px !important;
        height: 112px !important;
        border-radius: 9px !important;
    }

    #rightOffcanvas .mh80-product-column {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    #rightOffcanvas .mh80-brand {
        font-size: 8px !important;
        margin-bottom: 4px !important;
    }

    #rightOffcanvas .mh80-product-name {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        overflow-wrap: anywhere;
    }

    #rightOffcanvas .mh80-base-price strong {
        font-size: 20px !important;
    }

    /* COMPACT VARIATIONS */

    #rightOffcanvas .mh80-variation-heading {
        margin-top: 12px !important;
        margin-bottom: 7px !important;
    }

    #rightOffcanvas .mh80-variation-heading h5 {
        font-size: 14px !important;
    }

    #rightOffcanvas .mh80-options {
        padding: 9px 10px !important;
        border-radius: 10px !important;
    }

    #rightOffcanvas .mh80-options .mh80-option-value {
        min-width: 44px !important;
        min-height: 38px !important;
        padding: 5px 9px !important;
        font-size: 12px !important;
    }

    /* COMPACT PRICE SUMMARY */

    #rightOffcanvas .mh80-summary {
        margin-top: 12px !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }

    #rightOffcanvas .mh80-total-price {
        gap: 1px !important;
    }

    #rightOffcanvas .mh80-summary #chosen_price {
        font-size: 24px !important;
    }

    #rightOffcanvas .mh80-total-label {
        font-size: 11px !important;
    }

    #rightOffcanvas .mh80-selection {
        padding-top: 9px !important;
    }

    /* ALWAYS VISIBLE PURCHASE FOOTER */

    #rightOffcanvas .mh80-footer {
        position: relative !important;
        inset: auto !important;

        flex: 0 0 auto !important;
        flex-shrink: 0 !important;

        width: 100% !important;
        height: auto !important;

        box-sizing: border-box !important;

        padding: 10px 14px 8px !important;

        padding-bottom:
            calc(8px + env(safe-area-inset-bottom, 0px))
            !important;

        background: #FFFFFF !important;
        border-top: 1px solid #DCE1E8 !important;

        z-index: 2 !important;
    }

    #rightOffcanvas .mh80-footer > div:first-child {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin-bottom: 6px !important;
    }

    #rightOffcanvas .mh80-footer .add-to-cart,
    #rightOffcanvas .mh80-footer .buy-now {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 5px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    #rightOffcanvas .mh80-footer .out-of-stock {
        min-height: 46px !important;
        padding: 10px !important;
    }

    /* PRESERVE EXISTING STOCK LOGIC */

    #rightOffcanvas .mh80-footer .d-none {
        display: none !important;
    }

    #rightOffcanvas .mh80-footer a {
        font-size: 11px !important;
    }

    /* HIDE FLOATING CONTROLS WHILE OPEN */

    body:has(#rightOffcanvas.active .mh80-header)
    #backToTop,

    body:has(#rightOffcanvas.active .mh80-header)
    .sc-q8c6tt-3 {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* PREVENT BACKGROUND PAGE SCROLL */

    body.body-no-scroll:has(#rightOffcanvas.active .mh80-header) {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    /* KEEP BACKGROUND NAVIGATION BELOW PANEL */

    body:has(#rightOffcanvas.active .mh80-header)
    #rightOffcanvasOverlay {
        z-index: 1040 !important;
    }

    #rightOffcanvas.active:has(.mh80-header) {
        z-index: 1045 !important;
    }
}

/* END MEHERIMA QUICK SHOP V8.2 */


/* MEHERIMA QUICK SHOP V8.3
   PREMIUM PRODUCT DETAILS BUTTON */

#rightOffcanvas .mh80-footer .text-right {
    width: 100% !important;
    margin-top: 8px !important;
}

#rightOffcanvas .mh80-footer .text-right a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: 100% !important;
    min-height: 44px !important;

    padding: 10px 14px !important;
    box-sizing: border-box !important;

    background: #F5F7FA !important;
    color: #172B4D !important;

    border: 1px solid #DCE1E8 !important;
    border-radius: 8px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;

    transition:
        background .2s ease,
        border-color .2s ease !important;
}

#rightOffcanvas .mh80-footer .text-right a:hover {
    background: #E9EDF3 !important;
    border-color: #B8C4D5 !important;
    color: #172B4D !important;
}

#rightOffcanvas .mh80-footer .text-right a::before {
    content: none !important;
}

#rightOffcanvas .mh80-footer .text-right a::after {
    content: none !important;
}

#rightOffcanvas .mh80-footer .text-right a i {
    font-size: 18px !important;
}

@media (max-width: 767.98px) {

    #rightOffcanvas .mh80-footer .text-right {
        margin-top: 6px !important;
    }

    #rightOffcanvas .mh80-footer .text-right a {
        min-height: 44px !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}

/* END MEHERIMA QUICK SHOP V8.3 */

