/* ====================================
   VanTele Marketplace Custom CSS
   Blue (#2A4B7C) & Green (#00A86B) Theme
   ==================================== */

/* --- 1. CSS Variables --- */
:root {
    --primary-color: #2A4B7C;
    --secondary-color: #00A86B;        /* brand green — fills, buttons, badges */
    --secondary-text: #007a4d;         /* darker green for text on light bg (WCAG AA 4.5:1) */
    --accent-light: rgba(0, 168, 107, 0.1);
    --primary-light: rgba(42, 75, 124, 0.08);
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --border-radius-lg: 10px;
    --border-radius-xl: 15px;
}

/* --- 2. Base & Typography --- */
body {
    background-color: var(--light-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

h2.text-center, .h2.text-center {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2.text-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* --- 3. Navigation --- */
.navbar {
    background: var(--primary-color) !important;
    padding: 0.8rem 0;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}



/* --- 4. Hero & Search --- */
header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365f 100%) !important;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-search .input-group {
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-search .form-control {
    border: none;
    padding-left: 1.5rem;
}

/* --- 5. Cards
   FIX: Global card hover was applying to ALL cards — table cards,
   message rows, form containers — causing jarring movement.
   Now only applies to cards explicitly marked .card-hover.
   Use .no-card-hover on any card that should stay still.
--- */
.card {
    border-radius: var(--border-radius-lg);
}

/* Only product/feature cards get the lift effect */
.card-hover,
.transition-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover,
.transition-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12) !important;
}

/* Tables, messages, dashboards — no lift */
.table .card,
.no-card-hover,
.message-card,
.list-group-item {
    transform: none !important;
    transition: background-color 0.15s ease !important;
}

.card-img-top {
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

/* --- 6. Nav Pills --- */
.nav-pills .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid transparent;
    margin: 0 5px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: var(--accent-light);
    color: var(--primary-color);
}

/* --- 7. Metrics & Stats --- */
.metric-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.metric-value {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
}

/* Progress Stepper */
.stepper-wrapper { display: flex; justify-content: space-between; position: relative; }
.stepper-item { display: flex; flex-direction: column; align-items: center; flex: 1; z-index: 2; }
.stepper-item::before { content: ""; position: absolute; top: 20px; width: 100%; border-bottom: 2px solid #ddd; z-index: 1; }
.stepper-item:first-child::before { display: none; }
.step-counter { width: 40px; height: 40px; border-radius: 50%; background: #ccc; color: white; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; font-weight: bold; position: relative; z-index: 2; }
.stepper-item.completed .step-counter { background-color: var(--secondary-color); }
.stepper-item.active .step-counter { background-color: var(--primary-color); }
.step-name { font-size: 0.8rem; color: #666; }

/* --- 8. Footer --- */
footer {
    background-color: #1a1d20 !important;
}

footer h5, footer h6 {
    color: #fff;
    letter-spacing: 0.5px;
}

footer .text-muted {
    color: #adb5bd !important;
}

/* --- 9. Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a365f;
    border-color: #1a365f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary-brand {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary-brand:hover {
    background-color: #008a57;
    border-color: #008a57;
    color: #fff;
}

/* --- 10. Forms --- */
textarea.form-control,
input.form-control,
select.form-control,
.form-select {
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-control:focus,
input.form-control:focus,
select.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 107, 0.15);
    outline: none;
}

/* --- 11. Messaging System --- */
.message-bubble-buyer {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) var(--border-radius-xl);
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

.message-bubble-seller {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius-xl) 0 var(--border-radius-xl) var(--border-radius-xl);
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.message-avatar-buyer {
    background-color: var(--primary-color);
    color: #fff;
}

.message-avatar-seller {
    background-color: var(--secondary-color);
    color: #fff;
}

.message-card {
    border-left: 4px solid transparent;
    transition: background-color 0.15s ease !important;
}

.message-card:hover {
    background-color: var(--primary-light);
}

.message-card.unread {
    border-left-color: var(--secondary-color);
}

.message-card.responded {
    border-left-color: var(--primary-color);
}

.message-card.pending-reply {
    border-left-color: #ffc107;
}

/* Message list item hover slide */
.message-list-item {
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.message-list-item:hover {
    transform: translateX(4px);
    background-color: var(--primary-light);
}

/* Char counter */
.char-counter {
    font-size: 0.75rem;
    color: #adb5bd;
    text-align: right;
}

.char-counter.near-limit {
    color: #ffc107;
}

.char-counter.at-limit {
    color: #dc3545;
}

/* --- 12. Dispute Badges --- */
.dispute-open { background-color: rgba(255, 193, 7, 0.15); border: 1px solid #ffc107; color: #856404; }
.dispute-resolved { background-color: rgba(0, 168, 107, 0.1); border: 1px solid var(--secondary-color); color: #0a5c3a; }
.dispute-rejected { background-color: rgba(108, 117, 125, 0.1); border: 1px solid #6c757d; color: #495057; }

/* --- 13. Shipping Status Tracker --- */
.order-status-track {
    display: flex;
    align-items: center;
    gap: 0;
}

.order-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.order-status-step::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
}

.order-status-step:last-child::after {
    display: none;
}

.order-status-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dee2e6;
    border: 3px solid #fff;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 0 2px #dee2e6;
}

.order-status-step.done .order-status-dot {
    background: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.order-status-step.active .order-status-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.order-status-step.done::after {
    background-color: var(--secondary-color);
}

.order-status-label {
    font-size: 0.7rem;
    margin-top: 6px;
    text-align: center;
    color: #adb5bd;
    font-weight: 500;
}

.order-status-step.done .order-status-label,
.order-status-step.active .order-status-label {
    color: var(--dark-color);
    font-weight: 600;
}

/* --- 14. Print --- */
@media print {
    .no-print, .navbar, footer { display: none !important; }
    .card { border: 1px solid #ddd !important; box-shadow: none !important; }
}

/* --- 15. VanTele AI Section --- */
.ai-glass-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,255,0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(42, 75, 124, 0.1);
    border-radius: var(--border-radius-xl);
    position: relative;
    overflow: hidden;
}

.ai-feature-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.ai-feature-card:hover {
    transform: translateX(8px);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.ai-icon-pulse {
    animation: pulse-blue 3s infinite;
    border-radius: 50%;
}

@keyframes pulse-blue {
    0%   { box-shadow: 0 0 0 0 rgba(42, 75, 124, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(42, 75, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 75, 124, 0); }
}

.bg-ai-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,168,107,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

/* --- 16. Responsive utilities --- */
@media (max-width: 767.98px) {
    .message-bubble-buyer,
    .message-bubble-seller {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* ============================================================
   1. PRODUCT CARD
   ============================================================ */

.vt-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(42,75,124,.09);
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease;
    will-change: transform;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(42,75,124,.13);
    border-color: rgba(42,75,124,.18);
}

/* Image wrapper */
.vt-card__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f0f4f8;
    aspect-ratio: 4/3;
    flex-shrink: 0;
}

.vt-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.vt-card:hover .vt-card__img {
    transform: scale(1.05);
}

.vt-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.5rem;
}

/* Hover overlay */
.vt-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26,54,95,.7) 0%,
        rgba(26,54,95,.1) 60%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: .85rem;
    opacity: 0;
    transition: opacity .25s ease;
}

.vt-card:hover .vt-card__overlay {
    opacity: 1;
}

.vt-card__cta {
    background: #ffffff;
    color: #1a365f;
    font-size: .75rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: .3px;
    transform: translateY(6px);
    transition: transform .25s ease;
}

.vt-card:hover .vt-card__cta {
    transform: translateY(0);
}

/* Badges */
.vt-card__badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.vt-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.6;
    backdrop-filter: blur(6px);
}

.vt-badge--namibia {
    background: rgba(0,168,107,.9);
    color: #ffffff;
}

.vt-badge--eco {
    background: rgba(34,197,94,.9);
    color: #ffffff;
}

.vt-badge--urgent {
    background: rgba(239,68,68,.9);
    color: #ffffff;
    animation: vt-pulse-red 2s infinite;
}

@keyframes vt-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
    50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* Wishlist button */
.vt-card__wishlist-form {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    margin: 0;
}

.vt-card__wish {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s, color .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.vt-card__wish:hover,
.vt-card__wish.active {
    background: #fff0f0;
    color: #ef4444;
    transform: scale(1.15);
}

.vt-card__wish.active {
    animation: vt-heart-pop .3s ease;
}

@keyframes vt-heart-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1.15); }
}

/* Card body */
.vt-card__body {
    padding: .85rem .9rem .75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .3rem;
}

/* Category pill */
.vt-cat {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--primary-color);
    background: rgba(42,75,124,.07);
    padding: 2px 8px;
    border-radius: 20px;
    align-self: flex-start;
}

/* Product name */
.vt-card__name {
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.4em;
}

/* Seller row */
.vt-card__seller {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .4rem;
}

.vt-seller-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vt-card__seller-name {
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Verified badge — inline */
.vt-verified {
    color: var(--secondary-text);
    font-size: .82rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Card footer row */
.vt-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    border-top: 1px solid rgba(42,75,124,.06);
    margin-top: .3rem;
}

.vt-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.vt-stock {
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

.vt-stock i {
    font-size: .4rem;
}

.vt-stock--in  { color: var(--secondary-text); }
.vt-stock--out { color: #ef4444; }

.vt-card__btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .9rem;
    transition: background .15s, transform .15s;
    flex-shrink: 0;
}

.vt-card__btn:hover {
    background: #14274e;
    color: #fff;
    transform: scale(1.08);
}


/* ============================================================
   2. PRODUCT DETAIL PAGE
   ============================================================ */

/* Image panel */
.vt-detail-img-wrap {
    position: relative;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(42,75,124,.08);
}

.vt-detail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform .4s ease;
}

.vt-detail-img:hover {
    transform: scale(1.04);
}

/* Breadcrumb */
.vt-breadcrumb {
    font-size: .78rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.vt-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.vt-breadcrumb a:hover { color: var(--primary-color); }
.vt-breadcrumb span { color: #94a3b8; }

/* Product title */
.vt-detail-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: .5rem;
}

@media (min-width: 768px) {
    .vt-detail-title { font-size: 1.65rem; }
}

/* Price block */
.vt-detail-price-wrap {
    background: linear-gradient(135deg,rgba(42,75,124,.05) 0%,rgba(0,168,107,.05) 100%);
    border: 1px solid rgba(42,75,124,.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.vt-detail-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.vt-detail-price-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    margin-bottom: .25rem;
}

/* Seller card */
.vt-seller-card {
    background: #ffffff;
    border: 1px solid rgba(42,75,124,.09);
    border-radius: 12px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    transition: border-color .15s;
}

.vt-seller-card:hover {
    border-color: rgba(42,75,124,.2);
}

.vt-seller-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.vt-seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vt-seller-info { flex: 1; min-width: 0; }

.vt-seller-info__name {
    font-weight: 700;
    font-size: .9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-seller-info__meta {
    font-size: .72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin-top: 2px;
}

.vt-seller-info__meta .vt-verified {
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--secondary-text);
    font-weight: 700;
}

/* Action buttons */
.vt-btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: .75rem 1.5rem;
    font-weight: 700;
    font-size: .9rem;
    width: 100%;
    cursor: pointer;
    transition: background .15s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
}

.vt-btn-primary:hover {
    background: #14274e;
    color: #fff;
    transform: translateY(-1px);
}

.vt-btn-primary:active { transform: translateY(0); }

.vt-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: .75rem 1.5rem;
    font-weight: 700;
    font-size: .9rem;
    width: 100%;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
}

.vt-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

.vt-btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(42,75,124,.15);
    border-radius: 30px;
    padding: .65rem 1.5rem;
    font-weight: 600;
    font-size: .85rem;
    width: 100%;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
}

.vt-btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Qty selector */
.vt-qty-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #f8fafc;
    border: 1px solid rgba(42,75,124,.1);
    border-radius: 30px;
    padding: .3rem .3rem .3rem .85rem;
    margin-bottom: .75rem;
}

