/* ==============================================
   Product Carousel — Frontend
   ============================================== */

/* ----------------------------------------------
   CSS custom properties (PRO style controls)
   ---------------------------------------------- */

.pc-carousel {
	position: relative;
	--mdpc-arrow-color:          #374151;
	--mdpc-arrow-color-hover:    #ffffff;
	--mdpc-arrow-bg:             #ffffff;
	--mdpc-arrow-bg-hover:       #4f46e5;
	--mdpc-arrow-size:           40px;
	--mdpc-arrow-icon-size:      18px;
	--mdpc-arrow-border-radius:  50%;
	--mdpc-arrow-shadow-h:       0px;
	--mdpc-arrow-shadow-v:       2px;
	--mdpc-arrow-shadow-blur:    8px;
	--mdpc-arrow-shadow-spread:  0px;
	--mdpc-arrow-shadow-color:   rgba(0,0,0,0.15);
	--mdpc-dot-color:            #d1d5db;
	--mdpc-dot-active-color:     #4f46e5;
	--mdpc-dot-size:             8px;
}

/* ----------------------------------------------
   Wrapper
   ---------------------------------------------- */

.pc-carousel-wrapper {
	position: relative;
	width: 100%;
	padding: 0 28px; /* room for arrows on both sides */
	box-sizing: border-box;
}

.pc-carousel-wrapper .swiper {
	padding-bottom: 40px; /* room for dots */
}

.pc-carousel .swiper-wrapper {
	align-items: stretch;
}

.pc-carousel .swiper-slide {
	height: auto;
}

/* ----------------------------------------------
   Navigation arrows
   ---------------------------------------------- */

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	transform: translateY(calc(-50% - 20px));
	z-index: 10;
	width: var(--mdpc-arrow-size);
	height: var(--mdpc-arrow-size);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mdpc-arrow-bg);
	border: none;
	border-radius: var(--mdpc-arrow-border-radius);
	box-shadow: var(--mdpc-arrow-shadow-h) var(--mdpc-arrow-shadow-v) var(--mdpc-arrow-shadow-blur) var(--mdpc-arrow-shadow-spread) var(--mdpc-arrow-shadow-color);
	cursor: pointer;
	transition: background .15s, box-shadow .15s, color .15s;
	color: var(--mdpc-arrow-color);
	outline: none;
	text-decoration: none;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev { left: 0; }
