@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    font-family: "Inter", sans-serif;
}

select {
    background-image: url('./assets/down-arrow.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px;
    padding-right: 30px;
}


.banner-area:before,
.banner-area:after {
    position: absolute;
    content: '';
    width: 546px;
    height: 100%;
    bottom: 0;
    background-repeat: no-repeat;
}

.banner-area:before {
    left: 0;
    background-image: url(./assets/hero-leaf1.png);
}

.banner-area:after {
    right: 0;
    background-image: url(./assets/hero-leaf2.png);
}

.categories ul li {
    transition: all ease .2s;
}

.categories ul li.active,
.categories ul li:hover {
    background-color: #15803d;
    color: #FFF;
    border-radius: 4px;
}

/* Mobile-first responsive design */
@media (max-width: 640px) {
    .banner-area:before,
    .banner-area:after {
        display: none;
    }
    
    .tree-showcase-item {
        margin-bottom: 1rem;
    }
    
    .tree-showcase-item img {
        height: 200px;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .banner-area:before,
    .banner-area:after {
        width: 200px;
        opacity: 0.7;
    }
    
    .tree-showcase-item img {
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .banner-area:before,
    .banner-area:after {
        width: 400px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .category-li:hover {
        background-color: transparent;
        color: inherit;
    }
    
    .category-li.active {
        background-color: #15803d;
        color: #FFF;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-area:before,
    .banner-area:after {
        background-size: contain;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-area {
        padding: 2rem 0;
    }
    
    .banner-inner h1 {
        font-size: 2rem;
    }
}

/* Enhanced responsive utilities */
.container-responsive {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding: 0 2rem;
    }
}

/* Improved button responsiveness */
.btn-responsive {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

@media (max-width: 640px) {
    .btn-responsive {
        font-size: 14px;
        padding: 0.75rem 1rem;
    }
}

/* Modal improvements for mobile */
.modal-box {
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .modal-box {
        margin: 1rem;
        max-height: 85vh;
    }
}

/* Cart improvements */
.cart-item-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #15803d #f0fdf4;
}

.cart-item-wrapper::-webkit-scrollbar {
    width: 4px;
}

.cart-item-wrapper::-webkit-scrollbar-track {
    background: #f0fdf4;
    border-radius: 2px;
}

.cart-item-wrapper::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 2px;
}

/* Focus states for accessibility */
.category-li:focus,
.btn:focus,
button:focus {
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}