/* ============================================
   SIDE CART DRAWER
============================================ */

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

/* Drawer */
.sahoma-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: "EB Garamond", serif;
}
.sahoma-cart-drawer.active {
    transform: translateX(0);
}

/* Header */
.sahoma-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px 0 25px;
    flex-shrink: 0;
}
.sahoma-cart-tabs {
    display: flex;
    gap: 25px;
}
.sahoma-cart-tab {
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0 10px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-transform: uppercase;
}
.sahoma-cart-tab.active {
    color: #000;
    border-bottom-color: #000;
}
.sahoma-cart-tab .tab-count {
    font-family: "Bebas Neue", sans-serif;
}
.sahoma-cart-tab .tab-wishlist-icon {
    margin-left: 5px;
}
.sahoma-cart-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
}

/* Shipping progress bar */
.sahoma-shipping-bar {
    padding: 15px 25px;
    flex-shrink: 0;
}
.sahoma-shipping-text {
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    text-align: center;
    font-family: "EB Garamond", serif;
}
.sahoma-shipping-text strong {
    font-weight: 600;
}
.sahoma-shipping-track {
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}
.sahoma-shipping-fill {
    height: 100%;
    background: #B46A55;
    transition: width 0.5s ease;
    max-width: 100%;
}
.sahoma-shipping-complete {
    font-size: 14px;
    color: #B46A55;
    text-align: center;
    font-family: "EB Garamond", serif;
}

/* Tab panels */
.sahoma-cart-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    flex-direction: column;
}
.sahoma-cart-panel.active {
    display: flex;
}

/* Cart items list */
.sahoma-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px;
}

/* Single cart item */
.sahoma-cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sahoma-cart-item:last-child {
    border-bottom: none;
}
.sahoma-cart-item-image {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
}
.sahoma-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sahoma-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sahoma-cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.sahoma-cart-item-name {
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-decoration: none;
}
.sahoma-cart-item-name:hover {
    text-decoration: underline;
}
.sahoma-cart-item-price {
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    margin-left: 10px;
}

/* Select fields */
.sahoma-cart-item-field {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sahoma-cart-item-field label {
    font-size: 14px;
    color: #000;
    font-weight: 500;
    font-family: "EB Garamond", serif;
    min-width: 65px;
}
.sahoma-cart-item-field select {
    font-family: "EB Garamond", serif;
    font-size: 14px;
    padding: 4px 25px 4px 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
}

/* Actions row */
.sahoma-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.sahoma-cart-item-remove {
    font-family: "Bebas Neue", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
}
.sahoma-cart-item-remove:hover {
    text-decoration: underline;
}
.sahoma-cart-item-wishlist {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.sahoma-cart-item-wishlist svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #000;
    stroke-width: 1.5;
    transition: fill 0.2s ease;
}
.sahoma-cart-item-wishlist:hover svg,
.sahoma-cart-item-wishlist.added svg {
    fill: #000;
}

/* Footer / Commander button */
.sahoma-cart-footer {
    padding: 20px 25px;
    flex-shrink: 0;
}
.sahoma-cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px 0 13px 0;
    background: #000;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid #000;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.sahoma-cart-checkout-btn:hover {
    background: #fff;
    color: #000;
}

/* Empty cart */
.sahoma-cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 16px;
    color: #999;
    font-family: "EB Garamond", serif;
    padding: 40px 25px;
    text-align: center;
}

/* ============================================
   WISHLIST TAB
============================================ */
.sahoma-wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px;
}
.sahoma-wishlist-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sahoma-wishlist-item:last-child {
    border-bottom: none;
}
.sahoma-wishlist-item-image {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
}
.sahoma-wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sahoma-wishlist-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sahoma-wishlist-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.sahoma-wishlist-item-name {
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-decoration: none;
}
.sahoma-wishlist-item-name:hover {
    text-decoration: underline;
}
.sahoma-wishlist-item-price {
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    margin-left: 10px;
}
.sahoma-wishlist-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.sahoma-wishlist-item-remove {
    font-family: "Bebas Neue", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
}
.sahoma-wishlist-item-remove:hover {
    text-decoration: underline;
}
.sahoma-wishlist-item-add-cart {
    font-family: "Bebas Neue", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    background: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid #000;
    padding: 6px 12px 4px 12px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.sahoma-wishlist-item-add-cart:hover {
    background: #fff;
    color: #000;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 500px) {
    .sahoma-cart-drawer {
        width: 100%;
    }
}

/* Hide default Elementor mini cart */
.elementor-menu-cart--items .elementor-menu-cart__wrapper,
.elementor-menu-cart__main {
    display: none !important;
}