.pc-carousel .pc-carousel-wrapper .pc-carousel__next { right: 0; }

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:hover,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:hover,
.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:focus,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:focus {
	background: var(--mdpc-arrow-bg-hover);
	box-shadow: var(--mdpc-arrow-shadow-h) var(--mdpc-arrow-shadow-v) var(--mdpc-arrow-shadow-blur) var(--mdpc-arrow-shadow-spread) var(--mdpc-arrow-shadow-color);
	color: var(--mdpc-arrow-color-hover);
	outline: none;
	text-decoration: none;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:hover svg,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:hover svg,
.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:focus svg,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:focus svg,
.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:hover i,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:hover i,
.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:focus i,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:focus i {
	color: var(--mdpc-arrow-color-hover);
	stroke: var(--mdpc-arrow-color-hover);
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:hover svg path,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:hover svg path,
.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:focus svg path,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:focus svg path {
	fill: var(--mdpc-arrow-color-hover);
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:active,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:active {
	background: var(--mdpc-arrow-bg-hover);
	box-shadow: 0 1px 4px rgba(0,0,0,.15);
	color: var(--mdpc-arrow-color-hover);
	outline: none;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev:focus-visible,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next:focus-visible {
	outline: 2px solid var(--mdpc-arrow-bg-hover);
	outline-offset: 2px;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev.swiper-button-disabled,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next.swiper-button-disabled {
	opacity: .35;
	pointer-events: none;
	cursor: default;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev svg,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next svg {
	width: var(--mdpc-arrow-icon-size);
	height: var(--mdpc-arrow-icon-size);
	flex-shrink: 0;
	display: block;
	transition: stroke .15s;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev svg path,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next svg path {
	fill: var(--mdpc-arrow-color);
	transition: fill .15s;
}

.pc-carousel .pc-carousel-wrapper .pc-carousel__prev i,
.pc-carousel .pc-carousel-wrapper .pc-carousel__next i {
	font-size: var(--mdpc-arrow-icon-size);
	line-height: 1;
	transition: color .15s;
}

/* ----------------------------------------------
   Pagination dots
   ---------------------------------------------- */

.pc-carousel .pc-carousel__dots .swiper-pagination-bullet {
	width: var(--mdpc-dot-size);
	height: var(--mdpc-dot-size);
	background: var(--mdpc-dot-color);
	opacity: 1;
	border-radius: 50%;
	transition: background .2s, width .2s;
}

.pc-carousel .pc-carousel__dots .swiper-pagination-bullet-active {
	background: var(--mdpc-dot-active-color);
	width: calc(var(--mdpc-dot-size) * 2.5);
	border-radius: 4px;
}

/* ----------------------------------------------
   Product card
   ---------------------------------------------- */

.pc-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow .2s, transform .2s;
}

.pc-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
	transform: translateY(-2px);
}

/* Image */

.pc-card__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f9fafb;
}

.pc-card__image-wrap a {
	display: block;
	width: 100%;
	height: 100%;
}

.pc-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.pc-card:hover .pc-card__image {
	transform: scale(1.04);
}

/* Badges */

.pc-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pc-badge {
	display: inline-flex;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.4;
}

.pc-badge--sale        { background: #ef4444; color: #fff; }
.pc-badge--featured    { background: #3b82f6; color: #fff; }
.pc-badge--out-of-stock { background: #6b7280; color: #fff; }

/* Body */

.pc-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
}

.pc-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
}

.pc-card__title a,
.pc-card__title a:hover {
	color: inherit;
	text-decoration: none !important;
}

.pc-card__title a:hover {
	color: #4f46e5;
}

.pc-card__rating {
	display: flex;
	align-items: center;
}

.pc-card__rating .star-rating {
	font-size: 13px;
}

.pc-card__price {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin-top: auto;
}

.pc-card__price del {
	font-weight: 400;
	color: #9ca3af;
	font-size: 13px;
	margin-right: 4px;
}

.pc-card__price ins {
	text-decoration: none;
	color: #ef4444;
}

.pc-card__excerpt {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pc-card__stock {
	font-size: 12px;
}

.pc-card__actions {
	padding-top: 8px;
}

.pc-card__actions a,
.pc-card__actions a:hover {
	text-decoration: none !important;
}

.pc-card__actions .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 6px;
	padding: 7px 16px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mdpc-view-cart-color, #4f46e5);
	border: 1px solid var(--mdpc-view-cart-border, #4f46e5);
	border-radius: 6px;
	text-decoration: none !important;
	text-align: center;
	box-sizing: border-box;
	transition: background .15s, color .15s, border-color .15s;
}

.pc-card__actions .added_to_cart:hover {
	background: var(--mdpc-view-cart-bg-hover, #4f46e5);
	color: var(--mdpc-view-cart-color-hover, #fff);
	border-color: var(--mdpc-view-cart-bg-hover, #4f46e5);
	text-decoration: none !important;
}

.pc-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background .15s, box-shadow .15s;
	box-sizing: border-box;
}

.pc-card__btn--cart {
	background: #4f46e5;
	color: #fff;
}

.pc-card__btn--cart:hover {
	background: #3730a3;
	color: #fff;
}

.pc-card__btn--view {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.pc-card__btn--view:hover {
	background: #e5e7eb;
	color: #374151;
}

.pc-card__btn:focus-visible {
	outline: 2px solid #4f46e5;
	outline-offset: 2px;
}

/* ----------------------------------------------
   Skin: Minimal
   ---------------------------------------------- */

.pc-carousel--skin-minimal .pc-card {
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.pc-carousel--skin-minimal .pc-card:hover {
	box-shadow: none;
	transform: none;
}

.pc-carousel--skin-minimal .pc-card__image-wrap {
	border-radius: 6px;
	overflow: hidden;
}

.pc-carousel--skin-minimal .pc-card__body {
	padding: 10px 4px 12px;
}

.pc-carousel--skin-minimal .pc-card__btn--cart {
	background: transparent;
	color: #4f46e5;
	border: 1px solid #4f46e5;
}

.pc-carousel--skin-minimal .pc-card__btn--cart:hover {
	background: #4f46e5;
	color: #fff;
}

/* ----------------------------------------------
   Skin: Overlay (PRO)
   ---------------------------------------------- */

.pc-carousel--skin-overlay .pc-card {
	--mdpc-overlay-bg:              rgba(0,0,0,.85);
	--mdpc-overlay-text-color:      #ffffff;
	--mdpc-overlay-title-color:     #ffffff;
	--mdpc-overlay-sale-color:      #fbbf24;
	--mdpc-overlay-btn-bg:          rgba(255,255,255,.15);
	--mdpc-overlay-btn-color:       #ffffff;
--mdpc-overlay-btn-bg-hover:    #ffffff;
	--mdpc-overlay-btn-color-hover: #111827;
	border: none !important;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	aspect-ratio: 3 / 4;
}

.pc-carousel--skin-overlay .pc-card:hover {
	transform: none;
	box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.pc-carousel--skin-overlay .pc-card__image-wrap {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: unset;
}

.pc-carousel--skin-overlay .pc-card__image-wrap a {
	height: 100%;
}

.pc-carousel--skin-overlay .pc-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pc-carousel--skin-overlay .pc-card:hover .pc-card__image {
	transform: scale(1.06);
}

.pc-carousel--skin-overlay .pc-card__body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	flex: unset;
	padding: 20px 16px 16px;
	gap: 4px;
	background: linear-gradient(to top, var(--mdpc-overlay-bg) 0%, transparent 100%);
	color: var(--mdpc-overlay-text-color);
	transform: translateY(6px);
	opacity: .88;
	transition: transform .3s ease, opacity .3s ease;
}

.pc-carousel--skin-overlay .pc-card:hover .pc-card__body {
	transform: translateY(0);
	opacity: 1;
}

.pc-carousel--skin-overlay .pc-card__title a,
.pc-carousel--skin-overlay .pc-card__title a:hover {
	color: var(--mdpc-overlay-title-color);
	text-decoration: none !important;
}

.pc-carousel--skin-overlay .pc-card__title a:hover {
	opacity: .8;
}

.pc-carousel--skin-overlay .pc-card__price {
	color: var(--mdpc-overlay-text-color);
	margin-top: 0;
}

.pc-carousel--skin-overlay .pc-card__price del {
	color: var(--mdpc-overlay-text-color);
	opacity: .55;
}

.pc-carousel--skin-overlay .pc-card__price ins {
	color: var(--mdpc-overlay-sale-color);
}

.pc-carousel--skin-overlay .pc-card__excerpt {
	color: var(--mdpc-overlay-text-color);
	opacity: .8;
}

.pc-carousel--skin-overlay .pc-card__stock {
	color: var(--mdpc-overlay-text-color);
	opacity: .7;
}

.pc-carousel--skin-overlay .pc-card__rating .star-rating::before,
.pc-carousel--skin-overlay .pc-card__rating .star-rating span::before {
	color: #fbbf24;
}

.pc-carousel--skin-overlay .pc-card__btn--cart,
.pc-carousel--skin-overlay .pc-card__btn--view {
	background: var(--mdpc-overlay-btn-bg);
	border: none;
	color: var(--mdpc-overlay-btn-color);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.pc-carousel--skin-overlay .pc-card__btn--cart:hover,
.pc-carousel--skin-overlay .pc-card__btn--view:hover {
	background: var(--mdpc-overlay-btn-bg-hover);
	color: var(--mdpc-overlay-btn-color-hover);
	text-decoration: none !important;
}

/* ----------------------------------------------
   Progress bar (PRO)
   ---------------------------------------------- */

.pc-carousel {
	--mdpc-progress-height: 3px;
	--mdpc-progress-color:  #4f46e5;
	--mdpc-progress-bg:     rgba(0,0,0,0.08);
}

.pc-carousel__progress {
	height: var(--mdpc-progress-height);
	background: var(--mdpc-progress-bg);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 12px;
}

.pc-carousel__progress-bar {
	height: 100%;
	width: 0%;
	background: var(--mdpc-progress-color);
	border-radius: 999px;
	transition: width .3s ease;
}

/* ----------------------------------------------
   Fraction (PRO)
   ---------------------------------------------- */

.pc-carousel {
	--mdpc-fraction-size:          14px;
	--mdpc-fraction-color:         #6b7280;
	--mdpc-fraction-current-color: #111827;
}

.pc-carousel__fraction {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 10px;
	font-size: var(--mdpc-fraction-size);
	color: var(--mdpc-fraction-color);
	line-height: 1;
}

.pc-carousel__fraction-current {
	color: var(--mdpc-fraction-current-color);
	font-weight: 600;
}

/* ----------------------------------------------
   Scrollbar (PRO)
   ---------------------------------------------- */

.pc-carousel {
	--mdpc-scrollbar-height: 4px;
	--mdpc-scrollbar-color:  #4f46e5;
	--mdpc-scrollbar-bg:     rgba(0,0,0,0.08);
}

.pc-carousel__scrollbar {
	margin-top: 12px;
	height: var(--mdpc-scrollbar-height);
	background: var(--mdpc-scrollbar-bg);
	border-radius: 999px;
	cursor: pointer;
}

.pc-carousel__scrollbar .swiper-scrollbar-drag {
	background: var(--mdpc-scrollbar-color);
	border-radius: 999px;
	height: 100%;
}

/* ----------------------------------------------
   Pagination dots — centering (Swiper handles position, we fix alignment)
   ---------------------------------------------- */

.pc-carousel .pc-carousel__dots {
	text-align: center;
	width: 100%;
}

/* ----------------------------------------------
   Thumbnail navigation — PRO (official Swiper Thumbs)
   ---------------------------------------------- */

.pc-carousel {
	--mdpc-thumbs-active-color:  #4f46e5;

	/* Quick view defaults (synced to modal via JS) */
	--mdpc-qv-modal-bg:          #ffffff;
	--mdpc-qv-modal-radius:      12px;
	--mdpc-qv-title-color:       #111827;
	--mdpc-qv-excerpt-color:     #6b7280;
	--mdpc-qv-sale-color:        #ef4444;
	--mdpc-qv-btn-bg:            #4f46e5;
	--mdpc-qv-btn-color:         #ffffff;
	--mdpc-qv-btn-bg-hover:      #3730a3;
	--mdpc-qv-btn-color-hover:   #ffffff;
	--mdpc-qv-link-color:        #6b7280;
	--mdpc-qv-link-color-hover:  #4f46e5;
	--mdpc-qv-close-size:        32px;
	--mdpc-qv-close-radius:      50%;
	--mdpc-qv-close-bg:          transparent;
	--mdpc-qv-close-color:       #6b7280;
	--mdpc-qv-close-bg-hover:    #f3f4f6;
	--mdpc-qv-close-color-hover: #111827;
}

.pc-carousel__thumbs-swiper {
	margin-top: 12px;
	padding: 0 28px;
	box-sizing: border-box;
}

.pc-carousel__thumbs-swiper .swiper-slide {
	width: var(--mdpc-thumbs-height, 80px);
	height: var(--mdpc-thumbs-height, 80px);
	flex-shrink: 0;
	cursor: pointer;
	opacity: 0.5;
	border-radius: 4px;
	position: relative;
	transition: opacity .2s;
}

.pc-carousel__thumbs-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.pc-carousel__thumbs-swiper .swiper-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: border-color .2s;
	pointer-events: none;
}

.pc-carousel__thumbs-swiper .swiper-slide-thumb-active {
	opacity: 1;
}

.pc-carousel__thumbs-swiper .swiper-slide-thumb-active::after {
	border-color: var(--mdpc-thumbs-active-color);
}

/* ----------------------------------------------
   AJAX cart enhanced (PRO)
   ---------------------------------------------- */

.pc-carousel--ajax-cart {
	--mdpc-ajax-spinner-color: #ffffff;
	--mdpc-ajax-success-bg:    #16a34a;
	--mdpc-ajax-success-color: #ffffff;
	position: relative;
}

.pc-carousel--ajax-cart .pc-card__btn--cart {
	position: relative;
	overflow: hidden;
	transition: background .2s, color .2s;
}

.pc-carousel--ajax-cart .pc-card__btn--cart.loading {
	pointer-events: none;
	color: transparent;
}

.pc-carousel--ajax-cart .pc-card__btn--cart.loading::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.35);
	border-top-color: var(--mdpc-ajax-spinner-color);
	border-radius: 50%;
	animation: mdpc-spin .65s linear infinite;
}

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

.pc-carousel--ajax-cart .pc-card__btn--cart.added {
	background: var(--mdpc-ajax-success-bg);
	pointer-events: none;
	color: var(--mdpc-ajax-success-color);
}

.pc-carousel--ajax-cart .pc-card__btn--cart.added::before {
	content: '✓ ';
}

.pc-cart-toast {
	/*
	 * Safe fallback positioning, in case an unrecognized modifier class ever
	 * reaches this element (e.g. a stale/legacy value that isn't remapped in
	 * PHP for some reason) — degrades to the old bottom-center placement
	 * instead of an unpositioned, full-width, in-flow block.
	 */
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	--mdpc-ajax-toast-bg:   #16a34a;
	--mdpc-toast-offset-x:  20px;
	--mdpc-toast-offset-y:  20px;
	background: var(--mdpc-ajax-toast-bg);
	color: #fff;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	transition: opacity .2s, transform .2s;
	pointer-events: none;
	z-index: 100;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.pc-cart-toast.is-visible {
	opacity: 1;
}

/*
 * "Under the widget" (default) — absolute, positioned relative to the
 * .pc-carousel element itself (which has position:relative). Centered
 * below the widget, matching the original single-position behavior.
 */
.pc-cart-toast--widget {
	position: absolute;
	top: auto;
	bottom: 20px;
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(6px);
}
.pc-cart-toast--widget.is-visible {
	transform: translateX(-50%) translateY(0);
}

/*
 * Page-relative variants — position:fixed to the viewport (not the widget),
 * anchored to a screen corner. Offset from the edge is user-configurable in
 * px via the --mdpc-toast-offset-x/-y custom properties (set inline by JS).
 * A higher z-index is used since these must float above the whole page,
 * not just the local widget (e.g. above sticky headers).
 */
.pc-cart-toast--page {
	z-index: 9999;
}

.pc-cart-toast--page-bottom-center {
	position: fixed;
	top: auto;
	bottom: var(--mdpc-toast-offset-y);
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(6px);
}
.pc-cart-toast--page-bottom-center.is-visible {
	transform: translateX(-50%) translateY(0);
}

.pc-cart-toast--page-top-center {
	position: fixed;
	top: var(--mdpc-toast-offset-y);
	bottom: auto;
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(-6px);
}
.pc-cart-toast--page-top-center.is-visible {
	transform: translateX(-50%) translateY(0);
}

.pc-cart-toast--page-bottom-left {
	position: fixed;
	top: auto;
	bottom: var(--mdpc-toast-offset-y);
	left: var(--mdpc-toast-offset-x);
	right: auto;
	transform: translateY(6px);
}
.pc-cart-toast--page-bottom-left.is-visible {
	transform: translateY(0);
}

.pc-cart-toast--page-bottom-right {
	position: fixed;
	top: auto;
	bottom: var(--mdpc-toast-offset-y);
	left: auto;
	right: var(--mdpc-toast-offset-x);
	transform: translateY(6px);
}
.pc-cart-toast--page-bottom-right.is-visible {
	transform: translateY(0);
}

.pc-cart-toast--page-top-left {
	position: fixed;
	top: var(--mdpc-toast-offset-y);
	bottom: auto;
	left: var(--mdpc-toast-offset-x);
	right: auto;
	transform: translateY(-6px);
}
.pc-cart-toast--page-top-left.is-visible {
	transform: translateY(0);
}

.pc-cart-toast--page-top-right {
	position: fixed;
	top: var(--mdpc-toast-offset-y);
	bottom: auto;
	left: auto;
	right: var(--mdpc-toast-offset-x);
	transform: translateY(-6px);
}
.pc-cart-toast--page-top-right.is-visible {
	transform: translateY(0);
}

/* ----------------------------------------------
   Quick view (PRO)
   ---------------------------------------------- */

/* Wishlist button */

.pc-wishlist-btn {
	--mdpc-wl-bg:           rgba(255,255,255,.92);
	--mdpc-wl-color:        #374151;
	--mdpc-wl-bg-hover:     #ffffff;
	--mdpc-wl-color-hover:  #ef4444;
	--mdpc-wl-bg-active:    #ef4444;
	--mdpc-wl-color-active: #ffffff;
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mdpc-wl-bg);
	color: var(--mdpc-wl-color);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	transition: background .15s, color .15s, transform .15s;
	z-index: 5;
}

.pc-wishlist-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: block;
	transition: fill .15s, transform .2s;
}

.pc-wishlist-btn:hover,
.pc-wishlist-btn:focus {
	background: var(--mdpc-wl-bg-hover);
	color: var(--mdpc-wl-color-hover);
	outline: none;
}

.pc-wishlist-btn:focus-visible {
	outline: 2px solid var(--mdpc-wl-color-hover);
	outline-offset: 2px;
}

.pc-wishlist-btn.is-active {
	background: var(--mdpc-wl-bg-active);
	color: var(--mdpc-wl-color-active);
}

.pc-wishlist-btn.is-active svg {
	fill: currentColor;
	transform: scale(1.15);
}

.pc-wishlist-btn:active {
	transform: scale(.9);
}

/* Trigger button */

.pc-qv-trigger {
	--mdpc-qv-trigger-bg:          rgba(255,255,255,.92);
	--mdpc-qv-trigger-color:       #111827;
	--mdpc-qv-trigger-bg-hover:    #ffffff;
	--mdpc-qv-trigger-color-hover: #111827;
	all: unset;
	box-sizing: border-box;
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--mdpc-qv-trigger-bg);
	color: var(--mdpc-qv-trigger-color);
	padding: 7px 16px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s, transform .2s, background .15s;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	z-index: 5;
}

.pc-card__image-wrap:hover .pc-qv-trigger,
.pc-card:hover .pc-qv-trigger {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.pc-qv-trigger:hover,
.pc-qv-trigger:focus-visible {
	background: var(--mdpc-qv-trigger-bg-hover);
	color: var(--mdpc-qv-trigger-color-hover);
	outline: none;
}

.pc-qv-trigger:focus-visible {
	outline: 2px solid #4f46e5;
	outline-offset: 2px;
}

/* Backdrop */

.pc-qv-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 99998;
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
}

.pc-qv-backdrop.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Modal */

.pc-qv-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%);
	width: min(860px, 92vw);
	max-height: 88vh;
	background: var(--mdpc-qv-modal-bg);
	border-radius: var(--mdpc-qv-modal-radius);
	box-shadow: 0 20px 60px rgba(0,0,0,.2);
	z-index: 99999;
	display: none;
	overflow: hidden;
	transition: transform .25s, opacity .25s;
	opacity: 0;
}

.pc-qv-modal.is-open {
	display: flex;
	flex-direction: column;
	opacity: 1;
	transform: translate(-50%, -50%);
}

.pc-qv-close {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 12px;
	right: 12px;
	width: var(--mdpc-qv-close-size);
	height: var(--mdpc-qv-close-size);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--mdpc-qv-close-radius);
	cursor: pointer;
	background: var(--mdpc-qv-close-bg);
	color: var(--mdpc-qv-close-color);
	transition: background .15s, color .15s;
	z-index: 1;
}

.pc-qv-close:hover,
.pc-qv-close:focus,
.pc-qv-close:active {
	background: var(--mdpc-qv-close-bg-hover);
	color: var(--mdpc-qv-close-color-hover);
	outline: none;
}

.pc-qv-close:focus-visible {
	outline: 2px solid var(--mdpc-qv-close-color);
	outline-offset: 2px;
}

.pc-qv-content {
	display: flex;
	overflow-y: auto;
	flex: 1;
}

/* Loading spinner inside modal */

.pc-qv-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e5e7eb;
	border-top-color: #4f46e5;
	border-radius: 50%;
	animation: mdpc-spin .7s linear infinite;
	margin: 60px auto;
}

.pc-qv-error {
	padding: 40px;
	text-align: center;
	color: #6b7280;
	width: 100%;
}

/* Modal content layout */

.pc-qv__image-col {
	width: 45%;
	flex-shrink: 0;
	background: #f9fafb;
}

.pc-qv__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pc-qv__details-col {
	flex: 1;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
}

.pc-qv__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.pc-qv__title a,
.pc-qv__title a:hover {
	color: var(--mdpc-qv-title-color);
	text-decoration: none !important;
}

.pc-qv__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--mdpc-qv-title-color);
}

