/* Jet Cache: /catalog/view/theme/default/stylesheet/opencart_debug_bar.css */
#debug-wrapper {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    background: #fff;
    z-index: 1000;
}

#debug-panel-header {
    display: block;
    width: 100%;
    height: 20px;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f9ffa3;
}

#debug-panel-body {
    position: relative;
    width: 100%;
    bottom: 0;
    left: 0;
    background: #fff;
    height: 400px;
    overflow-y: auto;
    display: none;
}

#debug-toggle {
    position: absolute;
    font-size: 20px;
    cursor: pointer;
    top: -2px;
    right: 10px;
}

#debug-panel-body .nav-tabs > li > a {
    border-radius: 0;
}

#debug-panel-body table {
    border: 1px solid #ddd;
}

#debug-panel-body table thead {
    font-weight: bold;
}
/* Jet Cache: catalog/view/theme/o4ki/stylesheet/smartsearch.css */
/* New, corrected SmartSearch Custom Styles */

/* This is the main dropdown container that appears */
.smartsearch {
    width: 100%; /* Full width of the input field */ 
    position: absolute;
    top:45px;
    /* The top, left, and width properties are likely set by a JavaScript file.
       This CSS will control the look and feel inside the container. */
    z-index: 1001; /* High z-index to appear over other content */
    background: #ffffff;
    border: 1px solid #0681b9;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    max-height: 500px; /* Limit the height for long lists of results */
    overflow-y: auto; /* Add a scrollbar if the content overflows */
    overflow-x: hidden;
    border-radius: 0.75rem;
}

/* The list that holds all result items */
.smartsearch ul.items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* The block that contains each result's content */
.smartsearch .item_block {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.smartsearch .item_block .title {
    font-weight: 400;
}

.smartsearch li.item:last-child .item_block {
    border-bottom: none; /* Remove border from the very last item */
}

.smartsearch li.item:hover .item_block { /* Apply hover to the item, but change the block's background */
    background-color: #f5f5f5;
    cursor: pointer;
}

/* The product image container */
.smartsearch .image {
    flex-shrink: 0; /* Prevent image from shrinking */
    margin-right: 12px;
    width: 50px;
    text-align: center;
}

.smartsearch .image img {
    max-width: 100%;
    height: auto;
}

/* The product title and model container */
.smartsearch .title {
    font-size: 14px;
    color: #222;
    line-height: 1.4;
    flex-grow: 1; /* Allow title to take up available space */
}

.smartsearch .title a {
    text-decoration: none;
    color: inherit;
}

.smartsearch .title span {
    font-size: 12px;
    color: #888;
}

/* The price container */
.smartsearch .price {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-left: 5px;
    text-align: right;
}

.smartsearch .price .oldprice {
    font-weight: normal;
    text-decoration: line-through;
    color: #999;
    display: block;
    font-size: 12px;
}

/* The 'Show all results' button/link container */
.smartsearch .button {
    padding: 12px;
    text-align: center;
    background: #f7f7f7;
    border-top: 1px solid #e7e7e7;
}

.smartsearch .button a, .smartsearch .button div {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.smartsearch .button a:hover {
    color: #000;
}

/* Styles for the Add to Cart button */
.smartsearch .product-add-cart {
    margin-left: 10px; /* Add space between price and button */
}

.smartsearch .product-add-cart .btn {
    padding: 1.25rem; /* Adjust padding to your theme's button sizes */
    font-size: 14px;
    border-radius: 0.75rem;
    margin-left: 5px;
    height:auto;
    /* Assuming you have global .btn and .btn-primary styles, 
       these will apply. You can add more overrides here if needed. */
}

