/* ===== Filter Card Core Styles ===== */
.store-card {
    height: fit-content;
    width: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(255, 34, 34, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-right: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff2222, #ff6b6b, #ff2222);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(255, 34, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

/* ===== Header Styles ===== */
.card-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8));
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 34, 34, 0.15);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.card-header:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 250, 252, 0.85));
    border-bottom-color: rgba(255, 34, 34, 0.25);
}

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

.card-header:hover .title {
    color: #1a252f;
}

.filter-group:last-child > .card-header {
    border-bottom: none;
}

.card-header .toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-header .title {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.card-header .title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #ff2222, #ff6b6b);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 34, 34, 0.3);
}

.icon-control {
    color: #ff2222;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 34, 34, 0.1);
}

.card-header:hover .icon-control {
    background: rgba(255, 34, 34, 0.15);
    transform: rotate(180deg);
}

/* ===== Filter Content Sections ===== */
.filter-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7), 
        rgba(248, 250, 252, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.filter-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 34, 34, 0.2), 
        transparent);
}

/* ===== Category List ===== */
.list-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-menu li {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-menu a {
    color: #34495e;
    font-weight: 500;
    padding: 12px 18px;
    display: block;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6), 
        rgba(248, 250, 252, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.list-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #ff2222, #ff4757);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.list-menu a:hover {
    color: #ff2222;
    transform: translateX(6px);
}

.list-menu a:hover::before {
    opacity: 1;
}

/* ===== Brand Filters ===== */
.checkbox-btn {
    position: relative;
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    margin: 6px 0;
    border: 1px solid rgba(51, 51, 51, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-btn:hover {
    border-color: #ff2222;
    box-shadow: 0 2px 8px rgba(255, 34, 34, 0.1);
}

.checkbox-btn input {
    display: none;
}

.checkbox-btn .btn {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-btn input:checked + .btn {
    background: #ff2222;
    border-color: #ff2222;
}

.checkbox-btn input:checked + .btn::after {
    content: '✓';
    position: absolute;
    color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* ===== Price Filter ===== */
.price-filter-form-row {
    display: flex;
    gap: 16px;
    position: relative;
    padding-top: 12px;
}

.price-filter-form-group {
    flex: 1;
    position: relative;
}

.price-filter-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.7));
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.price-filter-form-control:focus {
    border-color: #ff2222;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 3px rgba(255, 34, 34, 0.15),
        0 4px 16px rgba(255, 34, 34, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    outline: none;
    transform: translateY(-1px);
}

.price-filter-form-control::placeholder {
    color: rgba(44, 62, 80, 0.5);
    font-weight: 400;
}

.price-filter-form-group label {
    color: #34495e;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 12px;
}

.price-filter-form-group label::before {
    content: '₾';
    position: absolute;
    left: 0;
    top: 0;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

/* ===== Price Range Slider ===== */
.price-range-container {
    margin-top: 16px;
    padding: 16px 0;
}

.price-range-slider {
    position: relative;
    height: 6px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(248, 250, 252, 0.6));
    border-radius: 3px;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-range-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #ff2222, #ff4757);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(255, 34, 34, 0.3);
}

.price-range-input {
    position: absolute;
    top: -2px;
    height: 10px;
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: linear-gradient(135deg, #ff2222, #ff4757);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 3px 8px rgba(255, 34, 34, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 4px 12px rgba(255, 34, 34, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

.price-range-input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    background: linear-gradient(135deg, #ff2222, #ff4757);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 3px 8px rgba(255, 34, 34, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
}

.price-value {
    padding: 4px 8px;
    background: rgba(255, 34, 34, 0.1);
    border-radius: 6px;
    color: #ff2222;
    font-weight: 700;
}

/* ===== Interactive States ===== */
.filter-group.active .card-header {
    background: #ff2222;
}

.filter-group.active .title {
    color: #fff;
}

.filter-content.collapse {
    display: none;
}

.filter-content.collapse.show {
    display: block;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.filter-content.collapse {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.store-card {
    animation: float 6s ease-in-out infinite;
}

.store-card:hover {
    animation-play-state: paused;
}

/* ===== Enhanced Mobile Responsiveness ===== */
@media (max-width: 768px) {
    .store-card {
        width: 95%;
        margin: 20px auto 60px;
        border-radius: 16px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-header .title {
        font-size: 14px;
    }
    
    .filter-content {
        padding: 18px 20px;
    }
    
    .list-menu a {
        padding: 10px 16px;
    }
    
    .checkbox-btn {
        padding: 12px 16px;
    }
    
    .price-filter-form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .price-filter-form-control {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .store-card {
        width: 100%;
        margin: 15px 0 50px;
        border-radius: 12px;
    }
    
    .card-header .title::before {
        width: 4px;
        height: 4px;
    }
}

/* ===== Existing Store Styles Preservation ===== */
.store-welcome {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 30px;
    padding: 40px 100px;
    font-weight: bold;
    color: var(--dark-color);
}

.store-content {
    margin: 0 auto;
    display: flex;
    width: 90%;
}

.store-products-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 40px;
}

.single-product {
    width: 30%;
    position: relative;
    border: 1px solid var(--border-main-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.single-product-img-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Maintain square aspect ratio */
}

.single-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.single-product img {
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 300ms;
}

.single-product img:hover {
    filter: brightness(150%);
    transform: scale(1.1); /* Increase the size of the image by 10% on hover */
}

.discount-perc {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 12px;
    background: #e74c3c;
    color: white;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: none;
    writing-mode: horizontal-tb;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
    transition: all 0.2s ease-in-out;
}

.discount-perc::before {
    content: "-";
    margin-right: 2px;
}

.discount-perc:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.product-name {
    margin-top: 5px;
    padding-left: 20px;
    font-weight: 100;
    color: #313131;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; /* Ensures consistent 2-line height */
}

.store-products {
    width: 100%;
    position: relative;
    padding: 5px 20px;
}

.product-count {
    position: absolute;
    top: -25px;
    color: #565656;
    margin-bottom: 10px;
}

.single-product .view-product-button {
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    margin: 20px 20px;
    text-align: center;
    background-color: #FF2222;
    border-radius: 6px;
}

.view-product-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    padding: 12px 24px;
    margin: 20px;
    text-align: center;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
    font-size: 14px;
}

.view-product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #b71c1c 0%, #9a0007 100%);
}

.view-product-button:hover::before {
    left: 100%;
}

.view-product-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #9a0007 0%, #7f0000 100%);
}

@media (max-width: 1296px) {
    .store-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .store-welcome {
        display: none;
    }

    .store-content {
        flex-direction: column;
        width: 95%;
    }

    .single-product {
        width: 100%;
    }
}