html,
body {
    overflow-x: hidden;
    width: 100%;
}

.container_main {
    width: 100%;
    max-width: 1100px;
    flex: 1;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

.filter-bar {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 15px;
}
.search-input {
    display: none;
}
.search-btn{
    display: none;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 25px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 12px;
    outline: none;
    width: 160px;
}

.search-icon {
    position: absolute;
    left: 6px;
    font-size: 11px;
    color: #9ca3af;
}

.sort-select {
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 12px;
    color: #374151;
    outline: none;
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
}

.product-card {
    background-color: white;
    padding: 12px;
    color: b#ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    
}
body.products-page .category-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important; 
}
.dropdown-menu {
  min-width: 200px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  border: 1px solid #eee;
  z-index: 1000;
}

.dropdown-menu .dropdown-item,
.dropdown-menu .category-item {
  display: block;          
  padding: 10px 18px;      
  color: #333333;
  text-decoration: none;   
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;    
}

.dropdown-menu .category-item.active {
  background-color: #fff3f0;
  color: #2fc78d;
  font-weight: 600;
}
.product-sku {
    color: black;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-title {
    color: black;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-image {
    width: 100%;
    height: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px;
}

.product-desc,
.product-price {
    font-size: 12px;
    color: black;
    line-height: 2;
}

.product-price {
    margin-bottom: 12px;
}

.buy-btn {
    background-color: #2fc78d;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    align-self: center;
    margin-top: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.page-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 3px;
    color: #4b5563;
    font-size: 11px;
    text-decoration: none;
}

.page-btn.active {
    border-color: #3b82f6;
    color: #3b82f6;
}

@media(max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.product-top-row {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.product-gallery {
    flex: 0 0 380px;
    max-width: 380px;
}

.product-gallery>img {
    width: 100%;
    border-radius: 8px;
    max-height: 450px;
    object-fit: contain;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnails {
    display: flex;
    gap: 15px;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}


.thumbnails img:hover {
    border-color: #00a884;
}


.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.product-info .price {
    font-size: 24px;
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-info .status {
    color: #00a884;
    font-weight: bold;
    margin-bottom: 25px;
}

.product-info form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.product-info input[type="number"] {
    width: 60px;
    padding: 8px;
    margin: 0 20px 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.product-info button {
    background-color: #00a884;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.product-info button:hover {
    background-color: #008a6b;
}

.product-description,
.product-reviews {
    margin-bottom: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.product-description h2,
.product-reviews h2 {
    border-bottom: 2px solid #00a884;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.product-reviews ul {
    padding-left: 10px;
}

.product-reviews li {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.product-reviews li:last-child {
    border-bottom: none;
}

.filter-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.filter-section label {
    font-weight: bold;
    color: #555;
}

.filter-section select {
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background-color: #00a884;
    color: white;
    border-color: #00a884;
}

.product-card .img-placeholder {
    height: 250px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.product-card .img-placeholder a {
    display: block;
    height: 100%;
    width: 100%;
}

.product-card .img-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.card-body {
    padding: 15px 5px 5px 5px;
}

.category {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title a {
    color: #333;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #00a884;
}

.card-footer .price {
    font-size: 16px;
    color: #d9534f;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions a {
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.search-input {
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ccc;
    border-right: none;
    outline: none;
    font-size: 14px;
}

.search-btn {
    padding: 8px 15px;
    border: 1px solid #00a884;
    background: #00a884;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #008a6b;
}

@media (max-width: 768px) {
    .product-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery,
    .product-info {
        width: 100%;
    }

    .product-info h1 {
        font-size: 24px;
    }

    .product-info .price {
        font-size: 20px;
    }

    .filter-section {
        justify-content: center;
    }
}