/* ===== SHOPPING CART STYLES ===== */

/* Cart Icon & Header Styles */
.header__cart {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header__cart:hover,
.header__cart.hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.header__cart.has-items {
    color: white;
    background-color: transparent;
}

.header__cart svg {
    flex-shrink: 0;
    stroke: white;
}

/* Cart Count Badge */
.header__cart .cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    min-width: 20px !important;
    height: 20px !important;
    background: #f97316 !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4) !important;
    z-index: 9999 !important;
    pointer-events: none !important;
}

.header__cart .cart-count.visible {
    display: inline-flex !important;
}

/* Cart Icon Animation */
.header__cart.cart-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    80% { transform: translateY(-4px); }
}

@keyframes cartBadgeAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cart Dropdown Overlay */
.cart-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-dropdown-overlay.active {
    opacity: 1;
}

/* Cart Dropdown */
.cart-dropdown,
.simple-cart-dropdown {
    position: fixed !important;
    top: calc(var(--header-h, 64px) + 8px) !important;
    right: 50px !important;
    width: 380px !important;
    max-width: 95vw;
    max-height: calc(100vh - var(--header-h, 64px) - 20px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Larger screens - position cart dropdown more to the left */
@media (min-width: 1024px) {
    .cart-dropdown,
    .simple-cart-dropdown {
        right: 100px !important;
        width: 420px !important;
    }
}

@media (min-width: 1280px) {
    .cart-dropdown,
    .simple-cart-dropdown {
        right: 150px !important;
        width: 450px !important;
    }
}

.cart-dropdown.active,
.simple-cart-dropdown {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Dropdown Header */
.cart-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.cart-dropdown__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.cart-dropdown__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cart-dropdown__close:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* Cart Dropdown Content */
.cart-dropdown__content {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.cart-dropdown__items {
    padding: 16px 20px;
}

/* Cart Dropdown Footer */
.cart-dropdown__footer {
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    flex-shrink: 0;
}

.cart-dropdown__summary {
    margin-bottom: 16px;
}

.cart-dropdown__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-dropdown__actions .btn {
    text-align: center;
    justify-content: center;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.cart-item--compact {
    padding: 12px 0;
}

/* Clickable Elements (for navigation to product detail) */
.cart-item__clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cart-item__clickable:hover {
    opacity: 0.8;
}

.cart-item__name.cart-item__clickable:hover {
    color: #3b82f6;
}

/* Cart Item Links */
.cart-item__image-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.cart-item__image-link:hover {
    opacity: 0.8;
}

.cart-item__name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.cart-item__name-link:hover {
    color: #3b82f6;
}

.cart-item__name-link:hover .cart-item__name {
    color: #3b82f6;
}

/* Checkout Item Links */
.checkout-item__image-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.checkout-item__image-link:hover {
    opacity: 0.8;
}

.checkout-item__name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.checkout-item__name-link:hover {
    color: #3b82f6;
}

.checkout-item__name-link:hover .checkout-item__name {
    color: #3b82f6;
}

.cart-item__image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__details {
    flex: 1;
    min-width: 0;
}

.cart-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cart-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #64748b;
}

.item-manufacturer,
.item-size {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.cart-item__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.quantity-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 40px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    background: white;
    outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.quantity-display {
    font-size: 12px;
    color: #1a1a1a;
    background: white;
    min-width: 40px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Remove Item Button */
.remove-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.remove-item-btn:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

/* Pricing */
.cart-item__pricing {
    text-align: right;
    font-size: 12px;
    line-height: 1.3;
}

.item-unit-price {
    display: block;
    color: #64748b;
    margin-bottom: 2px;
}

.item-total-price {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* Cart Summary */
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #64748b;
}

.cart-summary__row:last-child {
    margin-bottom: 0;
}

.cart-summary__total {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.summary-label {
    flex: 1;
}

.summary-value {
    font-weight: 500;
}

.cart-summary__total .summary-value {
    font-weight: 700;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart--compact {
    padding: 30px 20px;
}

.empty-cart__icon {
    margin: 0 auto 16px;
    width: 48px;
    height: 48px;
    color: #cbd5e1;
}

.empty-cart--compact .empty-cart__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
}

.empty-cart__title {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px;
}

.empty-cart--compact .empty-cart__title {
    font-size: 14px;
    margin: 0 0 6px;
}

.empty-cart__message {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
}

.empty-cart--compact .empty-cart__message {
    font-size: 12px;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 250px;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification__content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #059669;
}

.cart-notification__content svg {
    flex-shrink: 0;
    color: #10b981;
}

/* Simple Cart Quantity Controls - standardized */
/* (This section is now redundant - using styles from line 360-418) */

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.4;
}

.btn--primary {
    background-color: #3b82f6;
    color: white;
}

.btn--primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn--secondary {
    background-color: white;
    color: #64748b;
    border-color: #e2e8f0;
}

.btn--secondary:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-dropdown,
    .simple-cart-dropdown {
        top: calc(var(--header-h, 64px) + 4px) !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        transform: translateY(-10px) !important;
    }

    .cart-dropdown.active,
    .simple-cart-dropdown.active {
        transform: translateY(0) !important;
    }

    .cart-item {
        gap: 8px;
    }

    .cart-item__image {
        width: 50px;
        height: 50px;
    }

    .cart-item__name {
        font-size: 13px;
    }

    .cart-item__footer {
        /* Keep quantity selector left and price right on mobile */
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
    }

    .cart-item__pricing {
        text-align: right;
    }

    /* Mobile touch targets: min 44px for WCAG 2.5.5 */
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .quantity-input {
        height: 40px;
        font-size: 14px;
    }

    .quantity-display {
        height: 40px;
        font-size: 14px;
    }

    .remove-item-btn {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .cart-dropdown__header,
    .cart-dropdown__items,
    .cart-dropdown__footer {
        padding: 16px;
    }

    .cart-dropdown__actions {
        gap: 12px;
    }
}

/* ===== SLIDE-IN SHOPPING CART (Supercell-inspired) ===== */

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Slide-in Cart Panel */
.cart-slidein {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height - accounts for mobile browser UI */
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-slidein.active {
    transform: translateX(0);
}

/* Mobile: Full Screen */
@media (max-width: 768px) {
    .cart-slidein {
        width: 100%;
    }
}

/* Cart Header (Dark Green) */
.cart-slidein__header {
    background: #004D45;
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 77, 69, 0.15);
}

.cart-slidein__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-slidein__icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-slidein__icon-wrapper svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.cart-slidein__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #f97316;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #004D45;
}

.cart-slidein__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.cart-slidein__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0; /* Hide original character - using ::before instead */
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
    /* Ensure perfect centering for rotation animation */
    flex-shrink: 0;
    position: relative;
    font-family: inherit;
    text-align: center;
    vertical-align: middle;
}

/* Fix optical centering of × character */
.cart-slidein__close::before {
    content: '×';
    display: block;
    font-size: 28px;
    line-height: 1;
    /* Fine-tune position to account for font metrics */
    position: relative;
    top: -1px; /* Adjust vertical centering for perfect optical alignment */
}

.cart-slidein__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    /* Ensure rotation happens around the center point */
    transform-origin: center center;
}

/* Cart Main Content */
.cart-slidein__main {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #f9fafb;
}

/* Scrollbar Styling */
.cart-slidein__main::-webkit-scrollbar {
    width: 8px;
}

.cart-slidein__main::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.cart-slidein__main::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cart-slidein__main::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cart Footer */
.cart-slidein__footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px 24px;
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* Dynamic padding for mobile browser URL bar */
    padding-bottom: calc(20px + var(--safe-area-inset-bottom, 0px));
}

.cart-slidein__footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cart-slidein__subtotal-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.cart-slidein__subtotal-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.cart-slidein__shipping-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.3;
}

.cart-slidein__footer-right {
    display: flex;
    align-items: center;
}

.cart-slidein__checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #004D45;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.cart-slidein__checkout-btn:hover {
    background: #003830;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 77, 69, 0.2);
}

