/* NEF Customer Theme - Orange + White (Swiggy Inspired) */
/* Primary Color: #fc8019, Secondary: #ffffff */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fc8019;
    --primary-dark: #e67216;
    --primary-light: #ffa14d;
    --secondary-color: #ffffff;
    --text-dark: #282c3f;
    --text-gray: #686b78;
    --text-light: #93959f;
    --bg-light: #f9f9f9;
    --border-color: #e9e9eb;
    --success-color: #60b246;
    --error-color: #e23744;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --loading-overlay-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Adjust body padding for mobile header */
@media (max-width: 530px) {
    body {
        padding-top: 100px; /* Increased for two-row header */
    }
}

/* ========== NO OUTLETS MODAL ========== */
.no-outlets-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.no-outlets-modal .modal-header {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    border-bottom: 2px solid var(--primary-light);
    padding: 24px 28px;
    position: relative;
}

.no-outlets-modal .modal-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.no-outlets-modal .modal-icon-wrapper i {
    font-size: 32px;
    color: white;
}

.no-outlets-modal .modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0;
    width: 100%;
}

.no-outlets-modal .modal-body {
    padding: 32px 28px;
}

.no-outlets-content {
    text-align: center;
}

.no-outlets-content .main-message {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.no-outlets-content .sub-message {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.customer-support-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.support-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.support-divider::before,
.support-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}

.support-divider::before {
    left: 0;
}

.support-divider::after {
    right: 0;
}

.support-divider span {
    background: white;
    padding: 0 16px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
}

.support-item:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.support-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.support-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.support-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-value:hover {
    color: var(--primary-color);
}

.no-outlets-modal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 28px;
    justify-content: center;
    background: var(--bg-light);
}

