/* Sidebar Layout */
#osb-side-cart {
    position: fixed;
    right: -450px;
    top: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#osb-side-cart.open { right: 0; }
#osb-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 99998;
}

/* Header */
.osb-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0; 
}
.osb-header h3 { margin: 0; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}
#osb-close { cursor: pointer; display: flex; align-items: center; color: #888; transition: color 0.2s;}
#osb-close:hover { color: #000; }

/* Cart Content Area */
#osb-cart-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.osb-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Product Items */
.osb-item { 
    display: flex; 
    margin-bottom: 24px; 
    align-items: flex-start;
}
.osb-item-img {
    width: 70px;
    height: 70px;
    margin-right: 16px;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}
.osb-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osb-item-details { flex: 1; }
.osb-item-title { margin: 0 0 8px 0; font-size: 14px; font-weight: 500; color: #333; line-height: 1.3;}
.osb-qty-row { display: flex; justify-content: space-between; font-size: 13px; color: #666; margin-bottom: 4px;}
.osb-price { font-weight: 500; color: #000; }
.osb-free-row .osb-qty { color: #2ecc71; font-weight: 600; }
.osb-free-badge { background: #e8f8f0; color: #2ecc71; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: bold; letter-spacing: 0.5px;}

/* Totals Footer */
.osb-totals-container {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.osb-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}
.osb-discount-row { color: #2ecc71; font-weight: 500; }
.osb-final-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* Buttons & Triggers */
.osb-btn { 
    display: block; 
    background: #000; 
    color: #fff !important; 
    text-align: center; 
    padding: 16px; 
    text-decoration: none; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: background 0.3s;
}
.osb-btn:hover { background: #333; }
.osb-checkout-btn { margin: 0 24px 24px 24px; }
.osb-empty-state { text-align: center; padding: 40px 24px; color: #888; }
.osb-empty-state p { margin-bottom: 24px; }

/* Header Icon */
.osb-cart-icon-wrapper { cursor: pointer; position: relative; display: inline-flex; align-items: center;}
.osb-count { 
    background: #000; color: #fff; border-radius: 50%; 
    width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: bold; position: absolute; top: -6px; right: -8px; 
}
/* Delete Button & Item Header */
.osb-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.osb-item-header .osb-item-title {
    margin: 0;
    padding-right: 10px;
}
.osb-remove-item {
    cursor: pointer;
    color: #999;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 4px;
}
.osb-remove-item:hover {
    color: #ff4757;
}

/* Pricing Display (Sale vs Regular) */
.osb-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.osb-regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}
.osb-sale-price {
    color: #e74c3c;
    font-weight: 600;
}