/* =========================================================
   Marketplace Theme Enhancements
   Adds a colorful, dynamic "digital marketplace" feel on top
   of the existing theme, without touching the compiled main.css.
   Colors below fall back gracefully to the theme's dynamic
   --base HSL variable (set in the admin panel), so this stays
   consistent even if the admin changes their brand color.
   ========================================================= */

/* ---- Product cards: lift + shadow on hover, like a real marketplace ---- */
.card_body,
.best-seller-card {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 14px;
    overflow: hidden;
}

.card_body:hover,
.best-seller-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px -12px hsl(var(--base) / 0.35);
}

.card_body .card-img img,
.best-seller-card .card-img img {
    transition: transform .4s ease;
}

.card_body:hover .card-img img,
.best-seller-card:hover .card-img img {
    transform: scale(1.06);
}

/* ---- Vivid "Best Seller" ribbon ---- */
.best-seller-rank {
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base) / 0.7)) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 4px 10px hsl(var(--base) / 0.4);
}

.best-sellers-section {
    background: radial-gradient(circle at top left, hsl(var(--base) / 0.06), transparent 60%),
                radial-gradient(circle at bottom right, hsl(var(--base) / 0.08), transparent 55%);
}

/* ---- Sale / sold badges pop a bit more ---- */
.card-meta .sale .amount {
    font-weight: 700;
    color: hsl(var(--base));
}

/* ---- Buttons: subtle gradient + lift on hover for a livelier CTA ---- */
.btn--base {
    background-image: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base) / 0.82));
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn--base:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -6px hsl(var(--base) / 0.5);
}

/* ---- Category cards: a bit more playful ---- */
.category-card_body {
    transition: transform .2s ease;
}

.category-card_body:hover {
    transform: translateY(-4px) scale(1.03);
}

/* ---- Cart badge pulse to draw the eye when an item is added ---- */
@keyframes cartBadgePop {
    0%   { transform: scale(0.6); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-count-badge {
    animation: cartBadgePop .3s ease;
}

/* ---- Discount / promo ribbon: a touch of urgency, marketplace-style ---- */
.product-badge.bg--info {
    background: linear-gradient(135deg, #ff5722, #ff8a3d) !important;
}

/* ---- Dashboard "Become a Seller" call-to-action stands out ---- */
.dashboard-card[href*="kyc"],
a[href*="kyc"] .dashboard-card {
    background: linear-gradient(135deg, hsl(var(--base) / 0.12), transparent);
    border: 1px dashed hsl(var(--base) / 0.5);
}