.no-outlets-modal .modal-footer .btn {
    min-width: 140px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.no-outlets-modal .modal-footer .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.no-outlets-modal .modal-footer .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

/* Responsive Design */
@media (max-width: 576px) {
    .no-outlets-modal .modal-dialog {
        margin: 16px;
    }

    .no-outlets-modal .modal-header {
        padding: 20px 20px;
    }

    .no-outlets-modal .modal-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .no-outlets-modal .modal-icon-wrapper i {
        font-size: 28px;
    }

    .no-outlets-modal .modal-title {
        font-size: 20px;
    }

    .no-outlets-modal .modal-body {
        padding: 24px 20px;
    }

    .no-outlets-content .main-message {
        font-size: 16px;
    }

    .no-outlets-content .sub-message {
        font-size: 14px;
    }

    .support-item {
        max-width: 100%;
        padding: 14px 20px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    box-shadow: var(--shadow);
    z-index: 999;
    min-height: 70px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    flex-wrap: wrap;
}

/* Header Rows - Default: Single Row Layout */
.header-row {
    display: flex;
    align-items: center;
}

.header-row-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.header-menu-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.header-menu-btn:active {
    transform: scale(0.95);
}

.header-row-selectors {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 70px; /* Match header height */
}

/* Mobile header alignment tweaks */
@media (max-width: 530px) {
    /* Let header content start at true left edge */
    .header .container {
        padding-left: 0;          /* start content flush with left edge */
        padding-right: 16px;      /* keep right padding for selectors */
    }

    /* Stack header rows and stretch them full width on small screens */
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .header-row-logo {
        width: 100%;
        justify-content: space-between;   /* logo at left, menu at right */
    }

    .header-row-selectors {
        width: 100%;
        margin-top: 4px;
    }
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
}

.logo span {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* Logo Image - Height fixed, width automatic */
.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    max-height: 50px;
    flex-shrink: 0;
}

.address-selector {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 350px;
    margin: 0 16px;
    min-width: 0;
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.address-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
    max-width: 250px; /* Fixed maximum width */
    width: 100%;
    overflow: hidden;
    flex: 0 1 auto;
    min-height: 50px;
    height: auto;
}

/* Address button text content - two lines */
.address-text-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    overflow: hidden;
}

.address-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.address-value {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Ensure address button icons don't shrink */
.address-btn i {
    flex-shrink: 0;
}

.address-btn:hover {
    border-color: var(--primary-color);
    background: #fff9f5;
}

.address-btn i:first-child {
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

/* Address Dropdown Styles */
.address-dropdown {
    position: relative;
    width: 100%;
}

.address-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.address-dropdown-menu.show {
    display: block;
}

.address-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 8px 8px 0 0;
}

.address-dropdown-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.address-dropdown-list {
    max-height: 180px; /* Show only 2 address items (~90px per item with padding) */
    overflow-y: auto;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

/* Custom scrollbar for webkit browsers (Chrome, Safari, Edge) */
.address-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.address-dropdown-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.address-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.address-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.address-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background: var(--bg-light);
}

.address-item.selected {
    background: #fff9f5;
    border-left: 3px solid var(--primary-color);
}

.address-item-icon {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.address-item-content {
    flex: 1;
    min-width: 0;
}

.address-item-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.address-item-label .default-badge {
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.address-item-display {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 2px;
}

.address-item-location {
    font-size: 11px;
    color: var(--text-light);
}

.address-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
}

.manage-addresses-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.manage-addresses-btn:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.manage-addresses-btn i {
    font-size: 14px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    /* padding: 12px 16px; */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    min-width: 150px;
}

.toast.show {
    transform: translateX(0);
    width: fit-content;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-success i {
    color: var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-error i {
    color: var(--error-color);
}

.toast span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.login-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Shop Selector - App-like Design */
.shop-selector-app {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
}

.shop-selector-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(252, 128, 25, 0.08);
    border: 1px solid rgba(252, 128, 25, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
    max-width: 220px;
    cursor: pointer;
}

.shop-selector-card:hover {
    background: rgba(252, 128, 25, 0.12);
    border-color: rgba(252, 128, 25, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(252, 128, 25, 0.15);
}

.shop-selector-card:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(252, 128, 25, 0.1);
}

.shop-selector-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    border-radius: 8px;
    color: white;
}

.shop-selector-icon i {
    font-size: 14px;
}

.shop-selector-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-selector-label {
    font-size: 9px;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.shop-selector-name {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-selector-location {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-selector-arrow {
    flex-shrink: 0;
    color: var(--text-gray);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.shop-selector-card:hover .shop-selector-arrow {
    transform: translateX(2px);
    color: var(--primary-color);
}

/* Rewards Button */

/* ========== CATEGORY CHIPS ========== */
.category-chips-container {
    background: var(--secondary-color);
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.category-chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.chip:hover {
    border-color: var(--primary-color);
    background: #fff9f5;
}

.chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ========== GUEST NOTICE ========== */
.guest-notice {
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8d5 100%);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.guest-notice i {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.guest-notice p {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    margin: 0;
    line-height: 1.3;
}

.guest-notice button {
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 8px;
}

.guest-notice button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ========== WELCOME MESSAGE (Logged In) ========== */
.welcome-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #4caf50;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.welcome-message i {
    color: #4caf50;
    font-size: 20px;
    flex-shrink: 0;
}

.welcome-message p {
    flex: 1;
    color: #2e7d32;
    font-weight: 500;
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}

.welcome-message strong {
    color: #1b5e20;
    font-weight: 700;
}

/* ========== ADDRESS ERROR MESSAGE ========== */
.address-error-message {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ff9800;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.address-error-message i {
    color: #ff9800;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.address-error-message .error-content {
    flex: 1;
}

.address-error-message .error-title {
    color: #e65100;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.address-error-message .error-text {
    color: #bf360c;
    font-weight: 500;
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.address-error-message .error-action-btn {
    background: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.address-error-message .error-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.address-error-message .error-action-btn i {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Mobile responsive grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info {
        min-height: 180px; /* Slightly smaller for mobile */
        padding: 12px;
    }
}

.product-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px; /* Consistent minimum height for all cards */
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: #FC8019;
}

.product-content-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    flex: 1;
}

.product-content-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.product-content-link:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Product badge colors now come from database (product_classes.color) */
/* Using inline styles: style="background-color: {{ $productClass->color }}" */

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px; /* Consistent minimum height for content area */
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em; /* Fixed height for 2 lines (1.3 * 2) */
}

.product-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* Fixed height for 2 lines (1.4 * 2) */
}

.product-description-placeholder {
    min-height: 2.8em; /* Same height as description for consistency */
    margin-bottom: 8px;
}

.product-unit {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 6px;
    font-size: 12px;
    color: var(--text-gray);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: auto; /* Push category to top, actions to bottom */
}

.product-actions-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: auto; /* Push to bottom of flex container */
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0; /* Prevent shrinking */
    min-height: 50px; /* Consistent height for actions area */
    gap: 8px;
}

.product-price {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.product-price .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-price .mrp {
    font-size: 11px;
    color: var(--text-gray);
    text-decoration: line-through;
    line-height: 1.4;
}

.product-price-hidden {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 13px;
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex-shrink: 0; /* Prevent button from shrinking */
    min-width: 70px; /* Minimum width to ensure visibility */
    white-space: nowrap; /* Prevent text wrapping */
}

.btn-add-cart:hover:not(.disabled) {
    background: var(--primary-dark);
}

.btn-add-cart.disabled {
    background: #d1d1d1;
    cursor: not-allowed;
}

/* ========== PRODUCT QUANTITY SELECTOR ========== */
.product-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 4px;
    min-width: 90px;
    height: 36px;
}

.qty-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    background: #d1d1d1;
    cursor: not-allowed;
    opacity: 0.6;
}

.qty-btn i {
    font-size: 12px;
    line-height: 1;
}

/* Delete button state in quantity selector */
.qty-btn.qty-delete {
    background: var(--error-color, #f44336);
    color: var(--secondary-color);
}

.qty-btn.qty-delete:hover:not(:disabled) {
    background: #c62828;
    transform: scale(1.05);
}

.qty-btn.qty-delete:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 24px;
    text-align: center;
    user-select: none;
}

/* ========== BOTTOM NAVIGATION ========== */
/* Floating Search Button */
.floating-search-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(252, 128, 25, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 998;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.floating-search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.5);
    background: linear-gradient(135deg, #e67316 0%, #fc8019 100%);
    color: white;
    text-decoration: none;
    outline: none;
}

.floating-search-btn:active {
    transform: translateY(0) scale(0.95);
    outline: none;
}

.floating-search-btn:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(252, 128, 25, 0.4);
}

.floating-search-btn i {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    text-shadow: none;
}

/* Floating Checkout Button */
.floating-checkout-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(252, 128, 25, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 998;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
    text-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.floating-checkout-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.5);
    background: linear-gradient(135deg, #e67316 0%, #fc8019 100%);
    color: white;
    text-decoration: none;
    outline: none;
}

.floating-checkout-btn:active {
    transform: translateY(0) scale(0.95);
    outline: none;
}

.floating-checkout-btn:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(252, 128, 25, 0.4);
}

.floating-checkout-btn i {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    text-shadow: none;
}

@media (max-width: 768px) {
    .floating-search-btn {
        bottom: 75px;
        left: 15px;
        width: 52px;
        height: 52px;
    }
    
    .floating-search-btn i {
        font-size: 20px;
    }

    .floating-checkout-btn {
        bottom: 75px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
    
    .floating-checkout-btn i {
        font-size: 20px;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
    transition: bottom 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 12px;
    padding: 8px 12px;
    transition: all 0.3s;
    position: relative;
    flex: 1;
    min-width: 0;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Ensure cart-item class in nav doesn't get cart page styles */
.nav-item.cart-item {
    position: relative; /* Required for cart-badge absolute positioning */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
}

.nav-item.cart-item.active {
    color: var(--primary-color);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Rewards Nav Item - Animated Icon */
.nav-item.menu-nav-item {
    position: relative;
}

.nav-item.menu-nav-item i {
    animation: gift-bounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.nav-item.menu-nav-item:hover i {
    animation: gift-bounce-fast 0.6s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(252, 128, 25, 0.3));
}

.nav-item.menu-nav-item:active i {
    transform: scale(0.9);
    animation: none;
}

@keyframes gift-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-5deg);
    }
    75% {
        transform: translateY(-3px) rotate(5deg);
    }
}

@keyframes gift-bounce-fast {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(-8deg);
    }
}

.cart-badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 2px); /* Position at top-right of icon: center (50%) + small offset to align with icon edge */
    background: var(--error-color);
    color: var(--secondary-color);
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1;
    box-sizing: border-box;
    z-index: 10; /* Ensure badge appears above other elements */
    pointer-events: none; /* Don't interfere with click events */
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--secondary-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: visible; /* Allow suggestions to overflow */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative; /* Ensure z-index stacking works */
}

/* Larger modal for address form */
.modal-content.large-modal {
    max-width: 600px;
    max-height: 95vh;
    height: auto;
}

.modal-content.large {
    max-width: 600px;
    max-height: 95vh;
    height: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px 20px;
    position: relative;
    min-height: 200px;
}

.modal-body p {
    color: var(--text-gray);
    margin-bottom: 16px;
    text-align: center;
}

.modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin: 8px 0;
    font-size: 16px;
    transition: all 0.3s;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 128, 25, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 12px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ========== LOGIN STEPS ========== */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== ERROR MESSAGE ========== */
.error-message {
    display: none;
    background: #ffebee;
    color: var(--error-color);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin: 8px 0;
    border-left: 3px solid var(--error-color);
}

/* ========== OTP TIMER ========== */
.otp-timer {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    margin: 16px 0;
}

.otp-timer span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* ========== PAGE LOADING OVERLAY ========== */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--loading-overlay-bg);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.page-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.page-loading-text {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.loading-spinner p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ========== OTP SUCCESS STEP ========== */
.otp-success-content {
    text-align: center;
    padding: 40px 20px;
}

.otp-success-content .success-spinner {
    margin-bottom: 24px;
}

.otp-success-content .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.otp-success-content h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.otp-success-content p {
    color: var(--text-gray);
    font-size: 15px;
    margin: 0;
}

/* ========== PROFILE COMPLETION STEPS ========== */
.profile-welcome {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8d5 100%);
    border-radius: 12px;
}

.profile-welcome i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.profile-welcome h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.profile-welcome p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Address Type Selector */
.address-type-selector {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.address-type-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.address-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.address-type-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--secondary-color);
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.address-type-option span i {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--text-gray);
    transition: all 0.3s;
}

