/* ========== MOBILE FIRST - SEARCH BAR ========== */
.shop-search-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(179, 117, 53, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.shop-search-bar:focus-within {
    box-shadow: 0 4px 12px rgba(179, 117, 53, 0.2);
    border-color: #b37535;
}

.product-search-input {
   width: 100%;
   padding: .7rem .8rem .5rem .8rem  ;
    border: none !important;
    border-radius: 1rem;
    outline: none;
    transition: all 0.2s ease;
    overflow: hidden;
    font-size: 12px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.product-search-input::placeholder {
    color: #999;
    font-size: 12px;
    padding-top:15px ;
}

.search-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #b37535 0%, #9a6129 100%);
    border: none;
    cursor: pointer;
    display: grid;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    flex-shrink: 0;
}

.search-btn:hover {
    background: linear-gradient(135deg, #9a6129 0%, #805020 100%);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}
.clear-filters-btn {
    display: none; /* Initially hidden */
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none !important;
}
/* Clear Filters Button */
.clear-filters-btn {
    padding: 1px 0 0 0 ;
    background: #fff;
    border: 2px solid #b37535;
    border-radius: 10px;
    color: #b37535;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 5px;
    height: 30px;
    right: 0;
    width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-filters-btn.visible {
    display: flex !important;
    opacity: 1;
    transform: translateX(0);
}
.clear-filters-btn:hover {
    background: #b37535;
    color: #fff;
    box-shadow: 0 3px 10px rgba(179, 117, 53, 0.3);
    transform: translateY(-2px);
}

.clear-filters-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}



/* Ripple Effect on Click */
.clear-filters-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.clear-filters-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Icon inside button (optional - add via JS or HTML) */
.clear-filters-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.3s;
}

.clear-filters-btn:hover svg {
    transform: rotate(90deg);
}

/* Loading state (when clearing) */
.clear-filters-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.clear-filters-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   SMOOTH ENTRANCE ANIMATIONS
   ================================ */

/* Slide in from right */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.clear-filters-btn.visible {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== LOADING INDICATOR ========== */
.shop-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.shop-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b37535;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== TABLET (768px+) ========== */
@media (min-width: 768px) {
    .shop-search-bar {
        max-width: 600px;
        margin: 0 auto 30px;
        border-radius: 50px;
    }
    
    .product-search-input {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .product-search-input::placeholder {
        font-size: 14px;
    }
    
    .search-btn {
        padding: 14px 20px;
    }
    
    .search-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .shop-filters-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 20px;
        margin-bottom: 40px;
        gap: 15px;
    }
    
    .filter-item {
        width: auto;
        flex: 0 0 auto;
    }
    
    .filter-select {
        min-width: 200px;
        width: auto;
        padding: 12px 40px 12px 20px;
        border-radius: 25px;
    }
    
    .clear-filters-btn {
        width: auto;
        padding: 12px 28px;
        border-radius: 25px;
    }
    
      .category-header {
        margin-bottom: 30px;
    }
    
    .category-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .category-description {
        font-size: 15px;
        max-width: 700px;
        margin: 0 auto;
    }
     .no-products {
        padding: 60px 20px;
        font-size: 18px;
    }
}

/* ========== DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
    .shop-search-bar {
        max-width: 700px;
    }
    
    .product-search-input {
        padding: 16px 24px;
    }
    
    .search-btn {
        padding: 16px 24px;
    }
    
    .filter-select {
        min-width: 220px;
    }
}

/* ========== SMOOTH TRANSITIONS ========== */
.products-container {
    transition: opacity 0.3s ease;
}

/* ========== CATEGORY HEADER ========== */
.category-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ========== NO PRODUCTS MESSAGE ========== */
.no-products {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #999;
    font-style: italic;
}


/* ========== ACCESSIBILITY ========== */
.filter-select:focus-visible,
/*.search-btn:focus-visible,*/
.clear-filters-btn:focus-visible {
    outline: 2px solid #b37535;
    outline-offset: 2px;
}

/* ========== CUSTOM SCROLLBAR (Optional) ========== */
.filter-select::-webkit-scrollbar {
    width: 8px;
}

.filter-select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-select::-webkit-scrollbar-thumb {
    background: #b37535;
    border-radius: 10px;
}

.filter-select::-webkit-scrollbar-thumb:hover {
    background: #9a6129;
}