/* ═══════════════════════════════════════════════════════════════════════════
   Fox Affiliate — Premium Frontend Templates
   Supports: .fox-style-minimal | card | featured | glass
             .fox-btn-filled | outline | ghost
             .fox-animate
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens (defaults, overridden by Fox_Design via :root) ─────────── */
:root {
    --fox-accent:      #FF6B35;
    --fox-accent-hover:#E55A25;
    --fox-text:        #0F172A;
    --fox-text-muted:  #64748B;
    --fox-bg:          #FFFFFF;
    --fox-bg-badge:    #FFF7ED;
    --fox-border:      #E2E8F0;
    --fox-price:       #DC2626;
    --fox-btn-text:    #FFFFFF;
    --fox-radius:      12px;
    --fox-radius-sm:   8px;
    --fox-radius-lg:   16px;
    --fox-shadow:      0 4px 24px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
    --fox-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* BOX */
.fox-box {
    font-family: var(--fox-font);
    background: var(--fox-bg);
    border-radius: var(--fox-radius-lg);
    overflow: hidden;
    display: flex;
    gap: 0;
    max-width: 480px;
    position: relative;
    transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
    margin: 20px 0;
    border: 1px solid var(--fox-border);
    box-shadow: var(--fox-shadow);
}

.fox-box:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,.14); }

/* Minimal */
.fox-style-minimal .fox-box { box-shadow: none; border-radius: var(--fox-radius); border: 1.5px solid var(--fox-border); }
.fox-style-minimal .fox-box:hover { transform: none; border-color: var(--fox-accent); }

/* Featured */
.fox-style-featured .fox-box { flex-direction: column; border: none; max-width: 320px; }
.fox-style-featured .fox-box__image-link { width: 100%; height: 200px; }
.fox-style-featured .fox-box__image { width: 100%; height: 200px; object-fit: contain; background: linear-gradient(135deg,#f8fafc,#f1f5f9); padding: 20px; }
.fox-style-featured .fox-box__body { padding: 20px; }

/* Glass */
.fox-style-glass .fox-box {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 8px 32px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.8);
}

.fox-box__image-link {
    display: block;
    flex-shrink: 0;
    width: 140px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
}

.fox-box__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 12px;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.fox-box:hover .fox-box__image { transform: scale(1.04); }

.fox-box__body { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.fox-box__badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--fox-accent); background: var(--fox-bg-badge); border-radius: 20px; padding: 3px 9px; width: fit-content;
    /* show_badge: opacity 1 = visible, 0 = hidden (set via --fox-show-badge in :root) */
    opacity: var(--fox-show-badge, 1);
    pointer-events: none;
    max-height: calc(var(--fox-show-badge, 1) * 40px);
    overflow: hidden;
    margin-bottom: calc(var(--fox-show-badge, 1) * 2px);
}

.fox-box__title { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fox-box__title a { color: inherit; text-decoration: none; }
.fox-box__title a:hover { color: var(--fox-accent); }

.fox-box__footer { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }

.fox-box__price { font-size: 20px; font-weight: 800; color: var(--fox-price); letter-spacing: -.03em; line-height: 1; }
.fox-box__price-label { display: block; font-size: 10px; font-weight: 500; color: var(--fox-text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.fox-box__price-block { display: flex; flex-direction: column; gap: 2px; }
.fox-box__price-before { font-size: 13px; font-weight: 500; color: var(--fox-text-muted); text-decoration: line-through; line-height: 1; }

.fox-box__availability { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: #16A34A; }
.fox-box__availability::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fox-box__availability.unavailable { color: var(--fox-text-muted); }

/* BUTTONS */
.fox-box__btn, .fox-table__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--fox-radius-sm);
    font-size: 13px; font-weight: 600; font-family: var(--fox-font);
    text-decoration: none !important; cursor: pointer; border: 2px solid transparent;
    transition: background .18s, color .18s, border-color .18s, transform .15s, box-shadow .18s;
    white-space: nowrap; line-height: 1;
}

/* Filled */
.fox-box__btn, .fox-table__btn,
.fox-btn-filled .fox-box__btn, .fox-btn-filled .fox-table__btn {
    background: var(--fox-accent); color: var(--fox-btn-text) !important; border-color: var(--fox-accent);
}
.fox-box__btn:hover, .fox-table__btn:hover,
.fox-btn-filled .fox-box__btn:hover, .fox-btn-filled .fox-table__btn:hover {
    background: var(--fox-accent-hover); border-color: var(--fox-accent-hover);
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,53,.35);
}

/* Outline */
.fox-btn-outline .fox-box__btn, .fox-btn-outline .fox-table__btn {
    background: transparent; color: var(--fox-accent) !important; border-color: var(--fox-accent);
}
.fox-btn-outline .fox-box__btn:hover, .fox-btn-outline .fox-table__btn:hover {
    background: var(--fox-accent); color: var(--fox-btn-text) !important;
}

/* Ghost */
.fox-btn-ghost .fox-box__btn, .fox-btn-ghost .fox-table__btn {
    background: var(--fox-bg-badge); color: var(--fox-accent) !important; border-color: transparent;
}
.fox-btn-ghost .fox-box__btn:hover, .fox-btn-ghost .fox-table__btn:hover {
    background: var(--fox-accent); color: var(--fox-btn-text) !important;
}

.fox-box__btn::after { content: '→'; font-style: normal; transition: transform .18s; }
.fox-box__btn:hover::after { transform: translateX(3px); }

/* LINK */
.fox-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--fox-accent); font-family: var(--fox-font); font-weight: 600; font-size: inherit;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,107,53,.4);
    transition: color .15s, text-decoration-color .15s;
}
.fox-link:hover { color: var(--fox-accent-hover); text-decoration-color: var(--fox-accent-hover); }

