/**
 * ALP Masterpiece Side Drawer Styles
 * Titanium 3.0 Edition - Glassmorphism & Premium Layout
 */

/* Overlay */
.alp-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: flex-end;
    transition: opacity 0.3s ease;
}

/* Content Panel */
.alp-drawer-content {
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: alp-slide-in-right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', 'Inter', sans-serif;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes alp-slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Header */
.alp-drawer-header {
    padding: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alp-drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.alp-close-drawer {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.alp-close-drawer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Body */
.alp-drawer-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Cart Item Rows */
.alp-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alp-cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.alp-cart-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alp-cart-item-icon {
    font-size: 20px;
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alp-cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quantity Controls */
.alp-qty-controls {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 2px;
}

.alp-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.alp-qty-btn:hover {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.alp-qty-val {
    width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

/* Stats Section */
.alp-drawer-stats {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.alp-drawer-msg {
    font-size: 13px;
    color: #475569;
    text-align: center;
    margin-bottom: 16px;
}

.alp-btn-view-cart {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2fa122 0%, #1d7a15 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(47, 161, 34, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alp-btn-view-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(47, 161, 34, 0.3);
}

/* Marketing Banner - High Impact */
.alp-marketing-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px dashed #fb923c;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    color: #9a3412;
    line-height: 1.4;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.1);
}

/* Upsells */
.alp-upsell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.alp-upsell-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.alp-upsell-item.alp-fits {
    border: 1.5px solid #86efac;
    background: #f0fdf4;
}

.alp-upsell-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    animation: alp-pulse 2s infinite;
}

@keyframes alp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.alp-upsell-img {
    width: 100%;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.alp-upsell-name {
    font-size: 10px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    height: 24px;
    overflow: hidden;
    line-height: 1.2;
}

.alp-upsell-price {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.alp-upsell-add {
    width: 100%;
    padding: 6px;
    font-size: 9px;
    font-weight: 800;
    border: none;
    background: #0f172a;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.alp-upsell-add:hover {
    background: #2fa122;
    transform: scale(1.05);
}
