/* ─────────────────────────────────────────────────────────
   cart.css — Página e mini-cart do carrinho
   ───────────────────────────────────────────────────────── */

:root {
    --cart-accent: #D9026D;
    --cart-bg: #ffffff;
    --cart-header-bg: linear-gradient(90deg, #D9026D 0%, #E02078 100%);
    --cart-header-text: #ffffff;
    --cart-border: #e8e8e8;
    --cart-text: #2d2d2d;
    --cart-text-muted: #888;
    --cart-item-hover: #fafafa;
    --cart-shadow: 0 8px 40px rgba(0,0,0,.22);
    --cart-drawer-width: 420px;
    --cart-radius: 12px;
    --cart-transition: 0.3s cubic-bezier(.4,0,.2,1);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--cart-transition);
    backdrop-filter: blur(2px);
}

.cart-overlay--visible {
    opacity: 1;
    pointer-events: all;
}

.modal-cart {
    background: var(--cart-bg);
}

.modal-cart .modal-header {
    background: var(--cart-header-bg);
    color: var(--cart-header-text);
    border-bottom: 0;
    min-height: 72px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.modal-cart .modal-header .row {
    width: 100%;
}

.modal-cart .modal-header .modal-close,
.modal-cart .modal-header .svg-icon-text,
.modal-cart .modal-header a {
    color: var(--cart-header-text);
    fill: var(--cart-header-text);
}

.cart-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cart-header-text);
}

.modal-cart .modal-body {
    padding: 0;
    background: #fff;
    overflow: hidden;
    flex: 1;
}

.modal-cart .js-ajax-cart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-cart .modal-footer {
    padding: 0;
    border-top: 0;
    background: transparent;
}

/* Modal de recomendações após adicionar um produto ao carrinho */
.js-modal#related-products-notification {
    --recommendation-accent: #D9026D;
    --recommendation-accent-light: #FFF0F7;
    --recommendation-border: #F4D5E4;
    --recommendation-text: #17131A;
    width: min(680px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    color: var(--recommendation-text);
    background: #FFFFFF;
    border: 1px solid rgba(217, 2, 109, 0.14);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(48, 8, 30, 0.28);
    overflow: hidden;
}

#related-products-notification .modal-header {
    position: relative;
    min-height: 72px;
    padding: 20px 24px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #D9026D 0%, #E02078 100%);
    border: 0;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
}

#related-products-notification .modal-header .row {
    width: 100%;
}

#related-products-notification .modal-header .col {
    padding-left: 0 !important;
}

#related-products-notification .modal-header .modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#related-products-notification .modal-header .modal-close:hover,
#related-products-notification .modal-header .modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

#related-products-notification .modal-header .svg-icon-text {
    width: 18px;
    height: 18px;
    fill: #FFFFFF;
}

#related-products-notification .modal-body {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    padding: 22px 24px max(28px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    background: #FFFFFF;
    overscroll-behavior: contain;
}

#related-products-notification .modal-body > .row {
    align-items: center;
    margin: 0;
    padding: 16px;
    background: var(--recommendation-accent-light);
    border: 1px solid var(--recommendation-border);
    border-radius: 18px;
}

#related-products-notification .notification-img-big {
    position: relative;
    width: 76px;
    height: 76px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--recommendation-border);
    border-radius: 14px;
}

#related-products-notification .notification-img-big img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#related-products-notification .js-cart-notification-item-name {
    color: var(--recommendation-text);
    font-weight: 700;
    line-height: 1.35;
}

#related-products-notification .text-primary {
    color: var(--recommendation-accent) !important;
}

#related-products-notification .btn-primary {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: filter 0.2s ease, transform 0.2s ease;
}

#related-products-notification .btn-primary:hover,
#related-products-notification .btn-primary:focus-visible {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

#related-products-notification .js-related-products-notification {
    margin-top: 24px !important;
    padding-top: 22px !important;
    border-top: 1px solid var(--recommendation-border);
}

