/* Product cards v3 (T-110). Active only while the html element has the class fcc, which wp_head sets from the
   fc_cards_v3_mode option. Every rule carries the prefix html.fcc :is(#fcy, body): the :is() gives it ID weight on every
   page, so it wins over the homepage rail rules (#fcy ...) and the old theme card rules in main-2.0.22.css. */
html.fcc { --fcc-ink: #0e0f11; --fcc-bronze: #cd7f32; --fcc-bronze-3: #a9621f; --fcc-line: #e2dfd8; --fcc-muted: #6b6f76; --fcc-text: #26282c; }

/* A card stays invisible until the script has built it; wp_head removes the fcc class again if the script never starts */
html.fcc :is(#fcy, body) ul.products li.product:not([data-fcc]) { opacity: 0; }
html.fcc :is(#fcy, body) ul.products li.type-product.product { font-family: roboto, Arial, sans-serif; color: var(--fcc-text); }

/* Grids everywhere except the homepage rails and Owl carousels: shop, categories, search, upsells, cross-sells */
html.fcc :is(#fcy, body) ul.products:not(.fcy-rail ul):not(.owl-carousel ul) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px !important; padding: 0 !important; }
html.fcc :is(#fcy, body) ul.products.columns-3:not(.fcy-rail ul):not(.owl-carousel ul) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.fcc :is(#fcy, body) ul.products.columns-2:not(.fcy-rail ul):not(.owl-carousel ul) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.fcc :is(#fcy, body) ul.products.columns-1:not(.fcy-rail ul):not(.owl-carousel ul) { grid-template-columns: minmax(0, 1fr); }
html.fcc :is(#fcy, body) ul.products:not(.fcy-rail ul):not(.owl-carousel ul)::before,
html.fcc :is(#fcy, body) ul.products:not(.fcy-rail ul):not(.owl-carousel ul)::after { display: none !important; }
html.fcc :is(#fcy, body) ul.products:not(.fcy-rail ul):not(.owl-carousel ul) li.type-product.product { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; clear: none !important; }

/* Owl carousels (cart): equal card heights; the old carousel rules hid the price suffix */
html.fcc :is(#fcy, body) .owl-carousel .owl-stage { display: flex; }
html.fcc :is(#fcy, body) .owl-carousel .owl-item { display: flex; }
html.fcc :is(#fcy, body) .owl-carousel .owl-item > .woocommerce,
html.fcc :is(#fcy, body) .owl-carousel .owl-item ul.products { display: flex !important; flex: 1 1 auto; width: 100%; margin: 0 !important; padding: 0 !important; }
html.fcc :is(#fcy, body) .owl-carousel ul.products li.type-product.product { flex: 1 1 auto; width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important; }
html.fcc :is(#fcy, body) .owl-carousel li.type-product .price .woocommerce-price-suffix { display: block !important; }

html.fcc :is(#fcy, body) .fcy-rail ul.products { padding-top: 8px !important; }
html.fcc :is(#fcy, body) ul.products li.type-product.product { background: #fff; border: 1px solid var(--fcc-line); padding: 0 !important; display: flex !important; flex-direction: column; position: relative; overflow: hidden; text-align: left !important; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s; }
html.fcc :is(#fcy, body) ul.products li.type-product.product:hover { transform: translateY(-4px); border-color: #cbc6bd; box-shadow: 0 18px 36px rgba(14,15,17,.10); }
html.fcc :is(#fcy, body) li.type-product > a.woocommerce-LoopProduct-link { display: flex !important; flex-direction: column; flex: 1 0 auto; margin: 0 !important; padding: 0 !important; color: inherit !important; text-decoration: none !important; }
html.fcc :is(#fcy, body) .fcc-media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
html.fcc :is(#fcy, body) .fcc-media img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: scale-down; margin: 0 !important; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
html.fcc :is(#fcy, body) li.type-product:hover .fcc-media img { transform: scale(1.06); }
html.fcc :is(#fcy, body) .fcc-media.is-empty { background: #f4f3f0; }
html.fcc :is(#fcy, body) .fcc-media.is-empty img { display: none !important; }
html.fcc :is(#fcy, body) .fcc-noimg { font-size: .66rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--fcc-muted); }
html.fcc :is(#fcy, body) .fcc-media::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--fcc-bronze); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
html.fcc :is(#fcy, body) li.type-product:hover .fcc-media::after { transform: scaleX(1); }
/* Discount badge left, approval seals right; the seals wrap below the badge when a narrow card has no room */
html.fcc :is(#fcy, body) .fcc-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; pointer-events: none; }
html.fcc :is(#fcy, body) .fcc-seals { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; max-width: 100%; }
html.fcc :is(#fcy, body) .fcc-seal { display: flex; align-items: center; gap: 6px; max-width: 100%; background: #fff; border: 1px solid var(--fcc-ink); padding: 5px 8px 5px 6px; font-size: .7rem; font-weight: 700; font-style: italic; line-height: 1.15; color: var(--fcc-ink); overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) .fcc-seal::before { content: ''; flex: 0 0 14px; width: 14px; height: 14px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232f9e5b'/%3E%3Cpath d='M4.6 8.3l2.3 2.3 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E"); }
html.fcc :is(#fcy, body) .fcc-badge { background: var(--fcc-bronze); color: var(--fcc-ink); font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-style: italic; font-size: .95rem; line-height: 1; padding: 6px 9px 5px; letter-spacing: .02em; }
html.fcc :is(#fcy, body) li.type-product .image-info-labels,
html.fcc :is(#fcy, body) li.type-product .onsale,
html.fcc :is(#fcy, body) li.type-product .aaakkkk,
html.fcc :is(#fcy, body) li.type-product .aaakkkk + br,
html.fcc :is(#fcy, body) li.type-product .nv-sto-price-ok,
html.fcc :is(#fcy, body) li.type-product .nv-sto-price-lo { display: none !important; }
html.fcc :is(#fcy, body) .fcc-body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; padding: 16px 16px 0; min-width: 0; }
/* The kicker reserves two lines and sits on the title; the rare three-line kicker grows its card */
html.fcc :is(#fcy, body) .fcc-kicker { font-size: .66rem; font-weight: 700; letter-spacing: 1.2px; line-height: 1.45; min-height: 2.9em; text-transform: uppercase; color: var(--fcc-bronze-3); overflow-wrap: anywhere; display: flex; flex-direction: column; justify-content: flex-end; }
html.fcc :is(#fcy, body) .fcc-kicker-text { font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.fcc :is(#fcy, body) li.type-product .woocommerce-loop-product__title { font-family: roboto, Arial, sans-serif !important; font-size: .98rem !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--fcc-ink) !important; margin: 0 !important; padding: 0 !important; min-height: 3.9em; text-align: left !important; white-space: normal !important; text-overflow: clip !important; overflow-wrap: anywhere; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden !important; }
html.fcc :is(#fcy, body) li.type-product .price { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 4px 0 0 !important; color: var(--fcc-ink) !important; text-align: left !important; font-size: 1rem !important; }
html.fcc :is(#fcy, body) li.type-product .price.fcc-empty { display: none !important; }
html.fcc :is(#fcy, body) li.type-product .price ins,
html.fcc :is(#fcy, body) li.type-product .price > .woocommerce-Price-amount { font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-style: italic; font-size: 1.4rem; line-height: 1.1; color: var(--fcc-ink) !important; background: none; text-decoration: none; margin: 0 !important; padding: 0 !important; }
html.fcc :is(#fcy, body) li.type-product .price.fcc-range > .woocommerce-Price-amount { font-size: 1.15rem; }
html.fcc :is(#fcy, body) li.type-product .price del { order: 1; font-size: .85rem; color: var(--fcc-muted) !important; opacity: 1; }
html.fcc :is(#fcy, body) .fcc-unit { order: 2; font-size: .76rem; font-style: italic; color: var(--fcc-muted); min-width: 0; overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) li.type-product .price .woocommerce-price-suffix { order: 3; flex-basis: 100%; font-size: .7rem !important; font-style: italic; color: var(--fcc-muted) !important; }
html.fcc :is(#fcy, body) .fcc-avail { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
html.fcc :is(#fcy, body) .fcc-qty { padding-left: 16px; font-size: .7rem; color: var(--fcc-muted); overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) .fcc-stock { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--fcc-text); overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) .fcc-stock::before { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
html.fcc :is(#fcy, body) .fcc-stock.is-ok::before { background: #2f9e5b; animation: fccPulse 2.4s ease-out infinite; }
html.fcc :is(#fcy, body) .fcc-stock.is-wait::before { background: #d99a2b; }
@keyframes fccPulse { 0% { box-shadow: 0 0 0 0 rgba(47,158,91,.45); } 70% { box-shadow: 0 0 0 7px rgba(47,158,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,158,91,0); } }
/* Approval conditions (registration, pending, none) sit in the body as tinted chips, toned by status */
html.fcc :is(#fcy, body) .fcc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
html.fcc :is(#fcy, body) .fcc-flag { max-width: 100%; padding: 3px 8px; border-radius: 2px; font-size: .72rem; font-weight: 600; font-style: italic; line-height: 1.3; background: #f0efed; color: var(--fcc-ink); overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) .fcc-flag.is-ok { background: #eef6f0; color: #1d5e37; }
html.fcc :is(#fcy, body) .fcc-flag.is-wait { background: #fbf2e1; color: #7a4f00; }
html.fcc :is(#fcy, body) .fcc-flag.is-no { color: #5d6168; }
html.fcc :is(#fcy, body) .fcc-facts { font-size: .74rem; color: var(--fcc-muted); line-height: 1.35; overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) .fcc-extra { font-size: .78rem; line-height: 1.45; color: var(--fcc-text); overflow-wrap: anywhere; }
html.fcc :is(#fcy, body) .fcc-extra * { font-size: inherit !important; width: auto !important; max-width: 100%; margin: 0 !important; float: none !important; position: static !important; }
html.fcc :is(#fcy, body) .fcc-extra br + br { display: none; }
html.fcc :is(#fcy, body) .fcc-extra i { color: var(--fcc-bronze-3); margin-right: 4px !important; }
html.fcc :is(#fcy, body) li.type-product a.button { position: static !important; inset: auto !important; transform: none !important; margin: 14px 16px 16px !important; width: auto !important; display: flex !important; align-items: center; justify-content: space-between; gap: 10px; background: var(--fcc-ink) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; padding: 13px 14px !important; font-size: .72rem !important; font-weight: 700 !important; letter-spacing: 1.4px; line-height: 1.25 !important; text-align: left; text-transform: uppercase; box-shadow: none !important; transition: background .25s, color .25s; }
html.fcc :is(#fcy, body) .fcc-btn-label { font-style: italic; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.fcc :is(#fcy, body) li.type-product a.button::after { flex: none; content: '\2192' !important; display: inline-block !important; position: static !important; font-family: Arial, sans-serif !important; font-size: 1rem; line-height: 1; transition: transform .25s; }
html.fcc :is(#fcy, body) li.type-product a.button:hover { background: var(--fcc-bronze) !important; color: var(--fcc-ink) !important; }
html.fcc :is(#fcy, body) li.type-product a.button:hover::after { transform: translateX(4px); }
html.fcc :is(#fcy, body) li.type-product a.button.loading { opacity: .65; }
html.fcc :is(#fcy, body) li.type-product a.button.added::after { content: '\2713' !important; }
html.fcc :is(#fcy, body) li.type-product a.added_to_cart { margin: -6px 16px 14px; font-size: .7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fcc-bronze-3) !important; }
html.fcc :is(#fcy, body) .fcc-pre { opacity: 0; }
html.fcc :is(#fcy, body) .fcc-pre.fcc-in { opacity: 1; animation: fccIn .7s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes fccIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 861px) and (max-width: 1180px) {
  html.fcc :is(#fcy, body) li.type-product a.button { letter-spacing: .6px; padding: 13px 10px !important; gap: 8px; }
}
@media (max-width: 860px) {
  html.fcc :is(#fcy, body) .fcc-body { padding: 12px 12px 0; }
  html.fcc :is(#fcy, body) li.type-product .woocommerce-loop-product__title { font-size: .88rem !important; }
  html.fcc :is(#fcy, body) li.type-product .price ins,
html.fcc :is(#fcy, body) li.type-product .price > .woocommerce-Price-amount { font-size: 1.15rem; }
  html.fcc :is(#fcy, body) li.type-product a.button { margin: 12px !important; padding: 11px 10px !important; font-size: .64rem !important; letter-spacing: 1px; }
  html.fcc :is(#fcy, body) .fcc-tags { top: 8px; left: 8px; right: 8px; gap: 4px; }
  html.fcc :is(#fcy, body) .fcc-badge { font-size: .82rem; }
  html.fcc :is(#fcy, body) .fcc-seal { font-size: .62rem; padding: 4px 6px 4px 5px; gap: 5px; }
  html.fcc :is(#fcy, body) .fcc-seal::before { flex-basis: 12px; width: 12px; height: 12px; }
  html.fcc :is(#fcy, body) .fcc-flag { font-size: .66rem; padding: 3px 6px; }
}
@media (max-width: 420px) {
  html.fcc :is(#fcy, body) .fcc-kicker { font-size: .6rem; letter-spacing: .6px; min-height: 4.35em; }
  html.fcc :is(#fcy, body) .fcc-kicker-text { -webkit-line-clamp: 4; }
  html.fcc :is(#fcy, body) li.type-product a.button { letter-spacing: .6px; padding: 10px 8px !important; gap: 6px; min-height: calc(2.5em + 20px); }
}
@media (prefers-reduced-motion: reduce) {
  html.fcc :is(#fcy, body) .fcc-pre { opacity: 1; }
  html.fcc :is(#fcy, body) .fcc-pre.fcc-in,
html.fcc :is(#fcy, body) .fcc-stock.is-ok::before { animation: none; }
}
@media print {
  html.fcc :is(#fcy, body) .fcc-pre { opacity: 1 !important; animation: none !important; }
}

@media (max-width: 1180px) {
  html.fcc :is(#fcy, body) ul.products.columns-4:not(.fcy-rail ul):not(.owl-carousel ul) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  html.fcc :is(#fcy, body) ul.products:not(.fcy-rail ul):not(.owl-carousel ul):not(.columns-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
