/**
 * Albasy Marketplace - Frontend Styles
 * @version 1.0.0
 */

/* ═══ CSS Variables ═══
   NOTE: --ape-navy, --ape-gold, --ape-silver, --ape-bg, --ape-border,
   --ape-text, --ape-text-light, --ape-text-muted sont définis et remappés
   vers la palette DA dans alb-design-system.css (section REMAP).
   On ne les redéfinit PAS ici pour éviter tout conflit.
═══════════════════════════════════════════════════════════════ */
:root {
    /* Layout-specific — non présents dans le design system */
    --ape-radius-sm:   var(--alb-radius-sm,   8px);
    --ape-radius-md:   var(--alb-radius-md,   14px);
    --ape-radius-lg:   var(--alb-radius-lg,   20px);
    --ape-radius-xl:   var(--alb-radius-xl,   28px);
    --ape-radius-full: var(--alb-radius-pill, 9999px);
    --ape-transition:  var(--alb-t-base, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
    --ape-topbar-h:    60px; /* v5.5.1 fix: hauteur réelle de .alb-tb */
    --ape-bottombar-h: 64px;
}

/* ═══ Body Padding ═══ */
body {
    padding-top: var(--ape-topbar-h) !important;
    background: var(--ape-bg);
}
body.admin-bar {
    padding-top: calc(var(--ape-topbar-h) + 32px) !important;
}
@media (max-width: 767px) {
    body {
        padding-bottom: var(--ape-bottombar-h) !important;
    }
    body.admin-bar {
        padding-top: calc(var(--ape-topbar-h) + 46px) !important;
    }
}

/* ═══ Animations ═══ */
@keyframes apeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes apeSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes apeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes apeScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes apeBadgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
@keyframes apeHeartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
@keyframes apeSpin {
    to { transform: rotate(360deg); }
}
@keyframes apeToastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes apeToastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
@keyframes apeShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes apeRemove {
    0% { transform: translateX(0); opacity: 1; max-height: 200px; }
    50% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(-30px); opacity: 0; max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* ═══ Focus Visible ═══ */
*:focus-visible {
    outline: 2px solid var(--ape-gold);
    outline-offset: 2px;
}

/* ═══ TOPBAR ═══ */
.ape-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ape-topbar-h);
    background: transparent;
    z-index: 9000;
    box-shadow: none;
    border-bottom: none;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
body.admin-bar .ape-topbar {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .ape-topbar {
        top: 46px;
    }
}
.ape-topbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

/* Logo */
.ape-topbar-logo {
    flex-shrink: 0;
    min-width: 40px;
    max-width: 180px;
}
.ape-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}
.ape-logo-img {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}
.ape-logo-svg {
    height: 36px;
    width: 144px;
    display: block;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .ape-topbar-logo {
        min-width: 36px;
        max-width: 120px;
    }
    .ape-logo-img {
        height: 32px;
        max-width: 120px;
    }
    .ape-logo-svg {
        height: 30px;
        width: 120px;
    }
}

/* Search */
.ape-topbar-search {
    flex: 1;
    min-width: 0;
    max-width: 600px;
    margin: 0 auto;
}
.ape-search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    height: 40px;
}
.ape-search-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 42px;
    border: 2px solid var(--alb-gray-200);
    border-radius: var(--ape-radius-full);
    background: var(--alb-off-white);
    color: var(--alb-gray-900);
    font-size: 14px;
    outline: none;
    transition: var(--ape-transition);
}
.ape-search-input::placeholder {
    color: var(--alb-text-muted);
}
.ape-search-input:focus {
    border-color: var(--alb-yellow);
    background: var(--alb-white);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.18);
}
.ape-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alb-text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}
.ape-search-spinner {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ape-gold);
    font-size: 14px;
    z-index: 2;
}
.ape-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ape-silver);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    z-index: 2;
}
.ape-search-clear:hover {
    color: var(--alb-gray-900);
}

/* Search Results Dropdown */
.ape-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--alb-white);
    border-radius: var(--ape-radius-md);
    box-shadow: 0 12px 48px rgba(0,0,0,0.14);
    max-height: 520px;
    overflow-y: auto;
    animation: apeSlideDown 0.18s ease;
    z-index: 9600;
    border: 1px solid var(--alb-gray-100);
}

/* Search type pills */
.ape-sr-pills {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--alb-gray-100);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--alb-white);
    z-index: 1;
}
.ape-sr-pills::-webkit-scrollbar { display: none; }
.ape-sr-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--ape-radius-full);
    border: 1.5px solid var(--alb-gray-200);
    background: var(--alb-white);
    color: var(--alb-text-sec);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ape-transition);
    flex-shrink: 0;
}
.ape-sr-pill i {
    font-size: 11px;
}
.ape-sr-pill:hover {
    border-color: var(--alb-gray-900);
    color: var(--alb-gray-900);
}
.ape-sr-pill.active {
    background: var(--alb-gray-900);
    border-color: var(--alb-gray-900);
    color: var(--alb-yellow);
}
.ape-search-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--ape-border);
}
.ape-search-section:last-of-type {
    border-bottom: none;
}
.ape-search-section-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ape-text-muted);
}
.ape-search-section-title i {
    margin-right: 6px;
}
.ape-search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--ape-text);
    transition: var(--ape-transition);
    gap: 12px;
}
.ape-search-item:hover,
.ape-search-item.ape-search-active {
    background: var(--ape-bg);
}
.ape-search-item-img {
    width: 44px;
    height: 44px;
    border-radius: var(--ape-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.ape-search-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--ape-radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.ape-search-item-info {
    flex: 1;
    min-width: 0;
}
.ape-search-item-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ape-search-item-store,
.ape-search-item-meta {
    display: block;
    font-size: 12px;
    color: var(--ape-text-muted);
    margin-top: 2px;
}
.ape-search-item-store i {
    margin-right: 4px;
    font-size: 10px;
}
.ape-search-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--ape-gold-dark);
    flex-shrink: 0;
}
.ape-search-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: var(--ape-gold-dark);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-top: 1px solid var(--ape-border);
    transition: var(--ape-transition);
}
.ape-search-all:hover {
    background: var(--ape-bg);
}
.ape-search-all i {
    margin-left: 6px;
}
.ape-search-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--ape-text-muted);
}
.ape-search-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}
.ape-search-empty p {
    margin: 0;
    font-size: 14px;
}
mark.ape-highlight {
    background: rgba(255, 214, 0, 0.25);
    color: var(--ape-navy);
    padding: 0 2px;
    border-radius: 2px;
}

/* Topbar Actions */
.ape-topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ape-topbar-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--ape-radius-full);
    color: var(--alb-gray-900);
    text-decoration: none;
    transition: var(--ape-transition);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 18px;
}
.ape-topbar-action:hover {
    background: var(--alb-off-white);
    color: var(--ape-gold-dark, var(--alb-yellow-dark));
}

/* Desktop nav links (icon + label) */
.ape-topbar-navlink {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: var(--ape-radius-sm);
    color: var(--alb-text-sec);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--ape-transition);
    cursor: pointer;
    border: none;
    background: none;
    white-space: nowrap;
}
.ape-topbar-navlink i {
    font-size: 17px;
    display: block;
}
.ape-topbar-navlink:hover {
    color: var(--alb-gray-900);
    background: var(--alb-off-white);
}
.ape-topbar-navlink.active {
    color: var(--alb-gray-900);
    font-weight: 600;
}
.ape-topbar-navlink.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--alb-yellow);
    border-radius: 2px 2px 0 0;
}

/* Mobile-only icons row */
.ape-topbar-mobile-icons {
    display: none;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.ape-topbar-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ape-radius-full);
    color: var(--alb-gray-900);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ape-transition);
}
.ape-topbar-icon-btn:hover {
    background: var(--alb-off-white);
}

/* Search back button (mobile search mode) */
.ape-search-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--ape-radius-full);
    background: none;
    border: none;
    color: var(--alb-gray-900);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--ape-transition);
}
.ape-search-back-btn:hover {
    background: var(--alb-off-white);
}

/* Badge */
.ape-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--ape-gold);
    color: var(--alb-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--ape-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ape-badge.ape-badge-pop {
    animation: apeBadgePop 0.3s ease;
}

/* User Avatar */
.ape-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--ape-radius-full);
    object-fit: cover;
    border: 2px solid var(--ape-gold);
}
.ape-user-trigger {
    position: relative;
}

/* ═══ User Dropdown — Premium v3 ═══ */
.ape-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--alb-white, #fff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 0;
    z-index: 9500;
    overflow: hidden;
    /* Hidden by default — toggled via .alb-open */
    display: none !important;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.ape-user-dropdown.alb-open {
    display: block !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: apeDropIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes apeDropIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ape-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f3ef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ape-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--alb-yellow, #FFD600);
    flex-shrink: 0;
}
.ape-dropdown-user-info {
    min-width: 0;
}
.ape-dropdown-user-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--alb-gray-900, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ape-dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 0;
}
.ape-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--alb-gray-900, #1a1a2e);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.ape-user-dropdown a:hover {
    background: rgba(255, 214, 0, 0.06);
    color: var(--alb-yellow-dark, #c7a000);
}
.ape-user-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--alb-text-muted, #8e8e9a);
    font-size: 14px;
    transition: color 0.15s;
}
.ape-user-dropdown a:hover i {
    color: var(--alb-yellow-dark, #c7a000);
}
.ape-user-dropdown a.ape-logout {
    color: #dc2626;
}
.ape-user-dropdown a.ape-logout:hover {
    background: #fef2f2;
}
.ape-user-dropdown a.ape-logout i {
    color: #dc2626;
}

/* ═══ Mini Cart Dropdown — Premium v3 ═══ */
.ape-minicart-dropdown {
    display: none !important;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.ape-minicart-dropdown.alb-open {
    display: block !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: apeDropIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mini Cart */
.ape-cart-trigger {
    position: relative;
}
.ape-minicart-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--alb-white);
    border-radius: var(--ape-radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    animation: apeSlideDown 0.2s ease;
    z-index: 9500;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ape-minicart-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ape-border);
    color: var(--ape-navy);
    font-size: 15px;
}
.ape-minicart-body {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}
.ape-minicart-items {
    padding: 8px 0;
}
.ape-minicart-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    transition: var(--ape-transition);
}
.ape-minicart-item:hover {
    background: var(--ape-bg);
}
.ape-minicart-item-img {
    flex-shrink: 0;
}
.ape-minicart-item-img img {
    width: 50px;
    height: 50px;
    border-radius: var(--ape-radius-sm);
    object-fit: cover;
}
.ape-minicart-item-info {
    flex: 1;
    min-width: 0;
}
.ape-minicart-item-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ape-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ape-minicart-item-meta {
    display: block;
    font-size: 12px;
    color: var(--ape-text-muted);
    margin-top: 2px;
}
.ape-minicart-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--ape-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--ape-transition);
}
.ape-minicart-remove:hover {
    color: var(--alb-danger);
}
.ape-minicart-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--ape-text-muted);
}
.ape-minicart-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}
.ape-minicart-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--ape-border);
    background: var(--ape-bg);
}
.ape-minicart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ape-text);
}
.ape-minicart-actions {
    display: flex;
    gap: 8px;
}
.ape-minicart-actions .ape-btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 12px;
}

