/* ============================================
   Nova Shop/Catalog (PLP) -- Phase 05 CSS
   Includes: Header Overrides, Hero Stats, Carousel,
   Search Bar, Results Bar, and Product Cards
   ============================================ */

/* ----------------------------------------
   Transparent WooCommerce Header Fixes
   ---------------------------------------- */
   /* body.woocommerce-page #masthead.site-header {
    background-color: transparent !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: none !important;
    z-index: 100;
} */

/* Push the hero section's content down so it doesn't hide behind the logo */
/* body.woocommerce-page .nova-shop-hero__content {
    padding-top: 120px;
}

@media (max-width: 991px) {
    body.woocommerce-page .nova-shop-hero__content {
        padding-top: 100px;
    }
}

@media (max-width: 767px) {
    body.woocommerce-page .nova-shop-hero__content {
        padding-top: 80px;
    }
} */

/* ----------------------------------------
   Shop Hero Stats & Dividers
   ---------------------------------------- */
.nova-shop-hero__stats {
    display: flex;
    align-items: center;
    gap: 0 !important;
    flex-wrap: nowrap;
}

.nova-shop-hero__stat {
    padding: 0 32px;
}

.nova-shop-hero__stat:first-child {
    padding-left: 0;
}

.nova-shop-hero__stat:last-child {
    padding-right: 0;
}

/* The vertical divider line */
.nova-shop-hero__stat + .nova-shop-hero__stat {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

/* Responsive stats */
@media (max-width: 991px) {
    .nova-shop-hero__stat {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .nova-shop-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .nova-shop-hero__stats {
        width: 100%;
        justify-content: space-between;
    }

    .nova-shop-hero__stat {
        padding: 0 8px;
    }

    .nova-shop-hero__stat-num {
        font-size: 24px;
    }
    .nova-shop-hero__stat-label {
        font-size: 12px;
    }
}

/* ----------------------------------------
   Search Bar & Results Bar styles moved to
   nova-shop.css (single source of truth).
   ---------------------------------------- */

/* ----------------------------------------
   Product Card (Fixed Grid & Contain Fit)
   ---------------------------------------- */
.nova-shop-card {
    position: relative;
    background: #e8eaf6;
    border-radius: var(--nova-radius-card);
    padding: 24px;
    width: 320px;
    height: 520px; /* Locked height */
    display: flex;
    flex-direction: column;
    list-style: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

/* Stretched link — covers the entire card, sits below interactive elements */
.nova-shop-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--nova-radius-card);
}

.nova-shop-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nova-shop-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    height: 96px; /* Locked header height */
    margin-bottom: 16px;
}

.nova-shop-card__titles {
    flex: 1;
    min-width: 0;
}

.nova-shop-card__name {
    font-family: var(--nova-font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--nova-text-dark);
    margin: 0;

    /* Clamp text to 2 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-shop-card__tagline {
    display: block;
    font-family: var(--nova-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--nova-text-dark);
    opacity: 0.6;
    margin-top: 4px;
}

.nova-shop-card__info {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nova-text-dark);
    opacity: 0.8;
    cursor: pointer;
}

.nova-shop-card__info:hover {
    opacity: 1;
}

.nova-shop-card__image {
    position: relative;
    height: 220px; /* Locked image container height */
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.nova-shop-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Keeps vial fully visible */
    display: block;
    background: transparent;
    filter:
        drop-shadow(0px 8px 17px rgba(0, 0, 0, 0.10))
        drop-shadow(0px 31px 31px rgba(0, 0, 0, 0.09))
        drop-shadow(0px 70px 42px rgba(0, 0, 0, 0.05));
}

.nova-shop-card__price {
    font-family: var(--nova-font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #2a2c31;
    margin-bottom: 16px;
}

.nova-shop-card__price del {
    opacity: 0.6;
    font-weight: 400;
    font-size: 16px;
    margin-right: 4px;
    text-decoration: line-through;
    color: var(--nova-text-dark);
    display: flow;
}

.nova-shop-card__price ins {
    text-decoration: none;
    color: var(--nova-badge-sale);
}

.nova-shop-card__atc {
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    background: var(--nova-accent);
    color: var(--nova-text-primary);
    border: none;
    border-radius: var(--nova-radius-button);
    padding: 14px 28px;
    font-family: var(--nova-font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto; /* Pushes button to the bottom */
    min-height: auto;
}

.nova-shop-card__atc:hover {
    background: var(--nova-accent-hover);
    color: var(--nova-text-primary);
}

/* AJAX loading state for ATC */
.nova-shop-card__atc.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--nova-text-primary);
    border-radius: 50%;
    animation: nova-spin 0.6s linear infinite;
}

