html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

h1 {
    text-align: left;
    margin-top: 20px;
    font-size: 24px;
    margin-left: 20px;
    color: #74c5b5;
    margin-bottom: 0;
}

#headingContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#leftHeading {
    width: calc(100% / 3);
    display: flex;
}

#centerHeading {
    width: calc(100% / 3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#rightHeading {
    width: calc(100% / 3);
    display: flex;
}

.popup {
    position: fixed;
    display: inline-block;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
}

.popup .popuptext {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transition: opacity 0.6s ease-in-out;
    padding: 10px;
    background-color: #74C5B5;
    color: #fff;
    border-radius: 6px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup .popuptext.warning {
    background-color: #ff9800; /* Orange for warnings */
    color: #fff;
}

.popup .popuptext.error {
    background-color: #f44336; /* Red for errors */
    color: #fff;
}

/* Show the popup */
.popup.show .popuptext {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Fade-out effect for the popup */
.popup.fadeout .popuptext {
    opacity: 0;
}


.main-container {
    display: block;
    position: relative;
    margin: 20px;
}

.button-box {
    display: flex;
    justify-content: end;
    margin-bottom: 10px;
}

.toggle-button {
    align-items: center;
    height: 12px;
    width: 24px;
    border-radius: 8px;
    border: 1px solid #666;
    display: flex;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    margin: 5px;
}

.toggle-button:hover {
    cursor: pointer;
}

.toggle-button-inner {
    background-color: white;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    margin: -3px;
}

.buttonMenu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#unselected-button {
    background-color: rgb(233, 233, 233);
    color: black;
    width: 206px;
    font-size: 14px;
}

#unselected-button:hover {
    cursor: pointer;
    background-color: rgb(197, 197, 197);
}

#selected-button {
    width: 206px;
    font-size: 14px;
}

#hidden-filter-section {
    margin: 0px;
    width: 328px;
}

#filter-div {
    position: absolute;
    top: 10px;
    left: 220px;
    padding: 0;
    display: flex;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;         /* expand to fill available space */
    height: 50px;         /* same as #filter-category */
    margin: 0;
}

/* 4) The search input on the right */
#search-input {
    width: 100%;
    height: 100%;                     /* fill the wrapper */
    border: 1px solid #ccc;           /* input border */
    border-left: none;                /* so it meets the dropdown seamlessly */
    border-radius: 0 4px 4px 0;       /* round right corners only */
    font-size: 14px;
    padding: 0 40px 0 8px;            /* leave space for the X button on the right */
    box-sizing: border-box;
    outline: none;
}

#clear-search {
    display: none;        /* shown via JS only if user typed something */
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;          /* same “square” shape, adjust if needed */
    height: 100%;         /* match the input’s height */
    font-size: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 50px;    /* vertically center the X */
    text-align: center;
    color: #666;
}

#clear-search:hover {
    color: red;
}

.filter-section {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #74c5b5;
    text-wrap: nowrap;
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.filter-section input[type="checkbox"] {
    margin-right: 10px;
}

#menu-button-section img {
    margin: 10px 0px 15px;
}

#more-brands-button {
    padding: 5%;
}

.port-dropdowns {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.location-content {
    display: flex;
    flex-direction: row;
}

#country-dropdown-container {
    display: flex;
}

#country-category {
    padding: 7.5px;
}

#port-dropdown-container {
    display: flex;
    width: 50%;
    margin-right: 5%;
}

.dropdown-ports {
    margin-bottom: 10px;
    display: flex;
}

#country-button {
    padding: 8%;
}

.dropdown-wrapper {
    width: 100%;
}

.dropdown-port-menu {
    border: 2px solid #74c5b5;
}

.port-button {
    width: 100%;
    padding: 10%;
    text-align: center;
    background-color: white;
    border: none;
}

.port-button:hover {
    cursor: pointer;
    background-color: #66a69f;
    color: white;
}

.products a {
    display: flex;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.discountPrice {
    text-decoration: line-through;
    font-weight: 500;
}

.discount {
    color: #007bff;
    text-decoration: underline;
}

.products {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: center;
    margin: 20px;
}

.product {
    margin: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: box-shadow 0.3s ease;
    width: 300px;
    min-height: 460px;
}

/* Turned off before because it was interfering with dynamic-list-container (search suggestion dropdown box) */
.product:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2000;
}

.img-box {
    display: flex;
    height: 200px;
    align-items: center;
}

.product img {
    max-height: 200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.productTextContainer {
    display: flex;
    flex-direction: column;
    height: 50%;
}

#productList {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    transition: margin-left 0.3s ease;
}

