.oc-search-form {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0;
   /* background: #f7f7fa; */
    border-radius: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    padding: 0.2em 0.5em;
    display: flex;
    align-items: center;
}

.oc-search-input {
    width: 100%;
    padding: 0.7em 1.2em 0.7em 3em;
    border-radius: 25px;
    border: 1px solid #2874E5;
    font-size: 1.13em;
   /* background: #f2f3f7; */
    color: #222;
    box-shadow: none;
    outline: none;
    transition: box-shadow 0.2s, background 0.2s;
}

.oc-search-input::placeholder {
    color: #2874E5;
    opacity: 1;
}

.oc-search-input:focus {
    background: #e9eaf0;
    box-shadow: 0 0 0 2px #b3c6f7;
}

.oc-search-form .oc-search-icon {
    position: absolute;
    left: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    color: #2874E5;
    font-size: 1.5em;
    pointer-events: none;
    z-index: 2;
}

.oc-search-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    padding-bottom: 0;
    min-width: 220px;
    max-height: 80vh;
    /* Increased from 450px */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oc-sg-scroll-container {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f0f0f0;
}

.oc-sg-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.oc-sg-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.oc-sg-scroll-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.oc-sg-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.oc-sg-columns-container {
    overflow: hidden;
    /* Clear floats for the footer */
}

