/* ========================================
   Albasy Marketplace v2.0 — Dokan Override CSS
   Pro Redesign: Store + Dashboard + Orders
   ======================================== */

/* ═══════════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
    --alb-indigo: #6366F1;
    --alb-indigo-dark: #4F46E5;
    --alb-navy: #1a2744;
    --alb-dark: #1F2937;
    --alb-gray-700: #374151;
    --alb-gray-600: #4B5563;
    --alb-gray-500: #6B7280;
    --alb-gray-200: #E5E7EB;
    --alb-gray-100: #F3F4F6;
    --alb-gray-50: #F9FAFB;
    --alb-white: #ffffff;
    --alb-green: #10B981;
    --alb-orange: #F59E0B;
    --alb-red: #EF4444;
    --alb-gold: #c7944a;
    --alb-radius: 12px;
    --alb-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --alb-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN STORE PAGE — Pro Redesign
   ═══════════════════════════════════════════════════════════════ */

/* Store page wrapper */
.dokan-store-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Profile frame */
.dokan-store-wrap .profile-frame {
    border-radius: var(--alb-radius);
    overflow: hidden;
    box-shadow: var(--alb-shadow-lg);
    margin-bottom: 0;
}

/* Store banner */
.dokan-store-wrap .profile-frame .profile-info-box {
    border-radius: var(--alb-radius) var(--alb-radius) 0 0;
    overflow: hidden;
}
.dokan-store-wrap .profile-frame .profile-info-box .profile-info-summery-wrapper {
    background: linear-gradient(135deg, rgba(26,39,68,0.92), rgba(99,102,241,0.88));
    backdrop-filter: blur(4px);
}

/* Store avatar */
.dokan-store-wrap .profile-frame .profile-img img,
.dokan-store-wrap .profile-frame .profile-img.profile-img-circle img {
    border: 4px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 50%;
}

/* Store name */
.dokan-store-wrap .profile-frame .store-name {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--alb-white) !important;
    letter-spacing: -0.01em;
}

/* Score badge on store header */
.dokan-store-wrap .ahm-store-score {
    margin-top: 10px;
}
.dokan-store-wrap .ahm-store-score .ahm-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--alb-white);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dokan-store-wrap .ahm-store-score .ahm-score-badge i {
    font-size: 0.9rem;
}

/* Vendor badges */
.dokan-store-wrap .ahm-badges {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Store info area */
.dokan-store-wrap .profile-frame .dokan-store-info {
    background: var(--alb-white);
    border-top: none;
    padding: 16px 20px;
}
.dokan-store-wrap .profile-frame .dokan-store-info li {
    font-size: 0.88rem;
    color: var(--alb-gray-600);
}
.dokan-store-wrap .profile-frame .dokan-store-info li i {
    color: var(--alb-indigo);
    margin-right: 6px;
}

/* Store info bar (score, products, rating) */
.acd-store-info-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--alb-white);
    border-radius: 0 0 var(--alb-radius) var(--alb-radius);
    box-shadow: var(--alb-shadow);
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid var(--alb-gray-200);
    border-top: 3px solid var(--alb-indigo);
}
.acd-store-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    gap: 4px;
    border-right: 1px solid var(--alb-gray-200);
    transition: background 0.2s;
}
.acd-store-stat:last-child {
    border-right: none;
}
.acd-store-stat:hover {
    background: #FAFBFF;
}
.acd-store-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--alb-dark);
}
.acd-store-stat-label {
    font-size: 0.72rem;
    color: var(--alb-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.acd-store-rank {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--alb-white);
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.03em;
}
.acd-store-badges-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    flex-wrap: wrap;
}
.acd-store-badges-wrap .ahm-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
}

/* Dokan store tabs */
.dokan-store-wrap .dokan-store-tabs {
    margin-bottom: 24px;
}
.dokan-store-wrap .dokan-store-tabs ul {
    display: flex;
    gap: 4px;
    background: var(--alb-gray-100);
    border-radius: var(--alb-radius);
    padding: 4px;
    list-style: none;
    margin: 0;
    border: none;
    box-shadow: none;
}
.dokan-store-wrap .dokan-store-tabs ul li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
.dokan-store-wrap .dokan-store-tabs ul li a {
    display: block;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--alb-gray-500);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.dokan-store-wrap .dokan-store-tabs ul li.active a,
.dokan-store-wrap .dokan-store-tabs ul li a:hover {
    background: var(--alb-white);
    color: var(--alb-indigo);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Dokan store product grid */
.dokan-store-wrap .seller-items .products,
.dokan-store-wrap .dokan-store-products-wrap .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 20px !important;
}