.vt-qty-label {
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.vt-qty-input {
    width: 56px;
    text-align: center;
    border: 1px solid rgba(42,75,124,.15);
    border-radius: 20px;
    padding: .3rem;
    font-weight: 700;
    font-size: .9rem;
    background: #fff;
    color: #1e293b;
    outline: none;
}

.vt-qty-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42,75,124,.1);
}

/* Sold out */
.vt-sold-out {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #b91c1c;
    font-weight: 700;
    font-size: .88rem;
}

/* Description */
.vt-description {
    font-size: .88rem;
    color: #374151;
    line-height: 1.75;
    white-space: pre-line;
}

/* Specs table */
.vt-specs {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(42,75,124,.08);
    font-size: .84rem;
}

.vt-specs tr:nth-child(odd) td,
.vt-specs tr:nth-child(odd) th {
    background: rgba(42,75,124,.03);
}

.vt-specs th {
    color: #64748b;
    font-weight: 600;
    padding: .55rem .85rem;
    width: 36%;
    border-bottom: 1px solid rgba(42,75,124,.06);
}

.vt-specs td {
    color: #1e293b;
    font-weight: 500;
    padding: .55rem .85rem;
    border-bottom: 1px solid rgba(42,75,124,.06);
}

.vt-specs tr:last-child th,
.vt-specs tr:last-child td { border-bottom: none; }

