* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #0f3460 100%);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    body {
        height: 100dvh;
        /* Use dynamic viewport height for mobile */
    }

    .container {
        flex-direction: column;
        height: 100dvh;
        padding: 5px;
        gap: 10px;
    }
}

/* Sidebars */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    /* ✅ Safari support */
    -webkit-user-select: none;
    /* ✅ Safari support */
    user-select: none;
    overflow: hidden;
}

/* Mobile sidebar styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 12px;
        padding: 12px;
    }

    .left-sidebar {
        display: none;
        /* Hide left sidebar on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: min(65vw, 420px);
        height: 100%;
        max-height: none;
        z-index: 999;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0 20px 20px 0;
        padding: 20px 18px;
        box-shadow: 0 25px 45px rgba(15, 52, 96, 0.35);
    }

    .left-sidebar.mobile-active {
        display: flex !important;
    }

    .right-sidebar {
        display: none;
        /* Hide right sidebar on mobile */
        position: fixed;
        top: 0;
        right: 0;
        width: min(65vw, 420px);
        height: 100%;
        max-height: none;
        z-index: 999;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 20px 0 0 20px;
        padding: 20px 18px;
        box-shadow: 0 25px 45px rgba(15, 52, 96, 0.35);
        order: 3;
        /* Show at bottom if needed */
    }

    .right-sidebar.mobile-active {
        display: flex !important;
    }
}

/* Static header section */
.sidebar-header {
    padding: 5px;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px 15px 0 0;
}

.sidebar-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.2em;
    text-align: center;
}

/* Category tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.tab-btn {
    padding: 3px 2px;
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-weight: 500;
}

.tab-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

@media (max-width: 768px) {
    .category-tabs {
        gap: 8px;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 8px);
        padding: 12px 10px;
        font-size: 1em;
        border-radius: 10px;
    }
}

/* Scrollable content section */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scroll-behavior: smooth;
}

.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.left-sidebar {
    border-right: 3px solid #667eea;
}

.right-sidebar {
    border-right: 3px solid #e74c3c;
}

/* RTL (Right-to-Left) Support for Urdu */
.right-sidebar.urdu-text {
    direction: rtl;
    text-align: right;
}

.right-sidebar.urdu-text .sidebar-header {
    direction: rtl;
    text-align: right;
}

.right-sidebar.urdu-text .category-tabs {
    justify-content: center;
    flex-direction: row-reverse;
}

.right-sidebar.urdu-text .tab-btn {
    text-align: center;
}

.right-sidebar.urdu-text .sidebar-content {
    direction: rtl;
    text-align: right;
}

.right-sidebar.urdu-text .filter-section h3 {
    text-align: right;
}

.right-sidebar.urdu-text .hint-list {
    justify-content: flex-end;
}

.right-sidebar.urdu-text #urdu-vendors {
    align-items: stretch;
}

.right-sidebar.urdu-text .hint-button {
    text-align: center;
    justify-content: center;
}

.sidebar h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.hint-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Vendor search section - display buttons in column */
#english-vendors {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#english-vendors h3 {
    margin: 0;
}

#english-vendors .hint-button {
    width: 100%;
    justify-content: flex-start;
}

/* Same for Urdu vendors section */
#urdu-vendors {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

rar #urdu-vendors .hint-button {
    width: 100%;
    justify-content: flex-start;
}

.hint-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .filter-section h3 {
        font-size: 1.2em;
    }

    .hint-button {
        flex: 1 1 100%;
        padding: 12px 16px;
        font-size: 1em;
        border-radius: 24px;
        box-shadow: 0 10px 25px rgba(41, 128, 185, 0.25);
    }
}

.size-hint-list .hint-button,
#urdu-sizes .hint-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.size-hint-list .hint-button::before,
#urdu-sizes .hint-button::before {
    content: '👟';
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.size-hint-list .hint-button[data-value="9"]::before,
.size-hint-list .hint-button[data-value="10"]::before,
.size-hint-list .hint-button[data-value="11"]::before,
.size-hint-list .hint-button[data-value="12"]::before,
#urdu-sizes .hint-button[data-value="9"]::before,
#urdu-sizes .hint-button[data-value="10"]::before,
#urdu-sizes .hint-button[data-value="11"]::before,
#urdu-sizes .hint-button[data-value="12"]::before {
    content: '🥾';
    font-size: 1.2rem;
}

.hint-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.urdu-text {
    font-family: 'Noto Nastaliq Urdu', 'Segoe UI', sans-serif;
    font-size: 1em;
}

/* Main Chat Area */
.chat-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Mobile chat container */
@media (max-width: 768px) {
    .chat-container {
        order: 2;
        /* Middle in mobile layout */
        flex: 1;
        min-height: 0;
        border-radius: 10px;
    }
}