/* ═══ BOTTOMBAR ═══ */
.ape-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--ape-bottombar-h);
    background: var(--alb-white);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    display: none;
    z-index: 8900;
    border-top: 1px solid var(--alb-gray-100);
}
/* bottombar Plus button reset */
#ape-plus-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
@media (max-width: 767px) {
    .ape-bottombar {
        display: flex;
    }
    .ape-topbar-actions {
        display: none;
    }
    .ape-topbar-mobile-icons {
        display: flex;
    }
    /* Mobile search: hide search bar, show back btn when .ape-search-active */
    .ape-topbar-search {
        display: none;
    }
    .ape-topbar.ape-search-active .ape-topbar-search {
        display: flex;
        flex: 1;
    }
    .ape-topbar.ape-search-active .ape-topbar-logo,
    .ape-topbar.ape-search-active .ape-topbar-mobile-icons {
        display: none;
    }
    .ape-topbar.ape-search-active .ape-search-back-btn {
        display: flex;
    }
}
.ape-bottombar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ape-text-muted);
    font-size: 10px;
    gap: 3px;
    position: relative;
    transition: var(--ape-transition);
}
.ape-bottombar-item i {
    font-size: 20px;
}
.ape-bottombar-item.active {
    color: var(--ape-gold);
}
.ape-bottombar-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--ape-gold);
    border-radius: 0 0 3px 3px;
}
.ape-bottombar-item .ape-badge {
    top: 6px;
    right: calc(50% - 18px);
    font-size: 9px;
    min-width: 16px;
    height: 16px;
}

/* ═══ Overlay ═══ */
.ape-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 8850;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.ape-overlay.active {
    display: block;
    opacity: 1;
}

/* ═══ Mega Menu ═══ */
.ape-marche-wrap {
    position: relative;
}
.ape-marche-arrow {
    font-size: 8px;
    margin-left: 2px;
    transition: transform 0.2s ease;
    opacity: 0.45;
}
.ape-marche-wrap:hover .ape-marche-arrow {
    transform: rotate(180deg);
    opacity: 1;
}
.ape-mega-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    background: var(--alb-white);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid var(--alb-gray-100);
    overflow: hidden;
    z-index: 9600;
    animation: apeSlideDown 0.2s ease;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ape-marche-wrap:hover .ape-mega-menu {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}
.ape-mega-menu__inner {
    display: flex;
}
.ape-mega-cats {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 1.4rem;
    border-right: 1px solid var(--alb-gray-50);
    min-width: 0;
}
.ape-mega-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--alb-gray-300);
    margin: 0 0 10px;
}
.ape-mega-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.ape-mega-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #424242;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.ape-mega-cat-link:hover {
    background: var(--alb-yellow-light);
    color: var(--alb-gray-900);
}
.ape-mega-cat-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--alb-gray-50);
    flex-shrink: 0;
}
.ape-mega-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--alb-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alb-gray-300);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.ape-mega-cat-count {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--alb-gray-300);
    flex-shrink: 0;
}
.ape-mega-promo {
    width: 178px;
    flex-shrink: 0;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--alb-off-white);
}
.ape-mega-promo-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
}
.ape-mega-promo-card:hover {
    background: var(--alb-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.ape-mega-promo-card i {
    font-size: 1.1rem;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.ape-mega-promo-card:nth-child(1) i { color: #9333EA; }
.ape-mega-promo-card:nth-child(2) i { color: #FF4B2B; }
.ape-mega-promo-card:nth-child(3) i { color: #0284C7; }
.ape-mega-promo-card strong {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--alb-gray-900);
    line-height: 1.2;
}
.ape-mega-promo-card span {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    color: var(--alb-gray-500);
    line-height: 1.3;
    margin-top: 1px;
}
@media (max-width: 767px) {
    .ape-marche-wrap { display: none; }
}

/* ═══ Search Trending ═══ */
.ape-sr-trending {
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--alb-gray-50);
}
.ape-sr-trending__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--alb-gray-300);
    margin-bottom: 8px;
}
.ape-sr-trending__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 4px;
}
.ape-sr-trending__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--alb-off-white);
    border: 1px solid var(--alb-gray-200);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--alb-text-sec);
    text-decoration: none;
    transition: all 0.18s;
}
.ape-sr-trending__chip i {
    font-size: 0.72rem;
    color: var(--alb-yellow);
}
.ape-sr-trending__chip:hover {
    background: var(--alb-gray-900);
    border-color: var(--alb-gray-900);
    color: var(--alb-yellow);
}
.ape-sr-trending__chip:hover i { color: var(--alb-yellow); }

/* ═══ Bottombar scroll-hide (mobile) ═══ */
.ape-bottombar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ape-bottombar.ape-bb-hidden {
    transform: translateY(100%);
}

/* ═══ Topbar scroll state ═══ */
.ape-topbar {
    transition: box-shadow 0.25s ease;
}
.ape-topbar.ape-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ═══ Toast Notifications ═══ */
.ape-toast-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9900;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}
@media (max-width: 767px) {
    .ape-toast-container {
        bottom: calc(var(--ape-bottombar-h) + 16px);
        right: 16px;
        left: 16px;
    }
}
.ape-toast {
    padding: 12px 20px;
    border-radius: var(--ape-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--alb-white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: apeToastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ape-toast.removing {
    animation: apeToastOut 0.3s ease forwards;
}
.ape-toast.success {
    background: #22c55e;
}
.ape-toast.error {
    background: var(--alb-danger);
}
.ape-toast.info {
    background: var(--ape-navy);
}

/* ═══ Buttons ═══ */
.ape-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--ape-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--ape-transition);
    line-height: 1.4;
}
.ape-btn-primary {
    background: linear-gradient(135deg, var(--ape-gold), var(--ape-gold-dark));
    color: var(--alb-white);
    box-shadow: 0 4px 12px rgba(199,148,74,0.3);
}
.ape-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(199,148,74,0.4);
}
.ape-btn-outline {
    background: transparent;
    color: var(--ape-navy);
    border: 2px solid var(--ape-border);
}
.ape-btn-outline:hover {
    border-color: var(--ape-gold);
    color: var(--ape-gold);
}
.ape-btn-danger {
    background: var(--alb-danger);
    color: var(--alb-white);
}
.ape-btn-danger:hover {
    background: var(--alb-danger);
}
.ape-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}
.ape-btn-block {
    width: 100%;
    text-align: center;
}

/* Product Action Buttons */
.ape-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.ape-btn-circle {
    width: 38px;
    height: 38px;
    border-radius: var(--ape-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ape-border);
    background: var(--alb-white);
    cursor: pointer;
    transition: var(--ape-transition);
    font-size: 14px;
    color: var(--ape-text);
}
.ape-btn-circle:hover {
    border-color: var(--ape-gold);
    color: var(--ape-gold);
}
.ape-btn-circle.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.ape-btn-cart.ape-loading {
    pointer-events: none;
}
.ape-btn-cart.ape-loading i::before {
    content: "\f110";
    animation: apeSpin 1s linear infinite;
}
.ape-btn-cart.ape-added {
    background: var(--ape-gold);
    border-color: var(--ape-gold);
    color: var(--alb-white);
}
.ape-btn-fav.active {
    color: var(--alb-danger);
    border-color: var(--alb-danger);
}
.ape-btn-fav.active i {
    animation: apeHeartPop 0.4s ease;
}

/* ═══ Pages ═══ */
.ape-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}
.ape-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ape-navy);
    margin-bottom: 24px;
}
.ape-page-title i {
    margin-right: 8px;
    color: var(--ape-gold);
}


/* Empty State — see v5.2+ definition below */


