/*
 * Yu-ORDER shared storefront shell.
 * Shared header/footer rules extracted from the working wideview page.
 * home-page-styles.css remains the base stylesheet; this file centralises
 * the wideview-specific fixes and responsive overrides used by all pages.
 */

/* Assisted Login Styles */
.assisted-login-badge {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid #155724;
    max-width: 300px;
}
.assisted-login-badge i { font-size: 1.5rem; }
.assisted-login-badge .badge-content { display: flex; flex-direction: column; flex: 1; }
.assisted-login-badge .badge-title { font-weight: bold; font-size: 0.9rem; }
.assisted-login-badge .badge-subtitle { font-size: 0.8rem; opacity: 0.9; margin-top: 2px; }
.assisted-login-badge .close-badge {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.assisted-login-badge .close-badge:hover { background: rgba(255, 255, 255, 0.3); }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Sales rep / account dropdown */
.sales-rep-indicator {
    background: #e9f7ef;
    border-left: 4px solid #28a745;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #155724;
}
.sales-rep-indicator i { color: #28a745; margin-right: 5px; }
.user-profile-container { position: relative; }
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 250px;
    display: none;
    margin-top: 5px;
}
.user-dropdown-menu.active { display: block; }
.dropdown-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}
.dropdown-header strong { display: block; font-size: 14px; color: #333; }
.dropdown-header .text-muted { font-size: 12px; margin-top: 2px; }
.dropdown-body { padding: 8px 0; }
.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}
.user-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #e63946;
    text-decoration: none;
}
.user-dropdown-menu .dropdown-item i { width: 20px; margin-right: 10px; text-align: center; }
.user-dropdown-menu .dropdown-divider { height: 1px; background-color: #ddd; margin: 5px 0; }
.user-dropdown-menu .dropdown-item.logout { color: #dc3545; }
.user-dropdown-menu .dropdown-item.logout:hover { color: #fff; background-color: #dc3545; }
.profile-photo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.profile-photo-img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e63946;
    color: white;
    font-size: 20px;
}
.user-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.user-display-wrapper:hover { background-color: rgba(0,0,0,0.05); }
.user-display-name {
    font-size: 10px;
    line-height: 1;
    margin-top: 2px;
    color: #333;
    font-weight: 500;
}
.assisted-user-badge {
    background: #28a745;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Keep the working wideview navigation fixed on every page. */
#fixed-top-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}
body { padding-top: 160px !important; }
#fixed-top-panel nav ul li { display: inline-block !important; }
#fixed-top-panel nav ul li a { display: inline-block !important; }

/* Shared footer spacing from wideview's mobile optimisation. */
@media (max-width: 768px) {
    body { padding-top: 95px !important; }
    #fixed-top-panel header {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 6px 10px !important;
    }
    #fixed-top-panel .logo img { height: 32px !important; width: auto !important; }
    #fixed-top-panel .header-icons { gap: 8px !important; }
    #fixed-top-panel .header-icons .icon-wrapper i { font-size: 1rem !important; }
    #fixed-top-panel .search-container {
        order: 3;
        width: 100% !important;
        margin-top: 6px !important;
    }
    #fixed-top-panel .search-container .input-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    #fixed-top-panel .search-container input.form-control {
        flex: 1 !important;
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
        height: 36px !important;
    }
    #fixed-top-panel .search-container .btn-yu-orange {
        flex: 0 0 55px !important;
        width: 55px !important;
        font-size: 0.8rem !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #fixed-top-panel nav {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 6px 10px !important;
    }
    #fixed-top-panel nav::-webkit-scrollbar { display: none !important; }
    #fixed-top-panel nav ul {
        display: inline-flex !important;
        gap: 12px !important;
        white-space: nowrap !important;
    }
    #fixed-top-panel nav li a { font-size: 0.7rem !important; padding: 4px 0 !important; }
    #fixed-top-panel .top-total strong { font-size: 0.7rem; }

    .footer { padding: 0.75rem 0 !important; margin-top: 0.75rem !important; }
    .footer h5 { font-size: 0.8rem !important; margin-bottom: 6px !important; }
    .footer p, .footer li a { font-size: 0.6rem !important; }
}