/* Product cards in store */
.dokan-store-wrap .seller-items .products .product,
.dokan-store-wrap .dokan-store-products-wrap .products .product {
    border-radius: var(--alb-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--alb-gray-200);
    background: var(--alb-white);
}
.dokan-store-wrap .seller-items .products .product:hover,
.dokan-store-wrap .dokan-store-products-wrap .products .product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--alb-indigo);
}
.dokan-store-wrap .products .product img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.dokan-store-wrap .products .product .woocommerce-loop-product__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--alb-dark);
    padding: 10px 12px 4px;
    margin: 0;
}
.dokan-store-wrap .products .product .price {
    padding: 0 12px 12px;
    font-weight: 700;
    color: var(--alb-indigo);
}

/* Contact vendor button */
.dokan-store-wrap .dokan-store-contact .dokan-btn,
.dokan-store-wrap .seller-info .dokan-btn {
    background: var(--alb-indigo) !important;
    color: var(--alb-white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.dokan-store-wrap .dokan-store-contact .dokan-btn:hover,
.dokan-store-wrap .seller-info .dokan-btn:hover {
    background: var(--alb-indigo-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN STORE LISTING — Vendor Cards
   ═══════════════════════════════════════════════════════════════ */

.dokan-store-listing .store-content {
    border-radius: var(--alb-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid var(--alb-gray-200);
}
.dokan-store-listing .store-content:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--alb-indigo);
}
.dokan-store-listing .store-content .store-data {
    padding: 16px;
}
.dokan-store-listing .store-content .store-data h2 a {
    color: var(--alb-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}
.dokan-store-listing .store-content .store-data h2 a:hover {
    color: var(--alb-indigo);
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN VENDOR DASHBOARD — Pro Redesign
   ═══════════════════════════════════════════════════════════════ */

/* Dashboard wrapper */
.dokan-dashboard-wrap {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--alb-gray-50);
    border-radius: var(--alb-radius);
    overflow: hidden;
    box-shadow: var(--alb-shadow-lg);
}

/* Sidebar */
.dokan-dashboard-wrap .dokan-dash-sidebar {
    background: var(--alb-navy);
    min-height: 100vh;
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu {
    padding: 8px 0;
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li a {
    color: rgba(255,255,255,0.75);
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li a i,
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li a .dashicons {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover,
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.active a {
    background: rgba(99,102,241,0.15);
    color: var(--alb-white);
    border-left-color: var(--alb-indigo);
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover i,
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.active a i,
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover .dashicons,
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.active a .dashicons {
    color: var(--alb-indigo);
}

/* Albasy Stats nav item highlight */
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.ahm-stats a {
    color: var(--alb-gold);
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.ahm-stats a i {
    color: var(--alb-gold);
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.ahm-stats a:hover {
    background: rgba(199,148,74,0.15);
    color: var(--alb-gold);
    border-left-color: var(--alb-gold);
}

/* Dashboard content area */
.dokan-dashboard-wrap .dokan-dashboard-content {
    padding: 28px;
    background: var(--alb-gray-50);
}

/* Dashboard header/title */
.dokan-dashboard-wrap .dokan-dashboard-content h1,
.dokan-dashboard-wrap .dokan-dashboard-content .dokan-dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--alb-dark);
    margin-bottom: 24px;
}

/* Dashboard stat boxes */
.dokan-dashboard-wrap .dashboard-widget {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    border: 1px solid var(--alb-gray-200);
    padding: 0;
    overflow: hidden;
    transition: all 0.2s;
}
.dokan-dashboard-wrap .dashboard-widget:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.dokan-dashboard-wrap .dashboard-widget .widget-title,
.dokan-dashboard-wrap .dashboard-widget h3 {
    background: var(--alb-white);
    padding: 16px 20px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--alb-dark);
    border-bottom: 2px solid var(--alb-indigo);
}

/* Dokan status widget cards */
.dokan-dashboard-wrap .dokan-status .dokan-status-item,
.dokan-dashboard-wrap .dokan-orders-overview .dokan-status-item {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    background: var(--alb-white);
    border: 1px solid var(--alb-gray-200);
}
.dokan-dashboard-wrap .dokan-status .dokan-status-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--alb-shadow);
}
.dokan-dashboard-wrap .dokan-status .dokan-status-item .count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--alb-indigo);
    display: block;
}
.dokan-dashboard-wrap .dokan-status .dokan-status-item .title {
    font-size: 0.78rem;
    color: var(--alb-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN DASHBOARD — Tables & Orders
   ═══════════════════════════════════════════════════════════════ */

.dokan-dashboard-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    overflow: hidden;
    box-shadow: var(--alb-shadow);
}
.dokan-dashboard-wrap table thead th {
    background: var(--alb-navy);
    color: var(--alb-white);
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    border: none;
}
.dokan-dashboard-wrap table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--alb-gray-200);
    font-size: 0.9rem;
    color: var(--alb-gray-700);
}
.dokan-dashboard-wrap table tbody tr:hover {
    background: #F5F3FF;
}
.dokan-dashboard-wrap table tbody tr:last-child td {
    border-bottom: none;
}

/* Order status badges */
.dokan-orders-area .order-status,
.dokan-dashboard-wrap .order-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.dokan-orders-area .order-status.status-ahm-deposit-paid,
.order-status.status-ahm-deposit-paid {
    background: #D1FAE5;
    color: #065F46;
}
.dokan-orders-area .order-status.status-ahm-awaiting-delivery,
.order-status.status-ahm-awaiting-delivery {
    background: #FEF3C7;
    color: #92400E;
}
.dokan-orders-area .order-status.status-ahm-balance-paid,
.order-status.status-ahm-balance-paid {
    background: #DBEAFE;
    color: #1E40AF;
}
.dokan-orders-area .order-status.status-ahm-confirmed,
.order-status.status-ahm-confirmed {
    background: #D1FAE5;
    color: #064E3B;
}
.dokan-orders-area .order-status.status-ahm-disputed,
.order-status.status-ahm-disputed {
    background: #FEE2E2;
    color: #991B1B;
}

/* Order detail hybrid info box */
.dokan-orders-area .ahm-order-hybrid-info {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    border-radius: var(--alb-radius);
    padding: 20px;
    margin: 20px 0;
}
.dokan-orders-area .ahm-order-hybrid-info h4 {
    color: var(--alb-navy);
    margin: 0 0 14px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dokan-orders-area .ahm-order-hybrid-info table {
    box-shadow: none;
    background: transparent;
}
.dokan-orders-area .ahm-order-hybrid-info table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(99,102,241,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN DASHBOARD — Buttons & Forms
   ═══════════════════════════════════════════════════════════════ */

.dokan-dashboard-wrap .dokan-btn,
.dokan-dashboard-wrap .dokan-btn-theme {
    background: var(--alb-indigo) !important;
    color: var(--alb-white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s !important;
    cursor: pointer;
}
.dokan-dashboard-wrap .dokan-btn:hover,
.dokan-dashboard-wrap .dokan-btn-theme:hover {
    background: var(--alb-indigo-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.dokan-dashboard-wrap .dokan-btn-danger {
    background: var(--alb-red) !important;
}
.dokan-dashboard-wrap .dokan-btn-danger:hover {
    background: #DC2626 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Form inputs in dashboard */
.dokan-dashboard-wrap input[type="text"],
.dokan-dashboard-wrap input[type="number"],
.dokan-dashboard-wrap input[type="email"],
.dokan-dashboard-wrap input[type="url"],
.dokan-dashboard-wrap input[type="password"],
.dokan-dashboard-wrap select,
.dokan-dashboard-wrap textarea {
    border: 1.5px solid var(--alb-gray-200);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--alb-white);
    color: var(--alb-dark);
}
.dokan-dashboard-wrap input:focus,
.dokan-dashboard-wrap select:focus,
.dokan-dashboard-wrap textarea:focus {
    border-color: var(--alb-indigo);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN DASHBOARD — Products Page
   ═══════════════════════════════════════════════════════════════ */

.dokan-dashboard-wrap .dokan-product-listing-area {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    padding: 0;
    overflow: hidden;
}

/* Product action buttons */
.dokan-dashboard-wrap .dokan-product-listing-area .dokan-product-action-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}
.dokan-dashboard-wrap .dokan-product-listing-area .dokan-product-action-link a:hover {
    background: var(--alb-gray-100);
}
.dokan-dashboard-wrap .dokan-product-listing-area .dokan-product-action-link .dokan-edit-product-link {
    color: var(--alb-indigo);
}
.dokan-dashboard-wrap .dokan-product-listing-area .dokan-product-action-link .dokan-delete-product-link {
    color: var(--alb-red);
}

/* Add new product button */
.dokan-dashboard-wrap .dokan-add-product-link .dokan-btn {
    background: var(--alb-green) !important;
    font-size: 0.9rem !important;
    padding: 12px 24px !important;
}
.dokan-dashboard-wrap .dokan-add-product-link .dokan-btn:hover {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN DASHBOARD — Withdraw & Earnings
   ═══════════════════════════════════════════════════════════════ */

.dokan-dashboard-wrap .dokan-withdraw-area {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    padding: 24px;
}

.dokan-dashboard-wrap .dokan-earning {
    background: linear-gradient(135deg, var(--alb-navy), var(--alb-indigo));
    color: var(--alb-white);
    border-radius: var(--alb-radius);
    padding: 24px;
    text-align: center;
}
.dokan-dashboard-wrap .dokan-earning .amount {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}
.dokan-dashboard-wrap .dokan-earning .label {
    font-size: 0.82rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   DOKAN — Reviews Section
   ═══════════════════════════════════════════════════════════════ */

.dokan-dashboard-wrap .dokan-review-area .dokan-review-listing {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    overflow: hidden;
}
.dokan-dashboard-wrap .dokan-review-area .dokan-review-listing li {
    padding: 16px 20px;
    border-bottom: 1px solid var(--alb-gray-200);
    transition: background 0.2s;
}
.dokan-dashboard-wrap .dokan-review-area .dokan-review-listing li:hover {
    background: var(--alb-gray-50);
}

/* Star ratings */
.dokan-dashboard-wrap .star-rating,
.dokan-store-wrap .star-rating {
    color: var(--alb-gold);
}

/* ═══════════════════════════════════════════════════════════════
   ALBASY VENDOR DASHBOARD (shortcode)
   ═══════════════════════════════════════════════════════════════ */

.ahm-vendor-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.ahm-vendor-dashboard h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--alb-dark);
    margin-bottom: 24px;
}
.ahm-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.ahm-card {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    border: 1px solid var(--alb-gray-200);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.ahm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--alb-indigo);
}
.ahm-card .ahm-card-icon {
    font-size: 1.5rem;
    color: var(--alb-indigo);
    margin-bottom: 8px;
}
.ahm-card .ahm-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--alb-dark);
}
.ahm-card .ahm-card-label {
    font-size: 0.78rem;
    color: var(--alb-gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.ahm-dashboard-section {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    border: 1px solid var(--alb-gray-200);
    padding: 24px;
    margin-bottom: 20px;
}
.ahm-dashboard-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--alb-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--alb-indigo);
}
.ahm-dashboard-section h3 i {
    color: var(--alb-indigo);
}

/* Tables in Albasy dashboard */
.ahm-table {
    width: 100%;
    border-collapse: collapse;
}
.ahm-table thead th {
    background: var(--alb-gray-100);
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--alb-gray-600);
    text-align: left;
}
.ahm-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--alb-gray-200);
    font-size: 0.9rem;
    color: var(--alb-gray-700);
}
.ahm-table tbody tr:hover {
    background: #F5F3FF;
}

/* Top vendors grid */
.ahm-top-vendors {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.ahm-vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.ahm-vendor-card {
    background: var(--alb-white);
    border-radius: var(--alb-radius);
    box-shadow: var(--alb-shadow);
    border: 1px solid var(--alb-gray-200);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.ahm-vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--alb-indigo);
}
.ahm-vendor-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--alb-indigo);
    color: var(--alb-white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}
.ahm-vendor-avatar img {
    border-radius: 50%;
    border: 3px solid var(--alb-gray-200);
    margin-bottom: 8px;
}
.ahm-vendor-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--alb-dark);
}
.ahm-vendor-score {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.ahm-vendor-rating {
    font-size: 0.85rem;
    color: var(--alb-gray-500);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .dokan-dashboard-wrap {
        border-radius: 0;
    }
    .dokan-dashboard-wrap .dokan-dashboard-content {
        padding: 16px;
    }
    .acd-store-info-bar {
        flex-wrap: wrap;
        border-radius: var(--alb-radius);
    }
    .acd-store-stat {
        flex: 1 1 45%;
        border-bottom: 1px solid var(--alb-gray-200);
    }
    .dokan-store-wrap .dokan-store-tabs ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .dokan-store-wrap .seller-items .products,
    .dokan-store-wrap .dokan-store-products-wrap .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .ahm-dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .ahm-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dokan-dashboard-wrap table {
        font-size: 0.82rem;
    }
    .dokan-dashboard-wrap table thead th,
    .dokan-dashboard-wrap table tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .acd-store-stat {
        flex: 1 1 100%;
    }
    .dokan-store-wrap {
        padding: 0 10px;
    }
    .ahm-dashboard-cards {
        grid-template-columns: 1fr;
    }
    .ahm-vendor-grid {
        grid-template-columns: 1fr;
    }
    .dokan-store-wrap .seller-items .products,
    .dokan-store-wrap .dokan-store-products-wrap .products {
        grid-template-columns: 1fr !important;
    }
    .alb-vendor-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .alb-vendor-actions-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   STORE PAGE — Stars display
   ═══════════════════════════════════════════════════════════════ */

.acd-store-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--alb-gold);
    font-size: 0.85rem;
}
.acd-store-stat-value small {
    font-size: 0.65em;
    opacity: 0.6;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PREVIEW STORE BAR — Top of Dokan Dashboard
   ═══════════════════════════════════════════════════════════════ */

.alb-preview-store-bar {
    margin-bottom: 24px;
}
.alb-preview-store-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border: 1px solid #C7D2FE;
    border-radius: var(--alb-radius, 12px);
    padding: 16px 24px;
    gap: 16px;
}
.alb-preview-store-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--alb-indigo, #6366F1);
    font-size: 0.95rem;
}
.alb-preview-store-info i {
    font-size: 1.2rem;
}
.alb-preview-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--alb-indigo, #6366F1);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.alb-preview-store-btn:hover {
    background: var(--alb-indigo-dark, #4F46E5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Dokan dashboard nav "Voir ma boutique" link */
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.ahm-preview a {
    color: var(--alb-indigo, #6366F1);
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.ahm-preview a i {
    color: var(--alb-indigo, #6366F1);
}
.dokan-dashboard-wrap .dokan-dash-sidebar ul.dokan-dashboard-menu li.ahm-preview a:hover {
    background: rgba(99,102,241,0.15);
    border-left-color: var(--alb-indigo, #6366F1);
}

/* ═══════════════════════════════════════════════════════════════
   MON COMPTE — Vendor Section (Dashboard intégré)
   ═══════════════════════════════════════════════════════════════ */

.alb-vendor-section {
    background: linear-gradient(135deg, #FAFBFF, #F0F0FF);
    border: 1px solid #C7D2FE;
    border-radius: var(--alb-radius, 12px);
    padding: 24px;
}
.alb-vendor-section .ape-section-title {
    color: var(--alb-indigo, #6366F1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Vendor stats grid */
.alb-vendor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.alb-vstat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid var(--alb-gray-200, #E5E7EB);
    transition: all 0.2s;
}
.alb-vstat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: var(--alb-indigo, #6366F1);
}
.alb-vstat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.alb-vstat-score .alb-vstat-icon {
    background: #EEF2FF;
    color: var(--alb-indigo, #6366F1);
}
.alb-vstat-rating .alb-vstat-icon {
    background: #FEF3C7;
    color: #D97706;
}
.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: #E0E7FF;
    color: var(--alb-indigo, #6366F1);
}
.alb-vstat-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.alb-vstat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--alb-dark, #1F2937);
    line-height: 1.2;
}
.alb-vstat-label {
    font-size: 0.75rem;
    color: var(--alb-gray-500, #6B7280);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vendor badges section */
.alb-vendor-badges-section {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--alb-gray-200, #E5E7EB);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.alb-vendor-badges-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--alb-dark, #1F2937);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.alb-vendor-badges-section h3 i {
    color: #D97706;
}
.alb-vendor-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Vendor action cards */
.alb-vendor-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.alb-vendor-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid var(--alb-gray-200, #E5E7EB);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}
.alb-vendor-action-card:hover {
    border-color: var(--alb-indigo, #6366F1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.alb-va-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.alb-va-info {
    flex: 1;
    min-width: 0;
}
.alb-va-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--alb-dark, #1F2937);
    margin: 0 0 2px;
}
.alb-va-info p {
    font-size: 0.78rem;
    color: var(--alb-gray-500, #6B7280);
    margin: 0;
}
.alb-va-arrow {
    color: var(--alb-gray-500, #6B7280);
    font-size: 0.85rem;
    transition: transform 0.2s;
}
.alb-vendor-action-card:hover .alb-va-arrow {
    transform: translateX(3px);
    color: var(--alb-indigo, #6366F1);
}

/* Action card color variants */
.alb-va-preview .alb-va-icon {
    background: #EEF2FF;
    color: var(--alb-indigo, #6366F1);
}
.alb-va-dashboard .alb-va-icon {
    background: #F0FDF4;
    color: #059669;
}
.alb-va-products .alb-va-icon {
    background: #FEF3C7;
    color: #D97706;
}
.alb-va-orders .alb-va-icon {
    background: #DBEAFE;
    color: #2563EB;
}
.alb-va-revenue .alb-va-icon {
    background: #E0E7FF;
    color: var(--alb-indigo, #6366F1);
}
.alb-va-settings .alb-va-icon {
    background: var(--alb-gray-100, #F3F4F6);
    color: var(--alb-gray-600, #4B5563);
}

/* ═══════════════════════════════════════════════════════════════
   MON COMPTE — Become Vendor CTA
   ═══════════════════════════════════════════════════════════════ */

.alb-become-vendor-section {
    padding: 0;
}
.alb-become-vendor-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
    border: 1px solid #A5B4FC;
    border-radius: var(--alb-radius, 12px);
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.alb-become-vendor-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(99,102,241,0.08);
    border-radius: 50%;
}
.alb-become-vendor-icon {
    width: 64px;
    height: 64px;
    background: var(--alb-indigo, #6366F1);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.alb-become-vendor-content {
    flex: 1;
    position: relative;
    z-index: 1;
}
.alb-become-vendor-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--alb-dark, #1F2937);
    margin: 0 0 8px;
}
.alb-become-vendor-content > p {
    font-size: 0.92rem;
    color: var(--alb-gray-600, #4B5563);
    margin: 0 0 16px;
    line-height: 1.5;
}
.alb-become-vendor-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.alb-become-vendor-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--alb-gray-700, #374151);
}
.alb-become-vendor-perks li i {
    color: #059669;
    font-size: 0.9rem;
}
.alb-btn-become-vendor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--alb-indigo, #6366F1);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.alb-btn-become-vendor:hover {
    background: var(--alb-indigo-dark, #4F46E5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.alb-btn-become-vendor:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Become vendor messages */
.alb-become-vendor-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alb-msg-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}
.alb-msg-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — New components
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .alb-preview-store-inner {
        flex-direction: column;
        text-align: center;
    }
    .alb-vendor-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .alb-vendor-actions-grid {
        grid-template-columns: 1fr;
    }
    .alb-become-vendor-card {
        flex-direction: column;
        padding: 24px;
    }
    .alb-become-vendor-perks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .alb-vendor-stats-grid {
        grid-template-columns: 1fr;
    }
    .alb-become-vendor-card {
        padding: 20px;
    }
    .alb-btn-become-vendor {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   VENDOR PAYMENT METHODS — Product Page
   ═══════════════════════════════════════════════════════════ */

.acd-vendor-payment-methods {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.acd-vpm-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.acd-vpm-title i {
    color: var(--alb-indigo, #6366f1);
}
.acd-vpm-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.acd-vpm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--vpm-color, #475569);
    background: white;
    border: 1.5px solid var(--vpm-color, #e2e8f0);
    transition: all 0.2s ease;
}
.acd-vpm-badge:hover {
    background: var(--vpm-color, #6366f1);
    color: #fff;
}
.acd-vpm-badge i {
    font-size: 14px;
}

/* Payment methods inside delivery tab */
.acd-delivery-tab .acd-vendor-payment-methods {
    margin-top: 8px;
    padding: 12px;
    background: transparent;
    border: none;
}
.acd-delivery-tab .acd-vpm-title {
    display: none;
}

/* Dokan settings — payment methods checkboxes */
.ahm-payment-methods-field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.ahm-pm-checkbox {
    cursor: pointer;
    font-size: 14px;
    color: #334155;
}
.ahm-pm-checkbox input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--alb-indigo, #6366f1);
}

@media (max-width: 600px) {
    .acd-vpm-list {
        gap: 6px;
    }
    .acd-vpm-badge {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ALBASY STORE PAGE — Amazon/AliExpress Style (Complete)
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.alb-store-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── HEADER — Banner + Profile ── */
.alb-store-header {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--alb-shadow-lg);
    margin-bottom: 20px;
}
.alb-store-banner {
    height: 260px;
    background: linear-gradient(135deg, var(--alb-navy) 0%, #2d3a5c 50%, var(--alb-indigo) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.alb-store-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(26,39,68,0.65) 100%);
}

/* Profile card overlapping banner */
.alb-store-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--alb-white);
    position: relative;
    margin-top: -60px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    z-index: 2;
}

/* Avatar */
.alb-store-avatar {
    position: relative;
    flex-shrink: 0;
}
.alb-store-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    object-fit: cover;
}
.alb-store-rank-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Store info */
.alb-store-info {
    flex: 1;
    min-width: 0;
}
.alb-store-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--alb-dark);
    margin: 0 0 6px;
    line-height: 1.2;
}
.alb-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.alb-store-badges .ahm-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
}
.alb-store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.alb-store-meta-item {
    font-size: 0.85rem;
    color: var(--alb-gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}
.alb-store-meta-item i {
    color: var(--alb-indigo);
    font-size: 0.8rem;
}

/* Header action buttons */
.alb-store-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.alb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.alb-btn-whatsapp {
    background: #25D366;
    color: #fff !important;
}
.alb-btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}
.alb-btn-follow {
    background: var(--alb-indigo);
    color: #fff;
}
.alb-btn-follow:hover {
    background: var(--alb-indigo-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* ── STATS BAR ── */
.alb-store-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--alb-white);
    border-radius: 12px;
    box-shadow: var(--alb-shadow);
    border: 1px solid var(--alb-gray-200);
    overflow: hidden;
    margin-bottom: 24px;
}
.alb-store-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border-right: 1px solid var(--alb-gray-200);
    transition: background 0.2s;
}
.alb-store-stat-item:last-child {
    border-right: none;
}
.alb-store-stat-item:hover {
    background: #FAFBFF;
}
.alb-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--alb-dark);
    line-height: 1.2;
}
.alb-stat-small {
    font-size: 0.55em;
    opacity: 0.5;
    font-weight: 600;
}
.alb-stat-label {
    font-size: 0.75rem;
    color: var(--alb-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}
.alb-mini-stars {
    color: var(--alb-gold);
    font-size: 0.7rem;
    display: inline-flex;
    gap: 1px;
    margin-right: 4px;
}

/* ── CONTENT LAYOUT — Sidebar + Main ── */
.alb-store-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    position: relative;
}

/* ── SIDEBAR ── */
.alb-store-sidebar {
    background: var(--alb-white);
    border-radius: 12px;
    box-shadow: var(--alb-shadow);
    border: 1px solid var(--alb-gray-200);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.alb-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.alb-sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--alb-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alb-sidebar-header h3 i {
    color: var(--alb-indigo);
}
.alb-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--alb-gray-500);
    cursor: pointer;
    padding: 4px;
}

/* Filter groups */
.alb-filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--alb-gray-200);
}
.alb-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.alb-filter-group h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--alb-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}
.alb-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.alb-filter-list li {
    margin-bottom: 2px;
}
.alb-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--alb-gray-700);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}
.alb-filter-link:hover {
    background: var(--alb-gray-100);
    color: var(--alb-indigo);
}
.alb-filter-link.active {
    background: #EEF2FF;
    color: var(--alb-indigo);
    font-weight: 600;
}
.alb-filter-count {
    font-size: 0.75rem;
    background: var(--alb-gray-100);
    color: var(--alb-gray-500);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.alb-filter-link.active .alb-filter-count {
    background: #C7D2FE;
    color: var(--alb-indigo);
}

/* Payment method badges */
.alb-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.alb-pm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pm-color);
    background: #fff;
    border: 1.5px solid var(--pm-color);
}

/* Sidebar overlay (mobile) */
.alb-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ── TABS ── */
.alb-store-tabs {
    margin-bottom: 16px;
}
.alb-tabs-row {
    display: flex;
    gap: 4px;
    background: var(--alb-gray-100);
    border-radius: 12px;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.alb-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--alb-gray-500);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}
.alb-tab:hover {
    color: var(--alb-dark);
    background: rgba(255,255,255,0.6);
}
.alb-tab.active {
    background: var(--alb-white);
    color: var(--alb-indigo);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── TOOLBAR — Sort + Filter button ── */
.alb-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--alb-white);
    border-radius: 10px;
    border: 1px solid var(--alb-gray-200);
    margin-bottom: 20px;
}
.alb-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.alb-btn-filter {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--alb-gray-100);
    border: 1px solid var(--alb-gray-200);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--alb-gray-700);
    cursor: pointer;
    transition: all 0.2s;
}
.alb-btn-filter:hover {
    background: var(--alb-gray-200);
}
.alb-btn-filter i {
    color: var(--alb-indigo);
}
.alb-results-count {
    font-size: 0.88rem;
    color: var(--alb-gray-500);
}
.alb-results-count strong {
    color: var(--alb-dark);
}
.alb-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.alb-sort-label {
    font-size: 0.82rem;
    color: var(--alb-gray-500);
    font-weight: 600;
    white-space: nowrap;
}
.alb-sort-select {
    padding: 8px 32px 8px 12px;
    border: 1.5px solid var(--alb-gray-200);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--alb-dark);
    background: var(--alb-white);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}
.alb-sort-select:focus {
    border-color: var(--alb-indigo);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* ── PRODUCT GRID ── */
.alb-store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 200px;
}

/* ── PRODUCT CARD (Amazon/AliExpress Style) ── */
.alb-product-card {
    background: var(--alb-white);
    border-radius: 12px;
    border: 1px solid var(--alb-gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.alb-product-card:hover {
    border-color: var(--alb-indigo);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Card image */
.alb-product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}
.alb-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.alb-product-card:hover .alb-product-card-img img {
    transform: scale(1.06);
}

/* Badges on image */
.alb-badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #EF4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.alb-badge-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}
.alb-out-of-stock .alb-product-card-img img {
    opacity: 0.5;
    filter: grayscale(30%);
}

/* Favorite button on card */
.alb-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--alb-gray-500);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.alb-card-fav:hover {
    color: #EF4444;
    transform: scale(1.1);
}
.alb-card-fav.active {
    color: #EF4444;
    background: #FEE2E2;
}

/* Card body */
.alb-product-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alb-product-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--alb-dark);
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.alb-product-card-title:hover {
    color: var(--alb-indigo);
}

/* Price */
.alb-product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.alb-price-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--alb-dark);
}
.alb-price-sale {
    font-size: 1.15rem;
    font-weight: 800;
    color: #DC2626;
}
.alb-price-regular {
    font-size: 0.82rem;
    color: var(--alb-gray-500);
}
.alb-price-regular del {
    text-decoration: line-through;
}
.alb-discount-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: #DC2626;
    background: #FEE2E2;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Rating */
