/* product.css — phần dùng chung của module sản phẩm (nút yêu thích + hiệu ứng).
   Giao diện chi tiết: product-detail.css | danh sách: product-list.css | card: product-card.css */
.yeuthich{
    border: 1px solid #dd2534;
    color: #dd2534;
    background: #dd2534;
    color: #fff;
    text-decoration: none;border-radius: 40px;
}
.yeuthich span{margin-left:6px}
.yeuthich:focus{animation: rubberBand 1s;box-shadow:none}
.yeuthich:hover{
    color:#dd2534;
    background-color: #fff;
}.yeuthich:hover svg{
    fill:#dd2534 !important;
}
@keyframes rubberBand {
    0% {
        -webkit-transform: scaleX(1);
        transform: scaleX(1)
    }

    30% {
        -webkit-transform: scale3d(1.25,.75,1);
        transform: scale3d(1.25,.75,1)
    }

    40% {
        -webkit-transform: scale3d(.75,1.25,1);
        transform: scale3d(.75,1.25,1)
    }

    50% {
        -webkit-transform: scale3d(1.15,.85,1);
        transform: scale3d(1.15,.85,1)
    }

    65% {
        -webkit-transform: scale3d(.95,1.05,1);
        transform: scale3d(.95,1.05,1)
    }

    75% {
        -webkit-transform: scale3d(1.05,.95,1);
        transform: scale3d(1.05,.95,1)
    }

    to {
        -webkit-transform: scaleX(1);
        transform: scaleX(1)
    }
}

.animate__rubberBand {
    -webkit-animation-name: rubberBand;
    animation-name: rubberBand
}
/* =====================================================================
   product-detail.css — Giao diện trang chi tiết sản phẩm (chuẩn, dùng lại được)
   Đi kèm: js/product-detail.js, app/views/product/productDetailView.php, core\service\Template (productVideos, productContactButtons)
   Cách dùng cho dự án khác: chép 3 file trên + product.css + product-card.css; chỉnh màu bằng biến --pd-* (đặt trong :root của dự án).
   ===================================================================== */
:root {
	--pd-accent: var(--color-title, #f0b30b);
	--pd-danger: #dd2534;
	--pd-border: #eee;
	--pd-radius: 8px;
	--pd-hotline: #287e15;
	--pd-zalo: #0068ff;
	--pd-messenger: #0084ff;
}

/* product button hotline */
.product_buttons {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 10px 0px;
}

.product_buttons>a {
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

.product_buttons>a:hover {
	color: #fe9705;
}

.product_buttons>a:hover img {
	-webkit-animation: shake-anim 1s infinite ease-in-out;
	-moz-animation: shake-anim 1s infinite ease-in-out;
	-ms-animation: shake-anim 1s infinite ease-in-out;
	-o-animation: shake-anim 1s infinite ease-in-out;
	animation: shake-anim 1s infinite ease-in-out;
	-webkit-transform-origin: 50% 50%;
	-moz-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	-o-transform-origin: 50% 50%;
	transform-origin: 50% 50%
}

.buy_ins {
	line-height: normal;
	display: flex;
	align-items: center;
	padding: 7px;
	text-align: left;
	background: #287e15;
	color: #fff;
	border-radius: 15px;
	font-size: 16px;
	text-transform: uppercase;
	border-bottom: 3px solid #fe9705;
}

.buy_tc img {
	margin-right: 10px;
}

.buy_tc>span>span {
	font-size: 12px;
}

/* Product detail page */

.slickProdetail--thumbs .slick-slide {
	margin: 0 2px;
	/* border: 1px solid #eee; */
	/* padding: 3px; */
	/* opacity: 1; */
}

.slickProdetail--thumbs .slick-slide.slick-current .thumb-pro-detail,
.slickProdetail--thumbs .slick-slide.slick-current {
	border-color: var(--color-title);
	opacity: 1;
}

.attr-content-pro-detail label input[type="radio"] {
	visibility: hidden;
	width: 0;
	display: none;
}

.typeProCart label {
	padding: 5px 10px;
	cursor: pointer;
	border: 1px solid #eee;
	margin: 2px 0;
}

.typeProCart label:hover {
	box-shadow: 1px 1px 5px #00000042;
}

.typeProCart label.active {
	color: red !important;
	border: 2px solid red;
}

.size-block-pro-detail,
.color-block-pro-detail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 15px;
}

label.color-pro-detail {
	width: 30px;
	height: 30px;
	font-size: 0;
	border-radius: 50px;
}

.size-block-pro-detail>label,
.color-block-pro-detail>label {
	margin: 5px 15px 5px 0;
}

.cart-pro-detail a.addnow {
	margin: 5px 0
}

ul.attr-pro-detail>li>label {
	width: 100px;
	margin-right: 15px;
}

.desc-pro-detail {
	margin-bottom: 10px;
	padding: 10px;
	background: #eee;
	border-left: 3px solid #c0c0c0;
	font-style: italic;
}

#tabsProDetailContent {
	padding: 0 15px 20px;
	border: 1px solid #eee;
	border-width: 0 1px 1px;
	border-radius: 0 0 10px 10px;
	background: #fff;
}