.address-type-option input[type="radio"]:checked + span {
    border-color: var(--primary-color);
    background: #fff9f5;
    color: var(--primary-color);
}

.address-type-option input[type="radio"]:checked + span i {
    color: var(--primary-color);
}

.address-type-option:hover span {
    border-color: var(--primary-light);
    background: #fff9f5;
}

/* ========== ENHANCED ADDRESS FORM ========== */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--primary-color);
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.form-row input,
.form-row select {
    margin-bottom: 16px;
}

.half-width {
    flex: 1;
}

.mt-10 {
    margin-top: 10px;
}

/* Select dropdowns */
select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--secondary-color);
    margin-bottom: 16px;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff9f5;
}

/* Map Picker Button */
.btn-map-picker {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.btn-map-picker:hover {
    background: linear-gradient(135deg, #e67316 0%, #f58937 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.btn-map-picker i {
    font-size: 16px;
}

/* Map Container */
.map-container {
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.map-hint {
    margin: 12px 0 0 0;
    padding: 8px 12px;
    background: #fff9f5;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-hint i {
    color: var(--primary-color);
}

/* Coordinates Display */
.coordinates-display {
    padding: 12px 16px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2e7d32;
}

.coordinates-display i {
    font-size: 16px;
    color: #4caf50;
}

.coordinates-display strong {
    font-family: monospace;
    font-size: 13px;
}

/* ========== TOAST NOTIFICATIONS ========== */

.toast.show {
    transform: translateX(0);
}

.toast.success,
.toast.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast.error,
.toast.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast.info,
.toast.toast-info {
    /* border-left: 4px solid #2196f3; */
    background: linear-gradient(135deg, #71b6ee 0%, #2196f3 100%);
    /* color: var(--secondary-color); */
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.toast i {
    font-size: 20px;
}

.toast.success i,
.toast.toast-success i {
    color: var(--success-color);
}

.toast.error i,
.toast.toast-error i {
    color: var(--error-color);
}

.toast.info i,
.toast.toast-info i {
    color: #ffffff;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 15px;
}

.empty-state .btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
}

.empty-state .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

/* ========== SEARCH PAGE ========== */
html {
    scroll-behavior: smooth;
}

.search-container {
    padding: 90px 0 100px 0;
    min-height: 100vh;
    background: var(--bg-light);
}

#search-results-section {
    scroll-margin-top: 100px; /* Offset for fixed header */
    transition: box-shadow 0.3s ease;
}

.search-header {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.search-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-header h2 i {
    color: var(--primary-color);
}

/* Search Form */
.search-form {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 128, 25, 0.1);
}

.clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
}

.clear-search:hover {
    color: var(--error-color);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #fff9f5;
}

.suggestion-item i:first-child {
    color: var(--primary-color);
    font-size: 16px;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.suggestion-name strong {
    color: var(--primary-color);
    background: #fff9f5;
    padding: 0 2px;
}

.suggestion-category {
    font-size: 12px;
    color: var(--text-gray);
}

.suggestion-arrow {
    color: var(--text-light);
    font-size: 14px;
}

/* Search Filters */
.search-filters {
    margin-top: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: var(--primary-color);
}

.filter-select {
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff9f5;
}

/* Searchable Select Component */
.searchable-select-wrapper {
    position: relative;
    min-width: 200px;
}

.searchable-select-wrapper .filter-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.searchable-select-input-wrapper {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    box-sizing: border-box;
}

.searchable-select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(252, 128, 25, 0.1);
}

.searchable-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s;
}

.searchable-select-wrapper.open .searchable-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.searchable-select-wrapper.open .searchable-select-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

.searchable-select-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.searchable-select-item:last-child {
    border-bottom: none;
}

.searchable-select-item:hover {
    background: #fff9f5;
    color: var(--primary-color);
}

.searchable-select-item.selected {
    background: rgba(252, 128, 25, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.searchable-select-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.btn-clear-filters {
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid var(--error-color);
    color: var(--error-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-clear-filters:hover {
    background: var(--error-color);
    color: var(--secondary-color);
}

/* Search Results Info */
.search-results-info {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow);
}

.search-results-info p {
    margin: 0;
    font-size: 15px;
    color: var(--text-dark);
}

.filter-applied {
    display: inline-block;
    padding: 4px 10px;
    background: #fff9f5;
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary-color);
    margin-left: 8px;
}

.match-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.match-badge.perfect {
    background: #e8f5e9;
    color: #4caf50;
    border: 1px solid #4caf50;
}

.match-badge.close {
    background: #fff9f5;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Results Sections */
.results-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 72px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.no-results p {
    font-size: 15px;
    color: var(--text-gray);
    margin: 0 0 24px 0;
}

.no-results .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0;
}

.no-results .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
    text-decoration: none;
    color: var(--secondary-color);
}

.no-results .btn-primary:active {
    transform: translateY(0);
}

/* Search Empty State */
.search-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.search-empty-state i {
    font-size: 80px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.search-empty-state h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.search-empty-state p {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0 0 32px 0;
}

/* Popular Categories */
.popular-categories {
    margin-top: 40px;
}

.popular-categories h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-card:hover {
    border-color: var(--primary-color);
    background: #fff9f5;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.category-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ========== CUSTOMER PROFILE PAGE ========== */
.profile-container {
    padding: 90px 0 100px 0;
    min-height: 100vh;
    background: var(--bg-light);
}

.profile-header {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.profile-avatar i {
    font-size: 48px;
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.profile-phone {
    color: var(--text-gray);
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-phone i {
    color: var(--primary-color);
}

.profile-email {
    color: var(--text-gray);
    font-size: 14px;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-email i {
    color: var(--primary-color);
}

/* Logout Button */
.btn-logout {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Default Address Section */
.default-address-section {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.default-address-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.default-address-section h3 i {
    color: var(--primary-color);
}

.default-address-card {
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8d5 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
}

.default-address-card .address-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 8px 0 0 0;
}

/* Addresses Section */
.addresses-section {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

/* My Orders Button - Desktop & Mobile */
.orders-section {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}

.btn-my-orders {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.btn-my-orders:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.4);
    color: var(--secondary-color);
}

.btn-my-orders:active {
    transform: translateY(0);
}

.btn-my-orders i:first-child {
    font-size: 22px;
    margin-right: 12px;
}

.btn-my-orders i:last-child {
    font-size: 16px;
    opacity: 0.8;
}

/* Rewards Section - Prominent Styling */
.rewards-section {
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8d5 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(252, 128, 25, 0.15);
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.rewards-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 128, 25, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.rewards-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.rewards-section .section-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rewards-section .section-header h3 i {
    color: var(--primary-color);
    font-size: 26px;
}

.rewards-section .points-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.rewards-section .points-badge::before {
    content: '⭐';
    font-size: 20px;
}

.rewards-section .rewards-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rewards-section .btn-rewards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
    position: relative;
    overflow: hidden;
}

.rewards-section .btn-rewards::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.rewards-section .btn-rewards:hover::before {
    left: 100%;
}

.rewards-section .btn-rewards:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.4);
    color: var(--secondary-color);
}

.rewards-section .btn-rewards:active {
    transform: translateY(-1px);
}

.rewards-section .btn-rewards i:first-child {
    font-size: 22px;
    margin-right: 12px;
}

.rewards-section .btn-rewards i:last-child {
    font-size: 16px;
    opacity: 0.9;
}

.rewards-section .btn-rewards span {
    flex: 1;
    text-align: left;
}

/* Responsive adjustments for rewards section */
@media (max-width: 768px) {
    .rewards-section {
        padding: 20px;
        margin-top: 24px;
    }
    
    .rewards-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rewards-section .section-header h3 {
        font-size: 20px;
    }
    
    .rewards-section .points-badge {
        font-size: 16px;
        padding: 8px 16px;
        width: 100%;
        justify-content: center;
    }
    
    .rewards-section .btn-rewards {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Orders Page Styles - Desktop & Mobile */
.orders-container {
    padding: 100px 0 90px 0;
    min-height: 100vh;
    background: var(--bg-light);
}

.orders-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.orders-header {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.orders-header h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.orders-header h2 i {
    color: var(--primary-color);
}

.no-orders {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.no-orders i {
    font-size: 64px;
    color: var(--text-gray);
    margin-bottom: 24px;
    display: block;
}

.no-orders h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.no-orders p {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 16px;
}

.no-orders .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Address Loading Indicator */
.address-loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    margin-top: 20px;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--text-gray);
    font-size: 16px;
}

.address-loading-indicator i {
    color: var(--primary-color);
    font-size: 20px;
}

.address-loading-indicator span {
    color: var(--text-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary-color);
}

.btn-add-address {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-address:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Addresses Grid - Simple vertical layout */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    overflow: visible;
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .addresses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1025px) {
    .addresses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.address-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s;
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.address-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.address-card.default {
    border-color: var(--primary-color);
    border-width: 2px;
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8d5 100%);
}

.address-type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.address-type-badge i {
    color: var(--primary-color);
    font-size: 14px;
}

.default-badge {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.address-contact {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.contact-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px 0;
}

.contact-phone {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-phone i {
    color: var(--primary-color);
    font-size: 11px;
}

.address-details {
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.address-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.landmark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-gray);
}

.landmark i {
    color: var(--primary-color);
    font-size: 10px;
}

.address-location {
    font-size: 11px;
    color: var(--text-gray);
    margin: 0 0 4px 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.address-coords {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.address-coords i {
    color: var(--primary-color);
}

/* Address Actions */
.address-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05);
    background: #fff9f5;
}

.btn-set-default:hover {
    border-color: #ffc107;
    color: #ffc107;
    background: #fff9e6;
}

.btn-delete:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: #ffebee;
}

/* No Addresses State */
.no-addresses {
    text-align: center;
    padding: 60px 20px;
}

.no-addresses i {
    font-size: 72px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.no-addresses h4 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.no-addresses p {
    color: var(--text-gray);
    font-size: 15px;
    margin: 0 0 24px 0;
}

/* Load More Addresses Button */
.btn-load-more-addresses {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.btn-load-more-addresses:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-load-more-addresses:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(252, 128, 25, 0.3);
}

.btn-load-more-addresses:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more-addresses i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-load-more-addresses:hover:not(:disabled) i {
    transform: translateY(2px);
}

/* Modal Large */
.modal-content.large {
    max-width: 600px;
    max-height: 95vh;
    height: auto;
    overflow-y: auto;
    padding-bottom: 20px;
}

.modal-content.large .modal-body,
.modal-content.large-modal .modal-body {
    padding: 20px 24px 24px 24px;
    max-height: calc(95vh - 140px);
    overflow-y: auto;
}

/* Address Step Styles */
/* Address Step Base - No default display, let specific classes control it */
.address-step {
    width: 100%;
}

.address-step.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* ========== ADDRESS MAP STEP ========== */
.address-map-step {
    display: block !important;
    width: 100%;
    padding: 0;
}

/* Address Search Wrapper */
.address-search-wrapper {
    width: 100%;
    margin-bottom: 16px;
}

.address-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.address-search-input {
    flex: 1;
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--secondary-color);
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.address-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 128, 25, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.address-search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.address-gps-btn {
    min-width: 56px;
    width: 56px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.address-gps-btn i {
    font-size: 18px;
}

.address-gps-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff9f5;
    box-shadow: 0 2px 6px rgba(252, 128, 25, 0.2);
    transform: translateY(-1px);
}

.address-gps-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.address-gps-btn:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 128, 25, 0.15);
}

/* Address Map Container */
.address-map-container {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: 320px !important;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
}

.address-map-hint {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 0 0;
    text-align: center;
    padding: 0;
    line-height: 1.5;
}

.address-map-hint i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 12px;
}

/* Address Step Base Styles */
.address-step {
    width: 100%;
}

/* Map Step - Visible when shown */
.address-map-step.show {
    display: block !important;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.address-map-step.hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Details Step - Hidden by default */
.address-details-step {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.address-details-step.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#registrationMapSelectionStep,
#mapSelectionStep {
    width: 100%;
}

#registrationMapSelectionStep.show,
#mapSelectionStep.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#registrationMapSelectionStep.hide,
#mapSelectionStep.hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#registrationDetailsStep,
#detailsStep {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 100%;
}

#registrationDetailsStep.show,
#detailsStep.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Address Step Indicator (Wizard) */
.address-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(252, 128, 25, 0.3);
}

.step-item.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--secondary-color);
}

.step-item.completed .step-number {
    font-size: 0;
    position: relative;
}

.step-item.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
}

.step-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-label {
    color: var(--success-color);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 10px;
    margin-top: -18px;
    transition: all 0.3s ease;
}

.step-item.active ~ .step-connector,
.step-item.completed ~ .step-connector {
    background: var(--primary-color);
}

/* Address Fill Details Button */
.address-fill-details-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(252, 128, 25, 0.2);
    transition: all 0.3s ease;
}

.address-fill-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.address-fill-details-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .address-search-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .address-gps-btn {
        min-width: 50px;
        width: 50px;
    }
    
    .address-map-container {
        height: 280px !important;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-connector {
        width: 40px;
        margin: 0 8px;
    }
}

/* Form Checkbox */
.form-checkbox {
    margin-bottom: 15px;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* Button Block */
.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-current-location {
    min-width: 44px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.places-autocomplete-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.places-autocomplete-wrapper .form-control {
    flex: 1;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-actions .btn-outline {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.modal-actions .btn-primary {
    flex: 0 0 auto;
    width: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    
    /* Mobile Product Card Adjustments */
    .product-actions-inline {
        align-items: flex-start;
        gap: 6px;
        padding-top: 10px;
        min-height: 55px; /* Slightly taller on mobile for better spacing */
    }
    
    .product-price {
        flex: 1;
        min-width: 0; /* Allow price to shrink if needed */
    }
    
    .product-price .price {
        font-size: 15px; /* Slightly larger on mobile for readability */
        font-weight: 700;
    }
    
    .product-price .mrp {
        font-size: 11px;
    }
    
    .btn-add-cart {
        padding: 10px 12px; /* Adjusted padding for mobile */
        font-size: 13px;
        min-width: 65px; /* Smaller minimum width on mobile */
        gap: 4px;
    }
    
    .btn-add-cart span {
        font-size: 12px;
    }
    
    .btn-add-cart i {
        font-size: 14px;
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        padding: 0 12px;
        gap: 8px;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo span {
        font-size: 10px;
    }
    
    .address-selector {
        flex: 1;
        display: flex;
        justify-content: center;
        margin: 0 8px;
        max-width: 135px;
    }
    
    .address-btn {
        min-width: auto;
        padding: 8px 12px;
        font-size: 14px;
        height: 36px;
        display: flex;
        align-items: center;
        gap: 6px;
        max-width: 200px; /* Fixed maximum width on mobile */
        width: 100%;
    }
    
    .address-btn span {
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .address-btn i {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    /* Mobile Address Dropdown Styles */
    .address-dropdown-menu {
        left: -10px;
        right: -10px;
        max-height: 350px;
    }
    
    /* Show only 2 address items on mobile with scrolling */
    .address-dropdown-list {
        max-height: 170px; /* Slightly smaller for mobile due to reduced padding */
    }
    
    .address-dropdown-header {
        padding: 12px;
    }
    
    .address-dropdown-header h4 {
        font-size: 13px;
    }
    
    .address-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .address-item-icon {
        font-size: 14px;
    }
    
    .address-item-label {
        font-size: 12px;
    }
    
    .address-item-display {
        font-size: 11px;
    }
    
    .address-item-location {
        font-size: 10px;
    }
    
    .address-dropdown-footer {
        padding: 10px 12px;
    }
    
    .manage-addresses-btn {
        font-size: 12px;
        gap: 6px;
    }
    
    .manage-addresses-btn i {
        font-size: 12px;
    }
    
    /* Mobile Toast Styles */
    .toast {
        top: 70px;
        right: 10px;
        /* left: 10px; */
        max-width: none;
        padding: 10px 12px;
    }
    
    .toast span {
        font-size: 13px;
    }
    
    .header-actions {
        flex: 0 0 auto;
    }
    

    .login-btn {
        padding: 8px 12px;
        font-size: 13px;
        height: 36px;
        max-width: 135px;
    }
    
    /* Shop selector text on mobile */
    .shop-selector-text {
        gap: 3px;
    }
    
    .shop-label {
        font-size: 10px;
    }
    
    .shop-name-location {
        font-size: 11px;
        max-width: 120px;
    }
    
    .shop-change-link {
        font-size: 10px;
    }

    .addresses-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-add-address {
        width: 100%;
        justify-content: center;
    }

    .profile-container {
        padding: 80px 0 90px 0;
    }

    .form-row {
        flex-direction: column;
    }

    .half-width {
        width: 100%;
    }
}

/* Mobile Header Layout - Below 530px: Two Rows */
@media (max-width: 530px) {
    .header {
        min-height: auto;
        height: auto;
        padding: 8px 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-height: auto;
        height: auto;
    }
    
    .header-row {
        width: 100%;
    }
    
    .header-row-logo {
        width: 100%;
        padding: 0 12px;
        flex-direction: row-reverse;      /* swap visual order: logo then menu */
        justify-content: space-between;   /* logo on left, menu on right */
    }
    
    .header-row-selectors {
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding: 0 12px;
        justify-content: space-between;
        align-items: center;
    }
    
    .address-selector {
        flex: 1;
        margin: 0;
        max-width: none;
        min-width: 0;
        position: relative;
    }
    
    .address-btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 8px 12px;
        font-size: 13px;
        min-height: 50px;
        height: auto;
    }
    
    .address-label {
        font-size: 12px;
    }
    
    .address-value {
        font-size: 11px;
    }
    
    .address-dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .header-actions {
        flex: 0 0 auto;
        min-width: 0;
        display: flex;
        gap: 0;
        align-items: flex-start;
    }
    
    .shop-selector-card {
        padding: 6px 8px;
        gap: 6px;
        max-width: 150px;
        border-radius: 10px;
    }
    
    .shop-selector-icon {
        width: 26px;
        height: 26px;
    }
    
    .shop-selector-icon i {
        font-size: 11px;
    }
    
    .shop-selector-label {
        font-size: 7px;
    }
    
    .shop-selector-name {
        font-size: 11px;
    }
    
    .shop-selector-location {
        font-size: 9px;
    }
    
    .shop-selector-arrow {
        font-size: 10px;
    }
    
    .login-btn {
        max-width: none;
        min-width: 120px;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .logo {
        height: auto;
    }
    
    .logo-image {
        height: 40px;
        max-height: 40px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 8px;
        gap: 8px;
    }
    
    .header-row-selectors {
        gap: 6px;
        padding: 0 8px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo span {
        font-size: 9px;
    }
    
    .logo-image {
        height: 36px;
        max-height: 36px;
    }
    
    /* Very Small Mobile - Product Card Optimizations */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-actions-inline {
        gap: 4px;
        padding-top: 8px;
        min-height: 60px; /* More space for vertical price layout */
    }
    
    .product-price .price {
        font-size: 14px;
    }
    
    .product-price .mrp {
        font-size: 10px;
    }
    
    .btn-add-cart {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 60px; /* Even smaller on very small screens */
        gap: 3px;
    }
    
    .btn-add-cart span {
        font-size: 11px;
    }
    
    .btn-add-cart i {
        font-size: 13px;
    }
    
    .product-quantity-selector {
        min-width: 80px;
        height: 32px;
        gap: 5px;
        padding: 2px;
    }
    
    .qty-btn {
        width: 24px;
        height: 24px;
    }
    
    .qty-btn i {
        font-size: 10px;
    }
    
    .qty-display {
        font-size: 12px;
        min-width: 18px;
    }
    
    .address-btn {
        padding: 6px 10px;
        font-size: 13px;
        height: 32px;
        gap: 4px;
        max-width: 180px; /* Fixed maximum width on very small screens */
        width: 100%;
    }
    
    .address-btn span {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .address-btn i {
        font-size: 12px;
        flex-shrink: 0;
    }
    

    .login-btn {
        padding: 6px 10px;
        font-size: 12px;
        height: 32px;
        max-width: 150px;
    }
    
    /* Shop selector text on very small screens */
    .shop-selector-card {
        padding: 5px 8px;
        gap: 6px;
        max-width: 130px;
        border-radius: 10px;
    }
    
    .shop-selector-icon {
        width: 24px;
        height: 24px;
    }
    
    .shop-selector-icon i {
        font-size: 10px;
    }
    
    .shop-selector-label {
        font-size: 7px;
    }
    
    .shop-selector-name {
        font-size: 10px;
    }
    
    .shop-selector-location {
        font-size: 9px;
    }
    
    .shop-selector-arrow {
        font-size: 9px;
    }

    .guest-notice,
    .welcome-message,
    .address-error-message {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .guest-notice i,
    .welcome-message i,
    .address-error-message i {
        font-size: 16px;
    }
    
    .guest-notice p,
    .welcome-message p {
        font-size: 14px;
    }
    
    .address-error-message .error-title {
        font-size: 15px;
    }
    
    .address-error-message .error-text {
        font-size: 13px;
    }
    
    .guest-notice button {
        padding: 7px 14px;
        font-size: 13px;
        margin-left: 6px;
    }
    
    .address-error-message .error-action-btn {
        padding: 9px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-avatar i {
        font-size: 36px;
    }

    .profile-header {
        flex-direction: column;
    }

    .btn-logout {
        width: 100%;
        justify-content: center;
    }

    .default-address-section {
        padding: 16px;
    }

    .address-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* ========== CUSTOMER MAP CONTROLS ========== */
.map-picker-controls {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.map-controls-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.map-controls-row .btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-controls-row .btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.map-controls-row .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Google Places Autocomplete Wrapper */
.places-autocomplete-wrapper {
    margin-top: 16px;
}

.places-autocomplete-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.places-autocomplete-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--secondary-color);
    margin-bottom: 12px;
}

.places-autocomplete-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 128, 25, 0.1);
    background-color: #fff9f5;
}

.btn-go-location {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-go-location:hover {
    background: linear-gradient(135deg, #e67316 0%, #f58937 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.btn-go-location:active {
    transform: translateY(0);
}

.btn-go-location:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: var(--primary-color);
}

/* Custom Places Suggestions Container */
.places-suggestions-container {
    background: var(--secondary-color) !important;
    border: 2px solid var(--primary-light) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    max-height: 400px !important; /* Default, will be overridden by JS for mobile keyboard */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    font-family: inherit !important;
    animation: slideDown 0.2s ease !important;
    position: fixed !important; /* Ensure it appears above everything */
    z-index: 10001 !important; /* Very high z-index to appear above modals and keyboard */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* Mobile optimizations */
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    overscroll-behavior: contain !important; /* Prevent scroll chaining */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.places-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.places-suggestion-item:last-child {
    border-bottom: none;
}

.places-suggestion-item:hover,
.places-suggestion-item.selected {
    background-color: #fff9f5;
}

.places-suggestion-item i {
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-main-text {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 2px;
}

.suggestion-secondary-text {
    font-size: 13px;
    color: var(--text-gray);
}

/* Google Places Autocomplete Dropdown Styling (for PlaceAutocompleteElement) */
.pac-container {
    border-radius: 8px;
    border: 2px solid var(--primary-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 4px;
    font-family: inherit;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover,
.pac-item-selected {
    background-color: #fff9f5;
}

.pac-icon {
    margin-right: 12px;
    color: var(--primary-color);
}

.pac-item-query {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.pac-matched {
    color: var(--primary-color);
    font-weight: 600;
}

/* Legacy input-group styles (kept for backward compatibility) */
.input-group {
    gap: 8px;
    margin-bottom: 8px;
}

.input-group .form-control {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.input-group .btn {
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group .btn:hover {
    background: var(--primary-dark);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.map-hint {
    margin-top: 12px;
    padding: 8px 12px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    font-size: 13px;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coordinates-display {
    margin-top: 12px;
    padding: 8px 12px;
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    font-size: 13px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coordinates-display i {
    color: var(--success-color);
}

/* Mobile responsive for map controls */
@media (max-width: 768px) {
    .map-controls-row {
        flex-direction: column;
    }
    
    .map-controls-row .btn {
        min-width: auto;
        width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .btn {
        width: 100%;
    }
    
    .btn-go-location {
        width: 100%;
    }
}

/* ========== AUTO-ADDRESS FIELD STYLES ========== */
/* Auto-address field states */
.form-control.loading {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.form-control.success {
    background-color: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.form-control.error {
    background-color: #f8d7da;
    border-color: var(--error-color);
    color: #721c24;
}

/* ========== SIDE DRAWER ========== */
.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.side-drawer.show {
    display: block;
    pointer-events: all;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-drawer.show .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: white;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-drawer.show .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fc8019 0%, #ff9945 100%);
    color: white;
    flex-shrink: 0;
}

.drawer-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 18px;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.drawer-scrollable {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    min-height: 0;
}

.drawer-section {
    margin-bottom: 6px;
}

.drawer-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
    gap: 12px;
}

.drawer-item:hover {
    background: var(--bg-light);
    text-decoration: none;
    color: var(--text-dark);
}

.drawer-item-button {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
    gap: 12px;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
}

.drawer-item-button:hover {
    background: transparent;
    text-decoration: none;
}

.drawer-item-button:focus {
    outline: none;
    background: transparent;
}

.drawer-section form {
    display: block;
    width: 100%;
}

.drawer-section form .drawer-item-button {
    width: 100%;
    text-align: left;
}

.drawer-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.drawer-item-content {
    flex: 1;
    min-width: 0;
}

.drawer-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.drawer-item-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.3;
}

.drawer-item-arrow {
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 16px;
}

/* Instagram Card */
.drawer-instagram-card {
    margin: 8px 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(131, 58, 180, 0.15);
}

.drawer-instagram-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.25);
    text-decoration: none;
}

.instagram-icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.instagram-icon-wrapper i {
    font-size: 18px;
    color: white;
}

.instagram-info {
    flex: 1;
    min-width: 0;
}

.instagram-username {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.instagram-followers {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.instagram-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    flex-shrink: 0;
}

/* WhatsApp Channel Card */
.drawer-whatsapp-card {
    margin: 8px 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.15);
}

.drawer-whatsapp-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    text-decoration: none;
}

.whatsapp-icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.whatsapp-icon-wrapper i {
    font-size: 18px;
    color: white;
}

.whatsapp-info {
    flex: 1;
    min-width: 0;
}

.whatsapp-channel-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-followers {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.whatsapp-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    flex-shrink: 0;
}

/* Drawer Footer */
.drawer-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.drawer-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-link:hover {
    color: #fc8019;
    text-decoration: none;
}

.footer-separator {
    color: #ccc;
    font-size: 12px;
    margin: 0 4px;
}

.drawer-footer-copyright {
    text-align: center;
}

.drawer-footer-copyright p {
    margin: 0;
    font-size: 11px;
    color: #999;
}

@media (max-width: 768px) {
    .drawer-content {
        width: 280px;
        height: 100vh;
        max-height: 100vh;
    }
    
    .drawer-header {
        padding: 16px;
    }
    
    .drawer-header h3 {
        font-size: 18px;
    }
    
    .drawer-item {
        padding: 10px 14px;
    }
    
    .drawer-item-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .drawer-item-title {
        font-size: 14px;
    }

    .drawer-item-subtitle {
        font-size: 11px;
    }

    .drawer-footer {
        padding: 14px 16px;
    }

    .drawer-instagram-card {
        margin: 6px 14px;
        padding: 10px 14px;
    }

    .instagram-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .instagram-icon-wrapper i {
        font-size: 16px;
    }

    .instagram-username {
        font-size: 13px;
    }

    .instagram-followers {
        font-size: 10px;
    }

    .instagram-arrow {
        font-size: 12px;
    }

    .drawer-whatsapp-card {
        margin: 6px 14px;
        padding: 10px 14px;
    }

    .whatsapp-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .whatsapp-icon-wrapper i {
        font-size: 16px;
    }

    .whatsapp-channel-name {
        font-size: 13px;
    }

    .whatsapp-followers {
        font-size: 10px;
    }

    .whatsapp-arrow {
        font-size: 12px;
    }
}

/* ========== CUSTOMER CARE FLOATING BUTTON ========== */
.customer-care-float-btn {
    position: fixed;
    bottom: 90px; /* Above bottom nav (70px height + 20px spacing) */
    right: 20px;
    z-index: 1000; /* Above bottom nav (999) */
}

.customer-care-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.customer-care-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.5);
}

.customer-care-btn:active {
    transform: scale(0.95);
}

.customer-care-btn i {
    font-size: 24px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Customer Care Lightbox */
.customer-care-lightbox {
    position: fixed;
    bottom: 160px; /* Above the button */
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--secondary-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color);
}

.customer-care-lightbox.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.customer-care-lightbox-content {
    padding: 0;
    overflow: hidden;
}

.customer-care-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 16px 20px;
    border-radius: 14px 14px 0 0;
}

.customer-care-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-care-header h3 i {
    font-size: 20px;
}

.customer-care-body {
    padding: 20px;
    min-height: 100px;
}

.customer-care-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-gray);
}

.customer-care-loading i {
    font-size: 24px;
    color: var(--primary-color);
}

.customer-care-loading span {
    font-size: 14px;
}

.customer-care-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.customer-care-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.customer-care-item:hover {
    background: #f5f5f5;
}

.customer-care-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.customer-care-item-content {
    flex: 1;
    min-width: 0;
}

.customer-care-item-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-care-item-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    word-break: break-word;
}

.customer-care-item-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.customer-care-item-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.customer-care-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-gray);
}

.customer-care-empty i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.customer-care-empty p {
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .customer-care-float-btn {
        bottom: 85px;
        right: 16px;
    }
    
    .customer-care-btn {
        width: 52px;
        height: 52px;
    }
    
    .customer-care-btn i {
        font-size: 22px;
    }
    
    .customer-care-lightbox {
        bottom: 150px;
        right: 16px;
        width: calc(100vw - 32px);
        max-width: 320px;
    }
    
    .customer-care-header h3 {
        font-size: 16px;
    }
    
    .customer-care-body {
        padding: 16px;
    }
}

/* Animation for button icon change */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* ========== INFINITE SCROLL STYLES ========== */

/* Loading Indicator */
.infinite-scroll-loading {
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.infinite-scroll-loading .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.infinite-scroll-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-loading p {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* End Message */
.infinite-scroll-end-message {
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
}

.infinite-scroll-end-message .end-message-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: var(--secondary-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.infinite-scroll-end-message .end-message-content i {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 16px;
    display: block;
}

.infinite-scroll-end-message .end-message-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.infinite-scroll-end-message .end-message-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Error Message */
.infinite-scroll-error {
    padding: 20px;
    margin: 20px 0;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.infinite-scroll-error .error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.infinite-scroll-error .error-content i {
    color: #ffc107;
    font-size: 20px;
}

.infinite-scroll-error .error-content p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .infinite-scroll-loading {
        padding: 30px 16px;
    }

    .infinite-scroll-end-message {
        padding: 40px 16px;
    }

    .infinite-scroll-end-message .end-message-content {
        padding: 30px 20px;
    }

    .infinite-scroll-end-message .end-message-content i {
        font-size: 40px;
    }

    .infinite-scroll-end-message .end-message-content h3 {
        font-size: 20px;
    }

    .infinite-scroll-end-message .end-message-content p {
        font-size: 14px;
    }
}