/* TABLE */
.fox-table-wrap {
    overflow-x: auto; margin: 24px 0;
    border-radius: var(--fox-radius-lg); box-shadow: var(--fox-shadow);
    font-family: var(--fox-font); border: 1px solid var(--fox-border);
}

.fox-table { width: 100%; border-collapse: collapse; background: var(--fox-bg); font-size: 14px; }

.fox-table thead th {
    background: #F8FAFC; border-bottom: 1px solid var(--fox-border); padding: 13px 16px;
    text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--fox-text-muted); white-space: nowrap;
}

.fox-table td { padding: 14px 16px; border-bottom: 1px solid var(--fox-border); vertical-align: middle; color: var(--fox-text); }
.fox-table__row:last-child td { border-bottom: none; }
.fox-table__row { transition: background .15s; }
.fox-table__row:hover td { background: rgba(255,107,53,.03); }

.fox-table__col-img { width: 80px; text-align: center; background: linear-gradient(135deg,#f8fafc,#f1f5f9); padding: 8px; }
.fox-table__col-img img { width: 60px; height: 60px; object-fit: contain; transition: transform .25s; }
.fox-table__row:hover .fox-table__col-img img { transform: scale(1.08); }

.fox-table__title a { color: var(--fox-text); text-decoration: none; font-weight: 500; line-height: 1.4; }
.fox-table__title a:hover { color: var(--fox-accent); }

.fox-table__price-cell { white-space: nowrap; width: 110px; }
.fox-table__price { font-size: 17px; font-weight: 800; color: var(--fox-price); letter-spacing: -.02em; }
.fox-table__na { color: var(--fox-text-muted); font-size: 13px; }
.fox-table__col-action { width: 110px; }
.fox-table__btn { padding: 7px 14px; font-size: 12px; }
.fox-table__btn::after { content: none; }

/* ANIMATIONS
   Triggered by .fox-animate body class (set by Fox_Design::inject_styles)
   AND by --fox-animate CSS var for live studio preview.
   Trick: animation-duration:0s when --fox-animate:0 = no visible animation */
.fox-box {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-duration: calc(var(--fox-animate, 0) * 0.4s);
}
.fox-table-wrap {
    animation: fox-fade-in .35s ease both;
    animation-duration: calc(var(--fox-animate, 0) * 0.35s);
}
/* When body has .fox-animate class (frontend), force duration regardless of var */
.fox-animate .fox-box      { animation-duration: .4s; }
.fox-animate .fox-table-wrap { animation-duration: .35s; }

@keyframes fox-slide-up { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes fox-fade-in  { from { opacity:0; } to { opacity:1; } }

/* STATES */
.fox-placeholder { display:inline-block; color:var(--fox-text-muted); font-family:var(--fox-font); font-size:12px; font-style:italic; padding:2px 6px; background:#F8FAFC; border-radius:4px; }
.fox-placeholder[data-worker="1"] { display:flex; align-items:center; gap:8px; padding:12px 16px; background:#f0f5ff; border:1px dashed #b0c4de; font-style:normal; color:#4a6a8a; }
.fox-worker-spinner { display:inline-block; width:16px; height:16px; border:2px solid #b0c4de; border-top-color:#4a90d9; border-radius:50%; animation:fox-spin .7s linear infinite; flex-shrink:0; }
@keyframes fox-spin { to { transform:rotate(360deg); } }
.fox-error { color:#DC2626; font-size:12px; font-family:var(--fox-font); padding:6px 10px; background:#FEF2F2; border-radius:6px; border-left:3px solid #DC2626; margin:8px 0; }

/* RESPONSIVE */
@media (max-width: 520px) {
    .fox-box { flex-direction: column; }
    .fox-box__image-link { width: 100%; height: 180px; }
    .fox-box__image { height: 180px; padding: 16px; }
    .fox-table thead { display: none; }
    .fox-table td { display: block; padding: 8px 14px; border-bottom: none; }
    .fox-table__row { border-bottom: 1px solid var(--fox-border); }
    .fox-table__col-img { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; background: none; padding: 14px 14px 0; }
    .fox-table__col-img img { width: 50px; height: 50px; }
    .fox-table__col-action { padding-bottom: 14px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICE HISTORY — Sparkline + Badge
   ══════════════════════════════════════════════════════════════════════════ */

.fox-box__history {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--fox-border);
}

.fox-sparkline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fox-sparkline__svg {
    display: block;
}

.fox-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--fox-text-muted);
    font-family: var(--fox-font);
}

.fox-price-badge__icon { font-size: 10px; line-height: 1; }
.fox-price-badge strong { font-weight: 700; }

.fox-price-badge--low  { color: #15803D; }
.fox-price-badge--high { color: #B91C1C; }

/* ══════════════════════════════════════════════════════════════════════════
/* ══════════════════════════════════════════════════════════════════════════
   PRICE HISTORY — Sparkline + Badge
   ══════════════════════════════════════════════════════════════════════════ */

.fox-box__history {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--fox-border);
}

.fox-sparkline { display: flex; flex-direction: column; gap: 5px; }
.fox-sparkline__svg { display: block; }

.fox-price-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--fox-text-muted); font-family: var(--fox-font); }
.fox-price-badge__icon { font-size: 10px; line-height: 1; }
.fox-price-badge strong { font-weight: 700; }
.fox-price-badge--low  { color: #15803D; }
.fox-price-badge--high { color: #B91C1C; }

/* ══════════════════════════════════════════════════════════════════════════
   SMART WIDGETS — Shared base
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best { font-family: var(--fox-font); margin: 24px 0; }

/* Header */
.fox-best__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.fox-best__title { font-size: 18px; font-weight: 700; color: var(--fox-text); margin: 0; letter-spacing: -.02em; }

.fox-best__header-right { display: flex; align-items: center; gap: 10px; }

.fox-best__count {
    font-size: 12px; color: var(--fox-text-muted);
    background: #F1F5F9; border-radius: 20px; padding: 2px 8px;
}

/* Shared item card */
.fox-best__item {
    position: relative; background: var(--fox-bg);
    border: 1px solid var(--fox-border); border-radius: var(--fox-radius);
    box-shadow: var(--fox-shadow); overflow: hidden;
    transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}

.fox-best__item:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.13); }

/* Ranked item top borders */
.fox-best__item--ranked:nth-child(1) { border-top: 3px solid #FF6B35; }
.fox-best__item--ranked:nth-child(2) { border-top: 3px solid #94A3B8; }
.fox-best__item--ranked:nth-child(3) { border-top: 3px solid #92400E; }

/* Rank badge */
.fox-best__rank {
    position: absolute; top: 10px; left: 10px;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.fox-best__rank--inline { position: static; width: 28px; height: 28px; flex-shrink: 0; font-size: 12px; }
.fox-best__rank--plain {
    width: 28px; height: 28px; border-radius: 50%; background: #F1F5F9;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--fox-text-muted); flex-shrink: 0;
}

/* Image link */
.fox-best__image-link { display: block; background: linear-gradient(135deg,#f8fafc,#f1f5f9); height: 160px; overflow: hidden; flex-shrink: 0; }
.fox-best__image { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.fox-best__item:hover .fox-best__image { transform: scale(1.06); }

/* Body */
.fox-best__body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.fox-best__brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--fox-accent); }

.fox-best__item-title {
    font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.fox-best__item-title a { color: inherit; text-decoration: none; }
.fox-best__item-title a:hover { color: var(--fox-accent); }

/* Stars */
.fox-best__stars { display: flex; align-items: center; gap: 1px; }
.fox-best__review-count { font-size: 11px; color: var(--fox-text-muted); margin-left: 5px; }

/* Footer (price + CTA) */
.fox-best__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.fox-best__price-wrap { display: flex; flex-direction: column; gap: 2px; }
.fox-best__price { font-size: 16px; font-weight: 800; color: var(--fox-price); letter-spacing: -.02em; }
.fox-best__price-range { font-size: 10px; color: var(--fox-text-muted); }

.fox-best__price-tag {
    display: inline-block; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; margin-bottom: 2px;
}
.fox-best__price-tag--low { background: #DCFCE7; color: #15803D; }
.fox-best__price-tag--high { background: #FEE2E2; color: #B91C1C; }
.fox-best__price-before { font-size: 11px; font-weight: 500; color: var(--fox-text-muted); text-decoration: line-through; line-height: 1; }
.fox-best__price-wrap.has-promo .fox-best__price { color: #DC2626; }

.fox-best__sparkline-wrap .fox-sparkline { flex-direction: row; align-items: center; }
.fox-best__sparkline-wrap .fox-sparkline__svg { width: 72px; height: 26px; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT: GRID
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best--grid .fox-best__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.fox-best--grid .fox-best__item { display: flex; flex-direction: column; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT: LIST
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best--list .fox-best__list { display: flex; flex-direction: column; gap: 10px; }

.fox-best--list .fox-best__list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--fox-radius);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.fox-best--list .fox-best__list-item:hover {
    transform: translateX(3px);
    border-color: var(--fox-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,.09);
}

.fox-best--list .fox-best__list-rank { flex-shrink: 0; }

.fox-best--list .fox-best__list-image-link {
    width: 72px; height: 72px; border-radius: var(--fox-radius-sm);
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    flex-shrink: 0; display: block; overflow: hidden;
}

.fox-best--list .fox-best__list-image {
    width: 100%; height: 100%; object-fit: contain; padding: 8px;
    transition: transform .25s;
}

.fox-best--list .fox-best__list-item:hover .fox-best__list-image { transform: scale(1.08); }

.fox-best--list .fox-best__list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.fox-best--list .fox-best__item-title { -webkit-line-clamp: 2; }

.fox-best--list .fox-best__list-price {
    flex-shrink: 0;
    text-align: right;
    display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
    min-width: 90px;
}

.fox-best--list .fox-best__list-action { flex-shrink: 0; }

/* Connector line between list items */
.fox-best--list .fox-best__list-item + .fox-best__list-item {
    position: relative;
}
.fox-best--list .fox-best__list-item + .fox-best__list-item::before {
    content: '';
    position: absolute;
    top: -5px; left: 16px; right: 16px;
    height: 1px;
    background: var(--fox-border);
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT: CAROUSEL
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best--carousel { position: relative; }

/* Nav buttons */
.fox-best__nav { display: flex; gap: 6px; }

.fox-best__nav-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--fox-border);
    background: var(--fox-bg);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--fox-text-muted);
    transition: all .18s; flex-shrink: 0;
}

.fox-best__nav-btn:hover {
    background: var(--fox-accent); color: #fff; border-color: var(--fox-accent);
    box-shadow: 0 4px 12px rgba(255,107,53,.3);
}

.fox-best__nav-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }

/* Carousel track: CSS scroll snap */
.fox-best__carousel-outer {
    overflow: hidden;
    margin: 0 -4px;
}

.fox-best__track {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 8px;
    scrollbar-width: none;
}

.fox-best__track::-webkit-scrollbar { display: none; }

.fox-best__slide {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 200px;
    max-width: 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Dot indicators */
.fox-best__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.fox-best__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--fox-border); border: none; cursor: pointer; padding: 0;
    transition: all .2s cubic-bezier(.4,0,.2,1);
}

.fox-best__dot.is-active {
    width: 22px; border-radius: 4px;
    background: var(--fox-accent);
    box-shadow: 0 2px 8px rgba(255,107,53,.4);
}

.fox-best__dot:hover:not(.is-active) { background: var(--fox-text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT: FEATURED
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best--featured .fox-best__featured-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: start;
}

/* Hero card */
.fox-best--featured .fox-best__hero {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fox-best__hero-image-link {
    display: block;
    height: 260px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
}

.fox-best__hero-image {
    width: 100%; height: 100%;
    object-fit: contain; padding: 24px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.fox-best__hero:hover .fox-best__hero-image { transform: scale(1.04); }

.fox-best__hero-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.fox-best__hero-title {
    font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.fox-best__hero-title a { color: inherit; text-decoration: none; }
.fox-best__hero-title a:hover { color: var(--fox-accent); }

.fox-best__hero-sparkline .fox-sparkline { flex-direction: row; align-items: center; gap: 10px; }
.fox-best__hero-sparkline .fox-sparkline__svg { width: 200px; height: 44px; }

.fox-best__hero-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    flex-wrap: wrap;
}

.fox-best__hero-price { display: flex; flex-direction: column; gap: 2px; }
.fox-best__price--hero { font-size: 26px; font-weight: 900; color: var(--fox-price); letter-spacing: -.03em; }
.fox-best__hero-price.has-promo .fox-best__price--hero { color: #DC2626; }
.fox-best__hero-price { display: flex; flex-direction: column; gap: 3px; }
.fox-best__hero-price .fox-best__price-before { font-size: 14px; }

.fox-best__hero-cta { padding: 12px 22px; font-size: 14px; }

/* Mini strip */
.fox-best--featured .fox-best__mini-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fox-best__mini {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
}

.fox-best__mini-image-link {
    width: 70px; height: 70px;
    border-radius: var(--fox-radius-sm);
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    flex-shrink: 0; overflow: hidden;
}

.fox-best__mini-image-link img {
    width: 100%; height: 100%; object-fit: contain; padding: 8px;
    transition: transform .25s;
}

.fox-best__mini:hover .fox-best__mini-image-link img { transform: scale(1.08); }

.fox-best__mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fox-best__mini-body .fox-best__item-title { font-size: 12px; -webkit-line-clamp: 2; }
.fox-best__mini-body .fox-best__price { font-size: 14px; }
.fox-best__mini-body .fox-best__footer { margin-top: 0; }
.fox-best__mini-body .fox-best__footer .fox-table__btn { padding: 5px 10px; font-size: 11px; }

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATIONS (staggered)
   ══════════════════════════════════════════════════════════════════════════ */

.fox-animate .fox-best__item,
.fox-animate .fox-best__list-item,
.fox-animate .fox-best__slide {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-delay: var(--fox-item-delay, 0ms);
}

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

@media (max-width: 768px) {
    /* Featured collapses to single column */
    .fox-best--featured .fox-best__featured-wrap {
        grid-template-columns: 1fr;
    }
    .fox-best--featured .fox-best__mini-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    /* Carousel: 2 visible slides */
    .fox-best__slide { flex: 0 0 calc(50% - 8px); }
}

@media (max-width: 540px) {
    /* Grid: 2 cols */
    .fox-best--grid .fox-best__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .fox-best__image-link { height: 130px; }
    .fox-best__body { padding: 10px; }
    .fox-best__price { font-size: 14px; }

    /* List: hide sparkline on mobile */
    .fox-best--list .fox-best__sparkline-wrap { display: none; }
    .fox-best--list .fox-best__list-price { min-width: 70px; }

    /* Carousel: 1 visible slide */
    .fox-best__slide { flex: 0 0 calc(100% - 16px); max-width: none; }

    /* Featured */
    .fox-best--featured .fox-best__mini-strip { grid-template-columns: 1fr; }
    .fox-best__hero-image-link { height: 200px; }
    .fox-best__hero-body { padding: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT: MASONRY
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best--masonry .fox-best__masonry {
    columns: 3 200px;
    column-gap: 16px;
}

.fox-best__masonry-item {
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/* Variable image heights for natural rhythm */
.fox-best__masonry-img {
    height: calc( 120px + var(--fox-clip, 2) * 20px ); /* 160px or 180px */
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
}

.fox-best__masonry-title {
    -webkit-line-clamp: var(--fox-clip, 2) !important;
}

.fox-best__masonry-spark {
    margin: 4px 0 2px;
}

.fox-best__masonry-spark .fox-sparkline { flex-direction: row; align-items: center; gap: 8px; }

/* Stagger animation — delay already set via inline style */
.fox-animate .fox-best__masonry-item {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-delay: var(--fox-item-delay, 0ms);
}

@media (max-width: 600px) {
    .fox-best--masonry .fox-best__masonry { columns: 2 160px; }
}

@media (max-width: 380px) {
    .fox-best--masonry .fox-best__masonry { columns: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT: MAGAZINE
   ══════════════════════════════════════════════════════════════════════════ */

.fox-best--magazine .fox-best__magazine { display: flex; flex-direction: column; gap: 16px; }

/* Row 1: hero (2/3) + sidebar (1/3) */
.fox-best__mag-row1 {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: stretch;
}

/* Hero */
.fox-best__mag-hero { display: flex; flex-direction: column; }

.fox-best__mag-hero-img-link {
    display: block;
    height: 240px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
    flex-shrink: 0;
}

.fox-best__mag-hero-img {
    width: 100%; height: 100%; object-fit: contain; padding: 28px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.fox-best__mag-hero:hover .fox-best__mag-hero-img { transform: scale(1.04); }

.fox-best__mag-hero-body {
    padding: 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1;
}

.fox-best__mag-hero-title {
    font-size: 18px; font-weight: 700; line-height: 1.35;
    color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.fox-best__mag-hero-title a { color: inherit; text-decoration: none; }
.fox-best__mag-hero-title a:hover { color: var(--fox-accent); }

/* Sidebar: two stacked cards */
.fox-best__mag-sidebar { display: flex; flex-direction: column; gap: 12px; }

.fox-best__mag-side {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 1;
    align-items: stretch;
    overflow: hidden;
}

.fox-best__mag-side-img-link {
    width: 90px;
    flex-shrink: 0;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
    display: block;
}

.fox-best__mag-side-img {
    width: 100%; height: 100%; object-fit: contain; padding: 10px;
    transition: transform .25s;
}

.fox-best__mag-side:hover .fox-best__mag-side-img { transform: scale(1.07); }

.fox-best__mag-side-body {
    flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}

/* Row 2: 3-col strip */
.fox-best__mag-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fox-best__mag-col { display: flex; flex-direction: column; }
.fox-best__mag-col .fox-best__image-link { height: 130px; }

/* Row 3: trail list */
.fox-best__mag-trail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 2px solid var(--fox-border);
    padding-top: 14px;
}

.fox-best--magazine .fox-best__list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--fox-radius);
}

.fox-best--magazine .fox-best__list-item:hover {
    transform: translateX(3px);
    border-color: var(--fox-accent);
}

.fox-best--magazine .fox-best__list-image-link {
    width: 60px; height: 60px;
    border-radius: var(--fox-radius-sm);
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    flex-shrink: 0; overflow: hidden; display: block;
}

.fox-best--magazine .fox-best__list-image {
    width: 100%; height: 100%; object-fit: contain; padding: 6px;
}

.fox-best--magazine .fox-best__list-body { flex: 1; min-width: 0; }
.fox-best--magazine .fox-best__item-title { -webkit-line-clamp: 2; }
.fox-best--magazine .fox-best__list-price { flex-shrink: 0; text-align: right; }
.fox-best--magazine .fox-best__list-action { flex-shrink: 0; }

/* Magazine animations */
.fox-animate.fox-best--magazine .fox-best__mag-hero,
.fox-animate.fox-best--magazine .fox-best__mag-side,
.fox-animate.fox-best--magazine .fox-best__mag-col,
.fox-animate.fox-best--magazine .fox-best__list-item {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-delay: var(--fox-item-delay, 0ms);
}

/* Magazine responsive */
@media (max-width: 820px) {
    .fox-best__mag-row1 { grid-template-columns: 1fr; }
    .fox-best__mag-sidebar { flex-direction: row; }
    .fox-best__mag-side { flex: 1; }
    .fox-best__mag-hero-img-link { height: 200px; }
}

@media (max-width: 600px) {
    .fox-best__mag-row2 { grid-template-columns: repeat(2, 1fr); }
    .fox-best__mag-sidebar { flex-direction: column; }
}

@media (max-width: 400px) {
    .fox-best__mag-row2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FIELD SHORTCODES — éléments inline isolés
   ══════════════════════════════════════════════════════════════════════════ */

/* Image */
.fox-field-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--fox-radius-sm);
}

.fox-field-image-link {
    display: inline-block;
    line-height: 0;
}

.fox-field-image-link .fox-field-image {
    transition: transform .25s, opacity .2s;
}

.fox-field-image-link:hover .fox-field-image {
    transform: scale(1.03);
    opacity: .92;
}

/* Prix inline */
.fox-field-price {
    font-weight: 700;
    color: var(--fox-price);
    white-space: nowrap;
}

/* Lien inline */
.fox-field-link {
    color: var(--fox-accent);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--fox-accent) 40%, transparent);
    text-underline-offset: 2px;
    transition: color .15s, text-decoration-color .15s;
}

.fox-field-link:hover {
    color: var(--fox-accent-hover);
    text-decoration-color: var(--fox-accent-hover);
}

/* Bouton inline — hérite du style fox-box__btn */
.fox-field-button {
    display: inline-flex;
    vertical-align: middle;
}

/* ── Champs AAWP compat (fox-field-*) ────────────────────────────────────── */

/* Stars clip-path system */
.fox-field-stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}
.fox-field-stars-bg {
    color: #CBD5E1;
    letter-spacing: 1px;
}
.fox-field-stars-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    color: var(--fox-accent);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Reviews count */
.fox-field-reviews {
    font-size: 12px;
    color: var(--fox-text-muted);
    vertical-align: middle;
    margin-left: 3px;
}

/* Prime badge */
.fox-field-prime {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
}

/* Old / strikethrough price */
.fox-field-old-price {
    text-decoration: line-through;
    color: var(--fox-text-muted);
    font-size: .9em;
    margin-right: 4px;
}

/* Availability */
.fox-field-avail { font-size: 12px; font-weight: 600; }
.fox-field-avail--in  { color: #15803D; }
.fox-field-avail--out { color: #B91C1C; }

/* fields wrapper */
.fox-fields {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTO-INJECTION — .fox-auto-inject
   ══════════════════════════════════════════════════════════════════════════ */

.fox-auto-inject {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid var(--fox-border);
}

/* Separator line with label */
.fox-auto-inject::before {
    content: attr(data-keyword);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fox-text-muted);
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   DESCRIPTION / FEATURES — Shared across all templates
   ══════════════════════════════════════════════════════════════════════════ */

.fox-desc { margin: 6px 0 2px; }

.fox-desc__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 4px;
}

.fox-desc__item {
    font-size: 12px; line-height: 1.45; color: var(--fox-text-muted);
    font-family: var(--fox-font);
    padding-left: 14px;
    position: relative;
}

.fox-desc__item::before {
    content: ''; position: absolute; left: 0; top: 6px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--fox-accent); opacity: .5;
}

.fox-desc__text {
    font-size: 12px; line-height: 1.5; color: var(--fox-text-muted);
    font-family: var(--fox-font); margin: 0;
}

/* In table cells — tighter */
.fox-table__title .fox-desc { margin-top: 4px; }
.fox-table__title .fox-desc__item { font-size: 11px; }

/* ══════════════════════════════════════════════════════════════════════════
   HORIZONTAL — Full-width row card
   ══════════════════════════════════════════════════════════════════════════ */

.fox-horizontal {
    font-family: var(--fox-font);
    display: flex; align-items: center; gap: 0;
    background: var(--fox-bg);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius);
    box-shadow: var(--fox-shadow);
    overflow: hidden;
    margin: 16px 0;
    transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}

.fox-horizontal:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }

.fox-horizontal__image-link {
    flex-shrink: 0; width: 120px; height: 120px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.fox-horizontal__image {
    width: 100%; height: 100%; object-fit: contain; padding: 12px;
    transition: transform .25s;
}

.fox-horizontal:hover .fox-horizontal__image { transform: scale(1.05); }

.fox-horizontal__body {
    flex: 1; padding: 14px 18px; min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
}

.fox-horizontal__brand {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--fox-accent);
}

.fox-horizontal__title {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fox-horizontal__title a { color: inherit; text-decoration: none; }
.fox-horizontal__title a:hover { color: var(--fox-accent); }

.fox-horizontal__availability { font-size: 11px; font-weight: 500; color: #16A34A; display: inline-flex; align-items: center; gap: 4px; }
.fox-horizontal__availability::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fox-horizontal__availability.unavailable { color: var(--fox-text-muted); }

.fox-horizontal__action {
    flex-shrink: 0; padding: 14px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    border-left: 1px solid var(--fox-border);
}

.fox-horizontal__price-block { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.fox-horizontal__price {
    font-size: 22px; font-weight: 800; color: var(--fox-price);
    letter-spacing: -.03em; line-height: 1; white-space: nowrap;
}
.fox-horizontal__price-before { font-size: 13px; font-weight: 500; color: var(--fox-text-muted); text-decoration: line-through; line-height: 1; }
.fox-horizontal__price-block.has-promo .fox-horizontal__price { color: #DC2626; }

/* Card style variants */
.fox-style-minimal .fox-horizontal { box-shadow: none; }
.fox-style-minimal .fox-horizontal:hover { transform: none; border-color: var(--fox-accent); }
.fox-style-glass .fox-horizontal { background: rgba(255,255,255,.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.6); }

/* ── Promo badge ───────────────────────────────────────────────────────── */
.fox-promo-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700; line-height: 1;
    background: #DC2626; color: #fff;
    border-radius: 4px; padding: 2px 6px;
    letter-spacing: .01em;
    vertical-align: middle;
}
.fox-price-current { } /* hook for theme overrides */

/* Animation */
.fox-horizontal {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-duration: calc(var(--fox-animate, 0) * 0.4s);
}
.fox-animate .fox-horizontal { animation-duration: .4s; }

@media (max-width: 600px) {
    .fox-horizontal { flex-direction: column; }
    .fox-horizontal__image-link { width: 100%; height: 160px; }
    .fox-horizontal__action { flex-direction: row; border-left: none; border-top: 1px solid var(--fox-border); width: 100%; padding: 12px 18px; justify-content: space-between; }
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPACT — Small sidebar card
   ══════════════════════════════════════════════════════════════════════════ */

.fox-compact {
    font-family: var(--fox-font);
    background: var(--fox-bg);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius);
    box-shadow: var(--fox-shadow);
    overflow: hidden;
    max-width: 260px;
    margin: 12px 0;
    transition: transform .2s, box-shadow .2s;
}

.fox-compact:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }

.fox-compact__image-link {
    display: block; width: 100%; height: 160px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
}

.fox-compact__image {
    width: 100%; height: 100%; object-fit: contain; padding: 16px;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.fox-compact:hover .fox-compact__image { transform: scale(1.06); }

.fox-compact__body {
    padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}

.fox-compact__title {
    font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fox-compact__title a { color: inherit; text-decoration: none; }
.fox-compact__title a:hover { color: var(--fox-accent); }

.fox-compact__price-block { display: flex; flex-direction: column; gap: 2px; }
.fox-compact__price {
    font-size: 18px; font-weight: 800; color: var(--fox-price); letter-spacing: -.02em;
}
.fox-compact__price-before { font-size: 12px; font-weight: 500; color: var(--fox-text-muted); text-decoration: line-through; line-height: 1; }
.fox-compact__price-block.has-promo .fox-compact__price { color: #DC2626; }

.fox-compact__btn { width: 100%; text-align: center; justify-content: center; }

.fox-compact .fox-desc__item { font-size: 11px; }

/* ── Promo badge ───────────────────────────────────────────────────────── */
.fox-promo-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700; line-height: 1;
    background: #DC2626; color: #fff;
    border-radius: 4px; padding: 2px 6px;
    letter-spacing: .01em;
    vertical-align: middle;
}
.fox-price-current { } /* hook for theme overrides */

/* Animation */
.fox-compact {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-duration: calc(var(--fox-animate, 0) * 0.4s);
}
.fox-animate .fox-compact { animation-duration: .4s; }

/* ══════════════════════════════════════════════════════════════════════════
   VERSUS — Side-by-side comparison
   ══════════════════════════════════════════════════════════════════════════ */

.fox-versus {
    font-family: var(--fox-font);
    display: flex; align-items: stretch; gap: 0;
    margin: 20px 0;
}

.fox-versus__col {
    flex: 1; background: var(--fox-bg);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius);
    box-shadow: var(--fox-shadow);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.fox-versus__col:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.13); }

.fox-versus__image-link {
    display: block; height: 180px;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    overflow: hidden;
}

.fox-versus__image {
    width: 100%; height: 100%; object-fit: contain; padding: 18px;
    transition: transform .3s;
}

.fox-versus__col:hover .fox-versus__image { transform: scale(1.05); }

.fox-versus__body {
    padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}

.fox-versus__brand {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--fox-accent);
}

.fox-versus__title {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--fox-text); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fox-versus__title a { color: inherit; text-decoration: none; }
.fox-versus__title a:hover { color: var(--fox-accent); }

.fox-versus__price {
    font-size: 20px; font-weight: 800; color: var(--fox-price);
    letter-spacing: -.03em; margin-top: auto;
}

.fox-versus__separator {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 56px;
}

.fox-versus__vs {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--fox-accent); color: var(--fox-btn-text);
    font-size: 13px; font-weight: 800; letter-spacing: .05em;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* ── Promo badge ───────────────────────────────────────────────────────── */
.fox-promo-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700; line-height: 1;
    background: #DC2626; color: #fff;
    border-radius: 4px; padding: 2px 6px;
    letter-spacing: .01em;
    vertical-align: middle;
}
.fox-price-current { } /* hook for theme overrides */

/* Animation */
.fox-versus__col {
    animation: fox-slide-up .4s cubic-bezier(.16,1,.3,1) both;
    animation-duration: calc(var(--fox-animate, 0) * 0.4s);
}
.fox-versus__col:nth-child(3) { animation-delay: .08s; }
.fox-animate .fox-versus__col { animation-duration: .4s; }

@media (max-width: 640px) {
    .fox-versus { flex-direction: column; gap: 0; }
    .fox-versus__separator { width: auto; height: 48px; }
    .fox-versus__image-link { height: 150px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHOWCASE — Hero full-width card
   ══════════════════════════════════════════════════════════════════════════ */

.fox-showcase {
    font-family: var(--fox-font);
    display: flex; gap: 0;
    background: var(--fox-bg);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius-lg);
    box-shadow: var(--fox-shadow);
    overflow: hidden;
    margin: 24px 0;
    transition: box-shadow .25s;
}

.fox-showcase:hover { box-shadow: 0 12px 48px rgba(0,0,0,.14); }

.fox-showcase__image-link {
    flex-shrink: 0; width: 40%;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; min-height: 280px;
}

.fox-showcase__image {
    width: 100%; height: 100%; object-fit: contain; padding: 28px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.fox-showcase:hover .fox-showcase__image { transform: scale(1.04); }

.fox-showcase__body {
    flex: 1; padding: 24px 28px;
    display: flex; flex-direction: column; gap: 12px;
}

.fox-showcase__header { display: flex; flex-direction: column; gap: 6px; }

.fox-showcase__brand {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--fox-accent);
}

.fox-showcase__title {
    font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--fox-text); margin: 0;
}
.fox-showcase__title a { color: inherit; text-decoration: none; }
.fox-showcase__title a:hover { color: var(--fox-accent); }

.fox-showcase__rating { display: flex; align-items: center; gap: 6px; }

.fox-showcase__history { padding-top: 8px; border-top: 1px dashed var(--fox-border); }

.fox-showcase__footer {
    display: flex; align-items: center; gap: 16px; margin-top: auto;
    padding-top: 12px; border-top: 1px solid var(--fox-border);
}

.fox-showcase__price-block { display: flex; flex-direction: column; }

.fox-showcase__price {
    font-size: 28px; font-weight: 800; color: var(--fox-price);
    letter-spacing: -.04em; line-height: 1;
}

.fox-showcase__btn { padding: 12px 28px; font-size: 15px; }

/* Showcase desc styling — larger for hero context */
.fox-showcase .fox-desc__item { font-size: 13px; }
.fox-showcase .fox-desc__list { gap: 6px; }

/* ── Promo badge ───────────────────────────────────────────────────────── */
.fox-promo-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700; line-height: 1;
    background: #DC2626; color: #fff;
    border-radius: 4px; padding: 2px 6px;
    letter-spacing: .01em;
    vertical-align: middle;
}
.fox-price-current { } /* hook for theme overrides */

/* Animation */
.fox-showcase {
    animation: fox-slide-up .5s cubic-bezier(.16,1,.3,1) both;
    animation-duration: calc(var(--fox-animate, 0) * 0.5s);
}
.fox-animate .fox-showcase { animation-duration: .5s; }

@media (max-width: 720px) {
    .fox-showcase { flex-direction: column; }
    .fox-showcase__image-link { width: 100%; min-height: 200px; height: 220px; }
    .fox-showcase__body { padding: 20px; }
    .fox-showcase__title { font-size: 18px; }
    .fox-showcase__price { font-size: 24px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   STRIP — Thin inline product banner
   ══════════════════════════════════════════════════════════════════════════ */

.fox-strip {
    font-family: var(--fox-font);
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--fox-bg);
    border: 1px solid var(--fox-border);
    border-radius: var(--fox-radius-sm);
    padding: 6px 14px 6px 6px;
    text-decoration: none !important;
    transition: border-color .18s, box-shadow .18s, transform .15s;
    margin: 6px 0;
    max-width: 100%;
}

.fox-strip:hover {
    border-color: var(--fox-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.fox-strip__thumb {
    width: 32px; height: 32px; object-fit: contain;
    border-radius: 4px; flex-shrink: 0;
    background: linear-gradient(135deg,#f8fafc,#f1f5f9);
    padding: 2px;
}

.fox-strip__title {
    font-size: 13px; font-weight: 500; color: var(--fox-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0; flex: 1;
}

.fox-strip__price {
    font-size: 14px; font-weight: 800; color: var(--fox-price);
    white-space: nowrap; flex-shrink: 0;
}

.fox-strip__arrow {
    font-size: 14px; color: var(--fox-accent);
    transition: transform .18s; flex-shrink: 0;
}

.fox-strip:hover .fox-strip__arrow { transform: translateX(3px); }

/* ── Promo badge ───────────────────────────────────────────────────────── */
.fox-promo-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700; line-height: 1;
    background: #DC2626; color: #fff;
    border-radius: 4px; padding: 2px 6px;
    letter-spacing: .01em;
    vertical-align: middle;
}
.fox-price-current { } /* hook for theme overrides */

/* Animation */
.fox-strip {
    animation: fox-fade-in .3s ease both;
    animation-duration: calc(var(--fox-animate, 0) * 0.3s);
}
.fox-animate .fox-strip { animation-duration: .3s; }
