.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.gallery_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.product_wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product_wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product_wrapper.hidden {
    display: none;
}

.img_wrapper {
    height: 200px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.img_wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product_wrapper span {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.product-details-hidden {
    display: none;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    background: none;
    border: none;
}

.modal-img-col {
    width: 45%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.modal-img-col img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.modal-info-col {
    width: 55%;
    padding: 30px;
    overflow-y: auto;
}

.modal-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-info-col ol {
    padding-left: 20px;
    line-height: 1.8;
}

.modal-info-col li {
    margin-bottom: 5px;
    color: #444;
}

@media (max-width: 768px) {
    .modal-box { flex-direction: column; overflow-y: auto; }
    .modal-img-col, .modal-info-col { width: 100%; }
    .modal-img-col { height: 250px; }
}

.search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px auto;
    position: relative;
    display: flex;
    align-items: center;
}

#searchInput {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    font-size: 20px;
    opacity: 0.5;
    pointer-events: none;
}


.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s;
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
}

.cart-box {
    max-width: 600px;
    flex-direction: column !important;
    padding: 20px;
}

.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

#cartTable {
    width: 100%;
    border-collapse: collapse;
}

#cartTable th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: var(--primary-color);
}

#cartTable td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.qty-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-btn {
    color: red;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    background: none;
    border: none;
}

.cart-form input, .cart-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.send-quote-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.send-quote-btn:hover {
    background: #002a0f;
}

.add-to-cart-btn {
    margin-top: 10px;
    padding: 8px;
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    z-index: 5;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.modal-info-col ol {
    padding: 0;
    list-style: none;
}

.modal-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.modal-item-row:hover {
    background-color: #f9f9f9;
}

.modal-item-name {
    font-size: 16px;
    color: #333;
    padding-right: 15px;
}

.modal-add-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.modal-add-btn:hover {
    background-color: var(--accent-color);
}