/* ============================================
   MOBILE BOTTOM NAVIGATION
   Amazon-style bottom nav with large icons
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10050;
    pointer-events: auto;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: visible;
    /* needed for elevated cart FAB */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important;
    }
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 4px;
    text-decoration: none;
    color: #81C408;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 65px;
}

.mobile-nav-item.active {
    color: #81C408;
}

.mobile-nav-item:active {
    background: #f8f9fa;
    transform: scale(0.95);
}

.mobile-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    font-weight: 900;
    /* FontAwesome Solid requires 900 */
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    display: block;
    color: #81C408;
}

.mobile-cart-badge {
    position: absolute;
    top: 12px;
    right: 50%;
    transform: translateX(18px);
    background: #dc3545;
    color: white;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ELEVATED CART FAB (Mercado Libre style)
   ============================================ */

.mobile-nav-item--cart {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    padding-bottom: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    min-height: 65px;
    transition: none;
}

.mobile-nav-item--cart:active {
    background: transparent;
    transform: none;
}

.mobile-cart-fab {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(129, 196, 8, 0.5), 0 -2px 8px rgba(0, 0, 0, 0.06);
    color: white;
    font-size: 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-cart-fab>i {
    font-size: 24px;
    line-height: 1;
    margin: 0;
    margin-left: -2px;
    padding: 0;
    display: block;
    text-align: center;
}

.mobile-nav-item--cart:active .mobile-cart-fab {
    transform: translateX(-50%) scale(0.92);
    box-shadow: 0 2px 8px rgba(129, 196, 8, 0.35);
}

/* Badge on the FAB */
.mobile-nav-item--cart .mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    transform: none;
}

/* Label sits below the FAB circle */
.mobile-nav-item--cart .mobile-nav-label {
    margin-top: 44px;
}

/* ============================================
   MOBILE CATEGORIES PANEL — Amazon-style grid
   ============================================ */

.mobile-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.mobile-category-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-category-card:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mobile-category-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1f36;
    padding: 12px 12px 0;
    display: block;
}

.mobile-category-card-img-wrap {
    width: 100%;
    background: #e8f5e0;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    margin-top: 8px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mobile-category-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   MOBILE MENU & ACCOUNT MODALS
   Slide-in panels from the right
   ============================================ */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.25s ease;
    display: none;
}

.mobile-overlay.active {
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    display: none;
}

.mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    background: white;
    z-index: 10025;
    transform: translateY(100%);
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.mobile-panel.active {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-panel-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 50%, #3d8b1c 100%);
    padding: 22px 20px;
    padding-top: calc(22px + env(safe-area-inset-top));
    color: white;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.3);
    border-bottom: none;
}

.mobile-panel-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-panel-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-panel-close:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.mobile-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: calc(65px + env(safe-area-inset-bottom));
    background: #f8f9fa;
    -webkit-overflow-scrolling: touch;
}

.mobile-panel-footer {
    position: sticky;
    bottom: calc(80px + env(safe-area-inset-bottom));
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
}

/* Menu Panel Links - Modern Style */
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #f8fdf5 0%, #f0f5eb 100%);
    border: 1px solid rgba(129, 196, 8, 0.15);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-link:active {
    background: linear-gradient(135deg, #eef5e6 0%, #e0ebda 100%);
    transform: scale(0.98);
}

.mobile-menu-link i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(129, 196, 8, 0.3);
}

.mobile-menu-logout {
    margin: 0;
    width: 100%;
    padding: 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.mobile-menu-logout:active {
    background: #c82333;
}

/* Account Panel Sections */
.account-section {
    background: white;
    margin-bottom: 12px;
}

.account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.account-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.account-view-link {
    color: #81C408;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.account-empty-state {
    padding: 45px 25px;
    text-align: center;
}

.account-empty-state i {
    font-size: 56px;
    background: linear-gradient(135deg, #81C408 0%, #a8e063 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    display: block;
}

.account-empty-state h4 {
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.account-empty-state p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   MOBILE CART MODAL
   Checkout-style cart modal for mobile
   ============================================ */

.mobile-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 10002;
    display: none;
}

.mobile-cart-modal.active {
    display: block;
}

.mobile-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.25s ease;
}

.mobile-cart-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 420px;
    background: white;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.mobile-cart-header {
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 50%, #3d8b1c 100%);
    padding: 22px 20px;
    padding-top: calc(22px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.3);
}

.mobile-cart-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-cart-header i {
    font-size: 20px;
}

.mobile-cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-cart-close:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.mobile-cart-body {
    flex: 1;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8fdf5 0%, #f0f5eb 100%);
}

.mobile-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 25px;
    text-align: center;
}

