/* ── Product card base ─────────────────────────────────────────────────── */
.product.product-11 .product-price { color: #39f; }
.product.product-11 .old-price { text-decoration: line-through; }
.product.text-center .product-price,
.product.text-center .ratings-container,
.product.text-center .product-nav,
.product.text-center .product-size { justify-content: left; }
.out-text { text-align: left; }
.product.product-11 .product-body { text-align: left; }
.product-action:not(.product-action-dark) { background-color: unset; }
.ratings-text { color: #ff0000; letter-spacing: -0.01em; font-family: 'Lato', sans-serif; }
.carousel-equal-height .product { border: 1px solid #ebebeb; }
.header-2 .top-menu ul { min-width: max-content; }
.nav.nav-pills .nav-link { font-size: 1.6rem; }
.product-cat a { color: #909090; font-weight: 400; }

/* ── Mobile auth section ───────────────────────────────────────────────── */
.mobile-user-section { padding: 1.2rem 1rem 1rem; border-bottom: 1px solid #eee; margin-bottom: 0.5rem; }
.mobile-user-greeting { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 0.8rem; color: #333; font-size: 1.4rem; font-weight: 600; }
.mobile-user-greeting i { color: #6669cc; font-size: 1.7rem; }
.mobile-user-badge { padding: 2px 9px; background: linear-gradient(135deg, #3447c0 0%, #8483ff 100%); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 2px 5px rgba(52,71,192,0.25); }
.mobile-user-links { display: flex; gap: 0.8rem; }
.mobile-user-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 1.3rem; color: #555; padding: 5px 12px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; }
.mobile-user-links a:hover { background: #f5f5f5; color: #333; }
.mobile-signin-link { display: inline-flex; align-items: center; gap: 8px; font-size: 1.4rem; color: #6669cc !important; font-weight: 600; text-decoration: none !important; }
.mobile-signin-link i { font-size: 1.6rem; }

/* ── Header user info (desktop) ────────────────────────────────────────── */
.header-user-info { display: flex; align-items: center; gap: 8px; }
.desktop-bar-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #c5c8f0; flex-shrink: 0; }
.desktop-bar-avatar-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #eef0fd; border: 2px solid #c5c8f0; color: #6669cc; font-size: 1.6rem; flex-shrink: 0; }
.header-user-info-col { display: flex; flex-direction: column; min-width: 0; }
.header-user-info-name { display: flex; align-items: baseline; gap: 4px; }
.header-user-info-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    top: -2px;
    position: relative;
}
.header-user-info .greeting-text { color: #aaa; font-size: 1.2rem; font-weight: 400; flex-shrink: 0; }
.header-user-info .display-name { color: #222; font-weight: 500; font-size: 1.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user-info .user-type-badge { display: inline-flex; align-items: center; padding: 5px 9px; background: linear-gradient(135deg, #3447c0 0%, #8483ff 100%); color: #fff; font-size: 0.89rem; font-weight: 700; border-radius: 5px; letter-spacing: 0.09em; text-transform: uppercase; flex-shrink: 0; }
.header-user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #c5c8f0; flex-shrink: 0; }
.header-stat-divider { color: #ddd; font-weight: 300; font-size: 1.4rem; margin: 0 1px; }
.header-balance { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; font-size: 1.12rem; font-weight: 500; border-radius: 5px; border: 1px solid #a5d6a7; white-space: nowrap; letter-spacing: 0.03em; }
.header-balance i { color: #2e7d32 !important; font-size: 1.12rem !important; line-height: 1; }
.header-points  { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; background: linear-gradient(135deg, #fff8e1, #ffd54f); color: #b45000; font-size: 1.12rem; font-weight: 500; border-radius: 5px; border: 1px solid #ffc107; white-space: nowrap; letter-spacing: 0.03em; }
.header-points i { color: #b45000 !important; font-size: 1.12rem !important; line-height: 1; }
.header-intro-clearance .header-bottom .header-right i { margin-right: 0; }
.header-intro-clearance .cart-dropdown,
.header-intro-clearance .wishlist,
.header-intro-clearance .account { padding-left: 3rem; }
.mobile-user-bar { display: none; }
.cart-dropdown .btn-remove, .compare-dropdown .btn-remove { top: 20%; }
.cart-count-position {
    top: 0.4px;
    left: 0.4px;
    position: relative;
}

/* ── Fixed header bars — desktop only ─────────────────────────────────── */
@media (min-width: 992px) {
    .header-middle { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; z-index: 1041; background-color: #fff; box-shadow: 0 3px 6px rgba(51,51,51,0.05); }
    .header-middle .container { height: 65px !important; }
    .header-bottom { position: fixed !important; top: 65px !important; left: 0; right: 0; width: 100%; z-index: 1040; background-color: #fff; box-shadow: 0 2px 4px rgba(51,51,51,0.04); }
    .header-bottom .container { height: 60px !important; }
    .intro-slider-container, .intro-slide { margin-top: 4rem; }
    .category-main-container h2 { margin-top: 8rem; }
}

/* ── Mobile header ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    header.header { position: sticky; top: 0; z-index: 1041; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    .header-middle { position: static; box-shadow: none; min-height: unset !important; }
    .header-middle .container { height: 70px !important; }
    .header-middle .header-right .account { display: flex !important; }
    .header-intro-clearance .cart-dropdown,
    .header-intro-clearance .wishlist,
    .header-intro-clearance .account { padding-left: 1.8rem; }
    .mobile-user-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0px 12px 5px 12px;
        background: linear-gradient(to right, #f8f8ff, #eef0fd);
        border-top: 1px solid #e2e4f3;
    }
    .mobile-bar-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #c5c8f0; flex-shrink: 0; }
    .mobile-bar-avatar-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #eef0fd; border: 2px solid #c5c8f0; color: #6669cc; font-size: 1.7rem; flex-shrink: 0; }
    .mobile-user-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .mobile-user-bar-name { display: flex; align-items: baseline; gap: 4px; }
    .mobile-user-bar-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
    .mobile-user-bar .greeting-text { color: #aaa; font-size: 1.2rem; font-weight: 400; flex-shrink: 0; }
    .mobile-user-bar .display-name { color: #222; font-weight: 500; font-size: 1.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .mobile-user-bar .user-type-badge { display: inline-flex; align-items: center; padding: 3px 9px; background: linear-gradient(135deg, #3447c0 0%, #8483ff 100%); color: #fff; font-size: 0.89rem; font-weight: 500; border-radius: 5px; letter-spacing: 0.09em; text-transform: uppercase; flex-shrink: 0; }
    .mobile-user-bar .header-balance { padding: 0px 8px; font-size: 1.12rem; }
    .mobile-user-bar .header-points  { padding: 0px 8px; font-size: 1.12rem; }
}

/* ── Vendor search dropdown ────────────────────────────────────────────── */
.vendor-filter-section { display: flex; justify-content: center; padding: 6px 0 18px; }
.vendor-search-wrap { width: 100%; max-width: 500px; }
.vendor-search-inner { position: relative; }
.vendor-search-input { width: 100%; padding: 10px 38px 10px 16px; border: 1px solid #e0e0e0; border-radius: 25px; font-size: 13px; outline: none; background: #fafafa; transition: border-color 0.2s, box-shadow 0.2s; }
.vendor-search-input:focus { border-color: #4e73df; background: #fff; box-shadow: 0 0 0 3px rgba(78,115,223,0.1); }
@media (max-width: 480px) { .vendor-search-input { font-size: 10px; padding: 10px 32px 10px 12px; } }
.vendor-clear-btn { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aaa; font-size: 20px; cursor: pointer; line-height: 1; padding: 0; }
.vendor-clear-btn:hover { color: #333; }
.vendor-dropdown { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); max-height: 220px; overflow-y: auto; z-index: 999; }
.vendor-dropdown-item { padding: 10px 15px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f5f5f5; transition: background 0.15s; display: flex; align-items: center; gap: 10px; }
.vendor-dropdown-item:last-child { border-bottom: none; }
.vendor-dropdown-item:hover { background: #f5f7ff; }
.vendor-item-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid #eee; background: #f0f0f0; }
.vendor-item-info { flex: 1; min-width: 0; }
.vendor-item-name { font-weight: 600; color: #333; }
.vendor-item-sub { color: #aaa; font-size: 11px; margin-top: 2px; }
.vendor-item-type { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 10px; background: #eef2ff; color: #4e73df; margin-left: 6px; vertical-align: middle; font-weight: 500; }
.vendor-item-count { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 10px; background: #f0f0f0; color: #666; margin-left: 4px; vertical-align: middle; font-weight: 500; }
.cart-item-points { display: block; width: fit-content; font-size: 10px; padding: 1px 7px; border-radius: 10px; background: linear-gradient(135deg, #f5c518, #e8a500); color: #6b3d00; font-weight: 700; margin-top: 4px; }
.vendor-dropdown-loading { padding: 12px 15px; text-align: center; color: #aaa; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.vendor-dropdown-loading::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; border: 2px solid #e0e0e0; border-top-color: #4e73df; border-radius: 50%; animation: pgSpin 0.6s linear infinite; }

/* ── Category tiles + spinner ──────────────────────────────────────────── */
.cat-block.cat-active figure span { border-color: #4e73df; }
.cat-block.cat-active .cat-block-title { color: #4e73df; font-weight: 700; }
.product-grid-spinner { display: flex; justify-content: center; align-items: center; padding: 60px 0; }
.product-grid-spinner::after { content: ''; width: 40px; height: 40px; border: 4px solid #f0f0f0; border-top-color: #4e73df; border-radius: 50%; animation: pgSpin 0.8s linear infinite; }
@keyframes pgSpin { to { transform: rotate(360deg); } }
.view-all-products { display: inline-flex; align-items: center; gap: 6px; color: #666; font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 1px dashed #aaa; padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.view-all-products:hover { color: #4e73df; border-color: #4e73df; text-decoration: none; }
.view-all-products::after { content: '→'; font-size: 14px; }

/* ── Product grid partial ──────────────────────────────────────────────── */
.products .product { border: 1px solid #e7e7e7; }
#product-grid-container .product-media { height: 240px; }
#product-grid-container .product-media > a { height: 100%; position: relative; }
#product-grid-container .product-image,
#product-grid-container .product-image-hover { height: 100%; object-fit: cover; }
.product-media { background-color: transparent; }
#product-grid-container .product { height: 100%; display: flex; flex-direction: column; }
#product-grid-container .product-body { flex: 1; }
#product-grid-container .product-points { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, #f5c518, #e8a500); color: #6b3d00; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin: 6px 0 4px; letter-spacing: 0.3px; }
#product-grid-container .product-points::before { content: '★'; font-size: 13px; color: #6b3d00; }
.product-action-mod { bottom: 1rem; position: relative; }
.product.product-11 .product-body { padding-bottom: 2rem; }
.product-price { margin-bottom: 0.4rem; }
