body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f2f2f2;
    color: #333;
}

header.site-header {
    background:#edf1f1;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    height: 50px;
    vertical-align: middle;
    margin-right: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #a0a0a0; /* Gray border */
    border-radius: 0px; /* Rounded corners */
    overflow: visible;
    width: 100%;
    max-width: 600px;
    background-color: #fff; /* White background for the input area */
    z-index: 1;
}

.search-container select,
.search-container input[type="text"] {
    padding: 10px;
    border: none; /* Remove default borders */
    outline: none;
    height: 40px; /* Ensure consistent height */
    box-sizing: border-box;
}

.search-container select {
    border-right: 2px solid #a0a0a0; /* Pink separator line */
    cursor: pointer;
    background-color: #f0f0f0; /* Light gray background */
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px; /* Add padding for a custom arrow if needed */
    color: black;

}

.search-container input[type="text"] {
    flex-grow: 1;
    padding-left: 15px; /* Add some left padding */
}

.search-button {
    padding: 10px 15px;
    background-color: #fff; /* White background for the button */
    border: none; /* Remove default border */
    color: #333; /* Dark color for icon */
    cursor: pointer;
    height: 40px; /* Ensure consistent height */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button i {
    font-size: 20px;
    color: #333; /* Ensure icon color is dark */
}

/* Style for a potential custom dropdown arrow */
/* .search-container::after {
    content: '\f0d7'; /* Font Awesome caret-down icon */
/*    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: calc(select width + padding - arrow width);
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
} */

.icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.icons i {
    font-size: 28px;
    /* color: white; */ /* Remove the general white color */
}

.icons .fa-heart { /* Assuming Font Awesome class for heart */
    color: red; /* Set heart icon color to red */
}

.icons .fa-shopping-cart, /* Assuming Font Awesome class for cart */
.icons .fa-solid.fa-sync,
.icons .fa-solid.fa-user{ /* Targeting the sync icon with the correct class */
    color: black; /* Set cart and sync icon colors to black */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    /* color: white; */ /* Remove the general white color for user-info */
}

.user-avatar i {
    font-size: 28px; /* Set user avatar icon size to match other icons */
    margin-right: 10px;
    /* color: black; */ /* Remove or comment out the previous rule */
}

.user-info .fa-solid.fa-user { /* Target the user avatar icon specifically */
    color: black; /* Set user avatar icon color to black */
    font-size: 28px; /* Ensure font size is 28px using a more specific selector */
}

.user-details p {
    margin: 0;
    font-size: 14px;
}

.user-name {
    font-weight: bold;
    color: black;
}

.delivery-code {
    font-size: 12px;
    color: black;
}

.category-bar {
    background: linear-gradient(to right, #e2d2f0, #f0e0d2);
    padding: 10px 0;
    font-size: 19px;
    text-align: center;
    color: #333;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 0;
}

/* Styles for the Promotional Images Section */
.promo-images {
    display: flex;
    justify-content: center; /* Center the images horizontally */
    align-items: center;
    padding: 0px 0px; /* Increased top/bottom padding */
    background-color: #fff; /* Add a background color */
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    gap: 100px;
}

.promo-images::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Chrome, Safari, and Opera */
}

.promo-images img {
    height: 70px; /* Increased height for promotional images */
    margin: 0 12px; /* Slightly increased space between images */
    object-fit: contain;
}

.deliver-to {
    font-size: 14px;
    margin-top: 10px;
}

.product-layout {
    background: #fff;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

.product-main {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-img {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 300px;
}

.product-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.more-thumbnails {
    width: 60px;
    height: 60px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.product-info {
    flex-grow: 1;
    max-height: 500px;
    overflow-y: auto;
    padding-left: 20px;
    padding-right: 0;
    box-sizing: border-box;
    
    /* Hide scrollbar for different browsers */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.product-info::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.price {
    color: green;
    font-size: 20px;
}

.price del {
    color: gray;
}

.price span {
    color: red;
    font-weight: bold;
}

.offers ul {
    padding-left: 20px;
}

.actions button {
    margin-right: 10px;
    padding: 10px 15px;
    background: #4a00e0;
    color: white;
    border: none;
    border-radius: 5px;
}

.setup-service, .product-specs {
    margin-top: 20px;
}

footer {
    margin-top: 30px;
    padding: 20px;
    background-color: #eee;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links a {
    color: #4a00e0;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.variants {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.variant-colors,
.variant-sizes {
    margin-bottom: 15px;
}

.color-options,
.coupon-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0
}

.color-options img,
.coupon-options img {
    width: 50px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.size-option {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
}

.size-option:hover {
    background-color: #ddd;
}

.offers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.offer-blocks {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.offer-block {
    flex: 1;
    border: 1px solid #ffcc00;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff8e1;
}

.offer-block h5 {
    margin-top: 0;
    color: #e65100;
}

.coupon {
    margin-top: 15px;
}

.setup-service {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

main.product-layout > section.setup-service {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    box-sizing: border-box;
    vertical-align: top;
}

main.product-layout > section.setup-service:last-child {
    margin-right: 0;
}

.setup-service p {
    margin: 5px 0;
}

.setup-service a {
    color: #4a00e0;
    text-decoration: none;
}

.product-specs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-specs ul {
    padding-left: 20px;
}

.product-specs li {
    margin-bottom: 5px;
}

.product-specs i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    header.site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo,
    .search-container,
    .icons,
    .user-info {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .search-container {
        max-width: 100%;
    }

    .product-main {
        flex-direction: column;
    }

    .product-img {
        width: 100% !important;
        height: 320px !important; /* Fixed height for tablet view */
        object-fit: contain !important; /* Scales image to fit, shows background if smaller */
        background-color: #ffffff !important; /* White background for letterboxing */
        margin-bottom: 20px;
    }

    .product-info {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    main.product-layout > section.setup-service {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .search-bar {
        display: none;
    }

    .mobile-search-bar {
        display: block;
    }

    .mobile-search-bar input[type="search"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
    }

    .mobile-search-bar button[type="submit"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        background-color: #4a00e0;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .mobile-search-bar button[type="submit"]:hover {
        background-color: #3a0095;
    }
}

.buy-ads-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Styles for the Buy It With Section */
.buy-it-with {
    flex: 2;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.buy-it-with h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.buy-it-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.buy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 120px;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-basis: 100px;
}

.buy-item input[type="checkbox"] {
    margin-bottom: 10px;
}

.buy-item img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

.item-description {
    font-size: 12px;
    margin-bottom: 5px;
    height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.item-price {
    font-weight: bold;
    font-size: 14px;
}

.item-price sup {
    font-size: 0.7em;
    vertical-align: super;
}

.original-price {
    font-size: 0.9em;
    color: #777;
    text-decoration: line-through;
}

.plus-sign {
    font-size: 24px;
    font-weight: bold;
    color: #555;
    margin: 0 10px;
}

.total-and-button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    margin-top: 0;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.add-all-button {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.dispatch-info {
    font-size: 12px;
    color: #555;
}

.dispatch-info i {
    margin-right: 5px;
    color: #4a00e0;
}

.dispatch-info a {
    color: #4a00e0;
    text-decoration: none;
}

/* Styles for the Advertisement Block (repeated) */
.ad-block {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #ffcccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.ad-block h2 {
    margin-top: 0;
    color: #c0392b;
}

.ad-block img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments for Buy It With and Ads */
@media (max-width: 768px) {
    .buy-ads-container {
        flex-direction: column;
        padding: 0 10px;
    }

    .buy-it-with,
    .ad-block {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .buy-it-items {
        flex-direction: column;
        align-items: center;
    }

    .buy-item {
        max-width: 100%;
    }

    .total-and-button {
        margin-left: 0;
        align-items: center;
    }
}

/* Styles for the Product Details and Ads Section */
.details-ads-container {
    display: flex;
    gap: 20px; /* Space between sidebar and content on desktop */
    margin-top: 30px;
    padding: 20px; /* Uniform padding for desktop */
    /* flex-wrap: wrap; REMOVED to allow columns to stretch to equal height */
    background-color: #e0e0e0;
    box-sizing: border-box;
}

.details-sidebar {
    flex-basis: 200px;
    flex-shrink: 0;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
}

.details-sidebar h3 {
    margin-top: 0;
}

.details-nav ul {
    list-style: none;
    padding: 0;
}

.details-nav li {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.details-nav a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.details-nav a:hover {
    background-color: #f0f0f0;
}

.ad-block-sidebar {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(to right, #a8c0ff, #3f2b96);
    color: white;
    text-align: center;
    border-radius: 8px;
    }

.ad-block-sidebar h2 {
    margin-top: 0;
    color: white;
    height:340px;
}

.details-content {
    flex-grow: 1;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
    min-width: 0; /* Helps prevent overflow with flex items */
}

.ad-block-content-top,
.ad-block-content-bottom {
    text-align: center;
    padding: 15px;
    background: linear-gradient(to right, #a8c0ff, #3f2b96);
    color: white;
    margin-bottom: 20px;
    border-radius: 8px;
}

.ad-block-content-top h2,
.ad-block-content-bottom h2 {
     margin-top: 0;
     color: white;
}

.details-content section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.details-content section:last-child {
    border-bottom: none;
}

/* Responsive adjustments for Product Details and Ads */
@media (max-width: 768px) {
    .details-ads-container {
        flex-direction: column;
        padding: 15px; /* Uniform padding for mobile/tablet */
        gap: 15px;    /* Space between stacked items */
    }

    .details-sidebar {
        flex-basis: auto; /* Reset flex-basis for stacking */
        width: 91%;    /* Full width */
        margin-bottom: 0; /* Rely on container gap for spacing */
        margin-top: 0;    /* Rely on container gap for spacing */
    }

    .details-content {
        width: 100%;
        margin-bottom: 0; /* Rely on container gap for spacing */
    }
}

/* Styles for the Bought Together Section */
.bought-together {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.bought-together h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.bought-together-tabs {
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.bought-together-tabs .tab {
    display: inline-block;
    padding: 5px 15px;
    margin-right: 10px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    font-weight: bold;
}

.bought-together-tabs .tab.active {
    color: #4a00e0;
    border-bottom: 2px solid #4a00e0;
    margin-bottom: -2px;
}

.bought-items {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bought-items::-webkit-scrollbar {
    display: none;
}

.bought-item {
    flex: 0 0 225px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
    min-height: 300px; /* Adjust as needed */
}

.bought-item-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.bought-item-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    max-height: 180px; /* Adjust as needed */
}

.bought-item-favorite {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 0 3px #000;
}

.bought-item-description {
    font-size: 12px;
    margin-bottom: 5px;
    height: 2.4em; /* Limit description to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.bought-item-rating {
    font-size: 11px;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.bought-item-rating i {
    color: #ffc107;
    margin-right: 3px;
}

.assured-badge {
    display: inline-block;
    background-color: #e0f7fa;
    color: #0077b6;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.assured-badge i {
     color: #0077b6;
     margin-right: 3px;
}

.bought-item-price {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
}

.bought-item-price del {
    color: #777;
    font-weight: normal;
    margin-left: 5px;
}

.bought-item-price span {
    color: #dc3545;
    font-weight: bold;
    margin-left: 5px;
}

.sponsored-label {
    font-size: 11px;
    color: #777;
    margin-top: 5px;
}

.bought-item p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for Bought Together */
@media (max-width: 768px) {
    .bought-items {
        padding-bottom: 10px;
    }

    .bought-item {
        flex: 0 0 120px;
    }

    .bought-item-price br {
        display: block;
    }
}

/* Styles for the Recently Viewed Section */
.recently-viewed {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.recently-viewed > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recently-viewed h3 {
    margin: 0;
    font-size: 20px;
}

.recently-viewed button {
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.recently-viewed-items {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.recently-viewed-items::-webkit-scrollbar {
    display: none;
}

.rv-item {
    flex: 0 0 225px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 10px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
    min-height: 300px; /* Adjust as needed */
}

.rv-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 10px;
    max-height: 180px; /* Adjust as needed */
}

.rv-item-description {
    font-size: 12px;
    margin-bottom: 5px;
    height: 2.4em; /* Limit description to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-item-rating {
    font-size: 11px;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.rv-item-rating i {
    color: #ffc107;
    margin-right: 3px;
}

.rv-item-rating span {
    color: #28a745;
}

.rv-item-price {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
}

.rv-item-price del {
    color: #777;
    font-weight: normal;
    margin-left: 5px;
}

.rv-item-discount {
    font-size: 11px;
    color: #dc3545;
    font-weight: bold;
    margin-left: 5px;
}

/* Responsive adjustments for Recently Viewed - matching bought-together */
@media (max-width: 768px) {
    .recently-viewed-items {
        padding: 0 10px 10px;
    }

    .recently-viewed-item {
        flex: 0 0 120px;
    }
}

.recently-viewed-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.recently-viewed-arrow {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #4a00e0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}
.recently-viewed-arrow.left {
    left: 0;
}
.recently-viewed-arrow.right {
    right: 0;
}
.recently-viewed-arrow:hover {
    background: #4a00e0;
    color: #fff;
}

.recently-viewed-items {
    margin: 0 44px;
    width: 100%;
}

/* Styles for the You might be interested in Section */
.might-be-interested {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.might-be-interested h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.might-be-interested-items {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.might-be-interested-items::-webkit-scrollbar {
    display: none;
}

.mbi-item {
    flex: 0 0 280px; /* Adjust width for side-by-side layout */
    display: flex;
    align-items: center; /* Vertically align items */
    text-align: left; /* Align text to the left */
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.mbi-item img {
    width: 80px; /* Adjust image width */
    height: 80px; /* Adjust image height */
    object-fit: contain;
    margin-bottom: 10px;
    margin-right: 15px; /* Space between image and text */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.mbi-text-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow text content to take available space */
}

.mbi-item-description {
    font-size: 14px;
    color: #333;
    margin: 0 0 2px 0; /* Adjust margin */
    height: auto; /* Remove fixed height */
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbi-item-discount {
    font-size: 11px; /* Adjust font size */
    color: #28a745;
    margin-bottom: 8px; /* Adjust margin */
}

.mbi-shop-button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Responsive adjustments for You might be interested in */
@media (max-width: 768px) {
    .might-be-interested-items {
        padding-bottom: 10px;
    }

    .mbi-item {
        flex: 0 0 200px; /* Adjust width for smaller screens */
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center;
        text-align: center;
    }

    .mbi-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .mbi-text-content {
        align-items: center;
    }
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow: hidden;
    padding: 10px;
    display: none;
    flex-direction: row;
    gap: 5px;
    align-items: flex-start;
    white-space: normal;
}

.search-suggestions::-webkit-scrollbar {
    display: none;
}

.search-suggestions {
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: normal;
    display: none;
}

/* Styles for the search suggestion items */
.search-suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 120px;
    text-align: left;
    background-color: white;
    white-space: normal;
    overflow: hidden;
}

.search-suggestion-item:last-child {
    /* border-bottom: none; */
}

.search-suggestion-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 5px;
    margin-right: 0;
}

.suggestion-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.suggestion-description {
    font-size: 11px;
    color: #333;
    margin: 0 0 2px 0;
    height: 2.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.suggestion-rating {
    font-size: 9px;
    color: #555;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.suggestion-rating i {
    color: #ffc107;
    margin-right: 2px;
    font-size: 8px;
}

.suggestion-rating span {
    color: #28a745;
    font-size: 8px;
}

.suggestion-price {
    font-size: 11px;
    font-weight: bold;
    color: #28a745;
    margin-top: auto;
}

.suggestion-price del {
    color: #777;
    font-weight: normal;
    margin-left: 3px;
    font-size: 9px;
}

.suggestion-price span {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
    font-size: 9px;
}

/* Add some basic styling for the user info and icons to ensure layout */
.icons,
.user-info {
    display: flex;
    align-items: center;
}

.icons i,
.user-info i {
    margin-left: 15px;
    cursor: pointer;
}

.user-details {
    margin-left: 10px;
}

.user-details p {
    margin: 0;
    font-size: 14px;
}

.site-header .logo {
    height: 40px;
    margin-right: 20px;
}
@media (max-width: 600px) {
    body {
        padding: 0;
        font-size: 14px;
    }

    header.site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .logo {
        height: 40px;
        margin-bottom: 10px;
    }

    .search-container {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .search-container input,
    .search-container select,
    .search-button {
        width: 100%;
    }

    .icons, .user-info {
       display: none;
    }
    .icons .fa-shopping-cart,
    .fa-solid.fa-user, /* Assuming Font Awesome class for cart */
.icons .fa-solid.fa-sync,
.icons .fa-solid.fa-user,
.icons .fa-heart
{
    display: none;
}

    .product-layout {
        padding: 10px;
        margin: 10px 0;
    }

    .product-main {
        display: flex; /* Ensure flex context */
        flex-direction: row; /* Arrange image and info horizontally */
        flex-wrap: nowrap;   /* Prevent wrapping to new line */
        gap: 10px;           /* Adjust space between image and info */
    }

    .product-img {
        width: 120px !important; /* Fixed width from your existing rule */
        height: 160px !important; /* Proportional height or desired fixed height for mobile */
        object-fit: contain !important; /* Scales image to fit, shows background if smaller */
        background-color: #ffffff !important; /* White background for letterboxing */
        flex-shrink: 0; /* Prevent image from shrinking too much */
    }

    .product-info {
        padding: 0;
        flex-grow: 1; /* Allow info section to take remaining space */
        width: auto; /* Or flex-basis: 0 for more explicit flex behavior */
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .actions button {
        width: 100%;
        font-size: 16px;
    }

    .buy-it-items,
    .bought-items,
    .recently-viewed-items,
    .might-be-interested-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .buy-item,
    .bought-item,
    .rv-item,
    .mbi-item {
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    .footer-content {
        font-size: 12px;
    }
}
/* Global style for main product image to ensure consistent display box */
.product-layout .product-img {
    height: 400px !important; /* Corresponds to your HTML height attribute, overrides inline height:auto */
    width: 100% !important;   /* Ensures it takes full width of its container */
    object-fit: contain !important; /* Scales image to fit, shows background if smaller */
    background-color: #ffffff !important; /* White background for letterboxing */
    /* border and border-radius are in inline styles, which is fine */
}

/* --- Mobile Enhancements for Flipkart-like Layout --- */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 0;
        overflow-x: hidden;
    }
    
    header.site-header {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .logo {
        height: 40px;
        margin-bottom: 10px;
        align-self: center;
        display: none;
    }
    
    @media (max-width: 768px) {
        .search-container {
            flex-direction: row;
        }
    
        .search-container .category-dropdown {
            width: 25%;
        }
    
        .search-container input[type="text"] {
            width: 50%;
        }
    
        .search-button {
            width: 25%;
        }
    }
    
    .icons,
    .user-info {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .promo-images {
        overflow-x: auto; /* Allow scrolling */
        white-space: nowrap;
        padding: 0px 0;
        scrollbar-width: none;
        /* Hide scrollbar for Firefox */
        gap: 15px; /* Set desired gap for mobile */
    }
    
    .promo-images::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    
    .promo-images img {
        height: 50px;
        width: auto;
        margin: 0; /* Remove individual margins, gap on container will handle spacing */
    }
    
    .category-bar {
        overflow-x: hidden;
        white-space: nowrap;
        padding: 10px 5px;
        font-size: 7px;
    }

    .product-main {
        display: flex; /* Ensure flex context for side-by-side layout */
        flex-direction: row; /* Arrange image and info horizontally */
        flex-wrap: nowrap;   /* Prevent wrapping to new line */
        gap: 15px;           /* Adjust space between image and info */
    }
    
    .row {
        flex-direction: column;
        margin: 0;
    }
    
    .col-lg-4, 
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .product-img {
        width: 40%; /* Adjust percentage as needed, e.g., 150px for fixed width */
        flex-shrink: 0; /* Prevent image from shrinking too much */
        max-width: none; /* Consistent with width being set */
    }

    .product-info {
        flex-grow: 1; /* Allow info section to take remaining space */
        width: auto; /* Or flex-basis: 0 for more explicit flex behavior */
        padding: 0; /* Reset padding for consistent side-by-side layout */
    }
    
    .variants {
        margin: 15px 0;
    }
    
    .color-options,
    .size-options {
        overflow-x: auto;
        padding-bottom: 5px;
        display: flex;
        gap: 8px;
    }
    
    .actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .actions button {
        width: 100%;
        padding: 12px;
    }
    
    .buy-it-items,
    .bought-items,
    .recently-viewed-items,
    .might-be-interested-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding: 10px 0;
    }
    
    .buy-item,
    .bought-item,
    .rv-item,
    .mbi-item {
        flex: 0 0 70%;
        scroll-snap-align: start;
        margin-right: 15px;
    }
    
    .total-and-button {
        min-width: 70%;
    }
    
    .details-ads-container,
    .buy-ads-container {
        flex-direction: column;
    }
    
    .details-nav ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .details-nav li {
        white-space: nowrap;
    }
    
    .recently-viewed-arrow {
        display: none; /* Hide arrows on mobile */
    }
    
    .mbi-item {
        flex: 0 0 150px;
    }
    
    .footer-content {
        padding: 15px 10px;
        font-size: 12px;
    }
}

/* Mobile-specific header elements (hidden by default) */
.mobile-back-arrow,
.mobile-cart-icon {
    display: none; /* Hidden by default, shown in media query */
    color: #333; /* Match other icon colors or adjust as needed */
    font-size: 22px; /* Adjust size as needed */
    text-decoration: none;
    padding: 0 10px; /* Add some padding for easier tapping */
}

/* Styles for the search bar wrapper which groups dropdown, input, and button */
/* This ensures that on desktop, if .search-bar-wrapper is somehow visible, it behaves with flex */
.search-bar-wrapper {
    display: flex; 
    flex-grow: 1;
}


/* Mobile view adjustments for header and search */
@media (max-width: 768px) { 
    header.site-header {
        padding: 10px; /* Adjust header padding for mobile */
        flex-wrap: nowrap; /* Ensure header items stay in one line */
    }

    /* Hide desktop-specific elements in the header */
    header.site-header .logo,
    header.site-header .icons, 
    header.site-header .user-info {
        display: none;
    }

    /* Make the main search container take full width and house mobile items */
    .search-container {
        width: 100%;
        max-width: none; /* Override desktop max-width */
        border: none; /* Optional: remove border for a cleaner mobile look */
        background-color: transparent; /* Or match header background */
        padding: 0; /* Remove padding, handled by icons/wrapper */
        display: flex; /* Ensure it's flex to align children */
        align-items: center;
        justify-content: space-between; /* Space out arrow, wrapper, cart */
    }

    .mobile-back-arrow,
    .mobile-cart-icon {
        display: flex; /* Show them on mobile */
        align-items: center;
        flex-shrink: 0; /* Prevent them from shrinking */
    }

    .search-bar-wrapper {
        display: flex;
        flex-grow: 1; /* Takes up available space between arrow and cart */
        margin: 0 5px; /* Small margin between icons and search bar */
        border: 1px solid #ccc; /* Border for the search bar itself */
        border-radius: 20px;
        overflow: hidden; /* To contain children's borders/backgrounds */
        background-color: #fff; /* Background for the search bar */
        height: 38px; /* Define a fixed height for the wrapper */
    }

    /* Hide category dropdown to make search bar shorter on mobile */
    .search-container .search-bar-wrapper .category-dropdown {
        display: none;
    }

    .search-container .search-bar-wrapper input[type="text"] {
        flex-grow: 1;
        border: none; /* Remove individual border, wrapper has one */
        padding-left: 10px;
        height: 100%; /* Fill the wrapper height */
        box-sizing: border-box;
        font-size: 14px; /* Ensure readable font size */
    }

    .search-container .search-bar-wrapper .search-button {
        border: none; /* Remove individual border */
        background-color: transparent; /* Make button background transparent */
        padding: 0 10px; /* Adjust padding */
        height: 100%; /* Fill the wrapper height */
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-container .search-bar-wrapper .search-button i {
        font-size: 18px; /* Adjust icon size if needed */
        color: #333; /* Ensure icon color is visible */
    }

    /* Adjust search suggestions positioning for mobile */
    .search-suggestions {
        top: 100%; /* Position below the search-container */
        left: 0; 
        right: 0;
        width: 100%; 
        max-width: 100%;
        box-sizing: border-box;
        border-top: 1px solid #eee; 
        z-index: 1000; 
    }
}
  @media (max-width: 768px) {
    .actions {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }
    .actions button {
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        margin: 0;
    }
    .trust-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 10px 0;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 4px;
        width: 100%;
    }
    .trust-badge {
        flex: 1 1 45%;
        min-width: 120px;
        margin: 4px;
    }
    .trust-badge img {
        width: 20px;
        height: 20px;
    }
    .trust-badge span {
        font-size: 13px;
    }
    .trust-badge {
        gap: 4px;
    }

/* Mobile Styles for Offers and Coupon */
@media (max-width: 768px) {
    /* Offers Section */
    .offers {
        margin-bottom: 20px;
        padding: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .offers h4 {
        margin: 0 0 15px 0;
        font-size: 18px;
        color: #333;
    }

    .offer-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .offer-container::-webkit-scrollbar {
        display: none;
    }

    .offer-blocks {
        display: flex;
        gap: 10px;
        padding: 0 10px;
        min-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0
    }

    .offer-block {
        flex: 0 0 150px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff8e1;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        min-height: 100px;
    }

    .offer-block h5 {
        margin: 0 0 8px 0;
        color: #333;
        font-size: 14px;
        font-weight: 600;
    }

    .offer-block p {
        margin: 0;
        font-size: 12px;
        color: #555;
        line-height: 1.4;
        height: 2.4em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Coupon Section */
    .coupon {
        margin-bottom: 20px;
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .coupon p {
        margin: 0 0 12px 0;
        font-size: 14px;
        color: #2e7d32;
        font-weight: 600;
    }

    .coupon-container {
        display: flex;
        gap: 10px;
        align-items: center;
        background: #f1f8e9;
        padding: 12px;
        border-radius: 6px;
    }

    .coupon-input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

    .coupon-button {
        padding: 10px 15px;
        background-color: #4caf50;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .coupon-button:hover {
        background-color: #45a049;
    }

    /* Adjustments for smaller screens */
    @media (max-width: 600px) {
        .offer-block {
            width: 120px;
            min-height: 80px;
            padding: 10px;
        }

        .offer-block h5 {
            font-size: 13px;
        }

        .offer-block p {
            font-size: 11px;
            line-height: 1.3;
        }

        .coupon {
            padding: 12px;
        }

        .coupon p {
            font-size: 13px;
            margin-bottom: 8px;
        }

        .coupon-container {
            flex-direction: column;
            gap: 8px;
            padding: 8px;
        }

        .coupon-input {
            font-size: 12px;
            padding: 8px;
        }

        .coupon-button {
            font-size: 12px;
            padding: 8px 12px;
        }
    }
}