* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2d5016;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-main {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.85;
    margin-left: -0.3rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-sub {
        display: none;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        order: 3;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .language-selector {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .cart-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        min-height: 36px;
    }
    
    .register-link {
        background: rgba(255,255,255,0.3);
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Keep all navigation visible on mobile */
    .nav-links a:not(.cart-btn) {
        display: inline-block;
    }
}

.cart-btn {
    background: #4a7c2c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    min-height: 44px;
}

.cart-btn:hover {
    background: #5a8c3c;
}

.cart-btn:active {
    transform: scale(0.98);
}

.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
}

.plant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
    touch-action: manipulation;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.plant-card:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .plant-card {
        border-radius: 10px;
    }
}

.plant-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .plant-image {
        height: 180px;
    }
}

.plant-info {
    padding: 1.2rem;
}

.plant-name {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: #2d5016;
}

.plant-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 3vw, 0.9rem);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .plant-info {
        padding: 1rem;
    }
    
    .plant-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.plant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plant-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a7c2c;
}

.add-to-cart-btn {
    background: #4a7c2c;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    touch-action: manipulation;
    min-height: 44px;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: #5a8c3c;
}

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

@media (max-width: 600px) {
    .add-to-cart-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
}

@media (max-width: 600px) {
    .cart-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
        border-radius: 12px 12px 0 0;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.close:hover {
    color: #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    margin-top: 1.5rem;
    text-align: right;
    font-size: 1.3rem;
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: #4a7c2c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 50px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #5a8c3c;
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .cart-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .plant-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}

/* iPhone Pro Max and similar large phones */
@media (max-width: 430px) {
    .plants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.details-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .details-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.detail-info {
    padding: 2rem;
}

.detail-description {
    color: #666;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: #4a7c2c;
    margin: 1.5rem 0;
}

.care-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.care-info h3 {
    margin-bottom: 1rem;
    color: #2d5016;
}

.care-item {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.care-item strong {
    display: inline-block;
    width: 120px;
    color: #333;
}

.detail-add-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .details-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        border-radius: 12px 12px 0 0;
        height: 300px;
    }
    
    .detail-info {
        padding: 1.5rem;
    }
    
    .care-item strong {
        display: block;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    .detail-image {
        height: 250px;
    }
    
    .detail-info {
        padding: 1.2rem;
    }
    
    .detail-price {
        font-size: 1.8rem;
    }
    
    .care-info {
        padding: 1.2rem;
    }
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: #1f3d0f;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .plant-card {
    background: #2d2d2d;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.dark-mode .plant-name {
    color: #7cb342;
}

body.dark-mode .plant-description {
    color: #b0b0b0;
}

body.dark-mode .cart-content,
body.dark-mode .details-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .care-info {
    background: #3a3a3a;
}

body.dark-mode .cart-item {
    border-bottom-color: #444;
}

body.dark-mode .close {
    color: #b0b0b0;
}

body.dark-mode .close:hover {
    color: #e0e0e0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    touch-action: manipulation;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(20deg);
}

.theme-toggle:active {
    transform: scale(0.9);
}

/* Analytics Button */
.analytics-btn {
    background: #4a7c2c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    min-height: 44px;
    white-space: nowrap;
}

.analytics-btn:hover {
    background: #5a8c3c;
}

.analytics-btn:active {
    transform: scale(0.98);
}

/* Welcome Modal */
.welcome-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.welcome-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.5s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

body.dark-mode .welcome-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d5016;
}

body.dark-mode .welcome-content h2 {
    color: #7cb342;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

body.dark-mode .welcome-content p {
    color: #b0b0b0;
}

.welcome-features {
    list-style: none;
    text-align: left;
    margin: 2rem auto;
    max-width: 300px;
}

.welcome-features li {
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

body.dark-mode .welcome-features li {
    border-bottom-color: #444;
}

.welcome-features li:last-child {
    border-bottom: none;
}

.welcome-btn {
    background: linear-gradient(135deg, #4a7c2c 0%, #7cb342 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 124, 44, 0.3);
    touch-action: manipulation;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 44, 0.4);
}

.welcome-btn:active {
    transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.plant-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.details-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.details-content.modal-show {
    transform: scale(1);
    opacity: 1;
}

/* Loading state for images */
.plant-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

body.dark-mode .plant-image {
    background: linear-gradient(90deg, #2d2d2d 25%, #3a3a3a 50%, #2d2d2d 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.plant-image[src] {
    animation: none;
    background: none;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

button, .plant-card, .cart-btn, .theme-toggle {
    transition: all 0.3s ease;
}

/* Analytics Modal */
.analytics-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chart-container {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.reset-analytics-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.reset-analytics-btn:hover {
    background: #c82333;
}

/* Dark mode for analytics */
.dark-mode .analytics-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .chart-container {
    background: #1a1a1a;
}

.dark-mode .stat-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Admin Login Screen */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-box h2 {
    margin: 1rem 0;
    color: #333;
}

.login-box p {
    color: #666;
    margin-bottom: 1.5rem;
}

.login-box input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.login-box input:focus {
    outline: none;
    border-color: #2d5016;
}

.login-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #4a7c2c;
}

.error-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Dark mode for admin */
.dark-mode .login-box {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .login-box h2 {
    color: #e0e0e0;
}

.dark-mode .login-box p {
    color: #b0b0b0;
}

.dark-mode .login-box input {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

/* Floating Leaf Animation */
.leaf-svg {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: floatLeafSVG 3s ease-out forwards;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes floatLeafSVG {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5)) rotate(calc(var(--rotate) * 0.5)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate)) scale(0.8);
    }
}

/* Enhanced plant card hover */
.plant-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(45, 80, 22, 0.3);
}

.plant-card:active {
    transform: translateY(-5px) scale(1.01);
}

/* Admin Plant Management */
.admin-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.plant-management {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.add-plant-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.add-plant-form h3, .add-plant-form h4 {
    margin-bottom: 1rem;
    color: #2d5016;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d5016;
}

.form-group small {
    display: block;
    margin: 0.5rem 0;
    color: #666;
}

.submit-btn {
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #4a7c2c;
}

.plants-list {
    margin-top: 2rem;
}

.plants-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.plants-list-header h3 {
    margin: 0;
    color: #2d5016;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-weight: 600;
    color: #333;
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
}

.sort-controls select:focus {
    outline: none;
    border-color: #2d5016;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.admin-plant-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.admin-plant-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-plant-info {
    flex: 1;
}

.admin-plant-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d5016;
}

.admin-plant-info p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-plant-info .price {
    font-weight: bold;
    color: #4a7c2c;
    font-size: 1.2rem;
}

.plant-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.meta-item {
    font-size: 0.85rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.admin-plant-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.edit-btn, .delete-btn, .duplicate-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.edit-btn {
    background: #4a7c2c;
    color: white;
}

.edit-btn:hover {
    background: #5a8c3c;
}

.duplicate-btn {
    background: #667eea;
    color: white;
}

.duplicate-btn:hover {
    background: #5568d3;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.cancel-edit-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

.cancel-edit-btn:hover {
    background: #5a6268;
}

/* Dark mode for admin */
.dark-mode .plant-management {
    background: #2a2a2a;
}

.dark-mode .add-plant-form {
    background: #1a1a1a;
}

.dark-mode .form-group label {
    color: #e0e0e0;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .form-group select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .admin-plant-card {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .sort-controls label {
    color: #e0e0e0;
}

.dark-mode .sort-controls select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .meta-item {
    background: #1a1a1a;
    color: #b0b0b0;
}

.dark-mode .plants-list-header h3 {
    color: #5a8c3c;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-plant-card {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-plant-actions {
        flex-direction: row;
        width: 100%;
    }
}

/* Click Ripple Effect */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(74, 124, 44, 0.4);
    pointer-events: none;
    z-index: 9998;
    animation: rippleEffect 0.8s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Sparkle particles */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 16px;
    animation: sparkleFloat 1.5s ease-out forwards;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.5);
    }
}

/* Floating background leaves */
.bg-leaf {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    animation: floatBackground 20s infinite ease-in-out;
}

@keyframes floatBackground {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

/* Enhanced plant card animations */
.plant-card {
    position: relative;
    overflow: hidden;
}

.plant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.plant-card:hover::before {
    left: 100%;
}

/* Pulse animation on add to cart */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.add-to-cart-btn.pulse {
    animation: pulse 0.3s ease-in-out;
}

/* Hero section animated background */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* User Management Styles */
.user-management {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.user-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #2d5016;
}

.tab-btn.active {
    color: #2d5016;
    border-bottom-color: #2d5016;
}

.user-tab-content {
    animation: fadeIn 0.3s ease-in;
}

.user-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.user-card:hover {
    border-color: #2d5016;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d5016;
    font-size: 1.2rem;
}

.user-email {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.user-username {
    color: #4a7c2c;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.user-reason {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.user-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.approve-btn, .reject-btn, .revoke-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #218838;
}

.reject-btn, .revoke-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover, .revoke-btn:hover {
    background: #c82333;
}

/* Register Page Styles */
.register-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

/* Login page specific styles */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.register-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

.register-logo {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1rem;
}

.register-box h2 {
    text-align: center;
    margin: 1rem 0;
    color: #333;
}

.register-box > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.register-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.register-btn:hover {
    background: #4a7c2c;
}

.register-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.register-footer a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
}

.register-footer a:hover {
    text-decoration: underline;
}

/* Dark mode for user management */
.dark-mode .user-management {
    background: #2a2a2a;
}

.dark-mode .user-card {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .user-info h4 {
    color: #5a8c3c;
}

.dark-mode .user-reason {
    background: #1a1a1a;
    color: #b0b0b0;
}

.dark-mode .register-box {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .register-box h2 {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-actions {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .user-actions button {
        flex: 1;
        min-width: 120px;
    }
}

/* Register link styling */
.register-link {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.register-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* User menu and login styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-greeting {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.login-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.login-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Form highlight animation */
.add-plant-form {
    transition: all 0.3s ease;
}

/* Login page specific styles */
.login-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #4a7c2c;
}

/* Ensure footer is at bottom for login/register pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-screen,
.register-screen {
    flex: 1;
}

@media (max-width: 768px) {
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Payment Modal Styles */
.payment-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.payment-summary h3 {
    margin-top: 0;
    color: #2d5016;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.payment-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #2d5016;
    font-size: 1.2rem;
}

.payment-methods {
    margin: 2rem 0;
}

.payment-methods h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.payment-method-btn {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.payment-method-btn:hover {
    border-color: #2d5016;
    background: #f9f9f9;
    transform: translateX(5px);
}

.payment-icon {
    font-size: 1.5rem;
}

#stripePaymentForm {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
}

#card-element {
    padding: 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 1rem 0;
}

#card-errors {
    color: #dc3545;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.submit-payment-btn {
    width: 100%;
    background: #2d5016;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-payment-btn:hover {
    background: #4a7c2c;
}

.dark-mode .payment-summary,
.dark-mode #stripePaymentForm {
    background: #1a1a1a;
}

.dark-mode .payment-method-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .payment-method-btn:hover {
    background: #333;
    border-color: #5a8c3c;
}

.dark-mode #card-element {
    background: #2a2a2a;
    border-color: #444;
}

/* Admin Guide Styles */
.admin-guide {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.guide-nav {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.guide-tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.guide-tab-btn:hover {
    color: #2d5016;
}

.guide-tab-btn.active {
    color: #2d5016;
    border-bottom-color: #2d5016;
}

.guide-content {
    animation: fadeIn 0.3s ease-in;
}

.guide-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2d5016;
}

.guide-card h4 {
    margin-top: 0;
    color: #2d5016;
    font-size: 1.2rem;
}

.guide-card ul, .guide-card ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.guide-card li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.guide-card code {
    background: #2d5016;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.guide-card a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 600;
}

.guide-card a:hover {
    text-decoration: underline;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.alert-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.alert-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.payment-method-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #eee;
}

.payment-method-card h5 {
    margin-top: 0;
    color: #2d5016;
    font-size: 1.1rem;
}

.payment-method-card p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: #2d5016;
    color: white;
    font-weight: 600;
}

.pricing-table tr:hover {
    background: #f9f9f9;
}

/* Dark mode for guide */
.dark-mode .admin-guide {
    background: #2a2a2a;
}

.dark-mode .guide-card {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark-mode .guide-card h4 {
    color: #5a8c3c;
}

.dark-mode .alert-info {
    background: #1a2332;
    border-left-color: #2196f3;
}

.dark-mode .alert-success {
    background: #1a2e1a;
    border-left-color: #4caf50;
}

.dark-mode .alert-warning {
    background: #2e2419;
    border-left-color: #ff9800;
}

.dark-mode .payment-method-card {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .pricing-table th {
    background: #1a3010;
}

.dark-mode .pricing-table tr:hover {
    background: #333;
}

@media (max-width: 768px) {
    .guide-nav {
        flex-direction: column;
    }
    
    .guide-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .guide-tab-btn.active {
        border-left-color: #2d5016;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Selector */
.language-selector {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.language-selector:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.language-selector option {
    background: #2d5016;
    color: white;
}

/* Costa Rica Badge - Removed, now in footer */

/* Site Footer */
.site-footer {
    background: #2d5016;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.footer-text {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.5rem 0 0 0;
}

.dark-mode .site-footer {
    background: #1a3010;
}

@media (max-width: 768px) {
    .cr-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: 70px;
        right: 10px;
    }
    
    .language-selector {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}


/* Home Section Styles */
.home-section {
    padding-bottom: 3rem;
}

.cta-btn {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* Categories Section */
.categories-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.2);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: #2d5016;
}

.category-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Medicinal Facts Section */
.medicinal-facts {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
}

.medicinal-facts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.fact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fact-card h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.fact-card p {
    color: #666;
    line-height: 1.6;
}

/* Featured Plants Carousel */
.featured-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 80, 22, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #2d5016;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 2rem;
    background: white;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Plants Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2d5016;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.75rem 1.5rem;
    border: 2px solid #2d5016;
    border-radius: 10px;
    background: white;
    color: #2d5016;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-controls select:hover {
    background: #f0f8f0;
}

/* Dark Mode Adjustments */
.dark-mode .category-card,
.dark-mode .fact-card {
    background: #2a2a2a;
}

.dark-mode .medicinal-facts {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

.dark-mode .why-choose-us {
    background: #1a1a1a;
}

.dark-mode .category-card h3,
.dark-mode .fact-card h3,
.dark-mode .feature-item h3,
.dark-mode .categories-section h2,
.dark-mode .medicinal-facts h2,
.dark-mode .featured-section h2,
.dark-mode .why-choose-us h2,
.dark-mode .section-header h2 {
    color: #7fb069;
}

.dark-mode .category-card p,
.dark-mode .fact-card p,
.dark-mode .feature-item p {
    color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .categories-section h2,
    .medicinal-facts h2,
    .featured-section h2,
    .why-choose-us h2,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .categories-grid,
    .facts-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-controls select {
        width: 100%;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}


/* Background Music Player */
.music-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.music-toggle {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.music-toggle.playing {
    background: linear-gradient(135deg, #4a7c2c 0%, #7fb069 100%);
}

.music-icon {
    font-size: 1.5rem;
    animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle.playing .music-icon {
    animation: musicBounce 0.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes musicBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .music-player {
        bottom: 80px;
        right: 20px;
    }
    
    .music-toggle {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .music-text {
        display: none;
    }
    
    .music-icon {
        font-size: 1.8rem;
    }
}