#productList.shifted {
    margin-left: 270px;
}

#product-name {
    height: 88px;
    /* Multiply base height by 4 */
    margin-bottom: 10px;
    font-size: 18px;
}

/* commented out to remove the horizontal layout of the product card
.productInnerContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
} */

.productInfo {
    display: flex;
    flex-direction: column;
}

.productInfo .similar-product-cart-btn,
.productInfo .product-add-to-cart {
    margin-left: auto;
    margin-top: 8px;
    background-color: #74c5b5;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.productInfo .product-add-to-cart:hover {
    background-color: #66a69f;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-left: auto; /* Aligns to the right, matching the Add to Cart button */
}

.decrement-btn,
.increment-btn {
    padding: 5px 10px;
    border: none;
    background: #74c5b5;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.decrement-btn:hover,
.increment-btn:hover {
    background: #66a69f;
}

/* Style for the quantity number */
.quantity-control span {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.productInfo a {
    display: flex;
    flex-direction: column;
}

.product p {
    margin: 0;
    margin-top: 10px;
    padding-right: 5px;
}

.product .uom,
.product .mps,
.product .price {
    font-weight: normal;
    color: #666;
    margin-left: 0;
}

.product .price {
    color: #000;
    font-weight: bold;
}

/* removed unneeded styling
.product .addToCartBox {
    display: flex;
    flex-direction: column-reverse;
} */

.addToCartBox {
    display: flex;
    justify-content: end;
}

#addToCartIcon {
    height: 25px;
}

.product button {
    background-color: #74c5b5;
    color: #fff;
    border: none;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
}

.product button:hover {
    background-color: #66a69f;
}

/* Cart Icon and Counter Styles */
#adding-product-cart {
    display: none;
    position: absolute;
    margin-top: 25px;
    margin-left: -40px;
}

.cart-icon {
    position: relative;
    float: right;
    margin-right: 20px;
    cursor: pointer;
}

.cart-icon img {
    width: 40px;
    height: auto;
}

.cart-counter {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #74c5b5;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* Cart Details Styles */
.cart-container {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Initially hidden */
}

.cart-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #74c5b5;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item img {
    max-width: 80px;
    height: auto;
}

.cart-item-details {
    flex-grow: 1;
    padding-left: 10px;
}

.cart-item-details h4 {
    margin: 0 0 5px;
}

.cart-item-details p {
    margin: 0;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.cart-item-actions .add-btn {
    margin-right: auto;
}

.cart-item-actions button {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.cart-item-actions span {
    margin: 0 10px;
}

.cart-summary {
    text-align: right;
    margin-top: 20px;
}

.cart-summary p {
    margin: 5px 0;
    font-size: 16px;
}

.cart-summary p span {
    font-weight: bold;
}

.filter-buttons {
    display: flex;
    justify-content: space-around;
}

.filter-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;

    flex-grow: 1;
    min-width: 120px;
    height: 40px;
    padding: 6px 8px;

    background-color: #74c5b5;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    margin: 5px;

    font-size: 14px;
}

.filter-button.icon-button {
    min-width: 0;
    width: 40px;
    height: 40px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #74c5b5;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    margin: 5px;
}

.filter-button.icon-button img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.filterButtonDiv {
    display: flex;
}

.filterIconDiv {
    width: 50px;
}

#filter-button {
    padding: 0px;
}

#filter-button:hover {
    background-color: #74c5b5;
}

.button-icon {
    background-color: #74c5b5;
    padding: 5px;
}

.button-icon:hover {
    background-color: #74c5b5;
}

/* .closingIconDiv {
    display: flex;
    justify-content: end;
} */

#button-closing {
    background-color: #74c5b5;
    margin: -5px -5px 0 0;
}

#icon-closing {
    display: flex;
    height: 20px;
}

.filter-button:hover {
    cursor: pointer;
    background-color: #66a69f;
}

#filters {
    margin-top: -40px;
}

#category-filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adjust spacing as needed */
}

/* Make only the category options scrollable */
#category-filter-section {
    max-height: 300px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 5px; /* Optional: add spacing for the scrollbar */
    border: 1px solid #ddd; /* Optional: for visual separation */
    border-radius: 4px;
    padding: 10px;
}

#category-filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#category-filter-section {
    width: 100%;
}

#reset-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: 20px;
    width: 91%;
}

#reset-button {
    padding: 10px 20px;
    background-color: #63676c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#reset-button:hover {
    background-color: #383b40;
}