/* ═══ Cart Page ═══ */
.ape-cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .ape-cart-grid {
        grid-template-columns: 1fr;
    }
}
.ape-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--ape-border);
    border-radius: var(--ape-radius-md);
    overflow: hidden;
}
.ape-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--alb-white);
    animation: apeSlideUp 0.3s ease both;
}
.ape-cart-item.ape-removing {
    animation: apeRemove 0.4s ease forwards;
}
.ape-cart-item-img img {
    width: 100px;
    height: 100px;
    border-radius: var(--ape-radius-sm);
    object-fit: cover;
}
.ape-cart-item-details {
    flex: 1;
    min-width: 0;
}
.ape-cart-item-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ape-text);
    text-decoration: none;
    margin-bottom: 4px;
}
.ape-cart-item-name:hover {
    color: var(--ape-gold);
}
.ape-cart-item-store {
    display: block;
    font-size: 12px;
    color: var(--ape-text-muted);
    margin-bottom: 4px;
}
.ape-cart-item-store i {
    margin-right: 4px;
}
.ape-cart-item-price {
    font-size: 14px;
    color: var(--ape-text-light);
}
.ape-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.ape-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ape-border);
    background: var(--alb-white);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--ape-text);
    transition: var(--ape-transition);
}
.ape-qty-btn:first-child {
    border-radius: var(--ape-radius-sm) 0 0 var(--ape-radius-sm);
}
.ape-qty-btn:last-child {
    border-radius: 0 var(--ape-radius-sm) var(--ape-radius-sm) 0;
}
.ape-qty-btn:hover {
    border-color: var(--ape-gold);
    color: var(--ape-gold);
}
.ape-qty-value {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid var(--ape-border);
    border-bottom: 2px solid var(--ape-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ape-text);
}
.ape-cart-item-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: var(--ape-gold-dark);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}
.ape-cart-item-remove {
    background: none;
    border: none;
    color: var(--ape-text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: var(--ape-transition);
    flex-shrink: 0;
}
.ape-cart-item-remove:hover {
    color: var(--alb-danger);
}
@media (max-width: 600px) {
    .ape-cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ape-cart-item-img img {
        width: 70px;
        height: 70px;
    }
    .ape-cart-item-subtotal {
        min-width: auto;
    }
}

/* Cart Summary */
.ape-cart-summary {
    position: sticky;
    top: calc(var(--ape-topbar-h) + 20px);
}
body.admin-bar .ape-cart-summary {
    top: calc(var(--ape-topbar-h) + 52px);
}
.ape-cart-summary-inner {
    background: var(--alb-white);
    border-radius: var(--ape-radius-md);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ape-cart-summary-inner h3 {
    font-size: 18px;
    margin: 0 0 20px;
    color: var(--ape-navy);
}
.ape-cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--ape-text-light);
    border-bottom: 1px solid var(--ape-border);
}
.ape-cart-summary-row.ape-discount {
    color: #22c55e;
}
.ape-cart-summary-row.ape-deposit {
    color: var(--ape-gold-dark);
    font-weight: 600;
}
.ape-cart-summary-row.ape-total {
    border-bottom: none;
    font-size: 17px;
    color: var(--ape-navy);
    padding-top: 14px;
}
.ape-cart-summary-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ═══ Favorites Page ═══ */
.ape-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.ape-fav-card {
    background: var(--alb-white);
    border-radius: var(--ape-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--ape-transition);
    animation: apeScaleIn 0.3s ease both;
}
.ape-fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.ape-fav-card.ape-removing {
    animation: apeRemove 0.4s ease forwards;
}
.ape-fav-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.ape-fav-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ape-fav-card:hover .ape-fav-card-img {
    transform: scale(1.05);
}
.ape-fav-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: var(--ape-radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--alb-white);
    text-transform: uppercase;
}
.ape-badge-stock {
    background: var(--alb-danger);
}
.ape-badge-sale {
    background: var(--ape-gold);
}
.ape-btn-fav-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: var(--ape-radius-full);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--alb-danger);
    transition: var(--ape-transition);
}
.ape-btn-fav-remove:hover {
    background: var(--alb-white);
    transform: scale(1.1);
}
.ape-fav-card-body {
    padding: 14px;
}
.ape-fav-card-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ape-text);
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}
.ape-fav-card-name:hover {
    color: var(--ape-gold);
}
.ape-fav-card-store {
    display: block;
    font-size: 12px;
    color: var(--ape-text-muted);
    text-decoration: none;
    margin-bottom: 8px;
}
.ape-fav-card-store:hover {
    color: var(--ape-gold);
}
.ape-fav-card-store i {
    margin-right: 4px;
}
.ape-fav-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ape-gold-dark);
    margin-bottom: 10px;
}
.ape-fav-card-price del {
    font-size: 13px;
    color: var(--ape-text-muted);
    font-weight: 400;
}
.ape-fav-card-price ins {
    text-decoration: none;
}

/* ═══ Account Page ═══ */

/* Guest */
.ape-account-guest {
    text-align: center;
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}
.ape-account-guest-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--ape-radius-full);
    background: linear-gradient(135deg, var(--ape-navy), var(--ape-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--ape-gold);
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(26,39,68,0.2);
}
.ape-account-guest h1 {
    font-size: 28px;
    color: var(--ape-navy);
    margin: 0 0 12px;
}
.ape-account-guest p {
    color: var(--ape-text-light);
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
}
.ape-account-guest-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dashboard */
.ape-account-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.ape-account-header {
    position: relative;
    border-radius: var(--ape-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.ape-account-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ape-navy), var(--ape-gold-dark));
    z-index: 0;
}
.ape-account-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.ape-account-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    flex-wrap: wrap;
}
.ape-account-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.ape-account-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--ape-radius-full);
    object-fit: cover;
    border: 4px solid var(--ape-gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.ape-account-seller-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--ape-radius-full);
    background: var(--ape-gold);
    color: var(--alb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 3px solid var(--ape-navy);
}
.ape-account-info {
    flex: 1;
    min-width: 200px;
    color: var(--alb-white);
}
.ape-account-name {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--alb-white);
}
.ape-account-info p {
    margin: 0 0 4px;
    font-size: 13px;
    opacity: 0.85;
}
.ape-account-info p i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
    opacity: 0.7;
}
.ape-account-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}
.ape-account-stat {
    text-align: center;
    color: var(--alb-white);
}
.ape-account-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
}
.ape-account-stat-label {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 600px) {
    .ape-account-header-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .ape-account-stats {
        width: 100%;
        justify-content: center;
    }
}


/* Sections + Quick Nav — see v5.3 definitions below */
.ape-quick-vendor {
    border: 2px solid var(--ape-gold);
}
.ape-quick-vendor .ape-quick-icon {
    background: linear-gradient(135deg, var(--ape-navy), var(--ape-navy-light));
    color: var(--ape-gold);
}
.ape-quick-teal .ape-quick-icon { background: #f0fdfa; color: #14b8a6; }
.ape-quick-orange .ape-quick-icon { background: var(--alb-yellow-light); color: var(--alb-primary-dark, var(--alb-yellow-dark)); }

/* Orders List */
.ape-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--ape-border);
    border-radius: var(--ape-radius-md);
    overflow: hidden;
}
.ape-order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--alb-white);
    text-decoration: none;
    transition: var(--ape-transition);
}
.ape-order-item:hover {
    background: var(--ape-bg);
}
.ape-order-img {
    width: 48px;
    height: 48px;
    border-radius: var(--ape-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.ape-order-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.ape-order-id {
    font-weight: 600;
    color: var(--ape-text);
    font-size: 14px;
}
.ape-order-badge {
    padding: 3px 10px;
    border-radius: var(--ape-radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--alb-white);
}
.ape-order-meta {
    flex: 1;
    text-align: right;
    min-width: 0;
}
.ape-order-meta span {
    display: block;
    font-size: 12px;
    color: var(--ape-text-muted);
}
.ape-order-meta strong {
    font-size: 14px;
    color: var(--ape-text);
}
.ape-order-arrow {
    color: var(--ape-text-muted);
    flex-shrink: 0;
    font-size: 12px;
}
@media (max-width: 600px) {
    .ape-order-item {
        flex-wrap: wrap;
    }
    .ape-order-meta {
        text-align: left;
        width: 100%;
    }
}

/* Addresses */
.ape-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.ape-address-card {
    background: var(--alb-white);
    border-radius: var(--ape-radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ape-address-header {
    padding: 12px 16px;
    background: var(--ape-navy);
    color: var(--alb-white);
    font-size: 13px;
    font-weight: 600;
}
.ape-address-header i {
    margin-right: 8px;
}
.ape-address-body {
    padding: 16px;
    font-size: 14px;
    color: var(--ape-text-light);
    line-height: 1.6;
}
.ape-address-body p {
    margin: 0 0 4px;
}
.ape-address-body i {
    margin-right: 4px;
    color: var(--ape-text-muted);
}
.ape-text-muted {
    color: var(--ape-text-muted);
    font-style: italic;
}
.ape-address-edit {
    display: block;
    padding: 10px 16px;
    text-align: center;
    color: var(--ape-gold-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--ape-border);
    transition: var(--ape-transition);
}
.ape-address-edit:hover {
    background: var(--ape-bg);
}

/* Account Footer */
.ape-account-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 24px 0;
    flex-wrap: wrap;
}

/* ═══ Staggered Animations ═══ */
.ape-cart-item:nth-child(1) { animation-delay: 0s; }
.ape-cart-item:nth-child(2) { animation-delay: 0.05s; }
.ape-cart-item:nth-child(3) { animation-delay: 0.10s; }
.ape-cart-item:nth-child(4) { animation-delay: 0.15s; }
.ape-cart-item:nth-child(5) { animation-delay: 0.20s; }
.ape-fav-card:nth-child(1) { animation-delay: 0s; }
.ape-fav-card:nth-child(2) { animation-delay: 0.05s; }
.ape-fav-card:nth-child(3) { animation-delay: 0.10s; }
.ape-fav-card:nth-child(4) { animation-delay: 0.15s; }
.ape-fav-card:nth-child(5) { animation-delay: 0.20s; }
.ape-fav-card:nth-child(6) { animation-delay: 0.25s; }
.ape-fav-card:nth-child(7) { animation-delay: 0.30s; }
.ape-fav-card:nth-child(8) { animation-delay: 0.35s; }

/* ═══ Search Tabs (Amazon-style inline) ═══ */
.ape-search-tabs {
    display: flex;
    flex-shrink: 0;
    height: 40px;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.15);
    border-right: none;
    border-radius: var(--ape-radius-full) 0 0 var(--ape-radius-full);
    overflow: hidden;
}
.ape-search-tab {
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--ape-silver);
    cursor: pointer;
    transition: var(--ape-transition);
    border-radius: 0;
    margin-right: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.ape-search-tab:hover {
    color: var(--alb-white);
    background: rgba(255,255,255,0.1);
}
.ape-search-tab.active {
    color: var(--ape-navy);
    background: var(--ape-gold);
}
.ape-search-input-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
}
@media (max-width: 767px) {
    .ape-search-tabs {
        display: none;
    }
    .ape-search-input {
        border-radius: var(--ape-radius-full);
    }
}

/* ═══ Guaranteed Safe Checkout ═══ */
.acd-safe-checkout {
    background: linear-gradient(135deg, #f8fafc, #f0f4f8);
    border: 2px solid #e2e8f0;
    border-radius: var(--ape-radius-md);
    padding: 16px;
    margin: 16px 0;
}
.acd-safe-checkout-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ape-navy);
    margin-bottom: 12px;
}
.acd-safe-checkout-title i {
    color: #22c55e;
    margin-right: 6px;
}
.acd-safe-checkout-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.acd-checkout-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--ape-radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--alb-white);
    letter-spacing: 0.3px;
}
.acd-method-wave {
    background: linear-gradient(135deg, #1DC3E2, #15a5c4);
}
.acd-method-orange {
    background: linear-gradient(135deg, #FF6600, #e55b00);
}
.acd-method-paypal {
    background: linear-gradient(135deg, #003087, #001f5c);
}

/* ═══ Stock Info ═══ */
.acd-stock-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.acd-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
.acd-in-stock {
    color: #22c55e;
}
.acd-out-stock {
    color: var(--alb-danger);
}
.acd-stock-low {
    font-size: 12px;
    color: var(--alb-warning);
    font-weight: 500;
}

/* ═══ Product Actions Secondary ═══ */
.acd-actions-secondary {
    display: flex;
    gap: 10px;
}
.acd-actions-secondary .acd-btn {
    flex: 1;
}

/* ═══ Checkout WhatsApp info ═══ */
.ahm-checkout-whatsapp-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: #dcfce7;
    color: #166534;
    border-radius: var(--ape-radius-sm);
    font-size: 13px;
    font-weight: 500;
}
.ahm-checkout-whatsapp-info i {
    font-size: 20px;
    color: #25D366;
    flex-shrink: 0;
}

/* ── SEARCH REFONTE v5 ── */
.ape-search-page-wrapper { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }
.ape-search-bar { display:flex; gap:0; border-radius:999px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.08); border:2px solid var(--alb-gray-200); transition:border-color .2s; }
.ape-search-bar:focus-within { border-color:var(--alb-yellow); box-shadow:0 4px 24px rgba(255,214,0,.2); }
.ape-search-cat-select { border:none; background:var(--alb-gray-50); padding:.75rem 1rem; font-size:.875rem; font-family:'DM Sans',sans-serif; min-width:120px; border-right:1px solid var(--alb-gray-200); cursor:pointer; }
.ape-search-input-field { flex:1; border:none; padding:.75rem 1rem; font-size:1rem; font-family:'DM Sans',sans-serif; outline:none; background:var(--alb-white); }
.ape-search-submit { background:var(--alb-yellow); border:none; padding:.75rem 1.5rem; border-radius:0 999px 999px 0; cursor:pointer; transition:background .2s; }
.ape-search-submit:hover { background:var(--alb-yellow-hover); }
.ape-search-submit i { color:var(--alb-gray-900); }
.ape-search-suggestions { position:absolute; top:100%; left:0; right:0; background:var(--alb-white); border:1px solid var(--alb-gray-200); border-radius:16px; box-shadow:0 8px 32px rgba(0,0,0,0.1); z-index:9999; max-height:400px; overflow-y:auto; }
.ape-suggestion-item { display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; cursor:pointer; transition:background .15s; border-bottom:1px solid var(--alb-gray-50); }
.ape-suggestion-item:hover { background:#FFF9E0; }
.ape-suggestion-img { width:40px; height:40px; object-fit:cover; border-radius:8px; }
.ape-suggestion-title { font-weight:600; font-size:.875rem; color:var(--alb-gray-900); }
.ape-suggestion-price { font-size:.75rem; color:var(--alb-yellow); font-weight:700; }
.ape-search-shimmer { height:60px; background:linear-gradient(90deg,var(--alb-gray-50) 25%,var(--alb-gray-200) 50%,var(--alb-gray-50) 75%); background-size:200% 100%; animation:alb-shimmer 1.5s infinite; border-radius:8px; margin:.5rem 0; }
@keyframes alb-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ════════════════════════════════════════════════════════════════════════
   PAGE HEADER — Fix yellow domination (override aurora to white-dominant)
   ════════════════════════════════════════════════════════════════════════ */
.alb-page-header.alb-aurora-bg {
    background: linear-gradient(135deg,
        rgba(255,255,255,.98) 0%,
        rgba(255,249,196,.55) 35%,
        rgba(232,245,233,.45) 65%,
        rgba(255,255,255,.98) 100%
    ) !important;
    background-size: 100% 100% !important;
    animation: none !important;
    border: 1px solid rgba(255,214,0,.18);
    box-shadow: 0 4px 24px rgba(255,214,0,.1), 0 1px 0 rgba(255,255,255,.9);
}

/* ════════════════════════════════════════════════════════════════════════
   ABOUT PAGE — Complete styles
   ════════════════════════════════════════════════════════════════════════ */
.ape-about-page { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem; }

/* .ape-about-hero — retired, hero now uses .alb-page-hero-card */

/* Tabs — sticky scroll bar */
.alb-about-tabs-nav {
    position: sticky;
    top: calc(var(--ape-topbar-h, 60px) + 10px); /* v5.5.1 fix */
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: .4rem;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border: 1px solid var(--alb-gray-200);
    display: flex;
    gap: .3rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 1.75rem;
}
.alb-about-tabs-nav::-webkit-scrollbar { display: none; }

/* Section layout */
.ape-about-section { margin-bottom: 2.5rem; }
.ape-about-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 700;
    color: var(--alb-gray-900);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ape-about-section-title i { color: var(--alb-yellow); }

/* Steps grid */
.ape-about-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.ape-about-step {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,214,0,.18);
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
}
.ape-about-step:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.ape-about-step-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--alb-yellow), var(--alb-yellow-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(255,214,0,.35);
}
.ape-about-step-icon i { color: var(--alb-gray-900); font-size: 1.15rem; }
.ape-about-step h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem; font-weight: 700; color: var(--alb-gray-900); margin: 0 0 .5rem;
}
.ape-about-step p {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem; color: var(--alb-gray-700); margin: 0; line-height: 1.6;
}

