/**
 * Nairo Smart Cart – Slide Cart
 * Complete replacement stylesheet
 *
 * Requires the existing cart templates. No JavaScript or PHP changes are needed.
 */

/* --------------------------------------------------------------------------
   01. Design tokens and safe defaults
   -------------------------------------------------------------------------- */

#nsc-slide-cart {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
    --nsc-primary: #163a76;
    --nsc-primary-hover: #0f2e5f;
    --nsc-accent: #7c3aed;
    --nsc-accent-light: #f4f0ff;
    --nsc-success: #16a34a;
    --nsc-danger: #dc2626;
    --nsc-ink: #111827;
    --nsc-muted: #6b7280;
    --nsc-line: #e5e7eb;
    --nsc-surface: #ffffff;
    --nsc-page: #f8fafc;
    --nsc-radius: 14px;
    color: var(--nsc-ink);
    font-family: inherit;
}

/*
 * Keep the cart out of the page on first load. The selectors below support
 * the common open classes used by the plugin, as well as jQuery's fadeIn()
 * inline display state.
 */
#nsc-slide-cart.nsc-open,
#nsc-slide-cart.nsc-cart-open,
#nsc-slide-cart.nsc-active,
#nsc-slide-cart.is-open,
#nsc-slide-cart.open,
#nsc-slide-cart.active,
#nsc-slide-cart[style*="display: block"] {
    visibility: visible;
}

#nsc-slide-cart *,
#nsc-slide-cart *::before,
#nsc-slide-cart *::after {
    box-sizing: border-box;
}

#nsc-slide-cart button,
#nsc-slide-cart a {
    -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   02. Cart panel
   The panel is a flex column: only the middle content area scrolls, so the
   footer stays visible without covering the final cart item.
   -------------------------------------------------------------------------- */

#nsc-slide-cart .nsc-cart-panel,
.nsc-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    width: min(100vw, 460px);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: var(--nsc-page);
    border-left: 1px solid var(--nsc-line);
    box-shadow: -12px 0 32px rgba(15, 23, 42, .16);
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform .28s ease;
}

#nsc-slide-cart.nsc-open .nsc-cart-panel,
#nsc-slide-cart.nsc-cart-open .nsc-cart-panel,
#nsc-slide-cart.nsc-active .nsc-cart-panel,
#nsc-slide-cart.is-open .nsc-cart-panel,
#nsc-slide-cart.open .nsc-cart-panel,
#nsc-slide-cart.active .nsc-cart-panel,
#nsc-slide-cart[style*="display: block"] .nsc-cart-panel,
.nsc-cart-panel.nsc-open,
.nsc-cart-panel.nsc-cart-open,
.nsc-cart-panel.nsc-active,
.nsc-cart-panel.is-open,
.nsc-cart-panel.open,
.nsc-cart-panel.active {
    transform: translateX(0);
}

#nsc-slide-cart .nsc-content,
#nsc-slide-cart .nsc-cart-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--nsc-page);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Some template versions place the product list directly in this element. */
#nsc-cart-items.nsc-cart-items,
#nsc-slide-cart .nsc-cart-items {
    padding: 4px 14px 24px;
    background: var(--nsc-page);
}

/* --------------------------------------------------------------------------
   03. Header
   -------------------------------------------------------------------------- */

#nsc-slide-cart .nsc-header,
.nsc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 14px 18px;
    background: var(--nsc-surface);
    border-bottom: 1px solid var(--nsc-line);
}

#nsc-slide-cart .nsc-title,
.nsc-title {
    margin: 0;
    color: var(--nsc-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

#nsc-slide-cart .nsc-close,
.nsc-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--nsc-muted);
    background: #f5f6fa;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

#nsc-slide-cart .nsc-close:hover,
#nsc-slide-cart .nsc-close:focus-visible {
    color: var(--nsc-primary);
    background: #eef2ff;
    outline: none;
}

#nsc-slide-cart .nsc-close:active {
    transform: scale(.94);
}

/* --------------------------------------------------------------------------
   04. Reward progress and offers
   -------------------------------------------------------------------------- */