/* Inner filter containers - always boxed */
#brand-button-container,
#discount-button-container,
#price-button-container {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    gap: 5px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd; /* Always have a border */
}

/* Scrollable behavior when options are available */
#brand-button-container.scrollable,
#discount-button-container.scrollable,
#price-button-container.scrollable {
    max-height: 200px;
    overflow-y: auto;
    /* Border is already present from the default state, no need to redefine */
}

/* Styles for no-options messages */
.no-brands,
.no-discounts,
.no-price-ranges {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
    padding: 10px;
}

/* Outer filter sections - no scrolling or borders */
#brand-filter-section,
#discount-filter-section,
#price-filter-section {
    padding: 5px;
    background: white;
    border-radius: 8px;
}

.category-button {
    white-space: nowrap;
    text-align: left;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
}

.child-category-container {
    display: flex;
    flex-direction: column;
}

.cart-summary button {
    background-color: #5cb8b5;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.cart-summary button:hover {
    background-color: #66a69f;
}

.hidden {
    display: none;
}

.child-category-container.hidden {
    display: none;
    /* Hide when toggled */
}

.child-category-button {
    white-space: nowrap;
    background-color: #f1f1f1;
    color: black;
    text-align: left;
    text-indent: 20px;
}

.child-category-button:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

#filter-category {

    margin: 0 !important;
    height: 50px !important;
    background-color: #74c5b5;
    color: #fff;
    border: 1px solid #74c5b5;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}


.dropdown-filter {
    position: relative;
    display: inline-block;
}

.dropdown-filter-options {
    /*display: none; */
    position: absolute;
    background-color: #f1f1f1;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.search-suggestion-box {
    display: flex;
    justify-content: center;
}

.dynamic-list-container {
    margin-left: 5.6%;
    position: absolute;
    width: 41.2%;
}

.filter-list a {
    text-decoration: none;
    color: black;
}

.filter-item {
    border: 2px solid #a3a2a2;
    border-radius: 5px;
    padding: 5px;
    background: white;
    font-size: 14px;
}

.filter-item:hover {
    background-color: rgb(233, 233, 233);
    cursor: pointer;
}

/* Links inside the dropdown */
.filter-option {
    color: black;
    text-decoration: none;
    display: block;
    width: 175%;
    padding-top: 10%;
    padding-bottom: 10%;
}

.filter-options {
    max-height: 300px; /* Set a maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px; /* Optional styling */
}

/* Show the dropdown menu on hover */
.dropdown-filter:hover .dropdown-filter-options {
    display: block;
}

.search-bar-container {
    position: relative;
    margin: 20px auto 0;
    max-width: 1500px;
    padding: 0 20px;
    width: 100%;
}

#currency-category {
    text-align: start;
}

#currency-dropdown-container {
    margin-left: 10px;
    display: flex;
    width: calc(100% / 4);
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    margin: 20px 10px 0 10px;
}

/*#search-button {*/
/*    margin: 0;*/
/*    border-top-left-radius: 0;*/
/*    border-bottom-left-radius: 0;*/
/*    padding: 5px;*/
/*    font-size: 14px;*/
/*}*/

i {
    color: #74c5b5;
}

/* Product Details Styles */
.product-h1 {
    margin-left: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.product-details {
    display: flex;
    gap: 30px;
    align-items: center;
}

#rightHeading {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Optional margin to separate the button from other elements */
#headerAddToCartContainer {
    margin-left: 20px;
}

.header-add-to-cart-btn {
    background-color: #74c5b5;
    color: #fff;
    border: none;
    padding: 16px 32px; /* Increased padding */
    border-radius: 6px;
    font-size: 24px; /* Larger font size for icon/text */
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 50px;
}

.header-add-to-cart-btn:hover {
    background-color: #66a69f;
}

/* Styling for the Out of Stock text */
#headerAddToCartContainer .status {
    font-size: 18px;
    font-weight: bold;
    color: #b30000;
    background-color: #f8d7da;
    padding: 12px 24px;
    border-radius: 6px;
}

/* Product image styling */
.product-image {
    flex: 1;
    text-align: center;
}