/* Features grid */
.ape-about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem;
}
.ape-about-feature {
    background: var(--alb-white);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--alb-gray-100);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ape-about-feature:hover {
    border-color: var(--alb-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,214,0,.15);
}
.ape-about-feature > i {
    font-size: 1.75rem; color: var(--alb-yellow); display: block; margin-bottom: .75rem;
}
.ape-about-feature h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem; font-weight: 700; color: var(--alb-gray-900); margin: 0 0 .4rem;
}
.ape-about-feature p {
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem; color: var(--alb-gray-700); margin: 0; line-height: 1.5;
}

/* CTA block */
.ape-about-cta {
    background: linear-gradient(135deg, rgba(255,214,0,.12), rgba(0,200,83,.07));
    border-radius: 20px; padding: 2rem; text-align: center;
    border: 1px solid rgba(255,214,0,.2);
}
.ape-about-cta h2 { font-family: 'Playfair Display', serif; color: var(--alb-gray-900); margin: 0 0 .75rem; }
.ape-about-cta p { color: var(--alb-gray-700); margin: 0 0 1.5rem; }

/* Back nav */
.ape-about-back {
    display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--alb-gray-200);
}

/* ════════════════════════════════════════════════════════════════════════
   HERO — Suppress secondary/duplicate theme navbar inside hero
   ════════════════════════════════════════════════════════════════════════ */
.alb-hero-v5 nav,
.alb-hero-v5 .wp-block-navigation,
.alb-hero-v5 .navbar,
.alb-hero-v5 .site-navigation,
.alb-hero-v5 .secondary-navigation,
.alb-hero-v5 ul.menu,
.alb-hero-v5 .nav-menu,
.alb-hero-v5 .main-navigation,
.alb-hero-v5 header:not(.alb-hero-v5 > header) { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   BEST SELLERS — Swiper Slider
   ════════════════════════════════════════════════════════════════════════ */
.alb-bestsellers-section .alb-section-header { align-items: center; }
.alb-swiper-nav { display: flex; gap: .5rem; flex-shrink: 0; }
.alb-swiper-prev,
.alb-swiper-next {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--alb-yellow); background: var(--alb-white); color: var(--alb-gray-900);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .2s; font-size: .8rem; flex-shrink: 0;
}
.alb-swiper-prev:hover, .alb-swiper-next:hover { background: var(--alb-yellow); transform: scale(1.05); }
.alb-swiper-prev.swiper-button-disabled,
.alb-swiper-next.swiper-button-disabled { opacity: .35; cursor: default; pointer-events: none; }

.alb-bestsellers-swiper { overflow: hidden; padding-bottom: 2.5rem; }
.alb-bestsellers-swiper .swiper-wrapper { align-items: stretch; }
.alb-bestsellers-swiper .swiper-slide { height: auto; display: flex; }
.alb-bestsellers-swiper .alb-product-card { width: 100%; }
.alb-bestsellers-pagination { bottom: 0; }
.alb-bestsellers-pagination .swiper-pagination-bullet {
    background: var(--alb-yellow); opacity: .35; transition: all .25s;
}
.alb-bestsellers-pagination .swiper-pagination-bullet-active {
    opacity: 1; width: 20px; border-radius: 4px;
}
.alb-badge-fire {
    background: linear-gradient(135deg, #ff6b35, #ff9500);
    color: var(--alb-white); font-size: .62rem; font-weight: 700;
    padding: .18rem .45rem; border-radius: 999px; line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════════════
   FASHION / CLOTHING CATEGORIES SHOWCASE
   ════════════════════════════════════════════════════════════════════════ */
.alb-fashion-section { margin: 2.5rem 0; }
.alb-fashion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
@media (min-width: 640px)  { .alb-fashion-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .alb-fashion-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .alb-fashion-grid { grid-template-columns: repeat(5, 1fr); } }

/* First card spans 2 cols on desktop */
@media (min-width: 900px) {
    .alb-fashion-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .alb-fashion-card:nth-child(1) .alb-fashion-card__img { padding-bottom: 55%; }
}

.alb-fashion-card {
    display: block; border-radius: 16px; overflow: hidden;
    position: relative; text-decoration: none;
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    background: #EEEEEE;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.alb-fashion-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,.15); }
.alb-fashion-card:focus-visible { outline: 3px solid var(--alb-yellow); outline-offset: 3px; }

.alb-fashion-card__img {
    width: 100%; padding-bottom: 115%;
    background-size: cover; background-position: center top;
    background-color: var(--alb-gray-200); position: relative;
}
.alb-fashion-card__icon {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center;
    color: var(--alb-gray-300); font-size: 2.5rem;
}
.alb-fashion-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
}
.alb-fashion-card__body {
    position: absolute; bottom: 0; left: 0; right: 0; padding: .9rem;
}
.alb-fashion-card__name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(.85rem, 2vw, 1rem);
    font-weight: 700; color: var(--alb-white); margin: 0 0 .15rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.alb-fashion-card__count {
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem; color: rgba(255,255,255,.8); display: block;
}
.alb-fashion-card__cta {
    display: inline-block; margin-top: .35rem;
    font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700;
    color: var(--alb-yellow); letter-spacing: .02em;
}

/* ════════════════════════════════════════════════════════════════════════
   NAVBAR — Category filter in search bar
   ════════════════════════════════════════════════════════════════════════ */
.ape-search-cat-filter {
    border: none;
    background: var(--alb-yellow-light);
    padding: .55rem .7rem;
    font-size: .78rem;
    font-family: 'DM Sans', sans-serif;
    border-right: 1.5px solid rgba(255,214,0,.4);
    cursor: pointer; outline: none; flex-shrink: 0;
    max-width: 115px; color: var(--alb-gray-900); font-weight: 500;
    transition: background .15s;
}
.ape-search-cat-filter:focus, .ape-search-cat-filter:hover { background: var(--alb-yellow-pale); }
@media (max-width: 640px) { .ape-search-cat-filter { display: none; } }

/* ════════════════════════════════════════════════════════════════════════
   VENDOR REGISTRATION MODAL
   ════════════════════════════════════════════════════════════════════════ */
.alb-vendor-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: none; /* shown via JS */
    align-items: center; justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.alb-vendor-modal-overlay.is-open {
    display: flex;
    animation: apeFadeIn .2s ease;
}
.alb-vendor-modal {
    background: var(--alb-white);
    border-radius: 20px;
    max-width: 520px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
    animation: apeScaleIn .25s cubic-bezier(.34,1.56,.64,1);
}
.alb-vendor-modal__header {
    background: linear-gradient(135deg, var(--alb-yellow), var(--alb-yellow-dark));
    padding: 1.5rem; border-radius: 20px 20px 0 0; text-align: center;
    position: sticky; top: 0; z-index: 1;
}
.alb-vendor-modal__header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--alb-gray-900); margin: .5rem 0 0; font-size: 1.25rem;
}
.alb-vendor-modal__header .alb-modal-icon { font-size: 2rem; color: var(--alb-gray-900); }
.alb-vendor-modal__body { padding: 1.25rem 1.5rem; }
.alb-vendor-modal__terms {
    background: var(--alb-off-white); border-radius: 12px; padding: 1rem;
    max-height: 180px; overflow-y: auto;
    border: 1px solid var(--alb-gray-200);
    font-family: 'DM Sans', sans-serif; font-size: .825rem;
    color: #424242; line-height: 1.7; margin-bottom: 1rem;
}
.alb-vendor-modal__terms::-webkit-scrollbar { width: 4px; }
.alb-vendor-modal__terms::-webkit-scrollbar-thumb { background: var(--alb-yellow); border-radius: 4px; }
.alb-vendor-modal__accept {
    display: flex; align-items: flex-start; gap: .75rem;
    margin-bottom: 1.25rem;
    font-family: 'DM Sans', sans-serif; font-size: .875rem; color: #424242;
    cursor: pointer;
}
.alb-vendor-modal__accept input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--alb-yellow);
    flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.alb-vendor-modal__footer { display: flex; gap: .75rem; padding: 0 1.5rem 1.5rem; }