@media (max-width: 576px) {
    #fixed-top-panel .search-container .btn-yu-orange {
        flex: 0 0 50px !important;
        width: 50px !important;
    }
}

/* Yu-ORDER delivery location control */
.yu-delivery-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    background: #fff;
    color: #183457;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.yu-delivery-trigger:hover {
    border-color: #ff7a00;
    box-shadow: 0 7px 18px rgba(24, 52, 87, .09);
    transform: translateY(-1px);
}
.yu-delivery-trigger > i { color: #ff7a00; font-size: 20px; }
.yu-delivery-trigger span { display: grid; line-height: 1.08; }
.yu-delivery-trigger small { color: #7b8796; font-size: 10px; }
.yu-delivery-trigger strong { color: #183457; font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.yu-delivery-dialog {
    width: min(430px, calc(100% - 28px));
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: #183457;
    box-shadow: 0 24px 70px rgba(10, 29, 52, .28);
}
.yu-delivery-dialog::backdrop { background: rgba(12, 25, 43, .56); backdrop-filter: blur(2px); }
.yu-delivery-dialog-card { padding: 22px; }
.yu-delivery-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.yu-delivery-eyebrow { display: block; margin-bottom: 4px; color: #ff7a00; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.yu-delivery-dialog h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.yu-delivery-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f6f9; color: #183457; }
.yu-delivery-help { margin: 13px 0 16px; color: #667386; font-size: 13px; line-height: 1.55; }
.yu-delivery-field { display: grid; gap: 7px; }
.yu-delivery-field > span { font-size: 12px; font-weight: 800; }
.yu-delivery-field select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #d6dee8; border-radius: 10px; background: #fff; color: #183457; font-weight: 700; }
.yu-delivery-field select:focus { outline: 3px solid rgba(255, 122, 0, .14); border-color: #ff7a00; }
.yu-delivery-summary { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; padding: 12px; border-radius: 10px; background: #f5f8fb; color: #58677a; font-size: 12px; line-height: 1.45; }
.yu-delivery-summary i { color: #ff7a00; font-size: 18px; }
.yu-delivery-summary strong { color: #183457; }
.yu-delivery-save { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: #183457; color: #fff; font-weight: 800; }
.yu-delivery-save:hover { background: #ff7a00; }
.yu-delivery-save:disabled { opacity: .65; cursor: wait; }
.yu-delivery-feedback { min-height: 18px; margin: 8px 0 0; color: #168252; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
    .yu-delivery-trigger { padding: 6px 8px; }
    .yu-delivery-trigger strong { max-width: 82px; }
}
@media (max-width: 768px) {
    .yu-delivery-trigger { order: 2; margin-left: auto; border: 0; background: #f5f7fa; }
    .yu-delivery-trigger > i { font-size: 16px; }
    .yu-delivery-trigger small { display: none; }
    .yu-delivery-trigger strong { font-size: 10px; max-width: 75px; }
    .yu-delivery-dialog-card { padding: 18px; }
}


/* =========================================================
   Yu-ORDER compact order details modal
   Wider than the previous version so content does not squash
   or create a page-wide horizontal scrollbar.
   ========================================================= */
#orderDetailsModal .yu-order-details-dialog {
    width: min(1040px, calc(100vw - 36px)) !important;
    max-width: none !important;
    margin: 18px auto !important;
}

#orderDetailsModal .modal-content {
    width: 100% !important;
    max-height: calc(100vh - 36px) !important;
    border: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 44px rgba(16, 33, 56, .18) !important;
}

#orderDetailsModal .modal-header {
    min-height: 46px !important;
    padding: 9px 14px !important;
}

#orderDetailsModal .modal-title {
    margin: 0 !important;
    font-size: .95rem !important;
    font-weight: 850 !important;
}

#orderDetailsModal .modal-body {
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#orderDetailsContent {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

#orderDetailsModal .modal-footer {
    min-height: 48px !important;
    padding: 8px 14px !important;
    gap: 8px !important;
}

#orderDetailsModal .modal-footer .btn {
    min-height: 33px !important;
    padding: 5px 11px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

#orderDetailsContent .container,
#orderDetailsContent .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#orderDetailsContent .row {
    --bs-gutter-x: 12px !important;
    --bs-gutter-y: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#orderDetailsContent .row > * {
    min-width: 0 !important;
}

#orderDetailsContent .card {
    min-width: 0 !important;
    margin-bottom: 0 !important;
}

#orderDetailsContent table {
    max-width: 100% !important;
}

#orderDetailsContent td,
#orderDetailsContent th {
    overflow-wrap: anywhere;
}

#orderDetailsContent .table-responsive {
    max-width: 100% !important;
    overflow-x: auto !important;
}

@media (max-width: 991.98px) {
    #orderDetailsModal .yu-order-details-dialog {
        width: min(920px, calc(100vw - 24px)) !important;
        margin: 12px auto !important;
    }
}