.mobile-cart-empty i {
    font-size: 80px;
    background: linear-gradient(135deg, #81C408 0%, #a8e063 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.mobile-cart-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.mobile-cart-empty p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.mobile-cart-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #81C408 0%, #5fa000 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.4);
}

.mobile-cart-shop-btn:hover,
.mobile-cart-shop-btn:active {
    background: linear-gradient(135deg, #6db000 0%, #4a8000 100%);
    color: white;
    transform: scale(0.98);
}

.mobile-cart-items {
    padding: 15px;
}

.mobile-cart-item {
    background: white;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(129, 196, 8, 0.1);
}

.mobile-cart-item-image {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
}

.mobile-cart-item-details {
    flex: 1;
}

.mobile-cart-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 6px 0;
}

.mobile-cart-item-price {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #81C408 0%, #5a7330 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.mobile-cart-footer {
    background: white;
    border-top: 2px solid #e8f0dc;
    padding: 20px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-cart-discount {
    margin-bottom: 20px;
}

.mobile-cart-discount-toggle {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fdf5 0%, #f0f5eb 100%);
    border: 1px solid #d4e5c0;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-cart-discount-toggle:active {
    background: linear-gradient(135deg, #eef5e6 0%, #e0ebda 100%);
}

.mobile-cart-discount-toggle span {
    font-size: 14px;
    font-weight: 700;
    color: #5a7330;
}

.mobile-cart-discount-content {
    margin-top: 12px;
    display: none;
}

.mobile-cart-discount-content.active {
    display: block;
}

.mobile-cart-discount-input {
    display: flex;
    gap: 10px;
}

.mobile-cart-discount-input input {
    flex: 1;
    padding: 14px;
    border: 2px solid #d4e5c0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-cart-discount-input input:focus {
    outline: none;
    border-color: #81C408;
}

.mobile-cart-discount-input button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #81C408 0%, #5fa000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(129, 196, 8, 0.3);
}

.mobile-cart-discount-input button:active {
    background: linear-gradient(135deg, #5fa000 0%, #4a8000 100%);
    transform: scale(0.97);
}

.mobile-cart-totals {
    background: linear-gradient(135deg, #f8fdf5 0%, #f0f5eb 100%);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(129, 196, 8, 0.15);
}

.mobile-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-cart-total-row:last-child {
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 2px solid #d4e5c0;
}

.mobile-cart-total-row span:first-child {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.mobile-cart-total-row.total span:first-child {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
}

.mobile-cart-total-row span:last-child {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}

.mobile-cart-total-row.total span:last-child {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #81C408 0%, #5a7330 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-cart-checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #81C408 0%, #5fa000 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-cart-checkout-btn:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, #5fa000 0%, #4a8000 100%);
}

.mobile-cart-continue-btn {
    width: 100%;
    padding: 16px;
    background: white;
    color: #5a7330;
    border: 2px solid #81C408;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.mobile-cart-continue-btn:active {
    transform: scale(0.97);
    background: #f8fdf5;
}


/* ============================================
   BRANDED MODERN ACCOUNT PANEL
   ============================================ */

.amz-header {
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 50%, #3d8b1c 100%);
    padding: 22px 20px;
    padding-top: calc(22px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
}

.amz-header-user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 19px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.amz-header-user i {
    font-size: 32px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.amz-header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
    font-size: 22px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.notification-bell i {
    font-size: 24px;
    color: white;
}

.notification-bell:active {
    transform: scale(0.9);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.5);
}

.amz-nav-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 15px;
    background: #ffffff;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
}

.amz-nav-pills::-webkit-scrollbar {
    display: none;
}

.amz-pill {
    flex: 1;
    white-space: nowrap;
    background: white;
    border: 2px solid #81C408;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(129, 196, 8, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.amz-pill i {
    font-size: 15px;
    color: #81C408;
}

.amz-pill:hover {
    background: #f0f9e8;
    border-color: #6aa306;
    box-shadow: 0 4px 12px rgba(129, 196, 8, 0.25);
}

.amz-pill.active {
    background: linear-gradient(135deg, #81C408 0%, #5fa000 100%);
    border-color: #81C408;
    color: white;
    box-shadow: 0 4px 14px rgba(129, 196, 8, 0.45);
}

.amz-pill.active i {
    color: white;
}

.amz-pill.active:hover {
    background: linear-gradient(135deg, #8fd10a 0%, #6db000 100%);
    box-shadow: 0 6px 18px rgba(129, 196, 8, 0.5);
}

.amz-content {
    background: linear-gradient(180deg, #f8fdf5 0%, #f0f5eb 100%);
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.amz-section {
    background: white;
    padding: 22px 18px;
    margin: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(129, 196, 8, 0.1);
}

.amz-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amz-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #81C408 0%, #56ab2f 100%);
    border-radius: 2px;
}

.amz-btn-large {
    width: 100%;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #555;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.amz-btn-large:active,
.amz-btn-large:hover {
    border-color: #81C408;
    color: #81C408;
    background: #f9fbf6;
}

.amz-product-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.amz-product-scroller::-webkit-scrollbar {
    display: none;
}

.amz-product-card {
    min-width: 140px;
    width: 140px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.amz-product-card:active {
    transform: scale(0.98);
}

.amz-product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f8f9fa;
}

.amz-product-info {
    padding: 12px;
}

/* ============================================
   MOBILE LOYALTY CARD - VIBRANT DESIGN
   ============================================ */

.mobile-loyalty-card {
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 50%, #3d8b1c 100%);
    margin: 15px;
    border-radius: 20px;
    padding: 28px 22px;
    color: white;
    box-shadow: 0 10px 30px rgba(129, 196, 8, 0.4);
    position: relative;
    overflow: hidden;
}

.mobile-loyalty-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-loyalty-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-loyalty-card .account-empty-state {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mobile-loyalty-card .account-empty-state i {
    color: white;
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-loyalty-card .account-empty-state h4 {
    color: white;
    font-size: 15px;
    margin-top: 12px;
    font-weight: 600;
}

.loyalty-card-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.loyalty-card-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
}

.loyalty-card-orders {
    font-size: 15px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.loyalty-card-progress {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.loyalty-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.loyalty-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loyalty-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #f0f9e0 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.loyalty-reward-message {
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 20px;
    display: inline-block;
    width: 100%;
}

.loyalty-coupons {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.loyalty-coupons-title {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 700;
}

.loyalty-coupon-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    color: #3d8b1c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loyalty-coupon-btn:active {
    background: white;
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   MOBILE ORDER CARDS - MODERN VIBRANT DESIGN
   ============================================ */

.mobile-order-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(129, 196, 8, 0.1);
    transition: all 0.3s ease;
}

.mobile-order-card:active {
    transform: scale(0.98);
}

.mobile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.mobile-order-number {
    font-size: 16px;
    font-weight: 800;
    color: #2d3748;
    letter-spacing: -0.3px;
}

.mobile-order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-order-status.pending {
    background: linear-gradient(135deg, #ff9500 0%, #ff7800 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 149, 0, 0.4);
}

.mobile-order-status.en_camino {
    background: linear-gradient(135deg, #007AFF 0%, #0056D6 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.4);
}

.mobile-order-status.completed {
    background: linear-gradient(135deg, #81C408 0%, #5fa000 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(129, 196, 8, 0.4);
}

.mobile-order-status.cancelled {
    background: linear-gradient(135deg, #ff3b30 0%, #d62c23 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 59, 48, 0.4);
}

.mobile-order-items {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.5;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
}

.mobile-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 2px solid #f0f5eb;
}

.mobile-order-total {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #81C408 0%, #5a7330 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-order-date {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.mobile-order-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.mobile-order-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mobile-order-btn.btn-cancel {
    background: linear-gradient(135deg, #ff3b30 0%, #d62c23 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.4);
}

.mobile-order-btn.btn-cancel:active {
    background: linear-gradient(135deg, #d62c23 0%, #b8211a 100%);
    transform: scale(0.96);
}

.mobile-order-btn.btn-reschedule {
    background: linear-gradient(135deg, #007AFF 0%, #0056D6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4);
}

.mobile-order-btn.btn-reschedule:active {
    background: linear-gradient(135deg, #0056D6 0%, #003DA5 100%);
    transform: scale(0.96);
}

.mobile-order-btn.btn-reorder {
    background: linear-gradient(135deg, #81C408 0%, #5fa000 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(129, 196, 8, 0.45);
}

.mobile-order-btn.btn-reorder:active {
    background: linear-gradient(135deg, #5fa000 0%, #4a8000 100%);
    transform: scale(0.96);
}

.mobile-empty-orders {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(180deg, rgba(129, 196, 8, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 20px;
    margin: 10px;
}

.mobile-empty-orders i {
    font-size: 60px;
    background: linear-gradient(135deg, #81C408 0%, #a8e063 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
}

.mobile-empty-orders h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.mobile-empty-orders p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.mobile-empty-orders .btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #81C408 0%, #56ab2f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.4);
    transition: all 0.3s ease;
}

.mobile-empty-orders .btn-shop:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(129, 196, 8, 0.3);
}

/* Menu panel header — matches amazon-mobile-header gradient + padding */
#mobileMenuHeader {
    background: linear-gradient(90deg, #6ab04c 0%, #8bc34a 25%, #6ab04c 50%, #8bc34a 75%, #6ab04c 100%);
    padding: 12px 16px 10px;
    padding-top: calc(env(safe-area-inset-top, 54px) + 12px);
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(106, 176, 76, 0.4);
}

/* Categories panel header — make it sticky */
#mobileCategoriesPanel .amazon-mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Categories grid — add top padding to not be hidden by sticky header */
.mobile-categories-grid {
    padding-top: 12px;
}

/* ── Order accordion ─────────────────────────────────────── */
.order-toggle {
    cursor: pointer;
    user-select: none;
}

.order-toggle:active {
    opacity: 0.85;
}

.order-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-order-footer-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
}

.mobile-order-footer-inline .mobile-order-total {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #81C408 0%, #5a7330 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-order-footer-inline .mobile-order-date {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.order-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.order-chevron {
    font-size: 11px;
    color: #a0aec0;
    transition: transform 0.3s ease;
}

.order-items-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.order-items-accordion.open {
    max-height: 1200px;
}

.order-items-list {
    padding-top: 12px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f5eb;
}

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

.order-item-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: #f7fafc;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-qty {
    font-size: 12px;
    color: #718096;
}

.order-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-ver-mas {
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #81C408;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.order-ver-mas:active {
    background: #edf2f7;
}