.alb-product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.alb-stars {
    display: inline-flex;
    gap: 1px;
    color: var(--alb-gold);
    font-size: 0.72rem;
}
.alb-rating-count {
    font-size: 0.78rem;
    color: var(--alb-gray-500);
}

/* Card actions */
.alb-product-card-actions {
    margin-top: auto;
    padding-top: 8px;
}
.alb-btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: var(--alb-indigo);
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.alb-btn-add-cart:hover {
    background: var(--alb-indigo-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.alb-btn-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: var(--alb-gray-100);
    color: var(--alb-gray-500);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── EMPTY STATE ── */
.alb-store-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--alb-gray-500);
}
.alb-store-empty i {
    font-size: 3rem;
    color: var(--alb-gray-200);
    margin-bottom: 16px;
    display: block;
}
.alb-store-empty p {
    font-size: 1rem;
    margin: 0;
}

/* ── PAGINATION ── */
.alb-store-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.alb-store-pagination ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.alb-store-pagination ul li {
    margin: 0;
}
.alb-store-pagination ul li a,
.alb-store-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--alb-gray-700);
    background: var(--alb-white);
    border: 1px solid var(--alb-gray-200);
    text-decoration: none;
    transition: all 0.2s;
}
.alb-store-pagination ul li a:hover {
    border-color: var(--alb-indigo);
    color: var(--alb-indigo);
    background: #EEF2FF;
}
.alb-store-pagination ul li span.current {
    background: var(--alb-indigo);
    color: #fff;
    border-color: var(--alb-indigo);
}