.cart-slidein__checkout-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}

/* Cart Item Styles (reuse existing) */
.cart-slidein .cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.cart-slidein .cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-slidein .cart-item:last-child {
    margin-bottom: 0;
}

.cart-slidein .cart-item__image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
}

.cart-slidein .cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-slidein .cart-item__details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-slidein .cart-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cart-slidein .cart-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.cart-slidein .cart-item__name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.cart-slidein .cart-item__name-link:hover {
    color: #004D45;
}

.cart-slidein .remove-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-slidein .remove-item-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.cart-slidein .cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.cart-slidein .item-manufacturer,
.cart-slidein .item-size {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.cart-slidein .cart-item__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 12px;
    gap: 16px;
    /* Quantity selector left, price right */
}

/* Quantity Controls */
.cart-slidein .quantity-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.cart-slidein .quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;
}

.cart-slidein .quantity-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.cart-slidein .quantity-display {
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Pricing - aligned with quantity controls */
.cart-slidein .cart-item__pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.cart-slidein .item-unit-price {
    display: block;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.3;
}

.cart-slidein .item-prices {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
}

.cart-slidein .item-original-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 13px;
}

.cart-slidein .item-total-price {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1;
}

/* Empty Cart State */
.cart-slidein .empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.cart-slidein .empty-cart__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #cbd5e1;
}

.cart-slidein .empty-cart__title {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px;
}

.cart-slidein .empty-cart__message {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px;
    line-height: 1.5;
}

.cart-slidein .empty-cart__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #004D45;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-slidein .empty-cart__cta:hover {
    background: #003830;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 77, 69, 0.2);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cart-slidein__header {
        padding: 16px 20px;
        /* Account for safe area on notched devices */
        padding-top: max(16px, env(safe-area-inset-top, 16px));
    }

    .cart-slidein__main {
        padding: 16px 20px;
    }

    .cart-slidein__footer {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        /* Mobile browser UI safe area */
        padding-bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
        /* Add margin-bottom to create space above viewport bottom */
        margin-bottom: 0;
        /* Ensure footer stays above mobile URL bar */
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        /* Add shadow for better visibility when scrolling */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .cart-slidein__footer-left {
        align-items: center;
        text-align: center;
    }

    .cart-slidein__checkout-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        /* Ensure button is always clickable */
        position: relative;
        z-index: 11;
    }

    .cart-slidein .cart-item {
        padding: 12px;
    }

    .cart-slidein .cart-item__image {
        width: 60px;
        height: 60px;
    }

    .cart-slidein .cart-item__footer {
        gap: 12px;
        margin-top: 10px;
    }

    .cart-slidein .item-total-price {
        font-size: 15px;
    }

    .cart-slidein__subtotal-amount {
        font-size: 28px;
    }

    /* Slide-in cart: mobile touch targets */
    .cart-slidein .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .cart-slidein .quantity-display {
        min-width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .cart-slidein .remove-item-btn {
        width: 40px;
        height: 40px;
    }

    /* Add extra padding to the bottom of the main content area */
    .cart-slidein__main {
        /* Ensure content doesn't get hidden behind footer */
        padding-bottom: 180px; /* Height of footer + extra space */
    }
}

/* Animation improvements */
@media (prefers-reduced-motion: no-preference) {
    .cart-slidein {
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .cart-overlay {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}