/* Tab strip */
.vt-tabs {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid rgba(42,75,124,.08);
    margin-bottom: 1.25rem;
}

.vt-tab {
    padding: .6rem 1.1rem;
    font-size: .82rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.vt-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.vt-tab-pane { display: none; }
.vt-tab-pane.active { display: block; }


/* ============================================================
   3. TRUST ELEMENTS
   ============================================================ */

/* ── Verified Seller Badge (standalone, anywhere) ── */
.vt-trust-verified {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0,168,107,.08);
    border: 1px solid rgba(0,168,107,.25);
    color: #047857;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 700;
}

.vt-trust-verified i {
    color: var(--secondary-text);
    font-size: .85rem;
}

/* ── Escrow Protection Banner ── */
.vt-escrow {
    background: linear-gradient(135deg,#f0fdf4,#ecfdf5);
    border: 1px solid rgba(0,168,107,.2);
    border-radius: 12px;
    padding: .85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem;
}

.vt-escrow__icon {
    width: 36px;
    height: 36px;
    background: #00A86B;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0;
}

.vt-escrow__title {
    font-size: .82rem;
    font-weight: 700;
    color: #047857;
    margin-bottom: 2px;
}

.vt-escrow__text {
    font-size: .73rem;
    color: #065f46;
    line-height: 1.5;
    margin: 0;
}

/* ── Trust strip (row of 3 mini badges) ── */
.vt-trust-strip {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.vt-trust-pill {
    display: flex;
    align-items: center;
    gap: .3rem;
    background: #f8fafc;
    border: 1px solid rgba(42,75,124,.1);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .68rem;
    font-weight: 700;
    color: #475569;
}

.vt-trust-pill i {
    font-size: .78rem;
    color: var(--primary-color);
}

.vt-trust-pill--green i { color: var(--secondary-text); }

/* ── Seller rating stars ── */
.vt-stars {
    display: inline-flex;
    gap: 1px;
    color: #f59e0b;
    font-size: .8rem;
}

.vt-stars--empty { color: #e2e8f0; }


/* ============================================================
   4. LOADING SKELETONS
   ============================================================ */

@keyframes vt-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.vt-skeleton {
    background: linear-gradient(90deg,
        #f0f4f8 25%,
        #e2e8f0 50%,
        #f0f4f8 75%
    );
    background-size: 600px 100%;
    animation: vt-shimmer 1.4s infinite linear;
    border-radius: 6px;
}

/* Card skeleton */
.vt-card-skeleton {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(42,75,124,.08);
    height: 100%;
}

.vt-card-skeleton__img {
    aspect-ratio: 4/3;
    width: 100%;
}

.vt-card-skeleton__body {
    padding: .85rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.vt-card-skeleton__line {
    height: 12px;
    border-radius: 6px;
}

.vt-card-skeleton__line--short { width: 40%; }
.vt-card-skeleton__line--med   { width: 70%; }
.vt-card-skeleton__line--full  { width: 100%; }
.vt-card-skeleton__line--price { width: 55%; height: 18px; }
.vt-card-skeleton__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-self: flex-end;
}

/* Detail page skeleton */
.vt-detail-skeleton__img {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 16px;
}

.vt-detail-skeleton__title   { height: 24px; width: 80%; margin-bottom: .5rem; }
.vt-detail-skeleton__price   { height: 40px; width: 45%; margin-bottom: 1rem; }
.vt-detail-skeleton__text    { height: 12px; width: 100%; margin-bottom: .4rem; }
.vt-detail-skeleton__text-sm { height: 12px; width: 65%; }
.vt-detail-skeleton__btn     { height: 48px; width: 100%; border-radius: 30px; margin-top: .75rem; }

/* ── Skeleton grid (put in place of actual cards while loading) ── */
/* Usage: show .vt-skeleton-grid while fetch is in progress,
          then swap with real cards */
.vt-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 768px) {
    .vt-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .vt-skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ============================================================
   5. MOBILE TOUCH REFINEMENTS
   ============================================================ */

/* Remove tap highlight on cards */
.vt-card,
.vt-card__img-wrap,
.vt-card__btn,
.vt-btn-primary,
.vt-btn-whatsapp,
.vt-btn-ghost {
    -webkit-tap-highlight-color: transparent;
}

/* Larger touch targets on mobile */
@media (max-width: 767.98px) {
    .vt-card__wish {
        width: 36px;
        height: 36px;
    }
    .vt-card__btn {
        width: 38px;
        height: 38px;
    }
    .vt-detail-title {
        font-size: 1.2rem;
    }
    .vt-detail-price {
        font-size: 1.5rem;
    }
    .vt-seller-card {
        padding: .75rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .vt-card,
    .vt-card__img,
    .vt-card__overlay,
    .vt-card__cta,
    .vt-card__wish,
    .vt-card__btn,
    .vt-btn-primary,
    .vt-detail-img {
        transition: none !important;
        animation: none !important;
    }
    .vt-badge--urgent { animation: none !important; }
    .vt-skeleton { animation: none !important; background: #e2e8f0; }
}

/* ============================================================
   Accessibility — WCAG 2.1 AA: skip link + visible keyboard focus
   ============================================================ */
.skip-link {
    position: absolute;
    top: -64px;
    left: 8px;
    z-index: 11000;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    text-decoration: none;
    transition: top .15s ease;
}
.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Visible focus ring for keyboard users (mouse interaction unaffected). */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.navbar-toggler:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

