
.cart-icon{
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    position: relative;
}

.cart-icon .cart-count {
    background-color: var(--bg-green);
    color: var(--black);
    padding: 2px 5px;
    border-radius: 50%;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-gray);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}
.cart-drawer.is-open {
    transform: translateX(0);
}
.drawer-header {
    min-height: 80px;
    max-height: 80px;
    background-color: var(--bg-gray);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--text-white);
}
.drawer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white); /* slate-800 */
}
.close-btn {
    transition-property: color;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.close-btn:hover {
    color: #475569; /* hover:text-slate-600 */
}
.close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #38bdf8; /* focus:ring-2 focus:ring-sky-500 */
}
.cart-items-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-color: var(--bg-black) var(--bg-gray);
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
}
.item-image {
    border-radius: 8px;
    width: 5rem;
    height: 5rem; /* h-20 */
    object-fit: cover;
}
.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.item-name {
    font-size: 1rem;
    text-transform: uppercase;
}
.item-category, .item-quantity, .item-price {
    font-size: 1rem;
    color: var(--text-white);
}
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.empty-cart span {
    color: var(--text-white);
}
.empty-cart img {
    max-width: 200px;
    height: auto;
}

.drawer-footer {
    /* border-top: 1px solid var(--text-white); */
    padding: 1rem;
}
.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.total-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white); /* slate-700 */
}
.total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white); /* sky-600 */
}
.checkout-btn-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
a.checkout-btn-proceed, a.checkout-btn-continue , a.checkout-btn-proceed-disabled{
    text-decoration: none;
    width: 100%;
    padding: 0.75rem 1rem;
    outline: none;
    box-shadow: none;
    border: none;
    text-align: center;
}
a.checkout-btn-proceed {
    background-color: var(--bg-green);
    color: var(--text-black);
}
a.checkout-btn-proceed-disabled {
    background-color: #2E4B2E;
    color: var(--text-black);
    cursor: not-allowed;
}
a.checkout-btn-continue {
    background-color: var(--bg-gray);
    color: var(--bg-green);
}

@media (max-width: 1024px){

    .cart-icon{
        display: none;
    }

}

