/* =============================================
 * Custom Cart Widget Styles
 * Matches ws-kit-flow design system
 * =========================================== */

/* Cart Icon & Badge */
.ws-cart-icon-wrapper {
    display: inline-block !important;
    position: relative !important;
}

.ws-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    color: inherit !important;
    text-decoration: none !important;
    position: relative !important;
    cursor: pointer !important;
}

/* SVG Cart Icon */
.ws-cart-svg {
    width: 30px !important;
    height: 30px !important;
    transition: all 0.3s ease !important;
}

.ws-cart-svg-path {
    fill: #232936 !important;
    stroke: #232936 !important;
    transition: fill 0.3s ease, stroke 0.3s ease !important;
}

.ws-cart-icon:hover .ws-cart-svg-path {
    fill: #9FA3BB !important;
    stroke: #9FA3BB !important;
}

.ws-cart-count {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #D52632 !important;
    color: #fff !important;
    font-family: "mozaic-geo", Montserrat, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 4px !important;
    line-height: 1 !important;
}

/* Off-Canvas Panel */
.ws-cart-offcanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    pointer-events: none !important;
}

.ws-cart-offcanvas.is-open {
    pointer-events: auto !important;
}

/* Overlay */
.ws-cart-offcanvas__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.ws-cart-offcanvas.is-open .ws-cart-offcanvas__overlay {
    opacity: 1 !important;
}

/* Panel */
.ws-cart-offcanvas__panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 100% !important;
    background: #fff !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.ws-cart-offcanvas.is-open .ws-cart-offcanvas__panel {
    transform: translateX(0) !important;
}

/* Header */
.ws-cart-offcanvas__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 25px !important;
    border-bottom: 1px solid #9FA3BB !important;
}

.ws-cart-offcanvas__header h3 {
    margin: 0 !important;
    font-family: "mozaic-geo", Montserrat, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #414141 !important;
}

.ws-cart-offcanvas__close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #9FA3BB !important;
    transition: color 0.2s ease !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ws-cart-offcanvas__close:hover {
    color: #414141 !important;
}

/* Content */
.ws-cart-offcanvas__content {
    flex: 1 !important;
    padding: 40px 25px !important;
    overflow-y: auto !important;
}

/* Empty State */
.ws-cart-empty-state {
    text-align: center !important;
    padding: 40px 20px !important;
}

.ws-cart-empty-icon {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 30px !important;
    display: block !important;
    opacity: 0.1 !important;
}

.ws-cart-empty-path {
    fill: #9FA3BB !important;
    stroke: #9FA3BB !important;
}

.ws-cart-empty-state p {
    font-family: "mozaic-geo", Montserrat, sans-serif !important;
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    color: #414141 !important;
    margin: 0 !important;
    font-weight: 600 !important;
}
.ws-cart-empty-state p:first-of-type {
    margin-bottom: 0 !important;
}

.ws-cart-empty-state p:last-of-type {
    margin-bottom: 32px !important;
}

.ws-cart-shop-btn {
    background: #D52632 !important;
    background-color: #D52632 !important;
    color: #fff !important;
    border: solid !important;
    border-width: 0px !important;
    border-color: transparent !important;
    border-radius: 999px !important;
    padding: 14px 24px !important;
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    font-family: "mozaic-geo", Montserrat, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    cursor: pointer !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    text-align: center !important;
}

.ws-cart-shop-btn:hover {
    background: #232936 !important;
    background-color: #232936 !important;
    color: #fff !important;
}

/* Prevent body scroll when off-canvas is open */
body.ws-cart-offcanvas-open {
    overflow: hidden !important;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .ws-cart-offcanvas__panel {
        max-width: 100% !important;
    }

    .ws-cart-offcanvas__header {
        padding: 16px 20px !important;
    }

    .ws-cart-offcanvas__header h3 {
        font-size: 1.25rem !important;
    }

    .ws-cart-offcanvas__content {
        padding: 30px 20px !important;
    }

    .ws-cart-empty-icon {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 24px !important;
    }

    .ws-cart-empty-state p {
        font-size: 0.9375rem !important;
    }

    .ws-cart-shop-btn {
        padding: 12px 24px !important;
        font-size: 0.875rem !important;
        max-width: 100% !important;
    }
}