.chat-header {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5aa0 50%, #1e7e9d 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-header h1 {
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.floating-whatsapp-btn {
    position: absolute;
    bottom: 82px;
    left: 16px;
    display: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    z-index: 30;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
    justify-content: center;
    align-items: center;
}

.floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.floating-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .floating-whatsapp-btn {
        display: inline-flex;
    }
}

.chat-header h2 {
    font-size: 1.1em;
    margin: 8px 0 5px 0;
    font-weight: 600;
    color: #e8f4f8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-header p {
    font-size: 0.95em;
    margin: 0;
    color: #d0e8f2;
    font-style: italic;
}

/* Contact QR Code Section */
.contact-qr-section {
    display: none;
}

@media (min-width: 769px) {
    .contact-qr-section {
        display: block !important;
    }
}

/* Mobile header styles */
@media (max-width: 768px) {
    .chat-header {
        padding: 8px 10px;
        border-radius: 10px 10px 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .chat-header>div:first-child {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .chat-header>div:first-child>div:first-child {
        flex: 1;
        text-align: left;
    }

    .chat-header h1 {
        font-size: 1.1em;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .chat-header h2 {
        font-size: 0.7em;
        margin: 0;
        letter-spacing: 0.3px;
    }

    .chat-header p {
        font-size: 0.7em;
        display: none;
        /* Hide description on mobile */
    }
}

/* New Search Button */
.new-search-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-search-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile new search button */
@media (max-width: 768px) {
    .new-search-btn {
        display: none !important;
    }
}

/* Mobile new search button in input area */
.new-search-mobile-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 36px;
}

.new-search-mobile-btn:hover {
    background: #229954;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .new-search-mobile-btn {
        display: block !important;
    }
}

/* Sidebar Toggle Buttons for Mobile */
.sidebar-toggle-btn {
    padding: 2px 8px;
    font-size: 0.65em;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 1;
    height: fit-content;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-toggle-btn .toggle-icon {
    font-size: 1.1em;
    line-height: 1;
}

.sidebar-toggle-btn .toggle-label {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-toggle-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.sidebar-toggle-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sidebar-toggle-btn {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        padding: 0;
        font-size: 0.85em;
        border-radius: 50%;
        box-shadow: 0 10px 20px rgba(52, 152, 219, 0.35);
        margin: 0 4px;
        gap: 2px;
    }

    #english-toggle-btn {
        justify-content: center;
    }

    #urdu-toggle-btn {
        flex-direction: column;
        justify-content: center;
    }

    #urdu-toggle-btn .toggle-label {
        direction: rtl;
        font-size: 0.8em;
    }
}

/* Close button for mobile sidebars */
.close-sidebar-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.close-sidebar-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .close-sidebar-btn {
        display: block !important;
    }
}

/* Image Search Button */
.image-search-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

.image-search-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.image-search-btn:active {
    transform: translateY(0);
}

/* Mobile image search button */
@media (max-width: 768px) {
    .image-search-btn {
        padding: 12px 16px;
        font-size: 1em;
        width: 100%;
    }

    /* Fix Urdu text size in right sidebar buttons on mobile */
    .right-sidebar.urdu-text .image-search-btn {
        font-size: 0.85em;
        padding: 10px 12px;
        line-height: 1.3;
    }
}


.new-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    -webkit-text-decoration-skip: objects;
    /* ✅ Chrome support */
    text-decoration-skip: objects;
    text-wrap: wrap;
    /* ✅ Modern browsers */
    word-wrap: break-word;
    /* ✅ Fallback */
}

/* Mobile chat box */
@media (max-width: 768px) {
    .chat-box {
        padding: 8px;
        flex: 1;
        min-height: 0;
    }

    .message {
        margin-bottom: 8px;
    }

    .message-bubble {
        max-width: 85%;
        padding: 8px 10px;
        font-size: 0.9em;
    }
}

.user-message .message-bubble {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-bubble {
    background: white;
    color: #2c3e50;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.message.urdu-message .message-bubble {
    font-family: 'Noto Nastaliq Urdu', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
}

.urdu-hint {
    background: #863165 !important;
    border: 1px solid #fdcb6e !important;
}

.input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 15px 15px;
}

#user-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

#user-input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

button {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 25px;
    margin-left: 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Mobile input area */
@media (max-width: 768px) {
    .input-area {
        flex-direction: row;
        padding: 6px;
        gap: 6px;
        border-radius: 0 0 10px 10px;
    }

    #user-input {
        padding: 8px 12px;
        font-size: 16px;
        /* Prevent zoom on iOS */
        border-radius: 20px;
        height: 36px;
        width: 100%;
        flex: 1;
    }

    button {
        padding: 8px 12px;
        margin-left: 0;
        font-size: 0.8em;
        height: 36px;
        white-space: nowrap;
    }
}