.alb-vendor-modal__footer .alb-modal-cancel {
    flex: 1; padding: .75rem; border: 2px solid var(--alb-gray-200); background: var(--alb-white);
    border-radius: 999px; font-family: 'DM Sans', sans-serif; font-weight: 600;
    color: var(--alb-gray-700); cursor: pointer; transition: all .2s;
}
.alb-vendor-modal__footer .alb-modal-cancel:hover { border-color: var(--alb-gray-500); }
.alb-vendor-modal__footer .alb-modal-confirm {
    flex: 2; padding: .75rem; background: var(--alb-yellow); border: none;
    border-radius: 999px; font-family: 'DM Sans', sans-serif; font-weight: 700;
    color: var(--alb-gray-900); cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.alb-vendor-modal__footer .alb-modal-confirm:hover { background: var(--alb-yellow-hover); transform: scale(1.02); }
.alb-vendor-modal__footer .alb-modal-confirm:disabled {
    opacity: .5; cursor: default; transform: none;
}

/* ════════════════════════════════════════════════════════════════════════
   VENDOR STORE — Improved visual layout
   ════════════════════════════════════════════════════════════════════════ */
.alb-store-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem 3rem; }

.alb-store-header {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.1); margin-bottom: 1.5rem;
}

.alb-store-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--alb-gray-900) 0%, #2D2D4E 50%, var(--alb-gray-900) 100%);
    position: relative;
    background-size: cover; background-position: center;
}
@media (min-width: 768px) { .alb-store-banner { height: 260px; } }
.alb-store-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.45) 100%);
}

.alb-store-profile {
    background: var(--alb-white); padding: 0 1.5rem 1.5rem;
    display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start;
}
@media (max-width: 640px) { .alb-store-profile { grid-template-columns: 1fr; text-align: center; } }

.alb-store-avatar { margin-top: -2.75rem; position: relative; z-index: 1; }
.alb-store-avatar img {
    width: 88px; height: 88px; border-radius: 50%;
    border: 4px solid var(--alb-white); box-shadow: 0 4px 16px rgba(0,0,0,.15); object-fit: cover;
}
@media (min-width: 768px) { .alb-store-avatar img { width: 100px; height: 100px; } .alb-store-avatar { margin-top: -3.25rem; } }

.alb-store-rank-badge {
    position: absolute; bottom: 0; right: 0;
    padding: .2rem .5rem; border-radius: 999px;
    font-family: 'DM Sans', sans-serif; font-size: .65rem; font-weight: 700;
    color: var(--alb-white); white-space: nowrap;
}

.alb-store-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; color: var(--alb-gray-900);
    margin: .5rem 0 .25rem;
}
.alb-store-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.alb-store-meta-item {
    font-family: 'DM Sans', sans-serif; font-size: .8rem; color: var(--alb-gray-500);
    display: flex; align-items: center; gap: .3rem;
}
.alb-store-meta-item i { color: var(--alb-yellow); }
.alb-store-badges { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }

.alb-store-header-actions {
    display: flex; flex-direction: column; gap: .5rem; padding-top: .75rem; flex-shrink: 0;
}
@media (max-width: 640px) { .alb-store-header-actions { flex-direction: row; justify-content: center; } }

.alb-store-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--alb-off-white); border-top: 1px solid var(--alb-gray-200); margin: 0;
}
.alb-store-stat-item {
    padding: 1rem .75rem; text-align: center;
    border-right: 1px solid var(--alb-gray-200); transition: background .15s;
}
.alb-store-stat-item:last-child { border-right: none; }
.alb-store-stat-item:hover { background: #FFF9E0; }
@media (max-width: 480px) {
    .alb-store-stats { grid-template-columns: repeat(2, 1fr); }
    .alb-store-stat-item:nth-child(2) { border-right: none; }
    .alb-store-stat-item:nth-child(3), .alb-store-stat-item:nth-child(4) { border-top: 1px solid var(--alb-gray-200); }
}

.alb-stat-value { display: block; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--alb-gray-900); line-height: 1.2; }
.alb-stat-small { font-size: .7rem; color: var(--alb-gray-500); }
.alb-stat-label { font-family: 'DM Sans', sans-serif; font-size: .72rem; color: var(--alb-gray-500); margin-top: .25rem; display: block; }
.alb-mini-stars { color: var(--alb-yellow); font-size: .75rem; display: block; }

.alb-store-content {
    display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 768px) { .alb-store-content { grid-template-columns: 1fr; } }

/* Swiper global pagination override */
.swiper-pagination-bullet { background: #ccc; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--alb-yellow); }

/* ═══════════════════════════════════════════════════════════════
   v5.2 — Page Hero Cards (Favoris / Panier / Commandes style)
   ═══════════════════════════════════════════════════════════════ */

/* Hero gradient card — yellow-to-green, rounded, centered */
.alb-page-hero-card {
    background: linear-gradient(145deg, var(--alb-yellow) 0%, #EEF08A 25%, #D4E870 50%, #BDD96A 75%, #A8CC5E 100%);
    border-radius: 24px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 2rem;
    margin: 0 0 1.5rem;
    box-shadow: 0 8px 32px rgba(180, 210, 60, 0.3);
    position: relative;
    overflow: hidden;
}
.alb-page-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.25) 0%, transparent 60%);
    pointer-events: none;
}
.alb-hero-card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--alb-gray-900);
    margin: 0 0 .5rem;
    position: relative;
    z-index: 1;
}
.alb-hero-card-title i {
    color: var(--alb-gray-900);
    margin-right: .5rem;
}
.alb-hero-card-sub {
    font-family: 'DM Sans', sans-serif;
    color: #3A3A3A;
    font-size: .95rem;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: .85;
}

/* ═══════════════════════════════════════════════════════════════
   v5.2 — Empty States redesign (dashed yellow card)
   ═══════════════════════════════════════════════════════════════ */

.ape-empty-state {
    background: #FEFCE8;
    border: 2px dashed var(--alb-yellow);
    border-radius: 20px;
    margin: 0 0 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
}
.ape-empty-state i {
    font-size: 3rem;
    color: #D0D0D0;
    margin-bottom: 1rem;
    display: block;
}
.ape-empty-state h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--alb-gray-900);
    margin: 0 0 .5rem;
}
.ape-empty-state p {
    color: var(--alb-gray-500);
    font-size: .875rem;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}
