/* Sale / clearance highlighting (admin → Deals). Loaded on every page by components/header.php. */

/* ---- top bar turns red while a sale runs ---- */
.site-announce.site-announce-sale { background: linear-gradient(90deg, #7d0d1a, #c4161c 55%, #d1303f); }
.site-announce-deal { color: #fff; text-decoration: none; }
.site-announce-deal:hover { color: #fff; text-decoration: underline; }
.site-announce-deal i { color: #ffd166 !important; animation: dealFlame 1.6s ease-in-out infinite; }
.site-announce-deal strong { font-weight: 800; letter-spacing: 0.02em; }
.site-announce-deal .deal-ends { background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-size: 0.75rem; }
.site-announce-deal .deal-go { text-decoration: underline; margin-left: 6px; }

@keyframes dealFlame { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---- menu item becomes a red pill while a sale runs ---- */
.category-nav-item > a.nav-deals.is-live { background: #d1303f; color: #fff; border-radius: 8px; margin: 4px 4px; padding: 8px 14px; }
.category-nav-item > a.nav-deals.is-live:hover { background: #b3202f; color: #fff; }
.mobile-nav-link.nav-deals.is-live { background: #d1303f; color: #fff; border-radius: 8px; padding-left: 12px; }

/* ---- badge on product cards ---- */
.pcard-badge-deal { background: linear-gradient(135deg, #7d0d1a, #d1303f); }
.pcard-badge-deal i { color: #ffd166; margin-right: 2px; }
.pcard-badge-stack { top: 32px; }

/* ---- home page sale section ---- */
.deal-home {
    margin: 1.5rem 0;
    padding: 1.25rem 1.25rem 0.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff1f2, #ffe3e6);
    border: 1px solid #f6c3c8;
    box-shadow: 0 8px 24px rgba(196, 22, 28, 0.08);
}
.deal-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.deal-home-head h2 { font-size: 1.7rem; font-weight: 800; color: #7d0d1a; margin: 0.35rem 0 0.15rem; }
.deal-home-head p { margin: 0; color: #5b2a30; }
.deal-home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.deal-ends { font-weight: 700; color: #b3202f; }
.deal-pill { display: inline-flex; align-items: center; gap: 6px; background: #d1303f; color: #fff; font-size: 0.78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; letter-spacing: 0.02em; }
.deal-pill i { color: #ffd166; }

/* ---- Deals page banner ---- */
.deal-hero {
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.25rem;
    color: #fff;
    background: linear-gradient(120deg, #7d0d1a, #c4161c 60%, #e0475a);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
}
.deal-hero h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 0.2rem; }
.deal-hero p { margin: 0; opacity: 0.92; }
.deal-hero .deal-ends { color: #fff; background: rgba(255, 255, 255, 0.2); padding: 4px 14px; border-radius: 999px; }

/* ---- product page ---- */
.deal-product-flag { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 0.5rem; }
.deal-product-flag .deal-ends { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { .site-announce-deal i { animation: none; } }