.pc-qv__price del {
	font-weight: 400;
	color: #9ca3af;
	font-size: 14px;
	margin-right: 4px;
}

.pc-qv__price ins {
	text-decoration: none;
	color: var(--mdpc-qv-sale-color);
}

.pc-qv__excerpt {
	font-size: 14px;
	color: var(--mdpc-qv-excerpt-color);
	line-height: 1.6;
}

.pc-qv__actions {
	margin-top: 4px;
}

.pc-qv__actions .pc-card__btn {
	max-width: 280px;
}

.pc-qv__actions .pc-card__btn--cart {
	background: var(--mdpc-qv-btn-bg);
	color: var(--mdpc-qv-btn-color);
}

.pc-qv__actions .pc-card__btn--cart:hover {
	background: var(--mdpc-qv-btn-bg-hover);
	color: var(--mdpc-qv-btn-color-hover);
}

.pc-qv__actions a,
.pc-qv__actions a:hover {
	text-decoration: none !important;
}

.pc-qv__full-link {
	font-size: 13px;
	color: var(--mdpc-qv-link-color);
	text-decoration: none !important;
	margin-top: auto;
}

.pc-qv__full-link:hover {
	color: var(--mdpc-qv-link-color-hover);
}

/* Prevent body scroll while modal open */