@media (max-width: 768px) {
    #orderDetailsModal .yu-order-details-dialog {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        margin: 6px auto !important;
    }

    #orderDetailsModal .modal-content {
        max-height: calc(100vh - 12px) !important;
        border-radius: 9px !important;
    }

    #orderDetailsModal .modal-header,
    #orderDetailsModal .modal-footer {
        padding: 8px 10px !important;
    }

    #orderDetailsModal .modal-body {
        padding: 9px !important;
        font-size: 12px !important;
    }
}


/* Yu-ORDER Product Card V2: image-first, lighter marketplace cards */
.yu-fashion-product-card,
.yu-home-product-card,
.inspired-card,
.buy-again-card {
    min-height: 0 !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
    transition: transform .16s ease !important;
}
.yu-fashion-product-card:hover,
.yu-home-product-card:hover,
.inspired-card:hover,
.buy-again-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
.yu-fashion-product-card .yu-home-product-image,
.yu-fashion-product-card .inspired-card-img,
.yu-fashion-product-card .card-img-top,
.yu-home-product-card .yu-home-product-image,
.inspired-card .inspired-card-img,
.buy-again-card .card-img-top {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #f7f7f7 !important;
}
.yu-fashion-product-card .yu-home-product-body,
.yu-fashion-product-card .inspired-card-body,
.yu-fashion-product-card .card-body,
.yu-home-product-card .yu-home-product-body,
.inspired-card .inspired-card-body,
.buy-again-card .card-body {
    padding: 8px 2px 4px !important;
    background: #fff !important;
}
.yu-fashion-product-card h3,
.yu-fashion-product-card .inspired-card-title,
.yu-fashion-product-card .card-title,
.yu-home-product-card h3,
.inspired-card .inspired-card-title,
.buy-again-card .card-title {
    height: auto !important;
    min-height: 32px !important;
    margin: 0 0 5px !important;
    color: #1f2937 !important;
    font-size: .76rem !important;
    font-weight: 500 !important;
    line-height: 1.32 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.yu-fashion-price-row,
.yu-home-product-price,
.inspired-price-container {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 0 0 4px !important;
    padding-right: 39px !important;
}
.yu-home-product-price strong,
.inspired-price,
.buy-again-price {
    color: #ff4b2b !important;
    font-size: .92rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}
.yu-home-old-price,
.inspired-original-price,
.buy-again-original-price {
    color: #8b8f97 !important;
    font-size: .64rem !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}
.yu-fashion-discount {
    color: #ff4b2b !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}
.yu-home-rating,
.inspired-rating,
.yu-fashion-product-card .product-rating {
    min-height: 15px !important;
    margin: 2px 0 0 !important;
    gap: 3px !important;
    color: #9aa0a8 !important;
    font-size: .58rem !important;
}
.yu-home-stars,
.inspired-rating .stars,
.yu-fashion-product-card .stars { font-size: .58rem !important; }
.yu-home-card-actions { top: 7px !important; right: 7px !important; gap: 5px !important; }
.yu-home-card-actions button {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 1px solid rgba(17,24,39,.10) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.94) !important;
    color: #22324a !important;
    box-shadow: 0 2px 8px rgba(15,23,42,.08) !important;
}
.yu-home-card-actions button:first-child { display: none !important; }
.yu-home-card-actions button i { font-size: .94rem !important; }
.yu-home-new-badge,
.previously-bought-badge,
.out-of-stock-badge {
    top: 7px !important;
    left: 7px !important;
    padding: 4px 7px !important;
    border-radius: 3px !important;
    font-size: .54rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}
.yu-home-new-badge { background: #ff7a00 !important; }
.yu-browse-stock { min-height: 0 !important; margin: 0 !important; font-size: .58rem !important; }
.yu-browse-stock:not(.low):not(.out) { display: none !important; }
.yu-fashion-product-card .quantity-control-container,
.yu-home-product-card .quantity-control-container {
    position: absolute !important;
    right: 3px !important;
    bottom: 3px !important;
    z-index: 6 !important;
    width: auto !important;
    margin: 0 !important;
}
.yu-fashion-product-card .add-to-cart-btn,
.yu-home-product-card .add-to-cart-btn,
.inspired-card .inspired-add-btn,
.buy-again-card .quick-reorder-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #1d3557 !important;
    box-shadow: 0 2px 7px rgba(15,23,42,.08) !important;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.yu-fashion-product-card .add-to-cart-btn i,
.yu-home-product-card .add-to-cart-btn i,
.inspired-card .inspired-add-btn i,
.buy-again-card .quick-reorder-btn i {
    margin: 0 !important;
    font-size: .95rem !important;
}
.yu-fashion-product-card .add-to-cart-btn:hover:not(:disabled),
.yu-home-product-card .add-to-cart-btn:hover:not(:disabled),
.inspired-card .inspired-add-btn:hover:not(:disabled),
.buy-again-card .quick-reorder-btn:hover:not(:disabled) {
    background: #1d3557 !important;
    color: #fff !important;
    border-color: #1d3557 !important;
}
.yu-fashion-product-card .quantity-controls,
.yu-home-product-card .quantity-controls {
    gap: 2px !important;
    padding: 2px !important;
    border: 1px solid #e3e7ec !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(15,23,42,.08) !important;
}
.yu-fashion-product-card .quantity-controls .btn,
.yu-home-product-card .quantity-controls .btn,
.yu-fashion-product-card .quantity-display,
.yu-home-product-card .quantity-display {
    width: 27px !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: .67rem !important;
}
.inspired-card .inspired-add-btn,
.buy-again-card .quick-reorder-btn {
    position: absolute !important;
    right: 3px !important;
    bottom: 3px !important;
}
.buy-again-card .prev-purchased {
    font-size: .58rem !important;
    margin: 2px 40px 0 0 !important;
    color: #818892 !important;
}
.yu-home-product-swiper,
.yu-category-product-swiper,
.inspired-swiper,
.buy-again-swiper { padding-top: 0 !important; padding-bottom: 8px !important; }
.yu-home-product-swiper .swiper-slide,
.yu-category-product-swiper .swiper-slide,
.inspired-swiper .swiper-slide,
.buy-again-swiper .swiper-slide { height: auto !important; }
@media (max-width: 575px) {
    .yu-fashion-product-card h3,
    .yu-fashion-product-card .inspired-card-title,
    .yu-fashion-product-card .card-title,
    .yu-home-product-card h3,
    .inspired-card .inspired-card-title,
    .buy-again-card .card-title { min-height: 29px !important; font-size: .70rem !important; }
    .yu-home-product-price strong,
    .inspired-price,
    .buy-again-price { font-size: .86rem !important; }
    .yu-home-card-actions button { width: 29px !important; height: 29px !important; }
    .yu-fashion-product-card .add-to-cart-btn,
    .yu-home-product-card .add-to-cart-btn,
    .inspired-card .inspired-add-btn,
    .buy-again-card .quick-reorder-btn {
        width: 31px !important; min-width: 31px !important; height: 31px !important; min-height: 31px !important;
    }
}


/* =========================================================
   YU-ORDER MOBILE V2
   Compact header, two-product mobile browsing, safe page width,
   native swipe rows, and non-overlapping floating controls.
   Desktop is intentionally untouched.
   ========================================================= */
@media (max-width: 768px) {
    :root {
        --yu-mobile-side: 12px;
    }

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        padding-top: var(--yu-fixed-header-height, 140px) !important;
    }

    #fixed-top-panel {
        width: 100% !important;
        max-width: 100vw !important;
    }

    #fixed-top-panel header {
        display: grid !important;
        grid-template-columns: 50px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "logo spacer actions"
            "search search search" !important;
        align-items: center !important;
        column-gap: 8px !important;
        row-gap: 6px !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 7px var(--yu-mobile-side) 6px !important;
        background: #fff !important;
    }

    #fixed-top-panel .logo {
        grid-area: logo !important;
        display: flex !important;
        align-items: center !important;
        width: 50px !important;
        min-width: 50px !important;
    }

    #fixed-top-panel .logo a {
        display: flex !important;
        align-items: center !important;
    }

    #fixed-top-panel .logo img {
        display: block !important;
        width: 46px !important;
        height: 46px !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }

    #fixed-top-panel .header-icons {
        grid-area: actions !important;
        justify-self: end !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 9px !important;
        min-width: 0 !important;
    }

    #fixed-top-panel .header-icons .d-flex.align-items-center {
        gap: 0 !important;
        margin: 0 !important;
    }

    #fixed-top-panel .header-icons .icon-wrapper,
    #fixed-top-panel .yu-customer-notification-toggle {
        width: 31px !important;
        min-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center !important;
    }

    #fixed-top-panel .header-icons .icon-wrapper > i,
    #fixed-top-panel .yu-customer-notification-toggle i {
        margin: 0 !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    #fixed-top-panel .cart-count-top,
    #fixed-top-panel .fav-count-top {
        top: -6px !important;
        right: -6px !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    #fixed-top-panel .profile-photo-circle {
        width: 34px !important;
        height: 34px !important;
        border-width: 1px !important;
    }

    #fixed-top-panel .profile-photo-icon {
        font-size: 17px !important;
    }

    #fixed-top-panel .user-display-wrapper {
        padding: 0 !important;
        min-width: 38px !important;
    }

    #fixed-top-panel .user-display-name {
        margin-top: 2px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    #fixed-top-panel .search-container {
        grid-area: search !important;
        order: initial !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #fixed-top-panel .search-container form,
    #fixed-top-panel .search-container .input-group {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    #fixed-top-panel .search-container input.form-control,
    #fixed-top-panel .search-container input {
        min-width: 0 !important;
        height: 40px !important;
        padding: 7px 11px !important;
        border-radius: 8px 0 0 8px !important;
        font-size: 14px !important;
    }

    #fixed-top-panel .search-container .btn-yu-orange {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 40px !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 0 !important;
        font-size: 17px !important;
        display: grid !important;
        place-items: center !important;
    }

    #fixed-top-panel .search-results {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        top: calc(100% + 4px) !important;
        border-radius: 8px !important;
        overflow: hidden auto !important;
    }

    #fixed-top-panel .orange-divider {
        height: 3px !important;
    }

    #fixed-top-panel nav {
        width: 100% !important;
        min-height: 36px !important;
        padding: 0 var(--yu-mobile-side) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    #fixed-top-panel nav::-webkit-scrollbar {
        display: none !important;
    }

    #fixed-top-panel nav ul {
        width: max-content !important;
        min-width: max-content !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #fixed-top-panel nav ul li {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    #fixed-top-panel nav li a {
        display: block !important;
        padding: 9px 0 !important;
        font-size: 12.5px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    #fixed-top-panel .yu-nav-cart-total,
    #fixed-top-panel .top-total {
        display: none !important;
    }

    /* Keep page sections inside the viewport. */
    body > main,
    body > .container,
    body > .container-fluid,
    main,
    .container,
    .container-fluid {
        max-width: 100% !important;
    }

    .container {
        padding-left: var(--yu-mobile-side) !important;
        padding-right: var(--yu-mobile-side) !important;
    }

    /* Home page service cards fit instead of beginning half off-screen. */
    .yu-service-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .yu-service-strip-item {
        flex: initial !important;
        min-width: 0 !important;
        width: 100% !important;
        min-height: 68px !important;
        padding: 9px 10px !important;
    }

    .yu-service-copy strong {
        font-size: .70rem !important;
    }

    .yu-service-copy span {
        font-size: .59rem !important;
    }

    /* Homepage product carousels become reliable native two-card swipe rows.
       This avoids Swiper breakpoint/inline-width conflicts on phones. */
    .home-new-swiper,
    .yu-home-product-swiper,
    .yu-category-product-swiper,
    .mySwiper,
    .inspired-swiper,
    .buy-again-swiper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        touch-action: pan-x !important;
        padding: 0 0 7px !important;
    }

    .home-new-swiper::-webkit-scrollbar,
    .yu-home-product-swiper::-webkit-scrollbar,
    .yu-category-product-swiper::-webkit-scrollbar,
    .mySwiper::-webkit-scrollbar,
    .inspired-swiper::-webkit-scrollbar,
    .buy-again-swiper::-webkit-scrollbar {
        display: none !important;
    }

    .home-new-swiper .swiper-wrapper,
    .yu-home-product-swiper .swiper-wrapper,
    .yu-category-product-swiper .swiper-wrapper,
    .mySwiper .swiper-wrapper,
    .inspired-swiper .swiper-wrapper,
    .buy-again-swiper .swiper-wrapper {
        transform: none !important;
        translate: none !important;
        width: 100% !important;
        display: flex !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .home-new-swiper .swiper-slide,
    .yu-home-product-swiper .swiper-slide,
    .yu-category-product-swiper .swiper-slide,
    .mySwiper .swiper-slide,
    .inspired-swiper .swiper-slide,
    .buy-again-swiper .swiper-slide {
        flex: 0 0 calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
        max-width: calc((100% - 10px) / 2) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .home-new-swiper .swiper-button-next,
    .home-new-swiper .swiper-button-prev,
    .yu-home-product-swiper .swiper-button-next,
    .yu-home-product-swiper .swiper-button-prev,
    .yu-category-product-swiper .swiper-button-next,
    .yu-category-product-swiper .swiper-button-prev,
    .mySwiper .swiper-button-next,
    .mySwiper .swiper-button-prev,
    .inspired-swiper .swiper-button-next,
    .inspired-swiper .swiper-button-prev,
    .buy-again-swiper .swiper-button-next,
    .buy-again-swiper .swiper-button-prev {
        display: none !important;
    }

    .yu-home-product-card,
    .yu-browse-product-card,
    .inspired-card,
    .buy-again-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        height: 100% !important;
        border-radius: 10px !important;
    }

    .yu-home-product-image,
    .yu-browse-product-card .yu-home-product-image,
    .inspired-card-img,
    .buy-again-card .card-img-top {
        height: 142px !important;
        object-fit: contain !important;
    }

    .yu-category-section {
        overflow: hidden !important;
    }

    .yu-category-header h2,
    .featured-title {
        font-size: 1rem !important;
    }

    .yu-category-view-more {
        min-width: 86px !important;
        min-height: 32px !important;
        padding: 6px 10px !important;
        font-size: .67rem !important;
    }

    /* Floating cart duplicates the header cart on phones, so only keep go-top. */
    .floating-buttons {
        right: 12px !important;
        bottom: 16px !important;
        gap: 7px !important;
        z-index: 9000 !important;
    }

    .floating-buttons #cart-toggle,
    .floating-buttons a.btn-secondary {
        display: none !important;
    }

    .floating-buttons .go-top,
    .floating-buttons .btn-dark {
        display: grid !important;
        place-items: center !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        font-size: 16px !important;
    }

    .cart-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 12px !important;
    }
}

@media (max-width: 430px) {
    #fixed-top-panel header {
        grid-template-columns: 46px minmax(0, 1fr) auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #fixed-top-panel .logo,
    #fixed-top-panel .logo img {
        width: 43px !important;
        min-width: 43px !important;
        height: 43px !important;
    }

    #fixed-top-panel .header-icons {
        gap: 7px !important;
    }

    #fixed-top-panel nav ul {
        gap: 16px !important;
    }

    #fixed-top-panel nav li a {
        font-size: 12px !important;
    }

    .yu-home-product-image,
    .yu-browse-product-card .yu-home-product-image,
    .inspired-card-img,
    .buy-again-card .card-img-top {
        height: 132px !important;
    }
}