/* Buttons in messages */
.message-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.message-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.message-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        /* ✅ Safari support */
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Shoe Card Styling */
.shoe-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    display: inline-block;
    text-align: left;
    width: -webkit-fill-available;
    /* ✅ Edge support */
    width: stretch;
    width: 100%;
    /* ✅ Fallback */
    max-width: 300px;
}

.shoe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.shoe-details h3 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.shoe-details p {
    color: #7f8c8d;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.shoe-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shoe-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.shoe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 🆕 INTERACTIVE HINT STYLES */
.hint-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.hint-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hint-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Message input highlight when populated */
#user-input {
    transition: all 0.3s ease;
}

#user-input.highlighted {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7dd 100%);
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

/* 🆕 BONUS: Animated hint feedback */
@keyframes hintPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hint-button.clicked {
    animation: hintPulse 0.3s ease;
    background: linear-gradient(45deg, #2ecc71, #27ae60) !important;
}

/* 🆕 IMAGE CARD STYLING */
.image-card-message {
    text-align: center;
    margin: 15px 0;
}

.shoe-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
    width: 100%;
}

.shoe-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease;
}

.shoe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.shoe-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid #f0f0f0;
}

.shoe-details h3 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.shoe-details p {
    color: #7f8c8d;
    margin: 0 0 15px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.shoe-details .shoe-seller {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.shoe-details .shoe-seller span {
    color: #7f8c8d;
    font-weight: 500;
}

/* Mobile shoe card styling */
@media (max-width: 768px) {
    .shoe-cards-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 5px 0;
    }

    .shoe-card {
        max-width: 100%;
        padding: 12px;
        margin: 8px 0;
        border-radius: 12px;
    }

    .shoe-image {
        height: 150px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .shoe-details h3 {
        font-size: 1em;
        margin: 0 0 6px 0;
    }

    .shoe-details p {
        font-size: 0.8em;
        margin: 0 0 10px 0;
    }
}

.shoe-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 10px;
    width: 100%;
}

.shoe-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.shoe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

.whatsapp-share-btn {
    background: linear-gradient(45deg, #25D366, #1fa855);
    display: none;
    /* Hide on desktop by default */
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.whatsapp-share-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.whatsapp-share-btn span {
    text-transform: uppercase;
    font-size: 0.72em;
}

.shoe-card.sharing {
    opacity: 0.7;
    pointer-events: none;
    filter: grayscale(0.2);
    /* Maintain original dimensions during sharing */
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile shoe button styling */
@media (max-width: 768px) {
    .shoe-buttons {
        gap: 8px;
        margin-top: 8px;
    }

    .shoe-button {
        padding: 8px 12px;
        font-size: 0.8em;
        flex: 1;
        min-width: 60px;
    }

    /* Show share button only on mobile */
    .whatsapp-share-btn {
        display: inline-flex !important;
    }

    /* Increase image size on mobile */
    .shoe-image {
        height: 280px;
        /* Increased from 200px */
    }

    /* Maintain card shape during sharing */
    .shoe-card {
        max-width: 100%;
    }
}

/* Loading state for images */
.shoe-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive for mobile */
@media (max-width: 480px) {
    .shoe-card {
        max-width: 280px;
        padding: 15px;
    }

    .shoe-image {
        height: 180px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
}

/* Mobile modal styling */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.modal-body {
    color: #34495e;
}

.info-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-section p {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    min-width: 120px;
}

.modal-close-btn {
    display: block;
    margin: 20px auto 0;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

/* Map Modal Specific Styles */
.map-modal-content {
    max-width: 900px !important;
    width: 90vw !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
}

.map-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.map-modal-content .close-btn {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.map-modal-content .map-container {
    flex: 1;
    min-height: 400px;
    max-height: 500px;
    margin: 0;
}

.map-modal-content .map-info {
    flex-shrink: 0;
    margin-top: 15px;
    max-height: 100px;
    overflow-y: auto;
}

.map-modal-content .modal-close-btn {
    flex-shrink: 0;
}

/* Hide mobile contact buttons on desktop */
.mobile-contact-buttons {
    display: none !important;
}

/* Mobile Map Modal Adjustments */
@media (max-width: 768px) {

    /* Show mobile contact buttons only on mobile */
    .mobile-contact-buttons {
        display: flex !important;
    }

    .map-modal-content {
        padding: 10px 8px;
        max-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        width: 100vw !important;
    }

    .map-modal-content h2 {
        margin: 0 0 8px 0;
        font-size: 0.9em;
    }

    .map-modal-content .map-container {
        max-height: 50vh;
        min-height: 45vh;
        margin-bottom: 8px;
    }

    .map-modal-content .map-info {
        max-height: 22vh;
        margin-top: 4px;
        font-size: 0.65em;
        overflow-y: auto;
        padding: 6px;
    }

    .modal-content {
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .modal-content img {
        max-height: 45px;
        max-width: 45px;
        align-self: flex-start;
    }

    .modal-content h3 {
        margin: 2px 0;
        font-size: 0.7em;
    }

    .modal-content p {
        margin: 1px 0;
        font-size: 0.6em;
    }

    .modal-content .qrcode {
        max-height: 60px;
        max-width: 60px;
    }
}

.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.leaflet-layer img {
    max-width: none;
}

.leaflet-tile {
    opacity: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 999 !important;
}

.map-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 15px;
}

.map-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.map-info p {
    color: #555;
    margin: 8px 0;
    line-height: 1.5;
}

.map-marker-popup {
    font-size: 14px;
    color: #2c3e50;
}

.map-marker-popup strong {
    color: #e74c3c;
}

.map-container {
    width: 100%;
    height: 500px;
    position: relative;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.map-container .leaflet-container {
    width: 100% !important;
    height: 100% !important;
}

/* Color Buttons Container */
.color-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

/* Round Color Buttons */
.color-btn-round {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
}

.color-btn-round:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.color-btn-round:active {
    transform: scale(0.95);
}

/* Tooltip Styling */
.color-btn-round[title] {
    position: relative;
}

.color-btn-round:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-btn-round:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
}

/* Vendor modal redesign */
.vendor-modal .modal-dialog {
    max-width: 1160px;
}

.vendor-modal-content {
    border: none;
    border-radius: 24px;
    background: #f4f6fb;
    box-shadow: 0 30px 80px rgba(15, 52, 96, 0.35);
}

.vendor-modal-header {
    border: none;
    background: linear-gradient(135deg, #1678f2 0%, #11cdef 100%);
    color: #fff;
    padding: 28px 32px;
}

.vendor-modal-title {
    font-weight: 600;
}

.vendor-modal-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.vendor-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.vendor-modal-header .btn-close-white {
    filter: invert(1);
    opacity: 0.75;
}

.vendor-modal-body {
    padding: 32px;
    background: #f4f6fb;
}

.vendor-modal-banner {
    background: rgba(22, 120, 242, 0.1);
    border: 1px dashed rgba(22, 120, 242, 0.35);
    border-radius: 18px;
    padding: 18px 22px;
}

.vendor-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff;
    color: #1678f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(15, 52, 96, 0.15);
}

.vendor-map-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(15, 52, 96, 0.1);
    box-shadow: 0 18px 40px rgba(15, 52, 96, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vendor-map-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vendor-map-card__tools span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #d3d9f5;
    margin-left: 6px;
}

.vendor-map {
    width: 100%;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e0e7ff;
}

.vendor-info-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 52, 96, 0.12);
}

.vendor-info-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1678f2, #11cdef);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 20px 40px rgba(17, 205, 239, 0.35);
}

.vendor-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(22, 120, 242, 0.12);
    color: #1678f2;
    font-weight: 600;
    font-size: 0.85rem;
}

.vendor-info-section {
    border: 1px solid #eef1fb;
    border-radius: 18px;
    padding: 16px 20px;
    background: #f9faff;
}

.vendor-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1fb;
}

.vendor-info-row:last-child {
    border-bottom: none;
}

.vendor-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vendor-icon-circle--success {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.15);
}

.vendor-icon-circle--primary {
    color: #1678f2;
    background: rgba(22, 120, 242, 0.15);
}

.vendor-icon-circle--danger {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

.vendor-link {
    color: #1678f2;
    text-decoration: none;
}

.vendor-link:hover {
    text-decoration: underline;
}

.vendor-qr-shell {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #eef1fb;
    background: #fff;
    display: inline-flex;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.05);
}

.vendor-qr-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vendor-action-buttons .btn {
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
}

.vendor-modal-footer {
    border: none;
    padding: 20px 32px 28px;
    background: #f4f6fb;
}

.vendor-modal-footer .btn {
    border-radius: 999px;
    padding-inline: 28px;
}

@media (max-width: 991.98px) {
    .vendor-modal-body {
        padding: 24px;
    }

    .vendor-map {
        height: 360px;
    }
}

@media (max-width: 575.98px) {
    .vendor-modal .modal-dialog {
        gap: 8px;
        margin-top: 8px;
        flex-wrap: wrap;
        justify-content: center;

        .vendor-modal-body {
            padding: 20px;
            padding: 8px 12px;
            font-size: 0.8em;
            flex: 1 1 45%;