#nsc-slide-cart .nsc-progress,
.nsc-progress {
    margin: 12px 14px 10px;
    padding: 12px;
    background: var(--nsc-surface);
    border: 1px solid var(--nsc-line);
    border-radius: var(--nsc-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

#nsc-slide-cart .nsc-progress-title,
.nsc-progress-title {
    margin: 0 0 8px;
    color: var(--nsc-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

#nsc-slide-cart .nsc-progress-track,
#nsc-slide-cart .nsc-progress-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #e9e7f8;
    border-radius: 999px;
}

#nsc-slide-cart .nsc-progress-fill,
#nsc-slide-cart .nsc-progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #8b5cf6 50%, #7c3aed);
    border-radius: inherit;
    transition: width .35s ease;
}

#nsc-slide-cart .nsc-progress-message,
.nsc-progress-message {
    margin: 8px 0 0;
    color: var(--nsc-muted);
    font-size: 12px;
    line-height: 1.35;
}

#nsc-slide-cart .nsc-offers,
.nsc-offers {
    width: 100%;
    padding: 0 14px 4px;
}

/* offers.php wraps the two cards in .nsc-offers-grid */
#nsc-slide-cart .nsc-offers-grid,
.nsc-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

#nsc-slide-cart .nsc-offer,
.nsc-offer {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 60px;
    gap: 7px;
    padding: 8px 10px;
    background: var(--nsc-surface);
    border: 1px solid var(--nsc-line);
    border-radius: 12px;
    width: auto;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

#nsc-slide-cart .nsc-offer:hover {
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

#nsc-slide-cart .nsc-offer.is-unlocked,
#nsc-slide-cart .nsc-offer.nsc-offer-unlocked {
    background: #f2fff6;
    border-color: #86efac;
}

#nsc-slide-cart .nsc-offer-icon,
.nsc-offer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d5bff);
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

#nsc-slide-cart .nsc-offer-content,
.nsc-offer-content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    min-width: 0;
    gap: 4px;
}

#nsc-slide-cart .nsc-offer-title,
.nsc-offer-title {
    overflow: hidden;
    margin: 0;
    color: var(--nsc-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#nsc-slide-cart .nsc-offer-subtitle,
.nsc-offer-subtitle {
    flex: 0 0 auto;
    margin: 0;
    color: var(--nsc-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   05. Product cards
   The price and controls share .nsc-product-bottom from cart-items.php.
   -------------------------------------------------------------------------- */

#nsc-slide-cart .nsc-cart-items-wrapper,
.nsc-cart-items-wrapper {
    display: grid;
    gap: 10px;
}

#nsc-slide-cart .nsc-cart-item,
.nsc-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: var(--nsc-surface);
    border: 1px solid var(--nsc-line);
    border-radius: var(--nsc-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

#nsc-slide-cart .nsc-product-image,
.nsc-product-image {
    flex: 0 0 72px;
    width: 72px;
}

#nsc-slide-cart .nsc-product-image a {
    display: block;
}

#nsc-slide-cart .nsc-product-image img,
.nsc-product-image img {
    display: block;
    width: 72px;
    height: 72px;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid var(--nsc-line);
    border-radius: 10px;
}

#nsc-slide-cart .nsc-product-content,
.nsc-product-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 72px;
}

#nsc-slide-cart .nsc-product-title,
.nsc-product-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 4px;
    color: var(--nsc-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#nsc-slide-cart .nsc-product-title a,
.nsc-product-title a {
    color: inherit;
    text-decoration: none;
}

#nsc-slide-cart .nsc-product-title a:hover,
#nsc-slide-cart .nsc-product-title a:focus-visible {
    color: var(--nsc-primary);
    text-decoration: underline;
}

/* WooCommerce variation data printed by wc_get_formatted_cart_item_data(). */
#nsc-slide-cart .variation,
#nsc-slide-cart .wc-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin: 0 0 5px;
    color: var(--nsc-muted);
    font-size: 12px;
    line-height: 1.3;
}

#nsc-slide-cart .variation dt,
#nsc-slide-cart .variation dd,
#nsc-slide-cart .wc-item-meta li {
    margin: 0;
}

#nsc-slide-cart .variation dd p,
#nsc-slide-cart .wc-item-meta p {
    margin: 0;
}

#nsc-slide-cart .nsc-product-bottom,
.nsc-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

#nsc-slide-cart .nsc-product-price,
.nsc-product-price {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--nsc-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

#nsc-slide-cart .nsc-product-price del {
    color: var(--nsc-muted);
    font-size: .78em;
    font-weight: 400;
}

#nsc-slide-cart .nsc-product-actions,
.nsc-product-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
}

