/*
 * Shared drag-carousel system — homepage [mr_products_carousel] (Trending)
 * and [mr_arrivals] (New Arrivals) both render this same markup/CSS.
 * Card internals mirror .carousel-slide .card-* in
 * website_reference/homepage_6.html.
 *
 * @package log-core
 */

.pc-section { padding: 80px 0; overflow: visible; }
.pc-section .wrap { overflow: visible; }
.pc-section.bg-blush { background: var(--paper); }
.pc-section.bg-white { background: var(--paper-50); }

.pc-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
.pc-head-left { display: flex; flex-direction: column; gap: 12px; }
.pc-head-right { display: flex; align-items: center; gap: 8px; }

/* ── Product card. Only the two homepage carousels render this markup;
   the shop archive and the mr-* blocks each ship their own card. ── */
/* .prod-card {
	background: var(--surface);
	border: 1px solid rgba(238, 238, 238, .6);
	border-radius: var(--r-md);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	cursor: pointer;
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
} */

.prod-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 4px 24px -4px rgba(8, 29, 80, .08), 0 1px 4px rgba(8, 29, 80, .04); text-decoration: none; color: inherit; display: block; cursor: pointer; transition: box-shadow .3s var(--ease); }

.prod-card:hover {
	border-color: var(--gold-600);
	box-shadow: 0 8px 40px -8px rgba(10, 10, 10, .13), 0 2px 8px rgba(10, 10, 10, .05);
}

.prod-visual { position: relative; background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prod-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.prod-card:hover .prod-img { transform: scale(1.05); }
.prod-body { padding: 20px 22px 22px; }

.p-name { font-size: 17px; font-weight: 700; color: var(--ink-900); line-height: 1.35; margin-bottom: 9px; }

.p-stars { display: flex; align-items: center; gap: 3px; margin-bottom: 11px; }
.p-stars .icon { width: 14px; height: 14px; fill: var(--gold-600); stroke: none; }
.p-stars .icon.star--muted { fill: var(--gray-light); }
.p-rating-count { font-size: 13px; font-weight: 600; color: var(--gray-mid); margin-left: 4px; }

.p-price { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink-900); margin-bottom: 16px; }
.p-price del { opacity: .5; font-size: .7em; font-weight: 600; margin-right: 4px; }

.select-btn {
	display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: var(--r-pill);
    background: var(--gold-tint);
    border: none;
    color: var(--ink-900);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all .25s var(--ease);
    box-sizing: border-box;
}

.select-btn:hover {
	background: var(--gold-600);
	color: var(--white);
}

.select-btn:active { transform: scale(.95); }

/* ── Nav arrow buttons ── */
.carousel-nav-btn {
	width: 40px; height: 40px; border-radius: 8px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink-900);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.carousel-nav-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.carousel-nav-btn:hover:not(:disabled) {
	background: var(--gold-600);
	border-color: var(--gold-600);
	color: #fff;
}

.carousel-nav-btn:disabled { opacity: .38; cursor: not-allowed; }

/* ── Carousel track ── */
.pc-carousel-outer { overflow: clip; padding: 40px 20px; margin: -40px -20px; clip-path: inset(-80px 0px -80px 0px); }

.pc-carousel-track { display: flex; align-items: stretch; gap: 24px; transition: transform .45s var(--ease); will-change: transform; cursor: grab; user-select: none; }
.pc-carousel-track:active { cursor: grabbing; }

.pc-slide { flex: 0 0 calc((100% - 3*24px) / 4); min-width: 0; display: flex; }

@media (max-width: 1200px) { .pc-slide { flex: 0 0 calc((100% - 2*24px) / 3); } }
@media (max-width: 900px)  { .pc-slide { flex: 0 0 calc((100% - 1*24px) / 2); } }
@media (max-width: 480px)  { .pc-slide { flex: 0 0 calc(100% - 48px); } }

/* Equal-height cards: body stretches, footer pins to the bottom. */
.pc-slide .prod-card { width: 100%; display: flex; flex-direction: column; flex: 1; position: relative; }
.pc-slide .prod-card .prod-body { display: flex; flex-direction: column; flex: 1; }
.pc-slide .prod-visual { flex-shrink: 0; aspect-ratio: 4 / 3; height: auto; }
.pc-slide .prod-card .select-btn { margin-top: auto; }

.prod-badge-new,
.prod-badge-hot {
	position: absolute;
	top: 14px;
	left: 14px;
	font-size: 10px;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: var(--r-pill);
	text-transform: uppercase;
	letter-spacing: .1em;
	z-index: 2;
}

.prod-badge-new { background: var(--gold-600); color: #fff; }
.prod-badge-hot { background: var(--ink-900); color: #fff; }

/* ── Responsive card internals, matching the reference's 480/768 steps ── */
@media (max-width: 767px) {
	.prod-body { padding: 12px; }
	.p-name { font-size: 13px; line-height: 1.3; }
	.p-stars .icon { width: 11px; height: 11px; }
	.p-rating-count { font-size: 11px; }
	.p-price { font-size: 14px; }
	.select-btn { font-size: 11px; padding: 10px; }
	.prod-badge-new,
	.prod-badge-hot { font-size: 8px; padding: 2px 5px; top: 5px; left: 5px; }
}

@media (max-width: 479px) {
	.prod-body { padding: 8px; }
	.p-name { font-size: 11px; }
	.p-price { font-size: 12px; }
	.select-btn { font-size: 9px; padding: 7px; }
}

@media (max-width: 480px) {
	.pc-head-row { flex-direction: column; align-items: flex-start; }
	.pc-head-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 380px) {
	.pc-section { padding: 60px 0; }
	.pc-slide { flex: 0 0 calc(100% - 32px); }
}
