/* ==========================================
   🛒 CART STYLES
   ========================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    cursor: pointer;
    position: relative;
    user-select: none;
    color: #FDDEC8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-svg-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: var(--transition);
}

.cart-icon:hover .cart-svg-icon {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 34, 20, 0.45);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--surface-color);
    z-index: 1002;
    box-shadow: -5px 0 20px rgba(58, 34, 20, 0.12);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.cart-overlay.open {
    display: block;
    opacity: 1;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: var(--border-color);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.cart-item-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Shown when an item has no price set */
.cart-contact-price {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--text-muted);
    font-style: italic;
}

/* Appended to cart total when unpriced items exist */
.cart-total-note {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 4px;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-family: var(--font-title);
}

