/* Mộc Mạc Garden - Main Styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFBF0; /* Kem nhạt hơn để nhất quán với footer */
    color: #3A3A3A;
    /* Add padding to the bottom to prevent content from being obscured by the bottom nav */
    padding-bottom: 80px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.bg-primary { background-color: #4A634D; }
.bg-primary-dark { background-color: #3B503D; }
.text-primary { color: #4A634D; }
.text-primary-dark { color: #3B503D; }
.border-primary { border-color: #4A634D; }

.btn-primary {
    background-color: #4A634D;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #3B503D;
}

.btn-secondary {
    background-color: transparent;
    color: #4A634D;
    border: 1px solid #4A634D;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #4A634D;
    color: #FFFFFF;
}

.badge {
    background-color: #E8F5E9;
    color: #388E3C;
}

/* Hide bottom nav on medium screens and up */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    #bottom-navigation {
        display: none;
    }
}

/* Product card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* FAB Button Styles */
.fab-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.fab-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A634D 0%, #3B503D 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(74, 99, 77, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.fab-button:hover {
    background: linear-gradient(135deg, #3B503D 0%, #2E4031 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(74, 99, 77, 0.4);
    animation: none;
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #4A634D;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.fab-menu-item:hover {
    background-color: #3B503D;
    transform: scale(1.1);
}

.fab-menu-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-menu-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10001;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
    background-color: #10B981;
}

.notification.error {
    background-color: #EF4444;
}

.notification.info {
    background-color: #3B82F6;
}

/* FAB Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 6px 20px rgba(74, 99, 77, 0.3), 0 0 0 0 rgba(74, 99, 77, 0.4);
    }
    70% {
        box-shadow: 0 6px 20px rgba(74, 99, 77, 0.3), 0 0 0 10px rgba(74, 99, 77, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(74, 99, 77, 0.3), 0 0 0 0 rgba(74, 99, 77, 0);
    }
}