/* GPI AI Recommendations Styling */
.gpi-recommendations {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.recommendations-heading {
    font-size: 22px;
    font-weight: bold;
}

.recommendations-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.recommendations-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: none;
}

/* Ensures consistent height for all product cards */
.recommendation-item {
    flex: 0 0 22%;
    background-color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;

    /* Make all items equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Adjust as needed */
}

/* Fix image sizing */
.product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.product-title {
    font-weight: bold;
    margin-top: 5px;
}

.product-rating {
    color: #ffcc00;
    font-size: 14px;
}

.discounted-price {
    color: #30A930;
    font-weight: bold;
    font-size: 16px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 5px;
}

/* Ensures dropdown and button are always aligned */
.variant-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
}

/* Wrapper for the select box */
.variant-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Styled dropdown */
.variant-selector {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    background-color: white;
    font-size: 14px;
    text-align: left;
    padding-right: 30px;
    cursor: pointer;
}

/* Custom dropdown arrow */
.variant-wrapper::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    pointer-events: none;
    color: #333;
}

/* Fixed height for Add to Cart buttons */
.add-to-cart {
    background-color: #c40d6b;
    color: white;
    padding: 10px;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    min-height: 45px; /* Ensures all buttons have the same height */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Separator line */
.variant-label {
    color: #aaa;
    padding: 0 8px;
}

/* Dropdown arrow */
.dropdown-icon {
    position: absolute;
    right: 10px;
    color: #333;
}

/* Fix arrow button position */
.nav-button {
    position: absolute;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
}

.left { left: -10px; }
.right { right: -10px; }

.pagination-dots {
    margin-top: 10px;
}

.dot {
display: none;
}
.gpi-flyout-cart {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.gpi-flyout-cart.hidden {
    transform: translateX(100%);
}

.gpi-flyout-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gpi-cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.gpi-cart-item img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.gpi-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

.gpi-flyout-overlay.hidden {
    display: none;
}

.gpi-button {
    background: #ff4081;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    cursor: pointer;
}

.gpi-button.outline {
    background: none;
    color: #ff4081;
    border: 2px solid #ff4081;
}

.gpi-button:hover {
    opacity: 0.8;
}