.product-image img:hover {
    transform: scale(1.5) translateX(110px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.01ms ease, box-shadow 0.1ms ease;
    background: white;
}

.product-info {
    flex: 2;
    padding: 20px;
}

.product-info h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.product-info .category-label {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.detailsContainer {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.product-info .details {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.product-info .details p {
    margin: 6px 0;
}

.product-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.product-description h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.product-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.availability {
    text-align: left;
    margin-top: 20px;
}

.availability .status {
    font-size: 16px;
    color: green;
    font-weight: bold;
}

.availability button {
    padding: 12px 18px;
    font-size: 16px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.availability button:hover {
    background-color: #218838;
}

.product-disclaimer {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 4px;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    padding-top: 60px;
    /* Location of the box */
    left: 0;
    top: 52px;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Modal Content (the image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.no-results {
    font-size: 18px;
    color: #ff0000;
    /* Red color for visibility */
    text-align: center;
    margin: 20px;
    width: 100%;
}

#no-result-list {
    background-color: white;
    margin: 0;
    border-radius: 5px;
    padding: 3px;
    width: 98.8%;
    border: 2px solid #a3a2a2;
}

/* Caption of Modal Image (optional) */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb {
    font-size: 14px;
    margin: 20px 0 0 20px;
    text-align: left;
}

.breadcrumb a {
    color: #007bff;
    /* Link color */
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0056b3;
    /* Darker link color on hover */
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    /* Current page text color */
}

.category-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Adjust spacing between the buttons */
}

.scroll-container {
    max-height: 240px; /* Adjust this value based on your expected child container height (e.g., 6 items * 40px each) */
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #ddd; /* Optional, for visual separation */
    padding: 5px; /* Optional */
}

.duplicate-container {
    max-height: 240px; /* Adjust this height to show max 6 items (e.g., if each item is about 40px tall) */
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #ddd; /* Optional: a border to visually separate the scroll area */
    padding: 5px; /* Optional: padding for aesthetics */
}

.child-category-container {
    margin-top: 5px;
}

.refresh-button {
    background-color: #74c5b5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
}

.refresh-button:hover {
    background-color: #66a69f;
}

.old-price {
    text-decoration: line-through;
    color: red;
    margin-right: 5px;
}

.discounted-price {
    font-weight: bold;
    color: green;
}

#pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination-button {
    background-color: #74c5b5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 5px;
    cursor: pointer;
}

.pagination-button.active {
    background-color: #007bff;
    font-weight: bold;
}

.pagination-button:hover {
    background-color: #66a69f;
}

#goBackButton {
    margin: 20px;
    padding: 10px 20px;
    background-color: #74c5b5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#goBackButton:hover {
    background-color: #66a69f;
}

#similarProductsContainer {
    display: none;
    max-width: 800px;
    margin-left: 50px;
}

.similar-product-card {
    margin: 0 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

.similar-product-image img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.similar-product-info {
    text-align: center;
    margin-top: 8px;
}

.similar-product-cart-btn {
    background-color: #74c5b5;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.similar-product-cart-btn:hover {
    background-color: #66a69f;
}

.similar-product-card:hover .similar-product-image img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .product-details {
        flex-direction: column;
        text-align: center;
    }

    .availability {
        text-align: center;
    }
}

/* ============================================================
 * VS responsive fixes (added 2026-05-06)
 * Original layout assumed >=1024 px width: #filter-div was
 * absolutely positioned at left:220px and #hidden-filter-section
 * fixed at width:328px, which overflowed the viewport on phones
 * (360-414 px). #unselected-button / #selected-button at 206px
 * each could not sit side-by-side on narrow screens. Below 992 px
 * we drop the absolute positioning entirely and let the filter
 * controls flow with normal block stacking.
 * Theme + colours unchanged — only layout constraints relaxed.
 * ============================================================ */

/* Cap any long filter content so it cannot push the page wider */
#hidden-filter-section { max-width: 100%; box-sizing: border-box; }
#filter-div            { box-sizing: border-box; }
#unselected-button,
#selected-button       { max-width: 100%; box-sizing: border-box; }

/* Tablet & smaller — collapse the absolutely-positioned filter row */
@media (max-width: 991.98px) {
    #filter-div {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 12px;
    }
    #hidden-filter-section {
        width: 100%;
        max-width: 100%;
    }
    .buttonMenu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    #unselected-button,
    #selected-button {
        width: auto;
        flex: 1 1 140px;
        min-height: 44px;
    }
}

/* Phones — final tightening */
@media (max-width: 575.98px) {
    #filter-div { padding: 0 8px; }
    #unselected-button,
    #selected-button { flex: 1 1 100%; }
    #search-input,
    #filter-category { font-size: 14px; }
}

/* Tiny phones (360 px) — guarantee no horizontal scroll */
@media (max-width: 374.98px) {
    #hidden-filter-section,
    #filter-div { padding-left: 4px; padding-right: 4px; }
}

/* Defensive: outer page must never scroll horizontally */
html, body { overflow-x: clip; max-width: 100vw; }
