/* 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-color: #6e778e;
    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: 'Andale Mono', monospace;
    font-size: 24px;
    color: #0e1d42;
    margin: 0;
    line-height: 1.3;
}

.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;
    width: 100%;
    padding: 16px 24px;
    border-radius: 6px;
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: block;
    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;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f2f4;
}

.ec-cartItem:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

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

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

.ec-cartItem__name {
    font-family: 'Andale Mono', monospace;
    font-size: 12px;
    color: #0e1d42;
    margin: 0;
    line-height: 1.4;
    padding-right: 12px;
}

.ec-cartItem__delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #cfd2d9;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.ec-cartItem__delete:hover {
    color: #ff4d4f;
}

.ec-cartItem__price {
    font-family: 'Avenir', sans-serif;
    font-size: 10px;
    color: #0e1d42;
    margin: 0 0 12px 0;
}

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

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

.ec-cartItem__qtyBtn:hover {
    border-color: #0e1d42;
}

.ec-cartItem__qtyVal {
    font-family: 'Avenir', sans-serif;
    font-size: 12px;
    color: #0e1d42;
    min-width: 16px;
    text-align: center;
}

/* Footer (Subtotal and Checkout) */
.ec-cartSidebar__footer {
    padding: 24px;
    border-top: 1px solid #cfd2d9;
    flex-shrink: 0;
    background-color: #fffef3;
}

.ec-cartSidebar__subtotal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ec-cartSidebar__subtotalLabel {
    font-family: 'Andale Mono', monospace;
    font-size: 16px;
    color: #0e1d42;
    margin: 0;
}

.ec-cartSidebar__subtotalValue {
    font-family: 'Andale Mono', monospace;
    font-size: 16px;
    color: #0e1d42;
    margin: 0;
}

.ec-cartSidebar__footerActions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ec-cartSidebar__checkoutBtn {
    background-color: #85a443;
    color: #fffef3;
    width: 100%;
    padding: 16px 24px;
    border-radius: 6px;
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.ec-cartSidebar__continueBtn {
    background-color: transparent;
    color: #85a443;
    border: 1px solid #85a443;
    width: 100%;
    padding: 16px 24px;
    border-radius: 6px;
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ec-cartSidebar__continueBtn:hover {
    background-color: #85a443;
    color: #fffef3;
}