@media (min-width: 768px) {
    .oc-search-suggestions {
        left: 50%;
        right: auto;
        width: 100vw;
        transform: translateX(-50%);
        max-width: none;
        min-width: 0;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.13);
        font-size: 1.15em;
        margin-left: 0;
        animation: oc-fadein 0.18s cubic-bezier(.4, 0, .2, 1);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: 80vh;
        /* Increased from 65vh */
    }

    .oc-sg-scroll-container {
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .oc-sg-columns-container {
        display: flex;
        padding: 1.2em 1vw;
        gap: 2vw;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .oc-sg-column.oc-products {
        flex: 2;
        padding-right: 2vw;
    }

    .oc-sg-column.oc-categories {
        flex: 1;
        padding-left: 2vw;
        border-left: 2.5px solid #e0e0e0;
    }

    .oc-sg-item {
        padding: 1.2em 1.5em;
        font-size: 1.18em;
        border-radius: 12px;
        margin-bottom: 0.5em;
        transition: background 0.18s, box-shadow 0.18s;
    }

    .oc-sg-item.selected,
    .oc-sg-item:hover {
        background: #eaf2ff;
        box-shadow: 0 2px 12px rgba(26, 126, 231, 0.07);
    }

    .oc-sg-img {
        width: 62px;
        height: 62px;
        margin-right: 1.5em;
        border-radius: 10px;
    }

    .oc-sg-title {
        font-size: 1.22em;
        padding: 0.9em 1.5em 0.5em 1.5em;
        letter-spacing: 0.01em;
        color: #1a7ee7;
        background: none;
        border-bottom: none;
        margin-bottom: 0.3em;
    }

    .oc-sg-price {
        font-size: 1.13em;
    }

    .oc-sg-footer {
        font-size: 1.18em;
        padding: 1.5em 0;
        background: #f7f7fa;
        border-radius: 0 0 24px 24px;
        margin: 0;
        box-shadow: 0 -1px 0 #e0e0e0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 80px;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }

    .oc-sg-footer a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.7em;
        background: #1a7ee7;
        color: #fff;
        font-weight: 700;
        font-size: 1.2em;
        padding: 1em 4em;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(26, 126, 231, 0.25);
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .oc-sg-footer a:hover {
        background: #155bb2;
        box-shadow: 0 6px 20px rgba(26, 126, 231, 0.35);
        transform: translateY(-2px);
    }

    .oc-sg-footer a .oc-arrow {
        font-size: 1.4em;
        margin-left: 0.2em;
        display: inline-block;
        transition: transform 0.2s;
    }

    .oc-sg-footer a:hover .oc-arrow {
        transform: translateX(6px);
    }
}

@keyframes oc-fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.oc-sg-title {
    font-weight: bold;
    color: #1a1a1a;
    padding: 0.5em 1em;
    font-size: 1em;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.oc-sg-title:first-child {
    margin-top: 0;
}

.oc-sg-title.products {
    background: #f5f7fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #e0e0e0;
}

.oc-sg-title.categories {
    background: #fff7e6;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #ffe0b2;
}

.oc-sg-title .oc-sg-icon {
    font-size: 1.2em;
    opacity: 0.7;
}

.oc-sg-item {
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    cursor: pointer;
    transition: background 0.15s;
}

.oc-sg-item.selected,
.oc-sg-item:hover {
    background: #f5f7fa;
}

.oc-sg-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    margin-right: 0.8em;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.oc-sg-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.oc-sg-name {
    font-size: 1em;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1em;
}

.oc-sg-price {
    color: #1a7ee7;
    font-weight: bold;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .oc-sg-products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5em;
        padding: 1em;
        max-height: 55vh;
        overflow-y: auto;
        /* Custom Scrollbar */
        scrollbar-width: thin;
        scrollbar-color: #c0c0c0 transparent;
    }

    .oc-sg-products-grid::-webkit-scrollbar {
        width: 6px;
    }

    .oc-sg-products-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .oc-sg-products-grid::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border-radius: 10px;
    }

    .oc-sg-products-grid::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

    .oc-sg-column.oc-products .oc-sg-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5em;
        background: #fff;
        border: 1px solid #eef0f5;
        border-radius: 16px;
        height: 100%;
        box-sizing: border-box;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    }

    .oc-sg-column.oc-products .oc-sg-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        border-color: #1a7ee7;
    }

    .oc-sg-column.oc-products .oc-sg-img {
        width: 100%;
        height: 160px;
        object-fit: contain;
        margin-right: 0;
        margin-bottom: 1em;
        background: none;
        border: none;
    }

    .oc-sg-column.oc-products .oc-sg-info {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex: 1;
    }

    .oc-sg-column.oc-products .oc-sg-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-right: 0;
        margin-bottom: 0.8em;
        font-size: 1em;
        font-weight: 600;
        line-height: 1.4;
        color: #333;
        height: 4.2em;
        /* Fixed height for 3 lines */
    }

    .oc-sg-column.oc-products .oc-sg-price {
        font-size: 1.2em;
        margin-top: auto;
        color: #1a7ee7;
        background: #eaf2ff;
        padding: 0.4em 1em;
        border-radius: 8px;
        font-weight: 700;
    }
}

.oc-sg-footer {
    text-align: center;
    display: block;
    font-size: 1em;
    padding: 0.7em 1em 0.2em 1em;
    border-radius: 0 0 12px 12px;
    min-height: unset;
}

.oc-sg-footer a {
    font-size: 1em;
    padding: 0.6em 1.2em;
    border-radius: 22px;
    background: #1a7ee7;
    color: #fff;
    margin: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.oc-sg-footer a .oc-arrow {
    font-size: 1.1em;
    margin-left: 0.1em;
}

@media (max-width: 767px) {
    .oc-search-form {
        padding: 0.1em 0.2em;
        border-radius: 20px;
    }

    .oc-search-input {
        font-size: 1em;
        padding: 0.6em 2.5em 0.6em 1em;
    }

    .oc-search-form .oc-search-icon {
        right: 0.7em;
        font-size: 1.2em;
    }

    .oc-search-suggestions {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95vw !important;
        min-width: 0 !important;
        max-width: 98vw !important;
        border-radius: 0 0 12px 12px;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    .oc-sg-img {
        width: 28px;
        height: 28px;
    }

    .oc-sg-column+.oc-sg-column {
        border-top: 1px solid #f0f0f0;
        margin-top: 0.5em;
        padding-top: 0.5em;
    }
}