@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #f4a460;
    --secondary-color: #fad932;
    --accent-color: #ff6b35;
    --dark-color: #2c2c2c;
    --light-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #f4a460 0%, #fad932 100%);
    --gradient-dark: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Dark mode variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color-dark: #e0e0e0;
    --navbar-bg: #ffffff;
    --navbar-text: #333333;
    --footer-bg: #f8f9fa;
    --footer-text: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1{
    margin-top: 60px;
    font-size: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;

}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Section Styles */
.product_section {
    padding: 100px 0;
    position: relative;
}

.product_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(244, 164, 96, 0.1);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

/* Clickable Card Styles */
.clickable-card {
    cursor: pointer;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.clickable-card.expanded {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Card Content States */
.card-collapsed-content,
.card-expanded-content {
    transition: all 0.3s ease-in-out;
}

.card-expanded-content {
    animation: slideDown 0.4s ease-out;
}

.card-collapsed-content.slide-up {
    animation: slideUp 0.4s ease-out;
}

/* Slide Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Expand Indicator */
.expand-indicator {
    position: absolute;
    bottom: 10px;
    right: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.clickable-card:hover .expand-indicator {
    opacity: 1;
}

.clickable-card.expanded .expand-indicator {
    display: none;
}

/* Show More Button */
.show-more-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.show-more-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.show-more-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-medium);
}

/* Collapse Button */
.collapse-btn {
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.collapse-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.8rem;
}

/* Product name truncation for collapsed state only */
.card-collapsed-content .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.product-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-hero {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.btn-primary-hero {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--primary-color);
}

.btn-secondary-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}


.reserve-btn {
    background: #f4a460;
    color: #000000;
    transition: var(--transition);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin: 0 auto;
}

.reserve-btn:hover,
.reserve-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: #E9963A;
    color: #ffffff;
}

.reserve-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #666666;
    color: #000000;
}

/* Animations from homestyle.css */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Filter Styles */
.form-select {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(244, 164, 96, 0.25);
}

