/* ==========================================================================
   🛒 XS DECOUPLED SIDE DRAWER PANEL CANVAS ENVIRONMENT
   ========================================================================== */

#xs-side-cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99999999 !important;
    display: none;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.25s cubic-bezier(0.2, 0, 0, 1) !important;
}

#xs-side-cart-overlay.is-visible {
    display: block !important;
    opacity: 1 !important;
}

.xs-side-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -380px !important;
    width: 100% !important;
    max-width: 380px !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08) !important;
    z-index: 100000000 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: right 0.25s cubic-bezier(0.2, 0, 0, 1) !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

#xs-side-cart-overlay.is-visible .xs-side-drawer {
    right: 0 !important;
}

/* --- HEADER STRUCTURAL ELEMENTS --- */
.xs-drawer-header {
    padding: 24px !important;
    border-bottom: 1px solid #edf2f7 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
}

.xs-drawer-header h3 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    letter-spacing: -0.3px !important;
}

/* --- THE SANDBOX RECEIVER WINDOW TRACK --- */
#xs-drawer-core-sandbox-shell {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
}

.xs-drawer-items-receiver {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* --- LOADING SPINNER PATTERNS --- */
.xs-sandbox-is-loading::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255,255,255,0.7) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="38" height="38" viewBox="0 0 38 38" stroke="%23bd2424"><g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="3"><circle stroke-opacity=".25" cx="18" cy="18" r="18"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"/></path></g></g></svg>') center center no-repeat !important;
    z-index: 50 !important;
}

/* --- PRODUCT CONTAINER BLOCKS --- */
.xs-drawer-item-row {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #f7fafc !important;
    position: relative !important;
    transition: opacity 0.2s ease !important;
}

.xs-drawer-img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 1px solid #edf2f7 !important;
    flex-shrink: 0 !important;
}

.xs-drawer-item-info {
    flex-grow: 1 !important;
    padding-right: 20px !important;
}

.xs-drawer-item-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.3 !important;
}

.xs-drawer-item-price {
    color: #bd2424 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

/* --- ITEM DESCRIPTION SUMMARY CARDS --- */
.xs-drawer-meta-box {
    background: #f8fafc !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
    margin-top: 8px !important;
    border: 1px solid #edf2f7 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.xs-drawer-meta-box strong {
    color: #1a202c !important;
    font-weight: 600 !important;
}

.xs-drawer-canteen-highlight {
    color: #bd2424 !important;
    font-weight: 600 !important;
}

/* --- INTERACTIVE TRASH ICONS --- */
.xs-drawer-remove-item-trigger {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    color: #cbd5e0 !important;
    text-decoration: none !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

.xs-drawer-remove-item-trigger:hover {
    color: #dc2626 !important;
}

/* --- FOOTER TOTALS AREA --- */
.xs-drawer-footer {
    padding: 24px !important;
    border-top: 1px solid #edf2f7 !important;
    background: #fafafa !important;
    margin-top: auto !important;
}

.xs-drawer-subtotal-line {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.95rem !important;
    color: #4a5568 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.xs-drawer-total-line {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    border-top: 1px solid #edf2f7 !important;
    padding-top: 15px !important;
    margin-bottom: 20px !important;
}

.xs-drawer-total-line span:last-child {
    color: #bd2424 !important;
}

.xs-drawer-action-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #bd2424 !important;
    color: #ffffff !important;
    padding: 14px 0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    box-shadow: 0 4px 12px rgba(189, 36, 36, 0.15) !important;
}

.xs-drawer-action-btn:hover {
    background: #a31e1e !important;
}

.xs-drawer-empty-notice {
    text-align: center !important;
    color: #a0aec0 !important;
    padding: 40px 0 !important;
    font-style: italic !important;
    font-size: 0.95rem !important;
}

/* ==========================================================================
   🍱 HEADER NAVIGATION COUNT ITEM COUNTER STYLE VALUES
   ========================================================================== */

.xs-menu-tray-container a {
    font-weight: 700 !important;
    color: #1a202c !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    transition: color 0.15s ease !important;
}

.xs-menu-tray-container a:hover {
    color: #bd2424 !important;
}

.xs-tray-count-badge {
    background: #bd2424 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 20px !important;
    line-height: 1 !important;
    display: inline-block !important;
    min-width: 10px !important;
    text-align: center !important;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
}

.xs-tray-count-badge.xs-badge-hidden {
    opacity: 0 !important;
    transform: scale(0) !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- THE DEDICATED FIXED HIGH-CONTRAST HEADER TRIGGER SELECTION --- */
#xs-side-cart-overlay .xs-drawer-header button#xs-close-side-drawer.xs-app-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #111111 !important;
    background: #ffffff !important;
    color: #111111 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
}

#xs-side-cart-overlay .xs-drawer-header button#xs-close-side-drawer.xs-app-close-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #111111 !important;
    display: block !important;
    margin: 0 auto !important;
    pointer-events: none !important;
    background: transparent !important;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
}

#xs-side-cart-overlay .xs-drawer-header button#xs-close-side-drawer.xs-app-close-btn:hover {
    background: #111111 !important;
    border-color: #111111 !important;
}

#xs-side-cart-overlay .xs-drawer-header button#xs-close-side-drawer.xs-app-close-btn:hover svg {
    stroke: #ffffff !important;
    transform: rotate(90deg) !important;
}

/* --- MOBILE SPECIFIC COMPRESSION HANDLERS --- */
@media (max-width: 480px) {
    .xs-side-drawer {
        max-width: 320px !important;
        right: -320px !important;
    }
}