/* @import url(../../../themes/esim/style.css); */

/* ? Homepage search container */
.homepage-search-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0;
    padding: 20px 0 0 0;
}


/* define the width of the search bar */
/* Set respsonsive */
#homepage-search-form {
    width: 80%;
    margin-bottom: 0px !important;
}

/* Common styles for both search bars */
.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container .input-icon {
    position: absolute;
    left: 10px;
    color: #888;
    font-size: 20px;
    pointer-events: none;
}


/* Search input styling */
#homepage-search-input,
#destination-search-input {
    width: 100%;
    padding: 18px 50px 18px 40px;
    border: 1px solid #e0e0e0;
    background-color: #f3f3f3;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-small-desktop);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#homepage-search-input:focus,
#destination-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

/* Search button styling */
#homepage-search-btn,
#destination-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #dbe4ef;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    border-radius: 12px;
}

#homepage-search-btn:hover,
#destination-search-btn:hover {
    color: #4a90e2;
}

#homepage-search-btn i {
    font-size: 22px;
}

/* Suggestions dropdown styling - Homepage*/
.suggestions-dropdown {
    position: relative;
    width: 80%;
    top: 0%;
    left: 0%;
    /* transform: translateX(0%); */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}


.suggestion-item {
    display: flex;
    flex-direction: row;
    /* justify-content: center; */
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item img {
    width: 100px;
    border-radius: 10px;
    margin-right: 20px;
}

.suggestion-item:hover {
    background-color: #f5f8ff;
}

.suggestion-item a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
}

.suggestion-info {
    line-height: 2.2rem;
}

.suggestion-title {
    font-size: var(--font-size-body-desktop);
}

.suggestion-price {
    font-size: var(--font-size-small-desktop) !important;
    color: var(--color-accent-500);

    span {
        font-size: var(--font-size-small-desktop) !important;

    }
}


/* Category filter styling */
#category-filter {
    display: flex;
    gap: 16px;
    margin: 40px auto;
    flex-wrap: wrap;
    justify-content: center;
}

#category-filter button {
    padding: 0.8rem 2rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-xl);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-body-desktop);
    color: #666;
}

#category-filter button:hover {
    background: var(--color-button-outline-background);
    border-color: var(--color-button-outline-border);
    color: var(--color-button-primary-border);
}

#category-filter button.active {
    background: var(--color-button-outline-border);
    border-color: var(--color-button-outline-border);
    color: white;
}

/* Product grid styling */
#product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0;
}


.product-card {
    background-color: var(--gray-30);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
}

.product-image {
    border-radius: 10px;
}

.product-info {
    gap: 1px;
    margin: 10px auto;
    line-height: 2.2rem;
}

.product-title {
    color: var(--color-text-primary);
    font-size: var(--font-size-h6-desktop);
}

.product-title a {
    color: var(--color-accent-500);
    font-size: var(--font-size-h6-desktop);
}

.product-title:hover {
    color: var(--color-accent-500);
}

/* the "-" between the number */
.product-price {
    color: var(--color-accent-500);
    font-size: var(--font-size-body-desktop) !important;

}

.product-price span {
    font-size: var(--font-size-body-desktop) !important;
}

/* ? Destination page search container */

.destination-search-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 40px 0;
}


/* Product search container */
#product-search {
    width: 50%;
    position: relative;
    margin: 0 auto;
}

#destination-search-input {
    width: 100%;
}


/* Suggestions dropdown styling */

#destination-suggestions {
    top: 0;
    width: 50%;
    position: relative;
    left: 0%;
    /* transform: translateY(-50%); 
    transform: translateX(-50%);*/
    background: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.product {
    background: white;
    border-radius: 10px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; */
    overflow: hidden;
}

.product:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); */
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product p {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    color: #333;
}

.product .price {
    padding: 0 15px 15px;
    color: #4a90e2;
    font-weight: bold;
}

.read-details-button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px;
    background: #4a90e2;
    color: white;
    border: 0px solid #666;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-details-button:hover {
    color: white;
    background: #357abd;
    border: 1px solid #666;
}



/* Responsive styles */
/* Responsive styles */
/* Responsive styles */

/* ? Mobile styles here ***/
@media (max-width: 768px) {
    .single-product .page-content-area {
        margin: 0 15px !important;
    }

    .homepage-search-container {
        width: 100%;
        padding: 0;
    }

    #homepage-search-form {
        margin: 30px auto;
        width: 100%;
    }

    .suggestions-dropdown {
        margin: 5px auto;
        width: 100%;
    }

    #product-search {
        margin-top: 2rem;
        width: 100%;
    }

    #destination-suggestions {
        width: 100%;
    }


    .destination-search-container {
        max-width: 100%;
        padding: 0px;
    }

    #category-filter {
        margin: 4rem 0rem;
        gap: 1rem;
    }

    #category-filter button {
        padding: 0.6rem 2rem;
        font-size: var(--font-size-body-mobile);
    }

    #product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-title {
        color: var(--color-text-primary);
        font-size: var(--font-size-h6-mobile);
    }

    .product-title a {
        color: var(--color-accent-500);
        font-size: var(--font-size-h6-mobile);
    }

    .product-price {
        font-size: var(--font-size-small-desktop) !important;
    }

    .product-price span {
        font-size: var(--font-size-small-desktop) !important;
    }
}



/* ?Tablet styles here */
@media (min-width: 768px) and (max-width: 1023px) {


    #homepage-search-form {
        width: 80%;
    }

    #product-search {
        width: 90%;
    }

    #destination-suggestions {
        width: 90%;
    }
}


/* ? Desktop styles here ***/
@media (min-width: 1200px) {


    #product-search {
        width: 50%;
    }

    #destination-suggestions {
        width: 50%;
    }
}





/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

#result-count {
    text-align: left;
}