.nova-shop-card__atc.loading {
    font-size: 0;
}

.nova-shop-card__atc.added {
    background: #6b3fd4;
}

/* ---- Tooltip Hover Logic ---- */
.nova-shop-card__info-container {
    position: relative;
    /* Must sit above the badges (z-index: 2) in .nova-shop-card__image so that
       the tooltip — which is clipped by this container's stacking context —
       can drop down over the image area without being covered by badges. */
    z-index: 20;
    display: inline-block;
}

/* Further elevate while the tooltip is visible so nothing in the card can
   ever obscure the key-features list (e.g. hover-only overlays). */
.nova-shop-card__info-container:hover {
    z-index: 50;
}

/* Icon changes to solid purple on hover */
.nova-shop-card__info-container:hover .nova-shop-card__info {
    color: var(--nova-text-primary);
    opacity: 1;
}

.nova-shop-card__info-container:hover .nova-shop-card__info svg {
    fill: var(--nova-accent); /* Fills circle */
    stroke: var(--nova-text-primary); /* Makes 'i' white */
}

/* Turns off the outer stroke so it matches your image perfectly */
.nova-shop-card__info-container:hover .nova-shop-card__info svg circle {
    stroke: transparent;
}

/* ---- Tooltip Box ---- */
.nova-shop-card__tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 280px;
    background: var(--nova-bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none; /* Prevents the box itself from triggering hovers */
    text-align: left;
}

/* Show tooltip on hover */
.nova-shop-card__info-container:hover .nova-shop-card__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---- Tooltip Content ---- */
.nova-shop-card__tooltip-title {
    display: block;
    font-family: var(--nova-font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--nova-text-dark);
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.nova-shop-card__tooltip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nova-shop-card__tooltip-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--nova-font-body);
    font-size: 14px;
    color: var(--nova-text-dark);
    line-height: 1.4;
    margin: 0;
}

.nova-shop-card__tooltip-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   Nova Home / Related Product Card
   Mirrors shop card design — no tooltip,
   key features shown inline.
   Default: dark (homepage) | --light: related products (PDP)
   ============================================ */

/* Dark variant — homepage default */
.nova-product-card {
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(var(--nova-glass-blur));
    -webkit-backdrop-filter: blur(var(--nova-glass-blur));
    border-radius: var(--nova-radius-card);
    padding: 24px;
    width: 400px;
    /* subgrid: each card spans 5 row tracks of .nova-product-grid so all cards
       in the same row share identical row heights — header shrinks when all
       names are 1-liners, grows only when one card needs 2 lines */
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    transition: border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

/* Light variant — related products (PDP) */
.nova-product-card--light {
    background: #e8eaf6;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Stretched link — covers the entire card, sits below interactive elements */
.nova-product-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--nova-radius-card);
}