#related-products-notification .js-related-products-notification .section-title {
    margin-bottom: 18px !important;
    color: var(--recommendation-accent);
    font-size: 20px;
    font-weight: 800;
    text-align: left !important;
}

.modal-overlay[data-modal-id="#related-products-notification"] {
    background: rgba(27, 12, 22, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 769px) {
    .js-modal#related-products-notification,
    .js-modal#related-products-notification.modal-bottom-sheet {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
        opacity: 0;
    }

    .js-modal#related-products-notification.modal-show,
    .js-modal#related-products-notification.modal-show.modal-centered-md,
    .js-modal#related-products-notification.modal-bottom-sheet.modal-show {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        height: auto;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .js-modal#related-products-notification,
    .js-modal#related-products-notification.modal-bottom-sheet {
        top: auto;
        right: 0;
        bottom: -100%;
        left: 0;
        width: 100%;
        max-width: none;
        max-height: min(88vh, 760px);
        max-height: min(88dvh, 760px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        transform: none;
    }

    .js-modal#related-products-notification.modal-show,
    .js-modal#related-products-notification.modal-show.modal-centered-md,
    .js-modal#related-products-notification.modal-bottom-sheet.modal-show {
        top: auto;
        bottom: 0;
        left: 0;
        height: auto;
        transform: none;
    }

    #related-products-notification .modal-header {
        min-height: 64px;
        padding: 16px 18px;
        font-size: 16px;
    }

    #related-products-notification .modal-header::before {
        content: '';
        position: absolute;
        top: 7px;
        left: 50%;
        width: 42px;
        height: 4px;
        background: rgba(255, 255, 255, 0.55);
        border-radius: 999px;
        transform: translateX(-50%);
    }

    #related-products-notification .modal-body {
        max-height: calc(88vh - 64px);
        max-height: calc(88dvh - 64px);
        padding: 16px 14px max(20px, env(safe-area-inset-bottom));
    }

    #related-products-notification .modal-body > .row {
        padding: 12px;
        border-radius: 16px;
    }

    #related-products-notification .notification-img-big {
        width: 64px;
        height: 64px;
    }

    #related-products-notification .js-related-products-notification .section-title {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    #related-products-notification .modal-body > .row > [class*="col-md-auto"] {
        width: 100%;
        margin-top: 14px;
    }

    #related-products-notification .modal-body > .row .btn-big {
        width: 100%;
    }
}

.cart-sheet {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
}

.cart-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
}

.cart-drawer-body,
.cart-sheet-body {
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.cart-drawer-body::-webkit-scrollbar,
.cart-sheet-body::-webkit-scrollbar { width: 4px; }

.cart-drawer-body::-webkit-scrollbar-thumb,
.cart-sheet-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.cart-items-list,
.cart-full-items-list,
.cart-sheet-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-sheet-items {
    padding: 16px;
}

.cart-sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px 36px;
}

.cart-empty-icon-img {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    filter: brightness(0);
    opacity: 0.5;
}

.cart-empty-msg {
    text-align: center;
    color: var(--cart-text-muted);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0 0 8px;
}

.cart-sheet-empty-link,
.cart-empty-msg a {
    color: var(--cart-accent);
    font-weight: 700;
    text-decoration: none;
}

.cart-sheet-empty-link:hover,
.cart-empty-msg a:hover { text-decoration: underline; }

.cart-item {
    border: 1px solid var(--cart-border);
    border-radius: 10px;
    background: var(--cart-bg);
    transition: background .15s;
}

.cart-item:hover { background: var(--cart-item-hover); }

.cart-drawer-item {
    display: grid;
    grid-template-columns: 72px 1fr 32px;
    gap: 12px;
    align-items: start;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.cart-drawer-item .cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--cart-border);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cart-drawer-item .cart-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-drawer-item .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
}

.cart-drawer-item .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.cart-item-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--cart-text);
    margin: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.cart-item-name a,
.cart-full-item-name a {
    color: inherit;
    text-decoration: none;
    display: inline;
}

.cart-item-variant {
    font-size: .75rem;
    color: var(--cart-text-muted);
    margin: 0;
}