/* Responsive Design from homestyle.css */
@media (max-width: 1200px) {
    .product-card img {
        height: 200px;
    }
    
    .product-card-body {
        padding: 1.5rem;
    }
    
    .product-card h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .product_section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .product-card img {
        height: 180px;
    }
    
    .product-card-body {
        padding: 1.2rem;
    }

    .product-card h5 {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .reserve-btn {
        width: 100%;
        justify-content: center;
    }

    .clickable-card.expanded {
        transform: scale(1.01);
    }

    .expand-indicator {
        bottom: 5px;
        right: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .product-card img {
        height: 160px;
    }
    
    .product-card-body {
        padding: 1rem;
    }

    .product-card h5 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .reserve-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* Mobile filter dropdown improvements */
    .product_section .product-filter-dropdown {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 2rem;
    }

    .product-filter-dropdown .btn {
        width: 100%;
        text-align: left;
        font-size: 16px;
        padding: 12px 16px;
        border: 2px solid #000;
        background: #fff;
        color: #000;
        font-weight: 500;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .product-filter-dropdown .btn:hover,
    .product-filter-dropdown .btn:focus {
        background: #fff;
        color: #000;
        border-color: #000;
        box-shadow: none;
    }

    .product-filter-dropdown .dropdown-menu {
        width: 100%;
        min-width: auto;
        border: 1px solid #000;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-top: 5px;
        max-height: 250px;
        overflow-y: auto;
    }

    .product-filter-dropdown .dropdown-item {
        padding: 12px 16px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
    }

    .product-filter-dropdown .dropdown-item:last-child {
        border-bottom: none;
    }

    .product-filter-dropdown .dropdown-item:hover {
        background: #f8f9fa;
        color: #f4a460;
    }

    .product-filter-dropdown .dropdown-item.active {
        background: #f4a460;
        color: #fff;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Notification Styles - Top Center */
.notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    animation: notificationSlideDown 0.3s ease-out;
    border-left: 4px solid #f4a460;
}

/* Notification specific animation */
@keyframes notificationSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification.success {
    border-left-color: #28a745;
}

.notification.success i {
    color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.error i {
    color: #dc3545;
}

.notification.info {
    border-left-color: var(--primary-color);
}

.notification.info i {
    color: var(--primary-color);
}

.notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-dark);
}

/* Button-based Filter Styles */
.product-filter-container {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.filter-label h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.filter-buttons {
    gap: 10px;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f4a460;
    border: 2px solid #f4a460;
    border-radius: var(--border-radius);
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #E9963A;
    border-color: #E9963A;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Mobile-specific filter button styles */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
}

@media (max-width: 576px) {
    .product-filter-container {
        padding: 1rem 15px;
        margin-bottom: 2rem;
    }
    
    .filter-buttons {
        gap: 6px;
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .filter-label h5 {
        font-size: 16px;
    }
}
.product-filter-dropdown .dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 10px;
    min-width: 250px;
    position: absolute;
    z-index: 1000;
    transition: none !important;
    animation: none !important;
}

.product-filter-dropdown.show > .dropdown-menu,
.product-filter-dropdown .dropdown-menu.show {
    display: block;
}

.product-filter-dropdown .dropdown-item {
    padding: 8px 20px;
    color: #333;
    transition: all 0.2s ease;
}

.product-filter-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.product-filter-dropdown .dropdown-item.active,
.product-filter-dropdown .dropdown-item:active {
    background-color: #f4a460 !important;
    color: #fff !important;
}

/* Additional styles for dropdown button and placement */
.product-filter-dropdown .dropdown-toggle {
    color: #000 !important;  /* Set font color to black */
    border-color: #000 !important;  /* Ensure border is black if needed */
}

.product-filter-dropdown .dropdown-toggle:hover,
.product-filter-dropdown .dropdown-toggle:focus {
    color: #000 !important;
    background-color: transparent !important;
    border-color: #000 !important;
}

/* Center the dropdown and add spacing */
.product_section .product-filter-dropdown {
    margin-bottom: 5rem;  /* Add spacing below the dropdown, closer to product cards */
    display: flex;
    justify-content: center;  /* Ensure centering */
    align-items: center;
}

/* Disable all Bootstrap dropdown animations for product filter */
.product-filter-dropdown .dropdown-menu.show {
    animation: none !important;
    transition: none !important;
}

.product-filter-dropdown .dropdown-menu[data-bs-popper] {
    animation: none !important;
    transition: none !important;
}

/* Dark mode styles */
body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color-dark: #3a3a3a;
    --navbar-bg: #2a2a2a;
    --navbar-text: #e0e0e0;
    --footer-bg: #2a2a2a;
    --footer-text: #e0e0e0;
    
    background: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('../images/bee-comb-bg.png') repeat;
    background-size: 300px 300px, 300px 300px;
    background-position: center, center;
    background-attachment: fixed;
    color: var(--text-primary);
}

/* Dark mode specific styles */
body.dark-mode .navbar {
    background: var(--navbar-bg) !important;
    border-bottom-color: var(--border-color-dark) !important;
}

body.dark-mode .navbar-brand img {
    filter: brightness(1.2);
}

body.dark-mode .nav-link {
    color: var(--navbar-text) !important;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: var(--primary-color) !important;
}

body.dark-mode .dropdown-menu {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color-dark) !important;
}

body.dark-mode .dropdown-item {
    color: var(--text-primary) !important;
}

body.dark-mode .dropdown-item:hover {
    background: var(--bg-card) !important;
    color: var(--primary-color) !important;
}

body.dark-mode .text-muted {
    color: var(--text-secondary) !important;
}

body.dark-mode .product-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color-dark) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .product-card:hover {
    border-color: var(--primary-color);
}

body.dark-mode .product-filter-dropdown .dropdown-menu {
    background: var(--bg-card) !important;
    border-color: var(--border-color-dark) !important;
}

body.dark-mode .product-filter-dropdown .dropdown-item {
    color: var(--text-primary) !important;
}

body.dark-mode .product-filter-dropdown .dropdown-item:hover {
    background: var(--bg-secondary) !important;
    color: var(--primary-color) !important;
}

body.dark-mode .notification {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-left-color: var(--primary-color) !important;
}

body.dark-mode .notification.success {
    border-left-color: #28a745;
}

body.dark-mode .notification.success i {
    color: #28a745;
}

body.dark-mode .notification.error {
    border-left-color: #dc3545;
}

body.dark-mode .notification.error i {
    color: #dc3545;
}

body.dark-mode .notification.info {
    border-left-color: var(--primary-color);
}

body.dark-mode .notification.info i {
    color: var(--primary-color);
}

/* Dark mode toggle button in navbar */
.dark-mode-nav-toggle {
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(251, 191, 36, 0.1) !important;
    border: 2px solid #fbbf24 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
}

.dark-mode-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    transform: scale(1.1) !important;
}

.dark-mode-nav-toggle i {
    font-size: 1.1rem !important;
    color: #fbbf24 !important;
    transition: var(--transition) !important;
}

body.dark-mode .dark-mode-nav-toggle {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: #fbbf24 !important;
}

body.dark-mode .dark-mode-nav-toggle:hover {
    background: rgba(251, 191, 36, 0.2) !important;
}

body.dark-mode .dark-mode-nav-toggle i {
    color: #fbbf24 !important;
}