#nsc-slide-cart .nsc-quantity-wrapper,
.nsc-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: #f8fafc;
    border: 1px solid var(--nsc-line);
    border-radius: 9px;
}

#nsc-slide-cart .nsc-qty-minus,
#nsc-slide-cart .nsc-qty-plus,
.nsc-qty-minus,
.nsc-qty-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--nsc-primary);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease;
}

#nsc-slide-cart .nsc-qty-minus:hover,
#nsc-slide-cart .nsc-qty-plus:hover,
#nsc-slide-cart .nsc-qty-minus:focus-visible,
#nsc-slide-cart .nsc-qty-plus:focus-visible {
    color: #fff;
    background: var(--nsc-primary);
    outline: none;
}

#nsc-slide-cart .nsc-qty,
.nsc-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    color: var(--nsc-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

#nsc-slide-cart .nsc-remove-item,
.nsc-remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--nsc-danger);
    background: #fef2f2;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

#nsc-slide-cart .nsc-remove-item:hover,
#nsc-slide-cart .nsc-remove-item:focus-visible {
    color: #fff;
    background: var(--nsc-danger);
    outline: none;
}

#nsc-slide-cart .nsc-remove-item:active {
    transform: scale(.94);
}

#nsc-slide-cart .nsc-empty-cart,
.nsc-empty-cart {
    padding: 32px 20px;
    color: var(--nsc-muted);
    text-align: center;
}

#nsc-slide-cart .nsc-empty-cart p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   06. Sticky footer, totals, and checkout button
   -------------------------------------------------------------------------- */

#nsc-slide-cart .nsc-cart-footer,
.nsc-cart-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 14px;
    background: var(--nsc-surface);
    border-top: 1px solid var(--nsc-line);
    box-shadow: 0 -4px 14px rgba(15, 23, 42, .06);
}

#nsc-slide-cart .nsc-cart-totals,
.nsc-cart-totals {
    display: grid;
    gap: 7px;
}

#nsc-slide-cart .nsc-total-row,
.nsc-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--nsc-muted);
    font-size: 14px;
    line-height: 1.3;
}

#nsc-slide-cart .nsc-total-row .nsc-value,
.nsc-total-row .nsc-value {
    color: var(--nsc-ink);
    font-weight: 600;
    text-align: right;
}

#nsc-slide-cart .nsc-discount,
.nsc-discount {
    color: var(--nsc-success);
}

#nsc-slide-cart .nsc-discount .nsc-value,
.nsc-discount .nsc-value {
    color: var(--nsc-success);
}

#nsc-slide-cart .nsc-grand-total,
.nsc-grand-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0px;
    padding-top: 0px;
    border-top: none;
    color: var(--nsc-ink);
    font-size: 16px;
    font-weight: 700;
}

.nsc-total-divider{
    border:none;
    border-top:1px solid #E5E7EB;
    margin:8px 0;
}

#nsc-slide-cart .nsc-grand-total .nsc-value,
.nsc-grand-total .nsc-value {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
}

#nsc-slide-cart .nsc-tax-note,
.nsc-tax-note {
    margin: 3px 0 0;
    color: var(--nsc-muted);
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
}

#nsc-slide-cart .checkout,
#nsc-slide-cart a.checkout,
.nsc-cart-footer .checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    gap: 9px;
    margin-top: 12px;
    padding: 10px 16px;
    color: #fff !important;
    background: var(--nsc-primary);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(22, 58, 118, .2);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#nsc-slide-cart .checkout:hover,
#nsc-slide-cart .checkout:focus-visible {
    color: #fff !important;
    background: var(--nsc-primary-hover);
    box-shadow: 0 8px 18px rgba(22, 58, 118, .28);
    outline: none;
    transform: translateY(-1px);
}

#nsc-slide-cart .checkout:active {
    transform: translateY(0);
}

#nsc-slide-cart .checkout-icon,
#nsc-slide-cart .checkout-text {
    line-height: 1;
}

