/* Cart Page Custom Styles based on Figma */
body.cart_page {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.ec-cartOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(14, 29, 66, 0.60);
    display: flex;
    justify-content: flex-end;
    z-index: 9999;
    overflow: hidden;
}

.ec-cartSidebar {
    width: 345px;
    height: 100vh;
    background-color: #fffef3;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.ec-cartSidebar__header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #cfd2d9;
    flex-shrink: 0;
}

.ec-cartSidebar__headerLeft {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ec-cartSidebar__icon {
    width: 44px;
    height: 50px;
}

.ec-cartSidebar__title {
    font-family: 'Quicksand', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #0e1d42;
    margin: 0;
    line-height: 1;
}

.ec-cartSidebar__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e1d42;
}

/* Empty State */
.ec-cartSidebar__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 49px 24px 26px;
}

.ec-cartSidebar__emptyText {
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    color: #6e778e;
    text-align: center;
    margin: 0;
    flex: 1;
}

.ec-cartSidebar__emptyBtn {
    background-color: #85a443;
    color: #fffef3;
    padding: 12px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.ec-cartSidebar__emptyBtn:hover {
    opacity: 0.9;
    color: #fffef3;
    text-decoration: none;
}

/* Filled State */
.ec-cartSidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ec-cartItem {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px;
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
}

.ec-cartItem__image {
    width: 80px;
    height: 150px;
    object-fit: contain;
    background-color: transparent;
    flex-shrink: 0;
}

.ec-cartItem__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
}

.ec-cartItem__headerRow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-cartItem__name {
    font-family: 'Andale Mono', monospace;
    font-size: 16px;
    color: #0e1d42;
    margin: 0;
    line-height: 1.5;
    padding-right: 24px; /* Space for delete icon */
}

.ec-cartItem__delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #0e1d42;
    transition: opacity 0.2s ease;
    position: absolute;
    top: 11px;
    right: 18px;
    width: 14px;
    height: 14px;
}

.ec-cartItem__delete:hover {
    opacity: 0.7;
}

.ec-cartItem__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #0e1d42;
    margin: 0;
    line-height: normal;
}

.ec-cartItem__qtyRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ec-cartItem__qtyWrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ec-cartItem__qtyBtn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #0e1d42;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0e1d42;
    text-decoration: none;
    box-sizing: border-box;
}

.ec-cartItem__qtyBtn:hover {
    background-color: rgba(14, 29, 66, 0.1);
}

.ec-cartItem__qtyVal {
    font-family: 'Andale Mono', monospace;
    font-size: 20px;
    color: #0e1d42;
    line-height: 1.6;
}

/* Footer (Subtotal and Checkout) */
.ec-cartSidebar__footer {
    padding: 20px 24px;
    border-top: 1px solid #9fa5b3;
    flex-shrink: 0;
    background-color: #fffef3;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.ec-cartSidebar__subtotal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.ec-cartSidebar__subtotalLabel {
    font-family: 'Quicksand', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #0e1d42;
    margin: 0;
    line-height: 1;
}

.ec-cartSidebar__subtotalValue {
    font-family: 'Quicksand', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #0e1d42;
    margin: 0;
    line-height: 1;
}

.ec-cartSidebar__footerActions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ec-cartSidebar__checkoutBtn,
.ec-cartSidebar__continueBtn {
    background-color: #85a443;
    color: #fffef3;
    padding: 12px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ec-cartSidebar__checkoutBtn:hover,
.ec-cartSidebar__continueBtn:hover {
    opacity: 0.9;
    color: #fffef3;
}

