body {
    font-family: poppins;
}

header {
    margin-bottom: 0px;
}

/* Product block style */
.product-block {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

/* Image styling */
/* .image-wrapper {
    overflow: hidden;
    border-radius: 8px;
} */

/* Product details section */
.product-details {
    padding-left: 20px;
}

.product-name {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
}

.product-stock {
    font-size: 1em;
    color: #bd8282;
}

/* Attribute list styling */
.attributes {
    list-style-type: none;
    padding-left: 0;
}

.attributes li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #777;
}

.attributes li span {
    font-weight: bold;
}

.no_product {
    text-align: center;
    height: 300px;
    align-content: center;
    font-size: large;
}

#searchBar {
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}


/* .searchFilter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-wrapper {
    flex: 1;
    margin-right: 10px; 
}

.category-wrapper {
    flex-shrink: 0; 
}

.input-group {
    width: 100%;
}

.form-control {
    width: 100%; 
} */

/* Product Card */
.product-card-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: #fff;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-wrapper:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 0.5rem 0.75rem;
    text-align: center;
    flex-grow: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 500;
    color: #007bff;
}

.product-card-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 0.5rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-card-footer .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    min-width: 120px;
}

/* Responsive button layout */
@media (max-width: 767.98px) {
    .product-card-footer {
        flex-direction: column;
    }
}

.product-image-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-wrapper:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 0.75rem 1rem;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.product-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    z-index: 10;
}

.product-card-wrapper:hover .product-hover-actions {
    display: flex;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    min-width: 120px;
}

.product-container {
    margin-top: 50px;
}

.product-image-container img {
    max-width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.product-image-container img:hover {
    transform: scale(1.05);
}

.product-details h2 {
    font-size: 2rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.2rem;
    color: gray;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
}

.attributes li {
    padding: 5px 0;
    font-size: 1rem;
}

.btn {
    border-radius: 8px;
}

/* Search suggestions */
#suggestionsList {
    display: none;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999999;
    /* HIGH z-index */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#suggestionsList li:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.position-relative {
    position: relative !important;
    z-index: 1;
}

/* Product Details
.product-main {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.product-gallery img {
    max-height: 200px;
    margin: 5px;
    border-radius: 8px;
}

.product-info .price {
    color: #28a745;
    font-size: 1.5rem;
}

.specs table {
    width: 100%;
    border-collapse: collapse;
}

.specs th,
.specs td {
    border: 1px solid #ccc;
    padding: 10px;
}

.related-products {
    margin-top: 3rem;
}

.related-list {
    display: flex;
    gap: 1rem;
}

.related-item {
    width: 200px;
    text-align: center;
}

#mainImg {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

#mainImg:hover {
    transform: scale(1.05);
}

.thumb-img:hover {
    border: 2px solid #007bff;
}

.main-image img {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
} */

/* Review and Description */
/* Custom tab styles */
/* .custom-tabs .nav-link {
    border: none;
    border-radius: 0;
    background-color: #f7f7f7;
    color: #444;
    padding: 10px 20px;
    margin-right: 5px;
    font-weight: 600;
}

.custom-tabs .nav-link.active {
    background-color: #ff6b6b;
    color: #fff;
    box-shadow: none;
}

.tab-content {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
} */

/* Thumbnail Image Styling */
/* .thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s;
}

.thumb-img:hover {
    transform: scale(1.05);
} */

/* Main Image Styling */
/* #mainImg {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
} */