.ape-empty-state .ape-btn.ape-btn-primary,
.ape-empty-state a.ape-btn-primary {
    display: inline-block;
    background: var(--alb-yellow);
    color: var(--alb-gray-900);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    padding: .9rem 2rem;
    border-radius: 999px;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.ape-empty-state .ape-btn.ape-btn-primary:hover,
.ape-empty-state a.ape-btn-primary:hover {
    background: var(--alb-yellow-hover);
    transform: translateY(-1px);
}

/* v5.2 hero block removed — superseded by v5.3 dark hero */

/* ═══════════════════════════════════════════════════════════════
   v5.2 — alb-slide-down animation for CGU dismiss
   ═══════════════════════════════════════════════════════════════ */
@keyframes alb-slide-down {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   v5.2 — Page wrapper padding so content doesn't overlap hero
   ═══════════════════════════════════════════════════════════════ */
.ape-favorites-page,
.ape-cart-page {
    padding: 1rem;
}
.alb-orders-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}


/* ═══════════════════════════════════════════════════════════════
   v5.3 — Hide duplicate theme page title on Albasy plugin pages
   ═══════════════════════════════════════════════════════════════ */
.alb-plugin-page .entry-title:not(.product_title),
.alb-plugin-page .page-title,
.alb-plugin-page h1.entry-title:not(.product_title),
.alb-plugin-page .wp-block-post-title,
.alb-plugin-page .page-header .page-title,
.alb-plugin-page header.entry-header {
    display: none !important;
}
/* Also suppress page-header section (breadcrumb stays visible) */
.alb-plugin-page .entry-header:not(:has(.alb-page-hero-card)):not(:has(.alb-hero-v5)) {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   v5.3b — Homepage hero (light signature design)
   ═══════════════════════════════════════════════════════════════ */
.alb-hero-v5 {
    background: linear-gradient(145deg,
        var(--alb-yellow) 0%,
        #EEF08A 25%,
        #D4E870 50%,
        #BDD96A 75%,
        #A8CC5E 100%
    );
    animation: none;
    position: relative;
}
.alb-hero-v5::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.35) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 10%, rgba(255,255,255,.2) 0%, transparent 50%);
    pointer-events: none;
}
.alb-hero-v5__title {
    color: var(--alb-gray-900);
    text-shadow: none;
}
.alb-hero-v5__subtitle { color: #3A3A3A; }
.alb-hero-v5__stat-n { color: var(--alb-gray-900); }
.alb-hero-v5__stat-l { color: #555; }
.alb-hero-v5__stat-sep { background: rgba(26,26,46,.15); }
.alb-hero-v5__cta-outline {
    color: var(--alb-gray-900);
    border-color: rgba(26,26,46,.25);
}

/* ═══════════════════════════════════════════════════════════════
   v5.3 — About page hero card (slightly different from others)
   ═══════════════════════════════════════════════════════════════ */
.alb-about-hero-card {
    min-height: 300px;
}
.alb-about-hero-card .alb-hero-card-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
}
.alb-about-hero-card .alb-hero-card-sub {
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   v5.3 — Empty state icon always gray (override inline styles)
   ═══════════════════════════════════════════════════════════════ */
.ape-empty-state i,
.ape-empty-state .fas,
.ape-empty-state .fa-solid,
.ape-empty-state .fa-regular {
    color: #C8C8C8;
}

/* ═══════════════════════════════════════════════════════════════
   v5.3 — Vendor store product card redesign
   ═══════════════════════════════════════════════════════════════ */

/* Single column list on all sizes */
.alb-store-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.alb-product-card {
    display: flex;
    flex-direction: column;
    background: var(--alb-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid var(--alb-gray-100);
}
.alb-product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #F8F8F8;
}
.alb-product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.alb-product-card:hover .alb-product-card-img img { transform: scale(1.04); }
.alb-card-fav {
    position: absolute; top: .65rem; right: .65rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--alb-gray-500); transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.alb-card-fav.active, .alb-card-fav:hover { color: #E53935; background: var(--alb-white); }
.alb-badge-sale {
    position: absolute; top: .65rem; left: .65rem;
    background: #E53935; color: var(--alb-white);
    font-size: .65rem; font-weight: 700; font-family: 'DM Sans', sans-serif;
    padding: .2rem .5rem; border-radius: 999px; letter-spacing: .5px;
}
.alb-badge-stock {
    position: absolute; bottom: .65rem; left: .65rem;
    background: var(--alb-gray-700); color: var(--alb-white);
    font-size: .65rem; font-weight: 700; font-family: 'DM Sans', sans-serif;
    padding: .2rem .5rem; border-radius: 999px;
}
.alb-product-card-body {
    padding: 1rem 1rem .75rem;
    display: flex; flex-direction: column; gap: .4rem;
}
.alb-product-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; font-weight: 700; color: var(--alb-gray-900);
    text-decoration: none; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.alb-product-card-title:hover { color: #B8970A; }
.alb-product-card-rating {
    display: flex; align-items: center; gap: .35rem;
}
.alb-stars { display: flex; gap: 2px; }
.alb-stars i { font-size: .7rem; color: var(--alb-gray-200); }
.alb-stars i.fa-solid { color: var(--alb-yellow); }
.alb-rating-count { font-size: .72rem; color: var(--alb-gray-500); font-family: 'DM Sans', sans-serif; }
.alb-product-card-price { display: flex; align-items: baseline; gap: .4rem; }
.alb-price-main, .alb-price-sale {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem; font-weight: 800; color: var(--alb-gray-900);
}
.alb-price-regular del { font-size: .8rem; color: var(--alb-gray-300); font-family: 'DM Sans', sans-serif; }
.alb-discount-pct {
    background: var(--alb-danger-light); color: #C62828;
    font-size: .65rem; font-weight: 700; padding: .15rem .4rem; border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
}
.alb-product-card-actions {
    display: flex; gap: .5rem; margin-top: .25rem;
}
.alb-btn-add-cart {
    flex: 2;
    background: var(--alb-yellow); color: var(--alb-gray-900);
    border: none; border-radius: 999px;
    padding: .7rem 1rem;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .82rem;
    cursor: pointer; transition: background .2s;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alb-btn-add-cart:hover { background: var(--alb-yellow-hover); }
.alb-btn-voir {
    flex: 1;
    background: var(--alb-white); color: var(--alb-gray-900);
    border: 1.5px solid var(--alb-gray-200); border-radius: 999px;
    padding: .7rem 1rem;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .82rem;
    cursor: pointer; transition: border-color .2s, background .2s;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; white-space: nowrap;
}
.alb-btn-voir:hover { border-color: var(--alb-yellow); background: var(--alb-yellow-light); }
.alb-btn-unavailable {
    flex: 1; text-align: center;
    font-size: .8rem; color: var(--alb-gray-300); padding: .7rem;
    font-family: 'DM Sans', sans-serif;
}
.alb-out-of-stock { opacity: .75; }

/* ═══════════════════════════════════════════════════════════════
   v5.3 — Vendor stat cards — iOS list style (full-width stacked)
   ═══════════════════════════════════════════════════════════════ */
.alb-vendor-stats-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.alb-vstat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--alb-white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    border: 1px solid var(--alb-gray-50);
}
.alb-vstat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.alb-vstat-score .alb-vstat-icon  { background: #EEF2FF; color: #4F46E5; }
.alb-vstat-rating .alb-vstat-icon { background: #FEF9C3; color: #CA8A04; }
.alb-vstat-products .alb-vstat-icon { background: #DBEAFE; color: #2563EB; }
.alb-vstat-sales .alb-vstat-icon  { background: #D1FAE5; color: #059669; }
.alb-vstat-revenue .alb-vstat-icon { background: #EDE9FE; color: #7C3AED; }
.alb-vstat-data { display: flex; flex-direction: column; gap: .1rem; }
.alb-vstat-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem; font-weight: 800; color: var(--alb-gray-900); line-height: 1.2;
}
.alb-vstat-score .alb-vstat-value { color: #CA8A04; }
.alb-vstat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem; color: var(--alb-gray-500);
}

/* ═══════════════════════════════════════════════════════════════
   v5.3 — Quick nav cards (Mon espace) — iOS full-width list
   ═══════════════════════════════════════════════════════════════ */
.ape-quick-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ape-quick-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--alb-gray-50);
    background: var(--alb-white);
    transition: background .15s;
}
.ape-quick-card:last-child { border-bottom: none; }
.ape-quick-card:hover { background: var(--alb-off-white); }
.ape-quick-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0; color: var(--alb-white);
}
.ape-quick-blue   .ape-quick-icon { background: #3B82F6; }
.ape-quick-teal   .ape-quick-icon { background: #0EA5E9; }
.ape-quick-purple .ape-quick-icon { background: #8B5CF6; }
.ape-quick-orange .ape-quick-icon { background: #F97316; }
.ape-quick-green  .ape-quick-icon { background: #22C55E; }
.ape-quick-pink   .ape-quick-icon { background: #EC4899; }
.ape-quick-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.ape-quick-info h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem; font-weight: 700;
    color: var(--alb-gray-900); margin: 0;
}
.ape-quick-info p {
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem; color: var(--alb-gray-500); margin: 0;
}
.ape-quick-arrow { color: #C8C8C8; font-size: .75rem; flex-shrink: 0; }

/* Vendor section wrapper */
.ape-account-section.alb-vendor-section {
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.ape-account-section {
    margin-bottom: 1.5rem;
}
.ape-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--alb-gray-900);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.alb-vendor-section .ape-section-title {
    color: var(--alb-gray-900);
}

/* ═══════════════════════════════════════════════════════════════
   ALBASY VENDOR DASHBOARD v6.0 — styles complets
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.alb-vdash { max-width:1000px; margin:0 auto; padding-bottom:3rem; }

/* ── Hero card vendeur — surcharge .alb-page-hero-card sans ── */
.alb-vdash .alb-page-hero-card {
    min-height:auto;
    padding:1.75rem 2rem;
    margin-bottom:0;
    border-radius:24px 24px 0 0;
}
.alb-vdash-hero-row {
    display:flex;
    align-items:center;
    gap:1.5rem;
    flex-wrap:wrap;
    max-width:100%;
}
/* Identité */
.alb-vdash-identity { display:flex; align-items:center; gap:.875rem; flex:0 0 auto; }
.alb-vdash-avatar-wrap { position:relative; flex-shrink:0; }
.alb-vdash-avatar { width:64px; height:64px; border-radius:50%; border:3px solid var(--alb-white); box-shadow:0 4px 12px rgba(0,0,0,.15); object-fit:cover; }
.alb-vdash-level {
    position:absolute; bottom:-4px; right:-4px;
    width:24px; height:24px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:2px solid var(--alb-white); box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.alb-vdash-level i { font-size:.65rem; color:var(--alb-white); }
.alb-vdash-id-text { display:flex; flex-direction:column; gap:.25rem; }
.alb-vdash-store-name {
    font-family:'Playfair Display',serif;
    font-size:1.2rem; font-weight:700; color:var(--alb-gray-900);
    margin:0; line-height:1.2;
}
.alb-vdash-rank {
    display:inline-flex; align-items:center; gap:.3rem;
    padding:.25rem .75rem; border-radius:999px; font-size:.75rem; font-weight:700;
    font-family:'DM Sans',sans-serif; width:fit-content;
}

/* Quick stats */
.alb-vdash-qstats {
    display:flex; align-items:center; gap:.5rem;
    background:rgba(255,255,255,.65); backdrop-filter:blur(8px);
    border-radius:14px; padding:.75rem 1.25rem;
    border:1px solid rgba(255,255,255,.8);
    flex:1; min-width:200px; justify-content:center;
}
.alb-vdash-qstat { text-align:center; padding:0 .75rem; }
.alb-vdash-qstat-n { display:block; font-family:'Playfair Display',serif; font-size:1.3rem; font-weight:700; color:var(--alb-gray-900); }
.alb-vdash-qstat-l { font-family:'DM Sans',sans-serif; font-size:.68rem; color:#555; display:block; }
.alb-vdash-qstat-sep { width:1px; height:36px; background:rgba(26,26,46,.15); flex-shrink:0; }

/* CTAs hero */
.alb-vdash-hero-ctas { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; flex-shrink:0; }
.alb-vdash-cta-outline {
    display:inline-flex; align-items:center; gap:.4rem;
    border:2px solid rgba(26,26,46,.25); color:var(--alb-gray-900);
    padding:.7rem 1.25rem; border-radius:999px; text-decoration:none;
    font-family:'DM Sans',sans-serif; font-weight:600; font-size:.88rem;
    transition:all .2s; white-space:nowrap;
}
.alb-vdash-cta-outline:hover { border-color:var(--alb-gray-900); background:rgba(26,26,46,.06); }

/* ── Onglets ── */
.alb-vdash-tabs {
    display:flex; gap:0;
    background:var(--alb-white);
    border-bottom:2px solid var(--alb-gray-100);
    margin-bottom:1.5rem;
    border-radius:0 0 0 0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
.alb-vdash-tab {
    display:flex; align-items:center; gap:.4rem;
    padding:.9rem 1.25rem;
    font-family:'DM Sans',sans-serif; font-size:.88rem; font-weight:600; color:#757575;
    text-decoration:none; border-bottom:3px solid transparent;
    margin-bottom:-2px; transition:all .2s; white-space:nowrap; position:relative;
}
.alb-vdash-tab i { font-size:.85rem; }
.alb-vdash-tab.active { color:var(--alb-gray-900); border-bottom-color:var(--alb-yellow); }
.alb-vdash-tab:hover:not(.active) { color:var(--alb-gray-900); background:#FAFAFA; }
.alb-tab-badge {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:18px; height:18px; padding:0 5px; border-radius:999px;
    background:var(--alb-gray-900); color:var(--alb-yellow); font-size:.65rem; font-weight:800;
    font-style:normal;
}
.alb-tab-badge--warn { background:var(--alb-warning); color:var(--alb-white); }

/* ── Contenu tab ── */
.alb-vdash-content { padding:0 0 1rem; }

/* ── Filtres produits ── */
.alb-vdash-filters { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.alb-filter-pill {
    display:inline-flex; align-items:center; gap:.35rem;
    padding:.45rem 1rem; border-radius:999px; border:1.5px solid var(--alb-gray-200);
    background:var(--alb-white); color:var(--alb-gray-700); font-family:'DM Sans',sans-serif;
    font-size:.82rem; font-weight:600; cursor:pointer; transition:all .2s;
}
.alb-filter-pill em { font-style:normal; background:var(--alb-gray-100); color:#757575; border-radius:999px; padding:0 6px; font-size:.75rem; }
.alb-filter-pill:hover { border-color:var(--alb-yellow); color:var(--alb-gray-900); }
.alb-filter-pill.active { background:var(--alb-gray-900); border-color:var(--alb-gray-900); color:var(--alb-yellow); }
.alb-filter-pill.active em { background:rgba(255,214,0,.25); color:var(--alb-yellow); }

/* ── Grille produits ── */
.alb-vdash-products {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
    gap:1rem;
}
.alb-vprod {
    background:var(--alb-white); border-radius:16px; overflow:hidden;
    border:1.5px solid var(--alb-gray-100); box-shadow:0 2px 10px rgba(0,0,0,.05);
    transition:all .25s; display:flex; flex-direction:column;
}
.alb-vprod:hover { box-shadow:0 6px 24px rgba(255,214,0,.2); border-color:var(--alb-yellow); transform:translateY(-3px); }

/* Image produit */
.alb-vprod-img { position:relative; aspect-ratio:1; overflow:hidden; background:var(--alb-gray-50); }
.alb-vprod-img img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.alb-vprod:hover .alb-vprod-img img { transform:scale(1.04); }
.alb-vprod-no-img { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.alb-vprod-no-img i { font-size:2.5rem; color:var(--alb-gray-200); }

/* Badge statut produit */
.alb-vprod-badge {
    position:absolute; top:.5rem; right:.5rem;
    padding:.2rem .6rem; border-radius:999px;
    font-size:.68rem; font-weight:700; font-family:'DM Sans',sans-serif;
}
.alb-vprod-badge--publish { background:#D1FAE5; color:var(--alb-green-dark); }
.alb-vprod-badge--pending { background:var(--alb-warning-bg); color:#92400E; }
.alb-vprod-badge--draft   { background:var(--alb-gray-50); color:#757575; }

/* Corps carte */
.alb-vprod-body { padding:.75rem; flex:1; }
.alb-vprod-title { font-family:'DM Sans',sans-serif; font-size:.88rem; font-weight:600; color:var(--alb-gray-900); margin:0 0 .4rem; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.alb-vprod-meta { display:flex; align-items:center; justify-content:space-between; gap:.35rem; }
.alb-vprod-price { font-family:'DM Sans',sans-serif; font-size:.88rem; font-weight:700; color:var(--alb-gray-900); }
.alb-vprod-stock { font-size:.75rem; color:#757575; font-family:'DM Sans',sans-serif; display:flex; align-items:center; gap:.2rem; }
.alb-vprod-stock i { font-size:.65rem; }
.alb-vprod-stock--low { color:var(--alb-danger); font-weight:700; }

/* Actions produit */
.alb-vprod-actions { display:flex; gap:.3rem; padding:.5rem .75rem .75rem; }
.alb-vprod-act {
    flex:1; display:flex; align-items:center; justify-content:center;
    height:32px; border-radius:8px; border:1.5px solid var(--alb-gray-200);
    background:var(--alb-white); color:var(--alb-gray-700); cursor:pointer; transition:all .2s;
    text-decoration:none; font-size:.82rem;
}
.alb-vprod-act:hover { background:var(--alb-yellow-light); border-color:var(--alb-yellow); color:var(--alb-gray-900); }
.alb-vprod-act--danger:hover { background:#FEE2E2; border-color:var(--alb-danger); color:var(--alb-danger); }

/* ── Commandes vendeur ── */
.alb-vdash-section-label {
    font-family:'DM Sans',sans-serif; font-size:.78rem; font-weight:700;
    text-transform:uppercase; letter-spacing:.06em; color:var(--alb-gray-500);
    margin-bottom:.75rem; display:flex; align-items:center; gap:.4rem;
}
.alb-vdash-orders { display:flex; flex-direction:column; gap:.75rem; }
.alb-vorder {
    background:var(--alb-white); border-radius:14px; padding:1rem 1.25rem;
    border:1.5px solid var(--alb-gray-100); display:flex; align-items:center;
    gap:1rem; box-shadow:0 1px 6px rgba(0,0,0,.04); flex-wrap:wrap;
    transition:border-color .2s;
}
.alb-vorder--urgent { border-color:var(--alb-warning-bg); background:var(--alb-yellow-light); }
.alb-vorder:hover { border-color:var(--alb-yellow); }
.alb-vorder-left { display:flex; flex-direction:column; gap:.25rem; flex-shrink:0; }
.alb-vorder-id { font-family:'DM Sans',sans-serif; font-size:.95rem; font-weight:700; color:var(--alb-gray-900); }
.alb-vorder-center { flex:1; display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; }
.alb-vorder-customer,
.alb-vorder-total,
.alb-vorder-date { font-family:'DM Sans',sans-serif; font-size:.85rem; color:var(--alb-gray-700); display:flex; align-items:center; gap:.3rem; }
.alb-vorder-total { font-weight:700; color:var(--alb-gray-900); }
.alb-vorder-right { display:flex; gap:.5rem; flex-shrink:0; }

/* Badges statut commande */
.alb-vorder-status {
    display:inline-flex; align-items:center; padding:3px 10px;
    border-radius:999px; font-size:.72rem; font-weight:700; font-family:'DM Sans',sans-serif;
}
.alb-vorder-status--ahm-deposit-paid    { background:#D1FAE5; color:var(--alb-green-dark); }
.alb-vorder-status--ahm-awaiting-delivery { background:var(--alb-warning-bg); color:#92400E; }
.alb-vorder-status--ahm-balance-paid    { background:#DBEAFE; color:#1E40AF; }
.alb-vorder-status--ahm-confirmed       { background:#D1FAE5; color:#064E3B; }
.alb-vorder-status--ahm-disputed        { background:#FEE2E2; color:#991B1B; }
.alb-vorder-status--completed           { background:#D1FAE5; color:var(--alb-green-dark); }
.alb-vorder-status--pending             { background:var(--alb-warning-bg); color:#92400E; }
.alb-vorder-status--processing          { background:#DBEAFE; color:#1E40AF; }
.alb-vorder-status--cancelled           { background:var(--alb-gray-50); color:#757575; }

/* ── Boutique / paramètres ── */
.alb-vdash-form { max-width:640px; }
.alb-vdash-card {
    background:var(--alb-white); border-radius:16px; border:1.5px solid var(--alb-gray-100);
    box-shadow:0 2px 10px rgba(0,0,0,.05); overflow:hidden; margin-bottom:1.25rem;
}
.alb-vdash-card-header {
    padding:1rem 1.25rem; border-bottom:2.5px solid var(--alb-yellow);
    font-family:'DM Sans',sans-serif; font-size:.95rem; font-weight:700; color:var(--alb-gray-900);
    display:flex; align-items:center; gap:.5rem; background:var(--alb-white);
}
.alb-vdash-card-header i { color:var(--alb-yellow); }
.alb-vdash-card-body { padding:1.25rem; }
.alb-form-group { margin-bottom:1rem; }
.alb-form-group label { display:block; font-family:'DM Sans',sans-serif; font-size:.82rem; font-weight:600; color:#424242; margin-bottom:.4rem; }
.alb-form-group input,
.alb-form-group select,
.alb-form-group textarea {
    width:100%; border:1.5px solid var(--alb-gray-200); border-radius:10px;
    padding:.75rem 1rem; font-size:.9rem; font-family:'DM Sans',sans-serif;
    color:var(--alb-gray-900); background:var(--alb-white); transition:border-color .2s,box-shadow .2s;
    box-sizing:border-box;
}
.alb-form-group input:focus,
.alb-form-group select:focus,
.alb-form-group textarea:focus { border-color:var(--alb-yellow); box-shadow:0 0 0 3px rgba(255,214,0,.2); outline:none; }
.alb-form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.alb-field-hint { font-family:'DM Sans',sans-serif; font-size:.78rem; color:var(--alb-gray-500); margin-top:.3rem; display:block; }
.alb-field-hint i { color:#25D366; }

/* Upload zone image */
.alb-upload-zone {
    border:2px dashed var(--alb-gray-200); border-radius:12px; cursor:pointer;
    transition:border-color .2s; overflow:hidden;
}
.alb-upload-zone:hover { border-color:var(--alb-yellow); }
.alb-upload-preview {
    min-height:120px; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:.5rem;
    color:var(--alb-gray-500); padding:1.5rem; text-align:center;
}
.alb-upload-preview i { font-size:2rem; color:var(--alb-gray-200); }
.alb-upload-preview p { font-family:'DM Sans',sans-serif; font-size:.82rem; margin:0; }
.alb-upload-preview img { width:100%; max-height:180px; object-fit:cover; border-radius:10px; }

/* ── Modal ajout/édition produit ── */
.alb-modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.5);
    z-index:99999; display:flex; align-items:center;
    justify-content:center; padding:1rem;
    backdrop-filter:blur(4px);
}
.alb-modal {
    background:var(--alb-white); border-radius:20px; width:100%; max-width:560px;
    max-height:92vh; overflow-y:auto; box-shadow:0 24px 60px rgba(0,0,0,.2);
    animation:alb-modal-in .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes alb-modal-in { from { opacity:0; transform:translateY(16px) scale(.97); } to { opacity:1; transform:none; } }
.alb-modal-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:1.25rem 1.5rem; border-bottom:1px solid var(--alb-gray-100); position:sticky; top:0; background:var(--alb-white); z-index:1;
}
.alb-modal-header h3 { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:var(--alb-gray-900); margin:0; display:flex; align-items:center; gap:.5rem; }
.alb-modal-close { background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--alb-gray-500); padding:0; line-height:1; transition:color .2s; }
.alb-modal-close:hover { color:var(--alb-danger); }
.alb-modal-body { padding:1.5rem; }
.alb-modal-footer {
    display:flex; align-items:center; justify-content:flex-end; gap:.75rem;
    padding:1rem 1.5rem; border-top:1px solid var(--alb-gray-100); position:sticky; bottom:0; background:var(--alb-white);
}
.alb-modal-cancel { background:none; border:1.5px solid var(--alb-gray-200); border-radius:999px; padding:.7rem 1.5rem; font-family:'DM Sans',sans-serif; font-weight:600; font-size:.88rem; color:var(--alb-gray-700); cursor:pointer; transition:all .2s; }
.alb-modal-cancel:hover { border-color:var(--alb-gray-900); color:var(--alb-gray-900); }

/* ── Stats gamification ── */
.alb-vdash-gamif { padding:1.25rem; margin-bottom:1.25rem; }
.alb-vdash-gamif-top { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.alb-vdash-gamif-icon {
    width:52px; height:52px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    box-shadow:0 4px 14px rgba(0,0,0,.15);
}
.alb-vdash-gamif-icon i { color:var(--alb-white); font-size:1.2rem; }
.alb-vdash-gamif-info { flex:1; }
.alb-vdash-gamif-info strong { display:block; font-family:'DM Sans',sans-serif; font-weight:700; font-size:1rem; color:var(--alb-gray-900); }
.alb-vdash-gamif-info span { font-family:'DM Sans',sans-serif; font-size:.82rem; color:#757575; }
.alb-vdash-gamif-rank { text-align:right; flex-shrink:0; }
.alb-vdash-rank-label { font-size:.72rem; color:var(--alb-gray-500); font-family:'DM Sans',sans-serif; display:block; }
.alb-vdash-rank-value { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:700; color:var(--alb-yellow); display:block; }
.alb-vdash-xp-bar { background:var(--alb-gray-100); border-radius:999px; height:10px; overflow:hidden; margin-bottom:.4rem; }
.alb-vdash-xp-fill { height:100%; border-radius:999px; transition:width 1.2s cubic-bezier(.34,1.56,.64,1); }
.alb-vdash-xp-labels { display:flex; justify-content:space-between; font-size:.7rem; color:var(--alb-gray-500); font-family:'DM Sans',sans-serif; }

/* Stats grid */
.alb-vdash-stats-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
    gap:1rem; margin-bottom:1.5rem;
}
.alb-vdash-stat-card {
    background:var(--alb-white); border-radius:14px; padding:1rem;
    border:1.5px solid var(--alb-gray-100); display:flex; align-items:center; gap:.75rem;
    box-shadow:0 2px 8px rgba(0,0,0,.04); transition:all .2s;
}
.alb-vdash-stat-card:hover { box-shadow:0 6px 18px rgba(255,214,0,.15); border-color:var(--alb-yellow); }
.alb-vdash-stat-icon { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.alb-vdash-stat-icon i { color:var(--alb-white); font-size:.95rem; }
.alb-vdash-stat-data { display:flex; flex-direction:column; min-width:0; }
.alb-vdash-stat-n { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--alb-gray-900); }
.alb-vdash-stat-l { font-family:'DM Sans',sans-serif; font-size:.7rem; color:var(--alb-gray-500); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Badges */
.alb-vdash-badges { display:flex; flex-wrap:wrap; gap:.5rem; }
.alb-vdash-badge {
    display:inline-flex; align-items:center; gap:.3rem;
    padding:.3rem .9rem; border-radius:999px; border:1.5px solid;
    font-size:.78rem; font-weight:700; font-family:'DM Sans',sans-serif;
}

/* Table commandes (tab stats) */
.alb-vdash-table-wrap { overflow-x:auto; }
.alb-vdash-table { width:100%; border-collapse:collapse; }
.alb-vdash-table thead th {
    background:var(--alb-gray-900); color:var(--alb-yellow); padding:12px 16px;
    font-size:.78rem; font-weight:700; text-transform:uppercase;
    letter-spacing:.04em; text-align:left; font-family:'DM Sans',sans-serif;
}
.alb-vdash-table tbody td { padding:11px 16px; border-bottom:1px solid var(--alb-gray-50); font-size:.88rem; color:#424242; font-family:'DM Sans',sans-serif; }
.alb-vdash-table tbody tr:hover { background:var(--alb-yellow-light); }
.alb-vdash-table tbody tr:last-child td { border-bottom:none; }

/* État vide */
.alb-vdash-empty {
    text-align:center; padding:3.5rem 1.5rem;
    background:var(--alb-white); border-radius:16px; border:2px dashed var(--alb-gray-200);
}
.alb-vdash-empty-icon { font-size:3rem; color:var(--alb-gray-200); margin-bottom:1rem; }
.alb-vdash-empty h3 { font-family:'Playfair Display',serif; font-size:1.15rem; color:var(--alb-gray-900); margin:0 0 .5rem; }
.alb-vdash-empty p { font-family:'DM Sans',sans-serif; font-size:.88rem; color:var(--alb-gray-500); margin:0 0 1.25rem; }

/* ── Btn sm ── */
.alb-btn-sm {
    padding:.5rem 1rem !important;
    font-size:.8rem !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .alb-vdash .alb-page-hero-card { padding:1.25rem; }
    .alb-vdash-hero-row { flex-direction:column; align-items:flex-start; gap:1rem; }
    .alb-vdash-qstats { width:100%; }
    .alb-vdash-hero-ctas { width:100%; }
    .alb-vdash-products { grid-template-columns:repeat(2,1fr); }
    .alb-vdash-stats-grid { grid-template-columns:repeat(2,1fr); }
    .alb-form-row { grid-template-columns:1fr; }
    .alb-vorder { flex-direction:column; align-items:flex-start; }
}
@media (max-width:360px) {
    .alb-vdash-products { grid-template-columns:1fr; }
}

/* ═══════════════════════════════════════════════
   NAVBAR v2 — Plus Drawer + Rich Search Additions
═══════════════════════════════════════════════ */

/* ── Plus Drawer ── */
@keyframes apePlusDrawerIn {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.ape-plus-drawer {
    position: fixed;
    bottom: var(--ape-bottombar-h);
    left: 0;
    right: 0;
    background: var(--alb-white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.14);
    z-index: 9100;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    display: none; /* shown via JS as block before animating */
}
.ape-plus-drawer.ape-open {
    display: block;
    transform: translateY(0);
}
.ape-plus-drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--alb-gray-200);
    border-radius: 2px;
    margin: 12px auto 0;
    cursor: pointer;
}
.ape-plus-drawer-body {
    padding: 8px 0 24px;
}
.ape-plus-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--alb-gray-100);
    margin-bottom: 4px;
}
.ape-plus-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--alb-yellow);
    flex-shrink: 0;
}
.ape-plus-profile-info {
    min-width: 0;
}
.ape-plus-profile-info strong {
    display: block;
    font-size: 15px;
    color: var(--alb-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ape-plus-profile-info span {
    display: block;
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ape-plus-links {
    padding: 4px 0;
}
.ape-plus-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    text-decoration: none;
    color: var(--alb-gray-900);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}
.ape-plus-link:hover {
    background: var(--alb-off-white);
}
.ape-plus-link--danger {
    color: var(--alb-danger);
    border-top: 1px solid var(--alb-gray-100);
    margin-top: 4px;
    padding-top: 14px;
}
.ape-plus-link-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 16px;
}
.ape-plus-link-label {
    flex: 1;
}
.ape-plus-link-arrow {
    color: #D1D5DB;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Rich search: categories + brands result items ── */
.ape-sr-cat,
.ape-sr-brand {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--ape-text);
    transition: var(--ape-transition);
    gap: 12px;
}
.ape-sr-cat:hover,
.ape-sr-brand:hover {
    background: var(--ape-bg);
}
.ape-sr-cat-ico,
.ape-sr-brand-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ape-sr-cat-ico {
    background: #FEF9C3;
    color: #B45309;
}
.ape-sr-brand-ico {
    background: #F0FDF4;
    color: #15803D;
}
.ape-sr-item-meta {
    display: block;
    font-size: 11px;
    color: var(--ape-text-muted);
    margin-top: 2px;
}