body.pc-qv-open {
	overflow: hidden;
}

/* Responsive */

@media ( max-width: 600px ) {
	.pc-qv-content {
		flex-direction: column;
	}

	.pc-qv__image-col {
		width: 100%;
		max-height: 240px;
	}

	.pc-qv__details-col {
		padding: 20px;
	}
}

/* No products fallback */

.pc-no-products {
	padding: 24px;
	text-align: center;
	color: #6b7280;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
}

/* ----------------------------------------------
   Sale countdown (PRO)
   ---------------------------------------------- */

.pc-countdown {
	--mdpc-cd-bg:          #fef2f2;
	--mdpc-cd-label-color: #6b7280;
	--mdpc-cd-num-color:   #ef4444;
	--mdpc-cd-unit-color:  #9ca3af;
	--mdpc-cd-radius:      6px;

	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--mdpc-cd-bg);
	border-radius: var(--mdpc-cd-radius);
	font-size: 12px;
	line-height: 1;
	margin-top: 4px;
}

.pc-countdown__label {
	color: var(--mdpc-cd-label-color);
	white-space: nowrap;
	flex-shrink: 0;
}

.pc-countdown__timer {
	display: flex;
	align-items: baseline;
	gap: 3px;
}

.pc-countdown__part {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
}

.pc-countdown__part + .pc-countdown__part::before {
	content: ':';
	color: var(--mdpc-cd-num-color);
	font-weight: 700;
	margin-right: 2px;
}

.pc-countdown__num {
	font-weight: 700;
	font-size: 13px;
	color: var(--mdpc-cd-num-color);
	font-variant-numeric: tabular-nums;
}

.pc-countdown__unit {
	color: var(--mdpc-cd-unit-color);
	font-size: 10px;
}

/* ----------------------------------------------
   Reduced motion
   ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.pc-card,
	.pc-card__image,
	.pc-carousel .pc-carousel-wrapper .pc-carousel__prev,
	.pc-carousel .pc-carousel-wrapper .pc-carousel__next {
		transition: none;
	}

	.pc-card:hover {
		transform: none;
	}

	.pc-card:hover .pc-card__image {
		transform: none;
	}
}