#tabsProDetail {
	border-bottom: 1px solid #dee2e6;
	background: #eee;
	color: inherit;
	border-radius: 6px 10px 0 0;
}

#tabsProDetail .nav-item .nav-link {
	color: inherit;
}


/* Product  Detail */
.tabs-pro-detail {
	width: 100%;
}

.left-pro-detail {
	margin-bottom: 20px;
}

.slickProdetail--main img {
	width: 100%;
}

.grid-pro-detail {
	margin-bottom: 50px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.gallery-thumb-pro {
	position: relative;
	margin-top: 10px;
}

.owl-thumb-pro {
	padding: 0px 40px;
}

.slickProdetail--main {
	border: 1px solid #eee;
	padding: 5px;
	background-color: #fff;
}

.thumb-pro-detail {
	display: block !important;
	border: 1px solid #eee;
	padding: 5px;
	border-radius: 3px;
	cursor: pointer;
}

.thumb-pro-detail.mz-thumb.mz-thumb-selected {
	border-color: #cecfd2;
}

.thumb-pro-detail img {
	box-shadow: none !important;
	filter: brightness(100%) !important;
	border-bottom: 0px !important;
	padding-bottom: 0px !important;
}

.title-pro-detail {
	text-transform: capitalize;
	font-size: 20px;
	display: block;
	font-weight: 700;
}

.social-plugin-pro-detail {
	margin-bottom: 1rem;
	margin-top: 0px !important;
}



.attr-pro-detail {
	list-style: none;
	padding: 0px;
}

.attr-pro-detail li {
	margin-bottom: 0.5rem;
}

.attr-label-pro-detail {
	margin: 0px 5px 0px 0px;
}

.attr-label-pro-detail.d-block {
	display: block;
	margin: 0px 0px 5px 0px;
}

.attr-content-pro-detail {
	display: inline-block;
	margin-bottom: 0px;
}

.price-new-pro-detail {
	font-weight: 700;
	font-size: 20px;
	color: var(--color-red);
}

.price-old-pro-detail {
	font-weight: 500;
	color: var(--color-gray);
	text-decoration: line-through;
	padding-left: 10px;
}

.color-pro-detail {
	display: inline-block;
	vertical-align: top;
	position: relative;
	width: 35px;
	height: 30px;
	margin: 0px 0px 3px 0px;
	border: 1px solid transparent;
}

.size-pro-detail {
	border: 1px solid #ccc;
	padding: 3px 10px 4px 10px;
	display: inline-block;
	position: relative;
	color: #333333;
}

.size-pro-detail.active,
.color-pro-detail.active {
	border-color: #e5101d;
	color: #e5101d;
}

.color-pro-detail.active:before,
.size-pro-detail.active:before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 0px;
	margin: auto;
	z-index: 1;
	background-image: url(../images/check-cart.png);
	background-repeat: no-repeat;
	background-position: bottom right;
}

