/* Side Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.cart-overlay.show {
    display: block;
}

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

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

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

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

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.cart-item-price {
    font-weight: 700;
    color: #333;
}

.cart-item-mrp {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-left: 5px;
}

/* Badges */
.badge-discount {
    background: #FF4747;
    color: white;
    padding: 1px 5px !important;
    border-radius: 3px;
    font-size: 10px !important;
    font-weight: 700;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.badge-free-shipping {
    background: #81c408;
    color: white;
    padding: 1px 5px !important;
    border-radius: 3px;
    font-size: 10px !important;
    font-weight: 700;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.badge-out-of-stock {
    background: #dc3545;
    color: white;
    padding: 1px 5px !important;
    border-radius: 3px;
    font-size: 10px !important;
    font-weight: 700;
    position: absolute;
    top: 28px;
    right: 10px;
    z-index: 10;
}

.savings-label {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

/* Quantity Control in Drawer */
.drawer-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.drawer-qty button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    transition: 0.2s;
}

.drawer-qty button:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.drawer-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: #FF4747;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}

.cart-item-remove:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

/* Variant Pills in Storefront */
.variant-pills {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.variant-pill {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    background: white;
    color: #666;
}

.variant-pill:hover {
    border-color: #81c408;
    color: #81c408;
}

.variant-pill.active {
    background: #45595b;
    color: white;
    border-color: #45595b;
}