.nova-product-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nova-product-card--light:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.nova-product-card__header {
    grid-row: 1;
    align-self: start;
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.nova-product-card__titles {
    flex: 1;
    min-width: 0;
}

.nova-product-card__name {
    font-family: var(--nova-font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--nova-text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nova-product-card--light .nova-product-card__name {
    color: var(--nova-text-dark);
}

.nova-product-card__tagline {
    display: block;
    font-family: var(--nova-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--nova-text-muted);
    margin-top: 4px;
}

.nova-product-card--light .nova-product-card__tagline {
    color: rgba(10, 10, 14, 0.6);
}

/* Wrapper holds image + absolute badge overlays */
.nova-product-card__image-wrap {
    grid-row: 3;
    align-self: start;
    position: relative;
    margin-bottom: 16px;
}

.nova-product-card__image {
    height: 280px;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-product-card__image img {
    max-width: 100%;
    max-height: 100%;
    /* width: auto;
    height: auto; */
    object-fit: contain;
    display: block;
    background: transparent;
    filter:
        drop-shadow(0px 8px 17px rgba(0, 0, 0, 0.10))
        drop-shadow(0px 31px 31px rgba(0, 0, 0, 0.09))
        drop-shadow(0px 70px 42px rgba(0, 0, 0, 0.05));
}

.nova-product-card__features {
    grid-row: 4;
    align-self: start;
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nova-product-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--nova-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.nova-product-card--light .nova-product-card__features li {
    color: var(--nova-text-dark);
}

.nova-product-card__features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Dark variant (default): white circle, accent purple check */
.nova-product-card__features li svg rect {
    fill: var(--nova-text-primary);
}

.nova-product-card__features li svg path {
    stroke: var(--nova-accent);
}

/* Light variant: accent purple circle, white check */
.nova-product-card--light .nova-product-card__features li svg rect {
    fill: var(--nova-accent);
}

.nova-product-card--light .nova-product-card__features li svg path {
    stroke: var(--nova-text-primary);
}

.nova-product-card__price {
    font-family: var(--nova-font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nova-text-primary);
    margin: 16px 0;
}

.nova-product-card--light .nova-product-card__price {
    color: #2a2c31;
}

.nova-product-card__price del {
    opacity: 0.6;
    font-weight: 400;
    font-size: 16px;
    margin-right: 4px;
    text-decoration: line-through;
}

.nova-product-card__price ins {
    text-decoration: none;
    color: var(--nova-badge-sale);
}

.nova-product-card__atc {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    background: var(--nova-accent);
    color: var(--nova-text-primary);
    border: none;
    border-radius: var(--nova-radius-button);
    padding: 14px 28px;
    font-family: var(--nova-font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto;
    min-height: 48px;
}

.nova-product-card__atc:hover {
    background: var(--nova-accent-hover);
    color: var(--nova-text-primary);
}

.nova-product-card__atc.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--nova-text-primary);
    border-radius: 50%;
    animation: nova-spin 0.6s linear infinite;
}

.nova-product-card__atc.loading {
    font-size: 0;
}

.nova-product-card__atc.added {
    background: #6b3fd4;
}

.nova-product-card .price-button-container {
    grid-row: 5;
    display: grid;
    /* align-self: end; */
}

@keyframes nova-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- COA Analysis Overlay (PLP hover) ---- */

.nova-shop-card__coa-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 10;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.nova-shop-card:hover .nova-shop-card__coa-overlay,
.nova-shop-card--coa-visible .nova-shop-card__coa-overlay {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
}

.nova-shop-card__coa-overlay-inner {
    position: relative;
    z-index: 11;
}

.nova-shop-card__coa-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Stack Sans Text', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0a0a0e;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e6f2;
}

.nova-shop-card__coa-overlay-logo {
    color: #8a4fff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 11px;
}

.nova-shop-card__coa-overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nova-shop-card__coa-overlay-list li {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    margin-bottom: 6px;
}

.nova-shop-card__coa-overlay-list li:last-child {
    margin-bottom: 0;
}

.nova-shop-card__coa-overlay-list .lbl {
    color: #0a0a0e;
    opacity: 0.5;
}

.nova-shop-card__coa-overlay-list .val {
    font-weight: 500;
    color: #0a0a0e;
    text-align: right;
}

.nova-shop-card__coa-overlay-list .val.highlight {
    color: #8a4fff;
    background: rgba(138, 79, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .nova-shop-card__coa-overlay {
        width: 200px;
        padding: 16px;
    }

    .nova-product-card {
        width: calc((100% - 0.2 * 16px) / 1.2);
        height: fit-content !important;
        min-height: 0;
    }
}

.added_to_cart.wc-forward{
    display: none;
}

/* Phase 21 — Research summary, purity badge, bulk discount tag */

.nova-product-card__summary {
	grid-row: 2;
	align-self: start;
	font-size: 13px;
	line-height: 1.5;
	color: rgba( 255, 255, 255, 0.7 );
	margin: 4px 0 8px;
	/* padding: 0 16px; */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	/* overflow: hidden; */
}

.nova-product-card--light .nova-product-card__summary {
	color: rgba( 0, 0, 0, 0.6 );
}

/* ─── Purity stamp — bottom-left of image, circular ink-stamp style ─────── */
.nova-product-card__purity {
	position: absolute;
	bottom: 10px;
	left: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 56px;
	height: 56px;
	padding: 6px;
	text-align: center;
	color: var(--nova-bg-primary);
	background: rgba(255, 255, 255, 0.96);
	border-radius: 50%;
	border: 1.5px solid rgba(var(--nova-accent-rgb), 0.35);
	outline: 1.5px dashed rgba(var(--nova-accent-rgb), 0.25);
	outline-offset: 4px;
	box-shadow: 0 3px 14px rgba(var(--nova-accent-rgb), 0.2);
	z-index: 2;
	transform: rotate(-12deg);
}

.nova-product-card__purity-icon {
	display: block;
	flex-shrink: 0;
	background: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 2px;
	color: var(--nova-bg-primary);
}

.nova-product-card__purity-pct {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--nova-bg-primary);
	line-height: 1.1;
}

.nova-product-card__purity-label {
	display: block;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--nova-bg-primary);
	opacity: 0.65;
	line-height: 1.2;
}

/* Smaller stamp inside shop cards (220px image area) */
.nova-shop-card__image .nova-product-card__purity {
	width: 46px;
	height: 46px;
	bottom: 8px;
	left: 10px;
}

/* ─── Discount badges — hang-tag shape, dangle from top edge of image ───── */

/* Base hang-tag shape shared by sale + bulk discount badges.
   NOTE: .nova-badge in nova-global.css is a pill utility (border-radius: 88px)
   used by blog cards, etc. We scope the hang-tag overrides to the two
   modifier classes (.nova-badge--sale / .nova-badge--bulk) so unmodified
   .nova-badge usage on other components keeps the global pill styling. */
.nova-badge--bulk,
.nova-badge--sale {
	position: absolute;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-width: 50px;
	padding: 14px 10px 16px;
	text-align: center;
	color: var(--nova-text-primary);
	border-radius: 0;
	clip-path: polygon(0 0, 100% 0, 100% 83%, 50% 100%, 0 83%);
	z-index: 2;
	transform-origin: top center;
	animation: nova-hang-sway 6s ease-in-out infinite;
}

/* Eyelet hole near top of every tag */
.nova-badge--bulk::before,
.nova-badge--sale::before {
	content: '';
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	border: 1.5px solid rgba(255, 255, 255, 0.45);
}

/* Bulk / quantity discount — top-right, savings green */
.nova-badge--bulk {
	right: 20px;
	background: linear-gradient(165deg, var(--nova-badge-bulk) 0%, var(--nova-badge-bulk-dark) 100%);
	/* filter: drop-shadow(2px 5px 12px rgba(0, 0, 0, 0.25)); */
}

/* Product sale price — top-left, sale red */
.nova-badge--sale {
	left: 20px;
	background: linear-gradient(165deg, var(--nova-badge-sale) 0%, var(--nova-badge-sale-dark) 100%);
	/* filter: drop-shadow(2px 5px 12px rgba(0, 0, 0, 0.25)); */
}

/* Text inside hang tags */
.nova-badge__top {
	display: block;
	font-size: 7px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.2;
	margin-top: 2px;
}

.nova-badge__pct {
	display: block;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #fff;
	margin: 2px 0 1px;
}

.nova-badge__lbl {
	display: block;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.2;
}

/* Sale badge has no "Save" header row — tighter layout */
.nova-badge--sale .nova-badge__pct {
	font-size: 18px;
	margin: 4px 0 2px;
}

/* Smaller tags inside shop cards (220px image area) */
.nova-shop-card__image .nova-badge {
	min-width: 38px;
	padding: 11px 8px 13px;
}

.nova-shop-card__image .nova-badge--bulk {
	right: 14px;
}

.nova-shop-card__image .nova-badge--sale {
	left: 14px;
}

.nova-shop-card__image .nova-badge__pct {
	font-size: 16px;
}

.nova-shop-card__image .nova-badge--sale .nova-badge__pct {
	font-size: 14px;
}

.nova-shop-card__image .nova-badge__top,
.nova-shop-card__image .nova-badge__lbl {
	font-size: 6px;
}

@keyframes nova-hang-sway {
	0%   { transform: rotate(0deg); }
	20%  { transform: rotate(-1.5deg); }
	50%  { transform: rotate(0deg); }
	70%  { transform: rotate(1.5deg); }
	100% { transform: rotate(0deg); }
}

/* ============================================
   Phase 29-05 — Responsive ladder for base
   .nova-product-card (NOT homepage carousel —
   that has its own scoped .nova-products
   .nova-product-card overrides in
   nova-homepage.css). Targets shop PLP, PDP
   related products, and any other context
   using the bare card.
   ============================================ */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
	.nova-product-card {
		width: 100%;
		padding: 20px;
	}

	.nova-product-card__image-wrap {
		padding: 12px 0;
	}

	.nova-product-card__image {
		height: 240px;
	}

	.nova-product-card__name {
		font-size: 18px;
		line-height: 1.2;
	}

	.nova-product-card__tagline {
		font-size: 12px;
	}

	.nova-product-card__summary {
		font-size: 13px;
		line-height: 1.5;
	}

	.nova-product-card__features li {
		font-size: 13px;
		line-height: 1.45;
	}

	.nova-product-card__price {
		font-size: 18px;
		margin: 12px 0;
	}

	.nova-product-card__price del {
		font-size: 14px;
	}

	.nova-product-card__atc {
		padding: 10px 16px;
		font-size: 13px;
		min-height: 44px;
	}
}

/* ---- Mobile (≤767px) ---- */
/* NOTE: existing block at line ~722 keeps .nova-product-card width:calc(...)
   + height:fit-content !important untouched (homepage carousel relies on
   that workaround being overridden by .nova-products scope). New rules
   here add typography, density, and bottom-aligned CTA via flex-column
   collapse. */
@media (max-width: 767px) {
	.nova-product-card {
		display: flex;
		flex-direction: column;
		padding: 16px;
	}

	.nova-product-card__header {
		margin-bottom: 6px;
	}

	.nova-product-card__name {
		font-size: 16px;
		line-height: 1.25;
	}

	.nova-product-card__tagline {
		font-size: 11px;
		margin-top: 2px;
		padding: 3px 8px;
	}

	.nova-product-card__image-wrap {
		margin-bottom: 12px;
	}

	.nova-product-card__image {
		height: 200px;
	}

	.nova-product-card__summary {
		font-size: 12px;
		line-height: 1.5;
		margin: 4px 0 6px;
	}

	.nova-product-card__features {
		margin: 12px 0;
		gap: 6px;
	}

	.nova-product-card__features li {
		font-size: 12px;
		line-height: 1.45;
	}

	.nova-product-card__price {
		font-size: 16px;
		margin: 10px 0;
	}

	.nova-product-card__price del {
		font-size: 13px;
	}

	.nova-product-card__atc {
		width: 100%;
		min-height: 44px;
		font-size: 13px;
		padding: 12px 16px;
		margin-top: auto;
	}

	.nova-product-card .price-button-container {
		margin-top: auto;
	}
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
	.nova-product-card {
		padding: 12px;
	}

	.nova-product-card__name {
		font-size: 15px;
		line-height: 1.25;
	}

	.nova-product-card__image {
		height: 180px;
	}

	.nova-product-card__summary {
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.nova-product-card__features li {
		font-size: 11.5px;
	}

	.nova-product-card__price {
		font-size: 15px;
	}

	.nova-product-card__atc {
		font-size: 12px;
		padding: 11px 14px;
	}

	/* COA hover overlay is a desktop-only feature (hover-triggered) —
	   irrelevant on touch devices at small-phone widths. */
	.nova-shop-card__coa-overlay {
		display: none;
	}
}

/* ── Out of Stock badge — shared across all Nova card types ── */
.nova-oos-badge {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 16px;
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(10, 10, 14, 0.45);
	background: rgba(10, 10, 14, 0.06);
	border: 1.5px solid rgba(10, 10, 14, 0.12);
	cursor: default;
	user-select: none;
    margin-top: auto;
}