.cart-item-price {
    font-size: .88rem;
    font-weight: 700;
    color: var(--cart-accent);
    margin: 0;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-drawer-qty-wrap {
    max-width: 120px;
}

.cart-item-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color .2s, background .2s;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.cart-item-remove:hover {
    color: #e53e3e;
    background: #fff5f5;
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
    display: block;
}

.cart-drawer-footer,
.cart-sheet-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--cart-border);
    background: #fafafa;
    flex-shrink: 0;
}

.js-empty-ajax-cart:not([style*='display:none']) ~ .cart-sheet-footer,
.js-empty-ajax-cart:not([style*='display:none']) ~ .cart-drawer-footer {
    display: none;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 6px;
}

.cart-subtotal-row strong {
    font-size: 1.15rem;
    color: var(--cart-accent);
}

.cart-shipping-note {
    font-size: .78rem;
    color: var(--cart-text-muted);
    text-align: center;
    margin-bottom: 14px;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--cart-accent);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: background .2s, transform .1s;
    border: 0;
    cursor: pointer;
}

.cart-checkout-btn:hover {
    background: #B6025B;
    transform: translateY(-1px);
}

.cart-page-main {
    min-height: 60vh;
    padding: 32px 0 60px;
}

.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: #888;
    margin-bottom: 20px;
}

.cart-breadcrumb a { color: #888; text-decoration: none; }
.cart-breadcrumb a:hover { color: var(--cart-accent); }

.cart-page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.cart-page-items {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--cart-border);
}

.cart-page-items-header {
    display: grid;
    grid-template-columns: 1fr 150px 130px;
    padding: 14px 20px;
    background: #f8f8f8;
    font-size: .78rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--cart-border);
}

.d-md-grid {
    display: none;
}

.cart-full-item {
    display: grid;
    grid-template-columns: 1fr 150px 130px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.cart-full-item:last-child { border-bottom: none; }

.cart-full-item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-full-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 1px solid var(--cart-border);
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    position: relative;
}

.cart-full-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: static;
}

.cart-full-item-name {
    font-size: .9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-full-item-unit-price {
    font-size: .8rem;
    color: #aaa;
    margin: 4px 0 0;
}

.cart-full-item-qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-full-item-qty-wrap .form-quantity.small {
    width: auto;
    min-width: 80px;
    padding: 6px 8px;
    border-radius: 8px;
}

.cart-full-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-full-item-subtotal strong {
    font-size: 1rem;
    color: var(--cart-accent);
    font-weight: 800;
}

.cart-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--cart-border);
    background: #fafafa;
}

.cart-continue-btn {
    font-size: .85rem;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.cart-continue-btn:hover { color: var(--cart-accent); }

.cart-page-summary {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--cart-border);
    padding: 24px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.cart-summary-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cart-border);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .88rem;
    color: #555;
    margin-bottom: 12px;
    gap: 12px;
}

.cart-summary-line strong {
    font-weight: 700;
    color: #1a1a2e;
}

.cart-summary-divider {
    height: 1px;
    background: var(--cart-border);
    margin: 14px 0;
}

.cart-summary-total {
    font-size: 1rem;
    margin-bottom: 20px;
}

.cart-summary-total strong:last-child,
.cart-summary-total .js-cart-total {
    font-size: 1.2rem;
    color: var(--cart-accent);
}

.cart-shipping-tag {
    font-size: .75rem;
    color: var(--cart-accent);
    font-weight: 600;
}

.cart-summary-checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--cart-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
    margin-bottom: 12px;
}

.cart-summary-checkout-btn:hover:not(:disabled) {
    background: #B6025B;
    transform: translateY(-1px);
}

.cart-summary-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cart-summary-security {
    font-size: .75rem;
    color: #888;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.5;
}

.cart-payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
}

.cart-page-fulfillment {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cart-border);
}

/* Calculadora de frete da página do carrinho */
.cart-page-fulfillment .shipping-calculator-head.with-form {
    height: 118px;
}