/* --------------------------------------------------------------------------
   07. Responsive refinements
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    #nsc-slide-cart .nsc-cart-panel,
    .nsc-cart-panel {
        width: 100vw;
    }

    #nsc-slide-cart .nsc-header,
    .nsc-header {
        padding: 10px 14px;
    }

    #nsc-slide-cart .nsc-progress,
    .nsc-progress {
        margin: 8px 10px 6px;
        padding: 9px 10px;
    }

    #nsc-slide-cart .nsc-progress-title,
    .nsc-progress-title {
        margin-bottom: 6px;
        font-size: 13px;
    }

    #nsc-slide-cart .nsc-progress-message,
    .nsc-progress-message {
        margin-top: 6px;
        font-size: 11px;
    }

    #nsc-slide-cart .nsc-offers,
    .nsc-offers {
        padding: 0 10px 2px;
    }

    #nsc-slide-cart .nsc-offers-grid,
    .nsc-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #nsc-slide-cart .nsc-offer,
    .nsc-offer {
        min-height: 68px;
        padding: 10px 12px;
    }

    #nsc-slide-cart .nsc-offer-icon,
    .nsc-offer-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    #nsc-slide-cart .nsc-offer-title,
    .nsc-offer-title {
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #nsc-slide-cart .nsc-offer-subtitle,
    .nsc-offer-subtitle {
        font-size: 13px;
    }

    #nsc-cart-items.nsc-cart-items,
    #nsc-slide-cart .nsc-cart-items {
        padding: 2px 10px 20px;
    }

    #nsc-slide-cart .nsc-cart-item,
    .nsc-cart-item {
        gap: 8px;
        padding: 8px;
    }

    #nsc-slide-cart .nsc-product-image,
    .nsc-product-image {
        flex-basis: 60px;
        width: 60px;
    }

    #nsc-slide-cart .nsc-product-image img,
    .nsc-product-image img {
        width: 60px;
        height: 60px;
    }

    #nsc-slide-cart .nsc-product-content,
    .nsc-product-content {
        min-height: 60px;
    }

    #nsc-slide-cart .nsc-product-title,
    .nsc-product-title {
        font-size: 14px;
        line-height: 1.22;
    }

    #nsc-slide-cart .nsc-product-bottom,
    .nsc-product-bottom {
        padding-top: 4px;
    }

    #nsc-slide-cart .nsc-product-price,
    .nsc-product-price {
        font-size: 16px;
    }

    #nsc-slide-cart .nsc-cart-footer,
    .nsc-cart-footer {
        padding: 10px 12px;
    }

    #nsc-slide-cart .nsc-cart-totals,
    .nsc-cart-totals {
        gap: 5px;
    }

    #nsc-slide-cart .nsc-grand-total,
    .nsc-grand-total {
        padding-top: 8px;
    }

    #nsc-slide-cart .checkout,
    #nsc-slide-cart a.checkout,
    .nsc-cart-footer .checkout {
        min-height: 44px;
        margin-top: 8px;
    }
}

@media (max-width: 350px) {
   #nsc-slide-cart .nsc-offers-grid,
.nsc-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
    #nsc-slide-cart .nsc-offer,
    .nsc-offer {
        gap: 6px;
        padding: 8px;
    }

    #nsc-slide-cart .nsc-offer-icon,
    .nsc-offer-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    #nsc-slide-cart .nsc-offer-title,
    .nsc-offer-title {
        font-size: 12px;
    }

    #nsc-slide-cart .nsc-product-bottom,
    .nsc-product-bottom {
        gap: 6px;
    }

    #nsc-slide-cart .nsc-product-actions,
    .nsc-product-actions {
        gap: 5px;
    }

    #nsc-slide-cart .nsc-qty-minus,
    #nsc-slide-cart .nsc-qty-plus,
    .nsc-qty-minus,
    .nsc-qty-plus {
        width: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nsc-slide-cart *,
    #nsc-slide-cart *::before,
    #nsc-slide-cart *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --------------------------------------------------------------------------
   08. Final offer-grid override
   offers.php uses .nsc-offers > .nsc-offers-grid > .nsc-offer.
   This comes last so old duplicate plugin rules cannot shrink the grid.
   -------------------------------------------------------------------------- */

#nsc-slide-cart .nsc-offers,
.nsc-cart-panel .nsc-offers,
.nsc-offers {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

#nsc-slide-cart .nsc-offers-grid,
.nsc-cart-panel .nsc-offers-grid,
.nsc-offers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
}

