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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #2d1b1b;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.8s ease;
}

body.chat-mode {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.8s ease;
    position: relative;
}

.container.chat-mode {
    max-width: 100%;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
}

/* Chat Messages Styles */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    max-height: calc(100vh - 120px);
}

.message {
    display: flex;
    width: 100%;
    max-width: 768px;
    margin-bottom: 4px;
    animation: slideInMessage 0.3s ease-out;
}

.bot-message {
    justify-content: flex-start;
    padding-left: 0;
}

.user-message {
    justify-content: flex-end;
    padding-right: 0;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.bot-message .message-content {
    background: rgba(139, 74, 107, 0.2);
    color: #ffffff;
    border-bottom-left-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 74, 107, 0.3);
}

.user-message .message-content {
    background: linear-gradient(135deg, #8b4a6b, #5d2e42);
    color: #ffffff;
    border-bottom-right-radius: 6px;
    border: 1px solid rgba(139, 74, 107, 0.4);
}

.typing-indicator {
    display: none;
    justify-content: flex-start;
    margin-bottom: 8px;
    animation: slideInMessage 0.3s ease-out;
}

.typing-indicator .message-content {
    background: rgba(139, 74, 107, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    font-style: italic;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 74, 107, 0.2);
    max-width: 75%;
}

/* Product Message Styles */
.product-message .message-content {
    padding: 8px;
}

.product-image-container {
    margin-bottom: 8px;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-message-text {
    padding: 8px;
    padding-top: 0;
}

/* Logo Styles */
.logo {
    margin-bottom: 60px;
    transition: all 0.8s ease;
}

.logo h1 {
    font-size: 64px;
    font-weight: bold;
    background: linear-gradient(135deg, #d4a574 0%, #8b4a6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    transition: all 0.8s ease;
}

.container.chat-mode .logo {
    position: fixed;
    top: 20px;
    left: 20px;
    margin-bottom: 0;
    z-index: 1000;
}

.container.chat-mode .logo h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #d4a574 0%, #8b4a6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Container Styles */
.search-container {
    width: 100%;
    transition: all 0.8s ease;
    position: relative;
}

.container.chat-mode .search-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.chat-box {
    background: rgba(139, 74, 107, 0.2);
    border: 2px solid rgba(139, 74, 107, 0.3);
    border-radius: 50px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.8s ease;
}

.container.chat-mode .chat-box {
    background: rgba(139, 74, 107, 0.25);
    border: 1px solid rgba(139, 74, 107, 0.4);
    border-radius: 24px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: #ffffff;
    transition: all 0.8s ease;
}

.container.chat-mode .chat-box input {
    color: #ffffff;
    font-size: 14px;
    padding: 8px 12px;
}

.chat-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.8s ease;
}

.container.chat-mode .chat-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.chat-address-suggestions {
    list-style: none;
    margin: 12px 0 0;
    padding: 6px 0;
    border-radius: 16px;
    background: rgba(22, 19, 28, 0.92);
    border: 1px solid rgba(139, 74, 107, 0.35);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    max-height: 240px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease;
    width: 100%;
}

.chat-address-suggestion {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 15px;
    color: #ffffff;
    transition: background 0.15s ease;
}

.chat-address-suggestion:hover,
.chat-address-suggestion:focus {
    background: rgba(139, 74, 107, 0.25);
}

.jetbuy-button {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #d4a574 0%, #8b4a6b 100%);
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.jetbuy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.jetbuy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Chat Input Styles */
.chat-input-container {
    display: none;
}

.chat-input-box {
    display: flex;
    align-items: center;
    background: rgba(139, 74, 107, 0.1);
    border: 1px solid rgba(139, 74, 107, 0.3);
    border-radius: 24px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chat-input-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    color: #ffffff;
}

.chat-input-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-btn {
    background: #8b4a6b;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background: #5d2e42;
}

.send-btn:disabled {
    background: #6b5b5b;
    cursor: not-allowed;
}

/* Profile Bar Styles */
.profile-bar {
    position: fixed;
    top: 20px;
    left: 100px;
    background: rgba(139, 74, 107, 0.25);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 74, 107, 0.4);
}

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

.profile-label {
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-text {
    font-size: 14px;
    color: #ffffff;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-edit-btn {
    background: #5d2e42;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-edit-btn:hover {
    background: #8b4a6b;
    transform: translateY(-1px);
}

/* Address Bar Styles */
.address-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(139, 74, 107, 0.25);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(139, 74, 107, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.address-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-edit-btn {
    background: rgba(139, 74, 107, 0.3);
    border: 1px solid rgba(139, 74, 107, 0.5);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.address-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.order-status-bar {
    position: fixed;
    top: 120px;
    right: 20px;
    background: rgba(139, 74, 107, 0.22);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(139, 74, 107, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 980;
    backdrop-filter: blur(10px);
}

.order-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
}

.order-status-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.order-status-text {
    font-size: 13px;
    line-height: 1.4;
}

.order-status-refresh {
    background: rgba(139, 74, 107, 0.35);
    border: 1px solid rgba(139, 74, 107, 0.5);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.order-status-refresh:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Address Editor Styles */
.address-editor {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 999;
    animation: slideInRight 0.3s ease;
}

.address-editor-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(139, 74, 107, 0.3);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(139, 74, 107, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 280px;
}

.address-input {
    flex: 1;
    border: 1px solid rgba(139, 74, 107, 0.4);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    background: rgba(139, 74, 107, 0.1);
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.address-input:focus {
    border-color: #8b4a6b;
    box-shadow: 0 0 0 3px rgba(139, 74, 107, 0.2);
}

.address-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.address-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(139, 74, 107, 0.4);
    border-radius: 8px;
    background: rgba(22, 19, 28, 0.9);
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.address-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    border-bottom: 1px solid rgba(139, 74, 107, 0.2);
}

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

.address-suggestion:hover,
.address-suggestion:focus {
    background: rgba(139, 74, 107, 0.35);
}

.address-editor-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.address-save-btn, .address-cancel-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.address-save-btn {
    background: #8b4a6b;
    color: #ffffff;
}

.address-save-btn:hover {
    background: #5d2e42;
    transform: translateY(-1px);
}

.address-cancel-btn {
    background: rgba(139, 74, 107, 0.1);
    color: #ffffff;
    border: 1px solid rgba(139, 74, 107, 0.3);
}

.address-cancel-btn:hover {
    background: rgba(139, 74, 107, 0.2);
    transform: translateY(-1px);
}

/* Cart Total Styles */
.cart-total {
    position: fixed;
    top: 140px;
    right: 20px;
    background: rgba(139, 74, 107, 0.9);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 74, 107, 0.4);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s ease;
    min-width: 100px;
    min-height: 30px;
}

.checkout-button-container {
    width: 100%;
    max-width: 240px;
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
}

.checkout-button-container .jetbuy-button {
    margin-top: 0;
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary[role="button"] {
    cursor: pointer;
}

.cart-items {
    opacity: 0.9;
    font-size: 13px;
}

.cart-price {
    font-weight: 700;
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: rgba(139, 74, 107, 0.95);
    border: 1px solid rgba(139, 74, 107, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.cart-total:hover .cart-dropdown,
.cart-total.is-open .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-content {
    padding: 12px;
}

.cart-dropdown-item {
    color: #ffffff;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cart-dropdown-empty {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* Floating Cart Summary */
.cart-floating {
    display: none;
}

.cart-floating-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, rgba(139, 74, 107, 0.95), rgba(212, 165, 116, 0.95));
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-floating-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.cart-floating-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.cart-floating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-floating-dot {
    opacity: 0.7;
}

.cart-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    font-size: 16px;
    line-height: 1;
}

.cart-floating-dropdown {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(22, 19, 28, 0.94);
    border: 1px solid rgba(139, 74, 107, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    display: none;
    max-height: 260px;
    overflow-y: auto;
}

.cart-floating-dropdown .cart-dropdown-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-floating-dropdown .cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-floating.cart-floating--visible {
    display: block;
}

.cart-floating.cart-floating--visible.is-open .cart-floating-dropdown {
    display: block;
}

@media (min-width: 769px) {
    .cart-floating {
        display: none !important;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.address-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.address-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-edit-btn {
    background: #5d2e42;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-edit-btn:hover {
    background: #5d2e42;
    transform: translateY(-1px);
}

/* Profile Modal Styles */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.profile-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-modal-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.profile-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.profile-modal-close:hover {
    color: #ffffff;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-form input {
    padding: 12px 16px;
    border: 2px solid rgba(139, 74, 107, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(139, 74, 107, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
}

.profile-form input:focus {
    outline: none;
    border-color: #8b4a6b;
    box-shadow: 0 0 0 3px rgba(139, 74, 107, 0.2);
}

.profile-save-btn {
    background: #8b4a6b;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.profile-save-btn:hover {
    background: #5d2e42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 74, 107, 0.4);
}

/* Address Modal Styles */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.address-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.address-modal-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.address-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.address-modal-close:hover {
    color: #ffffff;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-form input {
    padding: 12px 16px;
    border: 2px solid rgba(139, 74, 107, 0.3);
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    background: rgba(139, 74, 107, 0.1);
    outline: none;
    transition: border-color 0.2s ease;
}

.address-form input:focus {
    border-color: #8b4a6b;
}

.address-save-btn {
    background: #8b4a6b;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.address-save-btn:hover {
    background: #5d2e42;
    transform: translateY(-1px);
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.payment-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-modal-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.payment-modal-close:hover {
    background: #f5f5f5;
    color: #ffffff;
}

.payment-form {
    display: flex;
    flex-direction: column;
}

.payment-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}


.stripe-card-element {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.stripe-card-element:focus-within {
    border-color: #8b4a6b;
    box-shadow: 0 0 0 2px rgba(139, 74, 107, 0.2);
}

.card-errors {
    color: #e53e3e;
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 20px;
}

.payment-save-btn {
    background: #8b4a6b;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-save-btn:hover:not(:disabled) {
    background: #5d2e42;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 74, 107, 0.4);
}

.payment-save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.logo {
    margin-bottom: 60px;
}

.logo h1 {
    font-size: 5rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -2px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-container {
    margin-bottom: 40px;
}

.chat-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(139, 74, 107, 0.25);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-box:hover,
.chat-box:focus-within {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

#chatInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#chatInput:focus::placeholder {
    opacity: 0;
}

.voice-btn {
    background: #8b4a6b;
    border: none;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    margin-right: 4px;
}

.voice-btn:hover {
    background: #303f9f;
    transform: scale(1.05);
}

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

.voice-btn.recording {
    background: #f44336;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-message {
    min-height: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 0;
}

.status-message.show {
    opacity: 1;
}

.status-message.success {
    color: #4caf50;
}

.status-message.error {
    color: #f44336;
}

.status-message.processing {
    color: #ff9800;
}

/* Stripe Elements Styling */
.stripe-element {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 60px;
}

.payment-error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 16px;
    display: none;
}

.payment-error-message:not(:empty) {
    display: block;
}

#payment-form {
    width: 100%;
}

.payment-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: rgba(139, 74, 107, 0.95);
    border: 1px solid rgba(139, 74, 107, 0.4);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    backdrop-filter: blur(20px);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #8b4a6b;
    box-shadow: 0 0 0 2px rgba(139, 74, 107, 0.3);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    background: linear-gradient(135deg, #8b4a6b, #5d2e42);
    border: none;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #a15578, #8b4a6b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 74, 107, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 16px;
}

.auth-switch span {
    color: #d4a574;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.auth-switch span:hover {
    color: #4a5bc4;
}

.auth-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    display: none;
}

.auth-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    display: block;
}

.auth-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    display: block;
}

.payment-save-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .logo h1 {
        font-size: 3.5rem;
    }
    
    .chat-box {
        margin: 0 auto;
        max-width: 90vw;
    }
    
    #chatInput {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .logo {
        margin-bottom: 40px;
    }
}

/* Vanishing placeholder animation */
@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

#chatInput::placeholder {
    animation: fadeInOut 3s ease-in-out infinite;
}

/* Focus states for accessibility */
#chatInput:focus {
    outline: none;
}

.voice-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Loading animation for voice button */
.voice-btn.processing {
    background: #ff9800;
}

.voice-btn.processing svg {
    animation: spin 1s linear infinite;
}

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

/* Product Preview Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 74, 107, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 20px;
    pointer-events: none;
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.product-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal.show .product-card {
    transform: translateY(0);
}

.product-image-container {
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-details {
    margin-bottom: 24px;
    color: #ffffff;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #8b4a6b;
    line-height: 1.3;
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #27ae60;
}

.product-original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
}

.product-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.product-retailer {
    font-weight: 600;
    color: #8b4a6b;
}

.product-delivery {
    color: #27ae60;
}

/* Purchase Status */
.purchase-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid #eee;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.purchase-status.show {
    opacity: 1;
    transform: translateY(0);
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.status-icon.processing {
    background: #3498db;
    color: white;
    animation: pulse 1.5s infinite;
}


.status-icon.success {
    background: #27ae60;
    color: white;
    animation: checkmark 0.6s ease;
}


.status-icon.error {
    background: #e74c3c;
    color: white;
}


.status-text {
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.status-text.processing {
    color: #3498db;
}

.status-text.success {
    color: #27ae60;
}

.status-text.error {
    color: #e74c3c;
}

/* Modal Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Modal Responsive */
@media (max-width: 600px) {
    .product-card {
        margin: 20px;
        padding: 24px;
    }
    
    .product-name {
        font-size: 1.25rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
    }

    body.chat-mode {
        padding-top: 24px;
    }

    .container {
        max-width: 100%;
        padding: 18px 14px 112px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .container.chat-mode {
        height: auto;
        min-height: 100vh;
        padding: 18px 14px 132px;
        gap: 16px;
    }

    .logo {
        margin-bottom: 4px;
        text-align: left;
        order: 1;
    }

    .logo h1 {
        font-size: 40px;
    }

    .container.chat-mode .logo {
        position: static;
        margin-bottom: 4px;
    }

    .profile-bar,
    .address-bar,
    .order-status-bar,
    .cart-total {
        position: static;
        width: 100%;
        margin: 0 0 12px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
        border-radius: 12px;
        background: rgba(22, 19, 28, 0.9);
        border: 1px solid rgba(139, 74, 107, 0.25);
        order: 2;
    }

    .profile-bar,
    .address-bar,
    .order-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .profile-text,
    .address-text,
    .order-status-text {
        max-width: none;
        white-space: normal;
        font-size: 14px;
    }

    .address-info,
    .order-status-info {
        width: 100%;
        max-width: none;
    }

    .cart-total {
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        order: 4;
        position: sticky;
        top: 12px;
        left: auto;
        right: auto;
        z-index: 900;
    }

    .cart-summary {
        width: 100%;
        justify-content: space-between;
        font-size: 14px;
    }

    .cart-dropdown {
        left: 0;
        right: 0;
        margin-top: 8px;
        width: 100%;
        min-width: unset;
    }

    .chat-messages {
        padding: 0;
        margin-top: 0;
        max-height: none;
        align-items: stretch;
        gap: 8px;
        min-height: 160px;
        order: 5;
    }

    .search-container {
        position: sticky;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 18px 14px 24px;
        background: linear-gradient(180deg, rgba(45, 27, 27, 0), rgba(45, 27, 27, 0.95) 45%);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(139, 74, 107, 0.18);
        order: 6;
    }

    .container.chat-mode .search-container {
        position: sticky;
        bottom: 0;
        left: 0;
        transform: none;
        max-width: 100%;
        padding: 18px 14px 24px;
    }

    .chat-box {
        width: 100%;
        padding: 2px;
        border-radius: 20px;
    }

    .checkout-button-container {
        order: 7;
        max-width: none;
        margin: 12px 0 0;
    }

    .checkout-button-container .jetbuy-button {
        width: 100%;
        font-size: 16px;
        padding: 12px 24px;
    }

    .cart-floating {
        position: fixed;
        right: 14px;
        bottom: 112px;
        width: calc(100% - 28px);
        max-width: 320px;
        z-index: 1050;
    }
}