.color-pro-detail input[type=radio],
.size-pro-detail input[type=radio] {
	outline: none;
	position: absolute;
	cursor: pointer;
	width: 100%;
	height: 100%;
	-webkit-appearance: none;
	border: 0px;
	top: 0px;
	left: 0px;
	color: #f3f3f3;
}


.tags-pro-detail {
	margin: 15px auto;
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.tags-pro-detail a {
	font-size: 12px;
	color: #fff;
	padding: 5px 10px 7px 10px;
	margin-right: 5px;
	margin-bottom: 5px;
	background-color: var(--color-red);
	border-radius: 3px;
}

.tags-pro-detail a:hover {
	background-color: var(--color-medium-red);
}

.tags-pro-detail a i {
	font-size: 10px;
	margin: 5px 5px 0px 0px;
}

.tabs-pro-detail .ul-tabs-pro-detail {
	padding: 0px;
	list-style: none;
	margin-bottom: 1rem;
	border-bottom: 1px solid #e7e7e7;
	display: flex;
	justify-content: flex-start;
	width: 100%;
	margin-top: 15px;
}

.tabs-pro-detail .ul-tabs-pro-detail li {
	cursor: pointer;
	margin-right: 5px;
	margin-bottom: 5px;
	background: #eee;
	padding: 5px 10px;
}

.tabs-pro-detail .ul-tabs-pro-detail li.active {
	background: #333;
	color: #fafafa;
}

.tabs-pro-detail .ul-tabs-pro-detail li:last-child {
	margin-right: 0px;
}

.tabs-pro-detail .content-tabs-pro-detail {
	width: 100%;
}

.tabs-pro-detail .content-tabs-pro-detail.active {
	display: block;
}

.slickProductSames .box-product {
	margin: 8px;
}

.control-carousel {
	position: absolute;
	top: calc(50% - 30px/2);
	margin-bottom: 0px;
	width: 30px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	border: 1px solid #eee;
	z-index: 2;
	background-color: #fff;
	color: #ccc;
	cursor: pointer;
}

.control-carousel:hover {
	background-color: var(--color-red);
	border-color: var(--color-red);
	color: #fff;
}

.prev-carousel {
	left: 0px;
}

.next-carousel {
	right: 0px;
}

.quantity-pro-detail {
	width: 150px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	height: 45px;
	border-radius: 30px;
	overflow: hidden;
	border: 1px solid #dfdfdf;
}

.quantity-pro-detail span {
	line-height: 25px;
	padding: 0px;
	width: 45px;
	height: 100%;
	color: #000;
	cursor: pointer;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
}

.quantity-pro-detail span.quantity-plus-pro-detail {
	border-left: 0px;
}

.quantity-pro-detail span.quantity-minus-pro-detail {
	border-right: 0px;
}

.quantity-pro-detail input {
	height: 100%;
	border: none;
	width: calc(100% - 90px);
	text-align: center;
	font-size: 15px;
}

/* ---- Nút liên hệ mua hàng: hotline / Zalo / Messenger (.buy_ins.buy_tc) ---- */
.product_buttons { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.product_buttons > .buy_ins { min-width: 0; text-decoration: none; background: var(--pd-hotline); }
.product_buttons > .buy_zalo { background: var(--pd-zalo); }
.product_buttons > .buy_messenger { background: var(--pd-messenger); }
.product_buttons > .buy_ins:hover { color: #fff; filter: brightness(1.08); }
.product_buttons > .buy_ins b { font-size: 18px; word-break: break-all; }

/* ---- Video sản phẩm (YouTube / mp4) ---- */
.pd-videos { margin-top: 14px; }
.pd-videos-title { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pd-videos-title i { color: var(--pd-danger); font-size: 18px; }
.pd-videos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pd-video { display: block; text-decoration: none; color: inherit; }
.pd-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--pd-radius); overflow: hidden; background: #111; }
.pd-video-thumb img, .pd-video-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: transform .3s, opacity .3s; }
.pd-video:hover .pd-video-thumb img, .pd-video:hover .pd-video-thumb video { transform: scale(1.05); opacity: 1; }
.pd-video-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid #fff; }
.pd-video-play::after { content: ""; position: absolute; left: 18px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.pd-video-name { display: block; font-size: 13px; margin-top: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Bố cục chuẩn ---- */
.pd { --pd-gap: 24px; }
.pd .left-pro-detail, .pd .right-pro-detail { min-width: 0; }
.pd .title-pro-detail { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
.pd .attr-pro-detail { list-style: none; padding: 0; margin: 0; }
.pd .price-new-pro-detail { color: var(--pd-danger); font-size: 26px; font-weight: 700; }
.pd .price-old-pro-detail { color: #888; text-decoration: line-through; margin-left: 10px; }
.pd .pd-discount-badge { background: var(--pd-danger); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 10px; vertical-align: middle; }
.pd .pd-stock-ok { color: #1a8a3c; font-weight: 600; }
.pd .pd-stock-out { color: var(--pd-danger); font-weight: 600; }
.pd .cart-pro-detail .btn { border-radius: var(--pd-radius); padding: 10px 18px; font-weight: 600; }
.pd .cart-pro-detail .them-gio { background: var(--pd-accent); color: #fff; }
.pd .cart-pro-detail .mua-ngay { background: var(--pd-danger); color: #fff; }
.pd .pd-actions-extra { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 767px) {
	.pd .title-pro-detail { font-size: 20px; }
	.pd .price-new-pro-detail { font-size: 22px; }
	.pd .cart-pro-detail { display: flex; flex-wrap: wrap; gap: 8px; }
	.pd .cart-pro-detail .btn { flex: 1 1 100%; }
	.pd-videos-list { grid-template-columns: repeat(2, 1fr); }
}
/* =====================================================================
   product-list.css — Giao diện trang danh sách sản phẩm (chuẩn, dùng lại được)
   Đi kèm: js/product-list.js, app/views/product/productsView.php, product-card.css, Template::productCard
   Bố cục: .pl (wrapper) > .pl-side (danh mục) + .pl-main (toolbar + .pgrid lưới sản phẩm + phân trang)
   Biến: --pl-cols (số cột desktop), --pl-gap, --pl-accent (đặt trong :root hoặc trên .pgrid)
   ===================================================================== */
:root { --pl-accent: var(--color-title, #f0b30b); --pl-side-w: 260px; }
.pl { display: flex; gap: 24px; align-items: flex-start; }
.pl-side { width: var(--pl-side-w); flex: none; position: sticky; top: 70px; }
.pl-main { flex: 1; min-width: 0; }

/* Danh mục */
.pl-side-title { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; background: var(--pl-accent); color: #fff; border-radius: 8px 8px 0 0; cursor: default; }
.pl-side-title i { display: none; }
.pl-cats { border: 1px solid #e8e8e8; border-top: 0; border-radius: 0 0 8px 8px; padding: 6px 4px; background: #fff; max-height: calc(100vh - 140px); overflow: auto; }
.pl-cats ul { list-style: none; margin: 0; padding: 0; }
.pl-cats ul ul { padding-left: 14px; border-left: 1px dashed #ddd; margin-left: 10px; display: none; }
.pl-cats li.is-open > ul, .pl-cats li.is-active > ul { display: block; }
.pl-cats li { position: relative; }
.pl-cats a { display: block; padding: 7px 28px 7px 10px; color: #333; text-decoration: none; font-size: 15px; line-height: 1.3; border-radius: 6px; transition: background .15s, color .15s; }
.pl-cats a:hover { background: #f6f6f6; color: var(--pl-accent); }
.pl-cats li.is-active > a { color: var(--pl-accent); font-weight: 700; background: #fff8e6; }
.pl-cats > ul > li > a { font-weight: 600; }
.pl-cats .pl-toggle { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; color: #888; }
.pl-cats .pl-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.pl-cats li.is-open > .pl-toggle::before, .pl-cats li.is-active > .pl-toggle::before { transform: rotate(-135deg); }

/* Thanh công cụ: số lượng - sắp xếp - kiểu xem */
.pl-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 10px 14px; background: #f7f7f7; border-radius: 8px; }
.pl-count { font-size: 14px; color: #555; }
.pl-tools { display: flex; align-items: center; gap: 10px; }
.pl-sort { border: 1px solid #ddd; border-radius: 6px; padding: 6px 10px; font-size: 14px; background: #fff; }
.pl-view { display: inline-flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; background: #fff;min-width: 73px; }
.pl-view button { border: 0; background: none; padding: 6px 10px; cursor: pointer; color: #777; line-height: 1; }
.pl-view button.is-on { background: var(--pl-accent); color: #fff; }
.pl-keyword { font-size: 15px; margin-bottom: 10px; }
.pl-filter-btn { display: none; }

/* Bộ lọc giá / hãng (trang danh sách sản phẩm) */
.pl-filter { margin-top: 16px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fff; overflow: hidden; }
.pl-filter-title { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 11px 14px; font-size: 15px; font-weight: 700; text-transform: uppercase; background: #f7f7f7; border-bottom: 1px solid #e8e8e8; }
.pl-filter-clear { font-size: 12px; font-weight: 600; text-transform: none; color: var(--pc-price, #dd2534); text-decoration: none; }
.pl-fgroup { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.pl-fgroup:last-child { border-bottom: 0; }
.pl-fgroup-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #222; }
.pl-fprice, .pl-fbrand { list-style: none; margin: 0; padding: 0; }
.pl-fprice { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-fprice a { display: block; padding: 5px 10px; font-size: 13px; color: #444; text-decoration: none; border: 1px solid #ddd; border-radius: 999px; background: #fff; transition: all .15s; }
.pl-fprice a:hover { border-color: var(--pl-accent); color: var(--pl-accent); }
.pl-fprice a.is-on { background: var(--pl-accent); border-color: var(--pl-accent); color: #fff; }
.pl-fprice-form { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.pl-fprice-form input { min-width: 0; flex: 1; width: 0; padding: 6px 8px; font-size: 13px; border: 1px solid #ddd; border-radius: 6px; }
.pl-fprice-form button { padding: 6px 12px; font-size: 13px; font-weight: 600; border: 0; border-radius: 6px; background: var(--pl-accent); color: #fff; cursor: pointer; }
.pl-fbrand { max-height: 240px; overflow: auto; }
.pl-fbrand a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 14px; color: #333; text-decoration: none; border-radius: 6px; }
.pl-fbrand a:hover { background: #f6f6f6; }
.pl-fbrand .pl-check { flex: none; width: 16px; height: 16px; border: 1.5px solid #bbb; border-radius: 4px; background: #fff; position: relative; }
.pl-fbrand a.is-on { font-weight: 700; color: var(--pl-accent); }
.pl-fbrand a.is-on .pl-check { background: var(--pl-accent); border-color: var(--pl-accent); }
.pl-fbrand a.is-on .pl-check::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pl-fbrand .pl-fname { flex: 1; min-width: 0; }
.pl-fbrand em { font-style: normal; font-size: 12px; color: #999; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; color: #333; text-decoration: none; background: #fff8e6; border: 1px solid #f0d58a; border-radius: 999px; }
.pl-chip i { font-style: normal; font-size: 16px; line-height: 1; color: #999; }
.pl-chip:hover i { color: var(--pc-price, #dd2534); }
.pl-chip-clear { background: #fff; border-color: #ddd; color: #666; }

/* Lưới sản phẩm */
.pgrid { --pl-cols: 4; --pl-gap: 16px; display: grid; grid-template-columns: repeat(var(--pl-cols), minmax(0, 1fr)); gap: var(--pl-gap); }
.pgrid.is-list { grid-template-columns: 1fr; }
.pl-empty { text-align: center; padding: 50px 15px; color: #777; border: 1px dashed #ddd; border-radius: 10px; }
.pl-empty i { font-size: 40px; display: block; margin-bottom: 10px; color: #ccc; }
.pl-paging { margin-top: 24px; }

@media (max-width: 1199px) { .pgrid { --pl-cols: 3; } }
@media (max-width: 991px) {
	.pl { flex-direction: column; gap: 14px; }
	.pl-side { width: 100%; position: static; }
	.pl-side-title { border-radius: 8px; cursor: pointer; }
	.pl-side-title i { display: inline-block; }
	.pl-cats { display: none; border-top: 1px solid #e8e8e8; border-radius: 8px; margin-top: 6px; max-height: 60vh; }
	.pl-side.is-open .pl-cats { display: block; }
}
@media (max-width: 767px) {
	.pgrid { --pl-cols: 2; --pl-gap: 10px; }
	.pl-toolbar { padding: 8px 10px; }
}
/* =====================================================================
   product-card.css — Card sản phẩm chuẩn (Template::productCard → <article class="pcard">)
   Dùng ở trang danh sách, sản phẩm cùng loại, trang chủ... Chỉnh màu bằng biến --pc-* trong :root của dự án.
   ===================================================================== */
:root {
	--pc-accent: var(--color-title, #f0b30b);
	--pc-price: #dd2534;
	--pc-border: #eee;
	--pc-radius: 10px;
}
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.pcard-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 470 / 570; background: #f6f6f6; }
.pcard-pic .pcard-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.pcard:hover .pcard-img { transform: scale(1.06); }
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard-badge { font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 4px; color: #fff; }
.pcard-badge-sale { background: var(--pc-price); }
.pcard-badge-new { background: #1a8a3c; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.pcard-code { font-size: 12px; color: #888; }
.pcard-name { font-size: 15px; line-height: 1.35; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-name a { color: inherit; text-decoration: none; }
.pcard-name a:hover { color: var(--pc-price); }
.pcard-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; }
.pcard-price-new { color: var(--pc-price); font-weight: 700; font-size: 16px; }
.pcard-price-old { color: #999; text-decoration: line-through; font-size: 13px; }
.pcard-btn { display: block; text-align: center; text-decoration: none; cursor: pointer; border: 1px solid var(--pc-accent); color: #333; border-radius: 6px; padding: 7px 10px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.pcard-btn:hover { background: var(--pc-accent); color: #fff; }
/* chế độ danh sách (nút chuyển Lưới/Danh sách ở trang danh sách) */
.pgrid.is-list .pcard { flex-direction: row; }
.pgrid.is-list .pcard-pic { width: 180px; flex: none; aspect-ratio: 1 / 1; }
.pgrid.is-list .pcard-body { justify-content: center; padding: 14px 18px; }
.pgrid.is-list .pcard-name { min-height: 0; -webkit-line-clamp: 3; font-size: 17px; }
.pgrid.is-list .pcard-price { margin-top: 4px; }
.pgrid.is-list .pcard-btn { align-self: flex-start; padding: 7px 18px; }
@media (max-width: 575px) {
	.pgrid.is-list .pcard-pic { width: 120px; }
	.pcard-name { font-size: 14px; }
}
.pgrid.is-list .pcard-body { align-items: flex-start; text-align: left; }

/* Biến thể không kinh doanh: size bị khóa + nút mua bị khóa */
.size-pro-detail.is-disabled, .color-pro-detail.is-disabled { opacity: .35; pointer-events: none; text-decoration: line-through; cursor: not-allowed; }
.addcart.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(1); cursor: not-allowed; }
.pd-soldout { width: 100%; margin-bottom: 10px; padding: 8px 12px; border-radius: 6px; background: #fdecec; color: #b42318; font-weight: 600; font-size: 14px; }
