/* Product card (Figma 32739:1983), shared price/stock atoms and the service info strip. Loaded on every page. Mobile first. */

/* --- Shared atoms (also used by the product page) --------------------------------------- */
.stock {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	font: 500 12px/1.2 var(--font-text); color: var(--stock-in-t);
}
.stock::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--stock-in); }
.stock--low { color: var(--stock-low-t); }
.stock--low::before { background: var(--stock-low); }
.stock--out { color: var(--stock-out-t); }
.stock--out::before { background: var(--stock-out); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.price__now { font: 500 20px/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.price__from { font: 400 12px/1 var(--font-text); letter-spacing: 0; color: var(--ink-70); }
.price__was { font: 400 12px/1 var(--font-text); color: var(--ink-70); white-space: nowrap; }
.price__was .amount { text-decoration: line-through; }
.badge-save {
	display: inline-flex; align-items: center; padding: 3px 6px; border-radius: var(--r-tag);
	background: color-mix(in srgb, var(--mint) 13%, var(--paper));
	font: 500 11px/1.2 var(--font-text); color: var(--stock-in-t); white-space: nowrap;
}

/* --- Card --------------------------------------------------------------------------------- */
.pcard {
	position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%;
	padding: 12px 12px 16px;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s;
}
.pcard:focus-within { box-shadow: var(--sh-lg); }
@media (hover: hover) {
	.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
}

.pcard__media {
	position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5;
	border-radius: var(--r-img); background: var(--grad-tile); overflow: hidden;
}
.pcard__img {
	position: absolute; inset: 0; width: 100%; height: 100%; padding: 6%; object-fit: contain; /* pinned to the box (a grid item would take the square image height); padding keeps the vial off the edges */
	mix-blend-mode: multiply; /* white render background melts into the tile */
	transition: transform .5s var(--ease), opacity .3s;
}
@media (hover: hover) { .pcard:hover .pcard__img { transform: scale(1.04); } }
.pcard--out .pcard__img { opacity: .5; filter: grayscale(.6); }

.pcard__flags { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.pcard__flag {
	padding: 5px 9px; border-radius: var(--r-tag); background: var(--grad); box-shadow: var(--sh-btn);
	font: 500 11px/1.2 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--paper);
}
.pcard__flag--best { background: var(--grad-blue); box-shadow: var(--sh-btn-blue); }
.pcard__flag--out { background: var(--wash); box-shadow: none; color: var(--ink-70); }

.pcard__sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }

.pcard__text { display: flex; flex-direction: column; gap: 6px; padding-inline: 4px; }
.pcard__name { overflow-wrap: anywhere; }
.pcard__name a { color: var(--ink); text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* whole card is the link */
.pcard__stock { margin-top: 2px; }

/* The price follows the stock line directly; only the button is pinned to the bottom (margin-top: auto),
   so an Omnibus line in one card no longer pushes the prices of its row neighbours apart. */
.pcard__foot { display: flex; flex: 1; flex-direction: column; gap: 12px; padding-inline: 4px; }
.pcard__prices { display: flex; flex-direction: column; gap: 6px; }
.pcard__prices .omnibus { margin: 0; font-size: 11px; line-height: 1.3; color: var(--ink-70); }
.pcard__prices .omnibus .amount { white-space: nowrap; }

.pcard__btn {
	position: relative; z-index: 2; gap: 8px; min-height: 44px; margin-top: auto; padding: 10px 12px;
	white-space: nowrap; background: var(--paper);
}
.pcard__btn:hover { transform: none; }
.pcard__btn .btn__icon { display: none; } /* no room beside the label in a 2-column phone grid */
@media (hover: hover) {
	.pcard__btn:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
}
.pcard__btn.loading { opacity: .6; pointer-events: none; }
.pcard__btn.added::after {
	content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: url(../icons/check.svg) center / contain no-repeat; mask: url(../icons/check.svg) center / contain no-repeat;
}
.pcard .added_to_cart { display: none; } /* Woo's injected "View cart": the header drawer opens instead */

@media (min-width: 640px) {
	.pcard__btn { padding-inline: 16px; }
	.pcard__btn .btn__icon { display: block; }
}
@media (min-width: 860px) {
	.pcard { padding: 16px 16px 20px; }
	.pcard__flag { top: 12px; left: 12px; }
}

/* --- Info strip: 4 service tiles (Figma trust tile 32727:1063) ---------------------------- */
.info-strip {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
	padding-block: 48px;
}
.info-tile {
	min-width: 0; overflow-wrap: anywhere;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
	padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
}
/* .icon-circle: base.css */
.info-tile:nth-child(2) .icon-circle { background: var(--orange-200); }
.info-tile:nth-child(3) .icon-circle { background: var(--orange-300); }
.info-tile:nth-child(4) .icon-circle { background: var(--accent); color: var(--paper); }
.info-tile__title { margin: 0; font: 500 16px/1.2 var(--font-text); color: var(--ink); }
.info-tile__text { margin: 0; color: var(--ink-70); }

@media (min-width: 640px) {
	.info-tile { padding: 20px; }
	.info-tile__title { font-size: 18px; }
}
@media (min-width: 1180px) {
	.info-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 64px; }
}