#nsc-slide-cart .nsc-offers-grid .nsc-offer,
.nsc-cart-panel .nsc-offers-grid .nsc-offer,
.nsc-offers-grid .nsc-offer {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

@media (max-width: 480px) {
    #nsc-slide-cart .nsc-offers-grid .nsc-offer,
    .nsc-cart-panel .nsc-offers-grid .nsc-offer,
    .nsc-offers-grid .nsc-offer {
        min-height: 60px !important;
        gap: 6px !important;
        padding: 8px !important;
    }

    #nsc-slide-cart .nsc-offer-icon,
    .nsc-cart-panel .nsc-offer-icon,
    .nsc-offer-icon {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
    }

    #nsc-slide-cart .nsc-offer-title,
    .nsc-cart-panel .nsc-offer-title,
    .nsc-offer-title {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    #nsc-slide-cart .nsc-offer-subtitle,
    .nsc-cart-panel .nsc-offer-subtitle,
    .nsc-offer-subtitle {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    #nsc-slide-cart .nsc-offer-icon {
        flex-basis: 30px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    #nsc-slide-cart .nsc-offer-title {
        font-size: 11px !important;
    }

    #nsc-slide-cart .nsc-offer-subtitle {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    /* Product cards compact */
    #nsc-slide-cart .nsc-cart-item {
        padding: 7px 8px !important;
    }

    #nsc-slide-cart .nsc-product-image {
        align-self: center;
    }

    #nsc-slide-cart .nsc-product-title {
        margin-bottom: 2px !important;
        line-height: 1.16 !important;
    }

    #nsc-slide-cart .nsc-product-bottom {
        padding-top: 2px !important;
    }

    /* Footer compact */
    #nsc-slide-cart .nsc-cart-footer {
        padding: 8px 12px !important;
    }

    #nsc-slide-cart .nsc-cart-totals {
        gap: 3px !important;
    }

    #nsc-slide-cart .nsc-total-row {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    #nsc-slide-cart .nsc-grand-total {
        margin-top: 2px !important;
        padding-top: 7px !important;
    }

    #nsc-slide-cart .nsc-tax-note {
        margin-top: 2px !important;
    }

    #nsc-slide-cart .checkout {
        min-height: 42px !important;
        margin-top: 6px !important;
    }
}

/* ==========================
   Empty Cart
========================== */

.nsc-empty-cart{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:calc(100vh - 180px);
    padding:40px 24px;
}

.nsc-empty-icon{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#F3EEFF;
    color:#7C3AED;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    margin-bottom:18px;
}

.nsc-empty-cart h3{
    margin:0;
    font-size:28px;
    font-weight:700;
    color:#111827;
    line-height:1.2;
}


.nsc-cart-trigger{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    color:#111827;
}

.nsc-cart-trigger svg{
    width:26px;
    height:26px;
}

.nsc-cart-count{
    position:absolute;
    top:-4px;
    right:-4px;

    width:20px;
    height:20px;

    border-radius:50%;
    background:#0B2D5C;
    color:#fff;

    font-size:11px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;

    border:2px solid #fff;
}

.nsc-open-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  color: #002147;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
}

.nsc-open-cart:hover,
.nsc-open-cart:focus-visible {
  background-color: #f0f0f1;
  transform: scale(1.08);
}

.nsc-open-cart:active {
  transform: scale(.96);
}

.nsc-open-cart:focus-visible {
  outline: 2px solid #b8b8bb;
  outline-offset: 2px;
}

.nsc-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.nsc-cart-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nsc-cart-count {
  position: absolute;
  top: 1px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;          /* lets it widen for 2+ digits while staying pill-shaped */
  border-radius: 999px;
  background: #0B2D5C;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 2px #ffffff;   /* white ring separates the badge from the cart glyph */
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}

.nsc-open-cart:hover .nsc-cart-count {
  transform: scale(1.08);
}

/* Hide badge when cart is empty */

.header-widget-area.header-widget-area-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-widget-area-inner .widget_block {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-widget-area-inner .widget_block p {
  margin: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.nsc-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 180px);
  padding: 40px 24px;
}

.nsc-empty-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #F1EDFB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #1c1c1e;
}

.nsc-empty-icon svg {
  width: 40px;
  height: 40px;
}

.nsc-empty-cart h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.nsc-empty-cart p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px;
  max-width: 280px;
}

.nsc-continue-shopping {
  font-size: 14px;
  font-weight: 600;
  color: #0B2D5C;
  text-decoration: none;
}

.nsc-continue-shopping:hover {
  text-decoration: underline;
}