/* Product Filter Styles */

.filter-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    margin-bottom: 30px;
}

.filter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.filter-bar__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-bar__label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.filter-bar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.filter-tag:hover {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
    transform: translateY(-1px);
}

.filter-tag.active {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
}

.filter-tag:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

/* Clear all filters button */
.filter-clear-all {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.filter-clear-all:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Loading indicator */
.filter-loading {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-loading p {
    margin: 0;
    font-style: italic;
    color: #666;
}

/* Results count */
.filter-results-count {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#products-count {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Filter toggle for mobile */
.filter-toggle {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-toggle:hover {
    background-color: #555;
}

.filter-toggle .arrow {
    float: right;
    transition: transform 0.3s ease;
}

/* Error messages */
.filter-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Products grid transition */
#products-grid {
    transition: opacity 0.3s ease;
}

/* Essential styles for project cards */
.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card__image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card__info {
    padding: 16px;
    background-color: #fff;
}

.project-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.project-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card__title a:hover {
    color: #007cba;
}

.project-card__price {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .filter-bar__inner {
        gap: 15px;
    }
    
    .filter-bar__group {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 15px 0;
    }
    
    .filter-bar__inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-bar__group {
        min-width: 100%;
    }
    
    .filter-bar__tags {
        justify-content: flex-start;
    }
    
    .filter-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        padding: 10px 0;
    }
    
    .filter-bar__tags {
        gap: 6px;
    }
    
    .filter-tag {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    .filter-bar__label {
        font-size: 13px;
    }
}

/* Animation for filter transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.3s ease-out;
}

/* Hover effects for project cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.projects__grid[data-loading="true"] {
    position: relative;
}

.projects__grid[data-loading="true"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Filter bar sticky behavior */
.filter-bar.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Focus states for accessibility */
.filter-tag:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .filter-bar {
        display: none;
    }
}

/* SANKO Category Mobile Optimization */

/* Mobile-first responsive grid */
@media (max-width: 768px) {
    .category-mycustom .projects__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 30px !important;
    }
    
    .category-mycustom .project-card {
        margin-bottom: 0 !important;
    }
    
    .category-mycustom .project-card__image {
        height: 160px !important;
    }
    
    .category-mycustom .project-card__info {
        padding: 10px !important;
    }
    
    .category-mycustom .project-card__title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .category-mycustom .project-card__price {
        font-size: 13px !important;
    }
    
    /* Filter bar mobile optimization */
    .category-mycustom .filter-bar__inner {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem 0 !important;
    }
    
    .category-mycustom .filter-bar__group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    .category-mycustom .filter-bar__label {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .category-mycustom .filter-tag {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.6rem !important;
    }
    
    /* No products message */
    .category-mycustom .no-products-message {
        grid-column: 1 / -1 !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }
    
    /* CTA Section mobile */
    .category-mycustom .cta__title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        color: #ffffff!important;
    }
    
    .category-mycustom .cta__text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }

    .category-mycustom .cta__inner {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .category-mycustom .projects__grid {
        gap: 10px !important;
    }
    
    .category-mycustom .project-card__image {
        height: 140px !important;
    }
    
    .category-mycustom .project-card__info {
        padding: 8px !important;
    }
    
    .category-mycustom .project-card__title {
        font-size: 13px !important;
    }
    
    .category-mycustom .project-card__price {
        font-size: 12px !important;
    }
    
    .category-mycustom .filter-tag {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }
    
    .category-mycustom .cta__title {
        font-size: 1.4rem !important;
        color: #ffffff!important;
    }
}

/* Ensure grid always shows 2 columns on small screens */
@media (max-width: 640px) {
    .category-mycustom .projects__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Loading states */
.category-mycustom .filter-loading {
    text-align: center !important;
    padding: 2rem !important;
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .category-mycustom .filter-tag {
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-mycustom .btn {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
}

.category-mycustom .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Kitchen Types Demo Section Styles */
.kitchen-types-demo {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.kitchen-types-demo__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
    justify-content: space-around!important;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.kitchen-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

.kitchen-type-card--island {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
}

.kitchen-type-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.kitchen-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.kitchen-type-card__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.kitchen-type-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kitchen-type-card:hover .kitchen-type-card__image img {
    transform: scale(1.05);
}

.kitchen-type-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 124, 186, 0.8), rgba(0, 150, 220, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kitchen-type-card:hover .kitchen-type-card__overlay {
    opacity: 1;
}

.view-modules-btn {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.kitchen-type-card__overlay:hover .view-modules-btn {
    background-color: #fff;
    color: #007cba;
}

.kitchen-type-card__content {
    padding: 24px;
}

.kitchen-type-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.kitchen-type-card__description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.kitchen-type-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.kitchen-type-detail-link:hover {
    color: #005a8b;
}

.kitchen-type-detail-link i {
    transition: transform 0.3s ease;
}

.kitchen-type-detail-link:hover i {
    transform: translateX(3px);
}

/* Responsive design for kitchen types */
@media (max-width: 768px) {
    .kitchen-types-demo {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .kitchen-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kitchen-type-card--island {
        grid-column: auto;
        max-width: none;
    }
    
    .kitchen-type-card__image {
        height: 200px;
    }
    
    .kitchen-type-card__content {
        padding: 20px;
    }
    
    .kitchen-type-card__title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .kitchen-types-demo {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .kitchen-type-card__image {
        height: 180px;
    }
    
    .kitchen-type-card__content {
        padding: 16px;
    }
}

/* Animation for kitchen type cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kitchen-type-card {
    animation: slideInUp 0.6s ease forwards;
}

.kitchen-type-card:nth-child(2) {
    animation-delay: 0.1s;
}

.kitchen-type-card:nth-child(3) {
    animation-delay: 0.2s;
} 