/* 
 * CliipsStore Cart Drawer Styling 
 * Aligned with cs-cart-drawer classes
 */

.cs-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.3s;
    pointer-events: none;
}

.cs-cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.cs-cart-drawer__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.cs-cart-drawer.is-open .cs-cart-drawer__backdrop {
    opacity: 1;
}

.cs-cart-drawer__panel {
    position: absolute;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow: hidden;
}

.cs-cart-drawer.is-open .cs-cart-drawer__panel {
    right: 0;
}

.cs-cart-drawer__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.cs-cart-drawer__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
}

.cs-cart-drawer__count-badge {
    color: var(--cs-brand-accent, #68A272);
}

.cs-cart-drawer__close-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.cs-cart-drawer__close-btn:hover {
    color: #000;
}

.cs-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cs-cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.cs-cart-item__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cs-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cs-cart-item__details {
    flex: 1;
}

.cs-cart-item__name-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.cs-cart-item__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.cs-cart-item__price {
    font-weight: 700;
    color: var(--cs-brand-accent, #68A272);
}

.cs-cart-item__attribute {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.cs-cart-item__qty {
    font-size: 0.85rem;
    color: #888;
}

.cs-cart-drawer__empty {
    text-align: center;
    padding: 40px 20px;
}

.cs-cart-drawer__empty-icon {
    margin-bottom: 15px;
    color: #ccc;
}

.cs-cart-drawer__footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.cs-cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.cs-cart-summary__row--total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: 800;
    font-size: 1.1rem;
    color: #000;
}

.cs-cart-summary__total-value {
    color: var(--cs-brand-accent, #68A272);
}

.cs-cart-drawer__actions {
    margin-top: 20px;
}

.cs-btn-brand--full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: var(--cs-brand-accent, #68A272);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.cs-btn-brand--full:hover {
    background: #568a5e;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .cs-cart-drawer__panel {
        width: 100%;
    }
}