/* ═══════════════════════════════════════════════════════════════
   STORE PAGE — RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .alb-store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .alb-store-content {
        grid-template-columns: 1fr;
    }
    .alb-store-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 1000;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .alb-store-sidebar.open {
        display: block;
        transform: translateX(0);
    }
    .alb-sidebar-close {
        display: block;
    }
    .alb-btn-filter {
        display: inline-flex;
    }
    .alb-sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .alb-store-banner {
        height: 180px;
    }
    .alb-store-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px;
        margin-top: -50px;
    }
    .alb-store-avatar img {
        width: 80px;
        height: 80px;
    }
    .alb-store-meta {
        justify-content: center;
    }
    .alb-store-header-actions {
        width: 100%;
        justify-content: center;
    }
    .alb-store-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .alb-store-stat-item {
        border-bottom: 1px solid var(--alb-gray-200);
    }
    .alb-store-stat-item:nth-child(odd) {
        border-right: 1px solid var(--alb-gray-200);
    }
    .alb-store-stat-item:nth-child(even) {
        border-right: none;
    }
    .alb-store-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .alb-store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .alb-store-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .alb-toolbar-left,
    .alb-toolbar-right {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .alb-store-wrap {
        padding: 0 10px 40px;
    }
    .alb-store-banner {
        height: 140px;
    }
    .alb-store-profile {
        margin-top: -40px;
        padding: 16px;
        gap: 12px;
    }
    .alb-store-name {
        font-size: 1.25rem;
    }
    .alb-store-header-actions {
        flex-direction: column;
    }
    .alb-btn {
        width: 100%;
        justify-content: center;
    }
    .alb-store-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .alb-stat-value {
        font-size: 1.2rem;
    }
    .alb-store-grid {
        grid-template-columns: 1fr;
    }
    .alb-product-card-body {
        padding: 12px;
    }
    .alb-tabs-row {
        gap: 2px;
        padding: 3px;
    }
    .alb-tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

/* ── Loading state ── */
.alb-store-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}
.alb-store-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--alb-gray-200);
    border-top-color: var(--alb-indigo);
    border-radius: 50%;
    animation: albSpin 0.6s linear infinite;
}
@keyframes albSpin {
    to { transform: rotate(360deg); }
}

/* ── Card entrance animation ── */
.alb-product-card {
    animation: albCardIn 0.4s ease both;
}
.alb-product-card:nth-child(1) { animation-delay: 0.00s; }
.alb-product-card:nth-child(2) { animation-delay: 0.04s; }
.alb-product-card:nth-child(3) { animation-delay: 0.08s; }
.alb-product-card:nth-child(4) { animation-delay: 0.12s; }
.alb-product-card:nth-child(5) { animation-delay: 0.16s; }
.alb-product-card:nth-child(6) { animation-delay: 0.20s; }
.alb-product-card:nth-child(7) { animation-delay: 0.24s; }
.alb-product-card:nth-child(8) { animation-delay: 0.28s; }
.alb-product-card:nth-child(9) { animation-delay: 0.32s; }
.alb-product-card:nth-child(10) { animation-delay: 0.36s; }
.alb-product-card:nth-child(11) { animation-delay: 0.40s; }
.alb-product-card:nth-child(12) { animation-delay: 0.44s; }

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