
    /* ======================================================
   GLOBAL STYLES
   ====================================================== */
a {
    text-decoration: none;
}

.all-contents {
    margin-top: 60px;
    margin-bottom: 60px;
    width: 97%;
    margin-left: 1.5%;
}

/* ======================================================
   ENHANCED SEARCH BAR STYLES - FIXED VERSION
   ====================================================== */

/* Enhanced search bar container */
.search-bar {
    display: none;
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color-1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 999;
    transition: all 0.3s ease;
}

.search-bar.active {
    display: block;
}

/* Enhanced focus state for search bar */
.search-bar.focused {
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
    transform: translateY(-1px);
}

/* Enhanced search container - Stack vertically */
.search-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* Search input wrapper for proper positioning */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

/* Enhanced input field with dark mode support */
.search-bar input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid var(--lighter-text);
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    background-color: var(--bg-color-2);
    color: var(--text-color-1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Orange focus state */
.search-bar input[type="text"]:focus {
    border-color: var(--orange-btn-color);
    background-color: var(--bg-color-2);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
    transform: scale(1.01);
}

.search-bar input[type="text"]:focus::placeholder {
    color: rgba(255, 102, 0, 0.7);
}

.search-bar input[type="text"]::placeholder {
    color: var(--lighter-text);
}

/* Enhanced Clear/Cancel button styling with red background */
.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545; /* Red background */
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 9px; /* Perfect circle */
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.search-clear-btn:hover {
    background: #c82333; /* Darker red on hover */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.search-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

.search-clear-btn.show {
    display: flex;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .search-clear-btn {
        right: 6px;
        width: 24px;
        height: 24px;
        font-size: 12px;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .search-clear-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

/* Enhanced search button */
.search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--orange-btn-color), #e55a00);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    color: var(--orange-btn-text-color);
    font-weight: bold;
    font-size: 14px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.search-btn:hover {
    background: linear-gradient(135deg, #e55a00, var(--orange-btn-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn.loading {
    background: #b0b0b0;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Enhanced loading spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-left: 4px;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .search-bar {
        padding: 12px;
    }

    .search-container {
        gap: 8px;
    }

    .search-bar input[type="text"] {
        padding: 10px 35px 10px 10px;
        font-size: 14px;
    }

    .search-clear-btn {
        right: 6px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .search-btn {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 10px;
    }

    .search-container {
        gap: 6px;
    }
}

/* ======================================================
   BANNER SECTION STYLES
   ====================================================== */
.banner {
    max-height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 740px) {
    .banner {
        width: 95%;
        margin-left: 2.5%;
        max-height: 150px;
    }
}

/* ======================================================
   ENHANCED BANNER SECTION WITH GREENISH-BROWN GRADIENT FALLBACK
   ====================================================== */

.banner {
    max-height: 200px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    /* Greenish-brown gradient fallback */
    background: linear-gradient(135deg,
        #8B7355 0%,     /* Warm brown */
        #6B5B47 15%,    /* Darker brown */
        #5D4E37 30%,    /* Saddle brown */
        #556B2F 45%,    /* Dark olive green */
        #8FBC8F 60%,    /* Dark sea green */
        #7A8471 75%,    /* Sage green */
        #6B8E23 90%,    /* Olive drab */
        #8B7355 100%    /* Back to warm brown */
    );
    /* Add a subtle texture overlay */
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    /* Ensure minimum height for gradient visibility */
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    /* Ensure image covers the gradient background */
    position: relative;
    z-index: 2;
}

/* Fallback content when no banner image is available */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 10px;
    z-index: 1;
}

/* Optional: Add a subtle pattern overlay to the gradient */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 740px) {
    .banner {
        width: 95%;
        margin-left: 2.5%;
        max-height: 150px;
        min-height: 100px;
        border-radius: 8px;
    }

    .banner img {
        border-radius: 8px;
    }

    .banner::before,
    .banner::after {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .banner {
        min-height: 80px;
        max-height: 120px;
        border-radius: 6px;
    }

    .banner img {
        border-radius: 6px;
    }

    .banner::before,
    .banner::after {
        border-radius: 6px;
    }
}

/* Dark mode support for the gradient */
@media (prefers-color-scheme: dark) {
    .banner {
        background: linear-gradient(135deg,
            #6B5B47 0%,     /* Darker brown for dark mode */
            #5D4E37 15%,    /* Saddle brown */
            #4A4A2F 30%,    /* Dark brown-green */
            #3D4A22 45%,    /* Darker olive */
            #556B2F 60%,    /* Dark olive green */
            #4F5F4F 75%,    /* Dark gray-green */
            #2F4F2F 90%,    /* Dark forest green */
            #6B5B47 100%    /* Back to darker brown */
        );
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .banner {
        background: linear-gradient(135deg,
            #654321 0%,     /* Higher contrast brown */
            #8B4513 25%,    /* Saddle brown */
            #228B22 50%,    /* Forest green */
            #556B2F 75%,    /* Dark olive green */
            #654321 100%    /* Back to brown */
        );
        border: 2px solid #000;
    }
}

/* Print styles */
@media print {
    .banner {
        background: #f5f5f5 !important;
        border: 1px solid #ccc;
    }

    .banner::after {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .banner {
        background-image: none;
    }

    .banner::after {
        background-image: none;
    }
}
/* ======================================================
   ENHANCED CATEGORIES SECTION WITH GREENISH-BROWN GRADIENT
   ====================================================== */

.sticky-container {
    position: relative;
    z-index: 110;
    background-color: var(--bg-color-1);
    transition: transform 0.3s ease-out;
    padding: 10px 5px;
    border-radius: 8px;
}

.sticky-container.sticky {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
}

.categories-wrap {
    overflow: hidden;
    margin-top: 9px;
    margin-bottom: 5px;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
    gap: 8px;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

/* Category container */
.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 70px;
}

.category:hover {
    transform: translateY(-2px);
}

/* Category image container */
.category-image {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 6px;
}

.category-image:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--orange-btn-color);
    transform: scale(1.05);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Greenish-brown gradient for missing images */
.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B7355 0%, #6B5B47 25%, #5D4E37 50%, #8FBC8F 75%, #7A8471 100%);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Broken image icon */
.category-image::after {
    content: '\f03e';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Show placeholder when image fails to load or is missing */
.category-image.no-image::before,
.category-image.error::before {
    opacity: 1;
}

.category-image.no-image::after,
.category-image.error::after {
    opacity: 1;
}

/* Special styling for "All Categories" with green gradient */
.category-image.all-categories {
    background: linear-gradient(135deg, #32cd32 0%, #28a828 100%);
    border-color: #22c55e;
}

.category-image.all-categories::before {
    background: linear-gradient(135deg, #32cd32 0%, #28a828 100%);
    opacity: 1;
}

.category-image.all-categories::after {
    content: '\f0c9'; /* Font Awesome bars/menu icon */
    opacity: 1;
    color: white;
}

/* Category text styling - Enhanced with larger font */
.category-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color-1);
    text-transform: capitalize;
    line-height: 1.3;
    width: 100%;
    max-width: 85px;
    word-wrap: break-word;
    hyphens: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 32px;
    overflow: visible; /* Changed from hidden to visible */

}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .category-text {
        max-width: 80px; /* Slightly larger for tablet */
        min-height: 30px;
    }
}

@media (max-width: 480px) {
    .category-text {
        font-size: 12px;
        max-width: 80px; /* Increased from 70px to 80px */
        min-height: 28px;
        line-height: 1.2;
    }
}

@media (max-width: 320px) {
    .category-text {
        font-size: 11px;
        max-width: 75px; /* Increased from 65px to 75px */
        min-height: 26px;
        line-height: 1.2;
    }
}

/* Smart text handling for different word counts */
.category-text .word-1 {
    display: block;
    text-align: center;
    width: 100%;
    font-size: inherit;
    color: inherit;
}

.category-text .word-2 {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1px;
    font-size: inherit;
    color: inherit;
}

.category-text .word-ellipsis {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1px;
    font-size: inherit;
    color: var(--lighter-text);
}

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

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

/* Error state for category images with greenish-brown gradient */
.category-image.error {
    background: linear-gradient(135deg, #8B7355 0%, #6B5B47 25%, #5D4E37 50%, #8FBC8F 75%, #7A8471 100%);
    border-color: #6B5B47;
}

.category-image.error::before {
    background: linear-gradient(135deg, #8B7355 0%, #6B5B47 25%, #5D4E37 50%, #8FBC8F 75%, #7A8471 100%);
    opacity: 1;
}

.category-image.error::after {
    content: '\f03e'; /* Font Awesome broken image icon */
    opacity: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* No image state with greenish-brown gradient */
.category-image.no-image {
    background: linear-gradient(135deg, #8B7355 0%, #6B5B47 25%, #5D4E37 50%, #8FBC8F 75%, #7A8471 100%);
    border-color: #6B5B47;
}

.category-image.no-image::before {
    background: linear-gradient(135deg, #8B7355 0%, #6B5B47 25%, #5D4E37 50%, #8FBC8F 75%, #7A8471 100%);
    opacity: 1;
}

.category-image.no-image::after {
    content: '\f03e'; /* Font Awesome broken image icon */
    opacity: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .category-image {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }

    .category-image:hover {
        border-color: var(--orange-btn-color);
    }

    .category-image.error,
    .category-image.no-image {
        background: linear-gradient(135deg, #6B5B47 0%, #5D4E37 25%, #4A4A2F 50%, #556B2F 75%, #4F5F4F 100%);
        border-color: #5D4E37;
    }

    .category-image.error::before,
    .category-image.no-image::before {
        background: linear-gradient(135deg, #6B5B47 0%, #5D4E37 25%, #4A4A2F 50%, #556B2F 75%, #4F5F4F 100%);
    }
}

/* High DPI support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .category-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ======================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ====================================================== */

/* Tablet and small desktop */
@media (max-width: 768px) {
    .categories-slider {
        gap: 8px;
        padding: 6px 0;
    }

    .category {
        width: 70px;
    }

    .category-image {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .category-image img {
        border-radius: 14px;
    }

    .category-image::before {
        border-radius: 14px;
    }

    .category-image::after {
        font-size: 18px;
    }

    .category-text {
        font-size: 13px;
        max-width: 70px;
        min-height: 30px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .sticky-container {
        padding: 8px 3px;
    }

    .categories-wrap {
        margin-top: 6px;
        margin-bottom: 3px;
    }

    .categories-slider {
        gap: 8px;
        padding: 6px 0;
    }

    .category {
        width: 65px;
        padding: 3px;
    }

    .category-image {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 5px;
    }

    .category-image img {
        border-radius: 14px;
    }

    .category-image::before {
        border-radius: 14px;
    }

    .category-image::after {
        font-size: 16px;
    }

    .category-text {
        font-size: 12px;
        max-width: 70px;
        min-height: 28px;
        line-height: 1.2;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .sticky-container {
        padding: 6px 2px;
    }

    .categories-slider {
        gap: 6px;
        padding: 4px 0;
    }

    .category {
        width: 65px;
        padding: 2px;
    }

    .category-image {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 4px;
    }

    .category-image img {
        border-radius: 12px;
    }

    .category-image::before {
        border-radius: 12px;
    }

    .category-image::after {
        font-size: 14px;
    }

    .category-text {
        font-size: 11px;
        max-width: 65px;
        min-height: 26px;
        line-height: 1.2;
    }
}

/* ======================================================
   ACCESSIBILITY AND PERFORMANCE ENHANCEMENTS
   ====================================================== */

/* Focus states for keyboard navigation */
.category:focus,
.category:focus-within {
    outline: 2px solid var(--orange-btn-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category,
    .category-image,
    .category-image img,
    .category-image::before,
    .category-image::after {
        transition: none;
        animation: none;
    }

    .category:hover {
        transform: none;
    }

    .category-image:hover {
        transform: none;
    }

    .category-image:hover img {
        transform: none;
    }

    .category-image.loading {
        animation: none;
        background: #f0f0f0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .category:hover {
        transform: none;
    }

    .category-image:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }

    .category-image:hover img {
        transform: none;
    }

    /* Add touch feedback */
    .category:active {
        transform: scale(0.95);
    }

    .category-image:active {
        transform: scale(0.98);
    }
}

/* Print styles */
@media print {
    .sticky-container {
        position: static;
        background: none;
        box-shadow: none;
    }

    .category-image {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .category-text {
        color: #000;
    }

    .category-image::after {
        color: #000;
        text-shadow: none;
    }
}

/* Enhanced hover effects for desktop */
@media (hover: hover) and (pointer: fine) {
    .category-image:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        border-color: var(--orange-btn-color);
        transform: scale(1.08);
    }

    .category-image.error:hover,
    .category-image.no-image:hover {
        border-color: #8FBC8F;
        box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
    }

    .category-image.all-categories:hover {
        border-color: #22c55e;
        box-shadow: 0 6px 20px rgba(50, 205, 50, 0.3);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .category-image {
        border-width: 3px;
        border-color: #000;
    }

    .category-image::after {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .category-text {
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}
/* ======================================================
   PRODUCTS HEADER AND FILTER DROPDOWN STYLES
   ====================================================== */
.products-title-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.products-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color-1);
    text-transform: capitalize;
}

.dropdown {
    position: relative;
}

.form-select {
    padding: .190rem .55rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border-radius: .25rem;
    width: 100px;
    background-color: var(--bg-color-2);
    color: var(--text-color-1);
    text-transform: capitalize;
}

.form-select option {
    text-transform: capitalize;
}

/* ======================================================
   PRODUCT GRID LAYOUT STYLES
   ====================================================== */
.row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    grid-auto-flow: row dense;
}

.col {
    padding: 0;
    min-width: 0;
}

@media (max-width: 739px) {
    .row {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
        align-items: stretch;
    }

    .col {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (min-width: 740px) {
    .row {
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1113px) {
    .row {
        gap: 24px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .row.sm-gutter {
        gap: 10px;
    }
}

/* ======================================================
   PRODUCT CARD STYLES
   ====================================================== */
.anywhere-wrap {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

/* ======================================================
   PRODUCT IMAGE STYLES
   ====================================================== */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image-container::before {
    content: '';
    display: block;
    padding-top: 100%;
}

@supports (aspect-ratio: 1/1) {
    .product-image-container::before {
        display: none;
    }
}

.anywhere-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.anywhere-wrap:hover .anywhere-img {
    transform: scale(1.02);
}

@media only screen and (max-width: 399px) {
    .product-image-container {
        border-radius: 12px;
        aspect-ratio: 1/1;
    }

    .product-image-container::before {
        padding-top: 100%;
    }

    .anywhere-img {
        border-radius: 12px;
    }
}

@media only screen and (min-width: 400px) and (max-width: 768px) {
    .product-image-container {
        aspect-ratio: 1/1;
    }

    .product-image-container::before {
        padding-top: 100%;
    }
}

@media only screen and (min-width: 769px) {
    .product-image-container {
        aspect-ratio: 1/1;
    }

    .product-image-container::before {
        padding-top: 100%;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .anywhere-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Duration Badge */
.duration-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #000;
    border-left: 2px solid #b45309;
    z-index: 100;
}

.duration-badge::before {
    font-family: "Font Awesome 5 Free";
    content: "\f017";
    margin-right: 4px;
    font-size: 9px;
}

.duration-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 370px) {
    .duration-badge {
        padding: 3px 8px;
        font-size: 9px;
        top: 12px;
        right: 12px;
    }

    .duration-badge::before {
        font-size: 8px;
    }
}

/* ======================================================
   PRODUCT CARD DETAILS
   ====================================================== */
.product-details-container {
    position: relative;
    border-image-slice: 1;
    border-width: 2px;
    border-radius: 10px;
    padding: 7px;
    background-color: var(--bg-color-2);
    box-shadow: var(--address-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

.product-details {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-info {
    flex-shrink: 0;
}

.product-name {
    font-size: 14px;
    font-weight: bolder;
    color: var(--text-color-1);
    margin-left: 5px;
    text-transform: capitalize;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    margin-top: 7px;
    min-height: 1.3em;
}

.product-description {
    font-size: 12px;
    color: var(--lighter-text);
    margin-left: 9px;
    text-transform: capitalize;
    line-height: 1.4;
    margin-top: 2px;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 739px) {
    .product-name {
        font-size: 13px;
        min-height: 1.2em;
    }

    .product-description {
        font-size: 11px;
        min-height: 2.6em;
    }
}

.prices {
    display: flex;
    justify-content: space-between;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 7px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

@media screen and (max-width: 599px) {
    .prices {
        display: flex;
        flex-direction: column;
        margin-left: 5px;
        margin-right: 5px;
        margin-top: auto;
        margin-bottom: 8px;
    }
}

.price-detail {
    display: flex;
    flex-direction: column;
    color: var(--text-color-1);
}

span.detail-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-color-1);
    text-transform: capitalize;
}

span.downpayment-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--red-text);
}

span.installments-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--orange-text);
}

.product-buttons {
    flex-shrink: 0;
    margin-top: 0;
}

.view-button {
    font-weight: bold;
    font-size: 13px;
    border: none;
    border-radius: 7px;
    width: 100%;
    background: #32cd32;
    color: white;
    height: 30px;
    text-transform: capitalize;
    transition: filter 0.2s ease;
}

.view-button:hover {
    filter: brightness(.8);
}

/* ======================================================
   LOAD MORE BUTTON STYLES
   ====================================================== */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.load-more-btn {
    background: #32cd32;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 6px 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: capitalize;
    transition: background-color 0.2s ease;
}

.load-more-btn i {
    margin-right: 5px;
}

.load-more-btn:hover {
    background-color: #28a828;
}

.load-more-btn.loading {
    background-color: #b0b0b0;
    cursor: wait;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ======================================================
   NO PRODUCTS DISPLAY STYLES
   ====================================================== */
.no-products-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.no-products-message {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color-1);
    margin: 1rem 0;
    text-transform: capitalize;
}

/* ======================================================
   HIRE-SPECIFIC DURATION BADGE STYLES
   ====================================================== */
.hire-item .duration-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #000;
    border-left: 2px solid #b45309;
    z-index: 100;
}

.hire-item .duration-badge::before {
    font-family: "Font Awesome 5 Free";
    content: "\f133";
    margin-right: 4px;
    font-size: 9px;
}

.hire-item .duration-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 370px) {
    .hire-item .duration-badge {
        padding: 3px 8px;
        font-size: 9px;
        top: 12px;
        right: 12px;
    }

    .hire-item .duration-badge::before {
        font-size: 8px;
    }
}

/* ======================================================
   ADDITIONAL CAPITALIZATION STYLES
   ====================================================== */
.banner img[alt] {
    text-transform: capitalize;
}

.error-message,
.status-text,
.info-text {
    text-transform: capitalize;
}

::placeholder {
    text-transform: capitalize;
}

button {
    text-transform: capitalize;
}

[title] {
    text-transform: capitalize;
}