/* Landing Page Distance Filtering Styles */

/* Shop Selector Modal */
.shop-selector-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.shop-selector-header {
    background: linear-gradient(135deg, #fc8019 0%, #ff9a4d 100%);
    color: white;
    border-bottom: none;
    padding: 20px 24px;
}

.shop-selector-header .modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-selector-header .modal-title-wrapper i {
    font-size: 24px;
}

.shop-selector-header .modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.shop-selector-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.shop-selector-header .btn-close:hover {
    opacity: 1;
}

.shop-selector-body {
    padding: 0;
}

.shop-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 #f5f5f5;
}

/* Custom Scrollbar Styling */
.shop-list::-webkit-scrollbar {
    width: 6px;
}

.shop-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.shop-list::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 3px;
}

.shop-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.shop-item {
    position: relative;
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
    background: white;
    border: 1.5px solid #f0f0f0;
}

.shop-item:hover {
    border-color: #fc8019;
    box-shadow: 0 2px 8px rgba(252, 128, 25, 0.12);
    transform: translateY(-1px);
}

.shop-item.selected {
    border-color: #fc8019;
    border-width: 2px;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    box-shadow: 0 3px 12px rgba(252, 128, 25, 0.2);
}

.shop-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #fc8019 0%, #ff9a4d 100%);
    border-radius: 12px 0 0 12px;
}

.shop-item-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    cursor: pointer;
}

.shop-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #fc8019 0%, #ff9a4d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(252, 128, 25, 0.25);
    flex-shrink: 0;
}

.shop-item.selected .shop-icon-wrapper {
    background: linear-gradient(135deg, #e67216 0%, #fc8019 100%);
    box-shadow: 0 3px 8px rgba(252, 128, 25, 0.3);
}

/* Ribbon label for "Closest" */
.shop-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    overflow: hidden;
    width: 80px;
    height: 80px;
}

.shop-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent #4caf50 transparent transparent;
}

.shop-ribbon span {
    position: absolute;
    top: 8px;
    right: -22px;
    width: 80px;
    padding: 4px 0;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}


.shop-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.shop-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #282c3f;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.shop-item.selected .shop-name {
    color: #fc8019;
    font-weight: 700;
}


.shop-details-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    font-size: 12px;
    color: #686b78;
}

.shop-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.shop-detail-item i {
    color: #fc8019;
    font-size: 12px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.shop-detail-item span {
    color: #686b78;
}

.shop-item.selected .shop-detail-item span {
    color: #282c3f;
    font-weight: 500;
}

.shop-description-row {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.shop-item.selected .shop-description-row {
    border-top-color: #ffe8d6;
}

.shop-description {
    margin: 0;
    font-size: 11px;
    color: #93959f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-item.selected .shop-description {
    color: #686b78;
}

/* Price Display Updates */
/* .price-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.2em;
    font-weight: 600;
    color: #007bff;
}

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

/* Loading States */
.shop-selector-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shop-selector-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Card Updates
.product-card {
    transition: opacity 0.3s ease;
}

.product-card[style*="display: none"] {
    opacity: 0;
}

/* Toast Notifications */
/* .toast-container {
    z-index: 9999;
} */ 

/* Responsive Design */
@media (max-width: 768px) {
    .shop-selector-modal .modal-dialog {
        margin: 10px;
    }
    
    .shop-selector-header {
        padding: 14px 18px;
    }
    
    .shop-selector-header .modal-title {
        font-size: 17px;
    }
    
    .shop-list {
        max-height: 450px;
        padding: 6px;
    }
    
    .shop-item {
        margin-bottom: 6px;
    }
    
    .shop-item-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
    }
    
    .shop-icon-wrapper {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }
    
    .shop-info {
        width: 100%;
        min-width: 0;
        gap: 4px;
    }
    
    .shop-name {
        font-size: 14px;
    }
    
    .shop-details {
        font-size: 11px;
        gap: 10px;
    }
    
    .shop-actions {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .select-shop-btn {
        padding: 7px 14px;
        font-size: 12px;
        min-width: 90px;
    }
}

/* Welcome Message Updates */
/* .welcome-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
} */

/* .welcome-message i {
    font-size: 1.5em;
    margin-right: 10px;
}

.welcome-message p {
    margin: 0;
    font-size: 1.1em;
} */

/* Shop Selector Button Updates */
.shop-selector-btn {
    position: relative;
    overflow: hidden;
}

.shop-selector-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Product Actions Updates */
/* .product-actions-inline .btn-add-cart:not(.disabled) {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.product-actions-inline .btn-add-cart:not(.disabled):hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
} */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}
