/* Custom Styles for Plaisir'n Beignets */

/* Enable smooth scrolling globally */
html {
    scroll-behavior: smooth;
}

/* Beignet pattern background */
.beignet-pattern {
    background-image: radial-gradient(#D4A373 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

/* Ensure section wrappers don't interfere with layout */
#navigation-section {
    display: contents;
}

/* Ensure sticky navigation works properly */
nav[class*="sticky"] {
    position: sticky !important;
    top: 0 !important;
}

/* Party size box selection styling */
.party-size-box {
    transition: all 0.3s ease;
}

.party-size-box:active {
    transform: scale(0.98);
}

.party-size-selected {
    position: relative;
}

/* Shopping Cart Modal */
#cart-modal {
    max-width: 95vw;
    backdrop-filter: blur(8px);
}

/* Cart header styling - ensure proper contrast */
#cart-modal .bg-white {
    background-color: rgba(255, 255, 255, 0.98);
}

.dark #cart-modal .dark\:bg-gray-900 {
    background-color: rgba(31, 29, 27, 0.98) !important;
}

@media (max-width: 640px) {
    #cart-modal {
        width: calc(100vw - 2rem);
        right: 1rem;
        top: 6rem;
    }
}

/* Cart scrollbar styling */
#cart-items::-webkit-scrollbar {
    width: 4px;
}

#cart-items::-webkit-scrollbar-track {
    background: transparent;
}

#cart-items::-webkit-scrollbar-thumb {
    background: rgba(212, 163, 115, 0.3);
    border-radius: 2px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 163, 115, 0.5);
}

/* Add to cart button animation */
.add-to-cart-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-to-cart-btn:active {
    transform: scale(0.92);
}

/* Cart button animations */
.increase-qty-btn,
.decrease-qty-btn,
.remove-item-btn {
    transition: all 0.2s ease;
}

.increase-qty-btn:active,
.decrease-qty-btn:active {
    transform: scale(0.9);
}

/* Cart modal entrance animation */
#cart-modal.translate-x-0 {
    animation: slideInSmooth 0.35s cubic-bezier(0.34, 1.26, 0.64, 1);
}

@keyframes slideInSmooth {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

