/* Sticky Product Bar (Mobile Optimized) */
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    /* Hidden by default until JS creates it or toggles it */
    border-top: 1px solid var(--light-gray);
}

.sticky-product-bar.visible {
    transform: translateY(0);
}

.sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sticky-product-info {
    display: flex;
    flex-direction: column;
}

.sticky-product-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-brown);
}

.sticky-product-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

.sticky-buy-btn {
    background-color: var(--dark-green);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.sticky-buy-btn:hover {
    background-color: var(--primary-brown);
}

/* Dark Mode Overrides */
[data-theme="dark"] .sticky-product-bar {
    background-color: var(--cream);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Only (or optimize for all) */
@media (max-width: 768px) {
    .sticky-product-bar {
        display: block;
        /* Enabled on mobile */
    }
}

/* On Desktop, we might want it too, or keep it subtle */
@media (min-width: 769px) {
    .sticky-product-bar {
        display: block;
        padding: 15px 40px;
    }

    .sticky-product-name {
        font-size: 1.2rem;
    }
}