.cart-page-fulfillment .shipping-calculator-head.with-error {
    height: 230px;
}

.cart-page-fulfillment .shipping-calculator-form,
.cart-page-fulfillment .shipping-calculator-form .form-group,
.cart-page-fulfillment .shipping-calculator-form .form-row {
    width: 100%;
}

.cart-page-fulfillment .shipping-calculator-form .form-row {
    display: block;
    margin: 0;
}

.cart-page-fulfillment .shipping-calculator-form .form-label {
    display: block;
    margin: 0 0 8px;
    color: var(--cart-text);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
}

.cart-page-fulfillment .shipping-calculator-form .form-row > .position-relative {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.cart-page-fulfillment .shipping-calculator-form .form-row > .position-relative > div:first-child {
    min-width: 0;
}

.cart-page-fulfillment .js-shipping-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 13px;
    color: var(--cart-text);
    background: #FFFFFF;
    border: 1px solid #DADDE2;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: .85rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-page-fulfillment .js-shipping-input:focus {
    border-color: var(--cart-accent);
    box-shadow: 0 0 0 3px rgba(217, 2, 109, .12);
    outline: none;
}

.cart-page-fulfillment .js-calculate-shipping.form-control-submit {
    position: static;
    right: auto;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    color: #FFFFFF;
    background: var(--cart-accent);
    border: 0;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .2s ease, transform .1s ease;
}

.cart-page-fulfillment .js-calculate-shipping.form-control-submit:hover {
    background: #B6025B;
}

.cart-page-fulfillment .js-calculate-shipping.form-control-submit:active {
    transform: translateY(1px);
}

.cart-page-fulfillment .js-calculate-shipping.form-control-submit:focus-visible {
    outline: 3px solid rgba(217, 2, 109, .2);
    outline-offset: 2px;
}

.cart-page-fulfillment .js-calculate-shipping .btn-link {
    position: static;
    top: auto;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transform: none;
}

.cart-page-fulfillment .js-calculate-shipping .loading {
    color: #FFFFFF;
}

.cart-page-fulfillment .js-ship-calculator-error,
.cart-page-fulfillment .js-shipping-calculator-response,
.cart-page-fulfillment .radio-buttons-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-page-fulfillment .js-shipping-calculator-with-zipcode .row {
    align-items: center;
    margin-right: 0;
    margin-left: 0;
}

.cart-page-fulfillment .js-shipping-calculator-change-zipcode {
    white-space: nowrap;
}

.cart-page-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 14px;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.cart-page-empty h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.cart-page-empty p {
    color: #888;
    margin-bottom: 24px;
}

.cart-go-shopping-btn {
    display: inline-block;
    padding: 13px 28px;
    background: var(--cart-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    transition: background .2s, transform .1s;
}

.cart-go-shopping-btn:hover {
    background: #B6025B;
    transform: translateY(-1px);
}

.cart-badge {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--cart-accent);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .68rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.cart-btn {
    position: relative;
}

.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.cart-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cart-no-scroll { overflow: hidden; }

@media (min-width: 768px) {
    .d-md-grid {
        display: grid;
    }
}

@media (max-width: 900px) {
    .cart-page-layout { grid-template-columns: 1fr; }
    .cart-page-summary { position: static; }
}

@media (max-width: 767px) {
    .cart-full-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cart-full-item-subtotal {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
    .cart-page-items-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .cart-page-container {
        padding: 0 16px;
    }
    .cart-sheet-items {
        padding: 12px;
    }
    .cart-drawer-footer,
    .cart-sheet-footer {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .cart-page-fulfillment .shipping-calculator-head.with-form {
        height: 174px;
    }

    .cart-page-fulfillment .shipping-calculator-head.with-error {
        height: 286px;
    }

    .cart-page-fulfillment .shipping-calculator-form .form-row > .position-relative {
        grid-template-columns: 1fr;
    }

    .cart-page-fulfillment .js-calculate-shipping.form-control-submit {
        width: 100%;
    }
}
