/* ===== START BepHong Collection Luxury 2026 ===== */

/* 01. Collection base */
body.bephong-theme-luxury .bph-collection-page {
	position: relative;
	isolation: isolate;
	background-color: var(--bph-c-page);
	background-image: none;
	background-repeat: repeat-y;
	background-position: top center;
	background-size: cover;
	color: var(--bph-ink, var(--bph-c-on-brand));
	font-family: "Be Vietnam Pro", Arial, sans-serif;
	overflow: hidden;

  --bph-ink: var(--bph-c-on-brand);}

body.bephong-theme-luxury .bph-collection-page::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: transparent;
}

body.bephong-theme-luxury .bph-collection-container {
	width: min(1680px, calc(100% - 72px));
	max-width: 1680px;
	margin-left: auto;
	margin-right: auto;
}

/* 02. Collection hero */
body.bephong-theme-luxury .bph-collection-hero {
	padding: 26px 0 10px;
}

body.bephong-theme-luxury .bph-collection-breadcrumb {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent);
	font-size: 14px;
	line-height: 1.4;
}

body.bephong-theme-luxury .bph-collection-breadcrumb a {
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent);
	text-decoration: none !important;
}

body.bephong-theme-luxury .bph-collection-breadcrumb a:hover {
	color: var(--bph-ink, var(--bph-c-on-brand));
}

body.bephong-theme-luxury .bph-collection-breadcrumb span {
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent);
}

body.bephong-theme-luxury .bph-collection-breadcrumb strong {
	color: var(--bph-ink, var(--bph-c-on-brand));
	font-weight: 700;
}

body.bephong-theme-luxury .bph-collection-hero-main {
	display: block;
	padding: 22px 26px;
	border: 1px solid var(--bph-c-border);
	border-radius: 20px;
	background: transparent;
	box-shadow: 0 22px 60px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);
}

body.bephong-theme-luxury .bph-collection-eyebrow,
body.bephong-theme-luxury .bph-collection-hero-meta {
	display: none !important;
}

body.bephong-theme-luxury .bph-collection-hero h1 {
	margin: 0;
	color: var(--bph-ink, var(--bph-c-on-brand));
	font-size: 20px;
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -0.02em;
}

body.bephong-theme-luxury .bph-collection-hero-text > p:last-child {
	max-width: none;
	margin: 8px 0 0;
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent);
	font-size: 14.5px;
	line-height: 1.55;
	white-space: nowrap;
}

/* 03. Collection body layout */
body.bephong-theme-luxury .bph-collection-body {
	padding: 8px 0 56px;
}

body.bephong-theme-luxury .bph-collection-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

body.bephong-theme-luxury .bph-collection-sidebar,
body.bephong-theme-luxury .bph-collection-main {
	min-width: 0;
}

/* 04. Toolbar + sort */
body.bephong-theme-luxury .bph-collection-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.bephong-theme-luxury .bph-collection-toolbar-title span {
	display: block;
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

body.bephong-theme-luxury .bph-collection-toolbar-title strong {
	display: block;
	margin-top: 3px;
	color: var(--bph-ink, var(--bph-c-on-brand));
	font-size: 20px;
	line-height: 1.25;
	font-weight: 800;
}

body.bephong-theme-luxury .bph-collection-sort {
	position: static !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
}

body.bephong-theme-luxury .bph-collection-sort #sort-by {
	position: static !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	background: transparent !important;
}

body.bephong-theme-luxury .bph-collection-sort #sort-by label {
	position: static !important;
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent) !important;
	font-family: "Be Vietnam Pro", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
}

body.bephong-theme-luxury .bph-collection-sort #sort-by select,
body.bephong-theme-luxury .bph-collection-sort #sort-by .selectBox {
	position: static !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 118px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 30px 0 12px !important;
	border-radius: 12px !important;
	border: 1px solid var(--bph-c-border) !important;
	background-color: var(--bph-c-page) !important;
	color: var(--bph-ink, var(--bph-c-on-brand)) !important;
	font-family: "Be Vietnam Pro", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	outline: none !important;
	box-shadow: none !important;

  --bph-ink: var(--bph-c-on-brand);}

body.bephong-theme-luxury .bph-collection-sort #sort-by option {
	background: var(--bph-c-page) !important;
	color: var(--bph-ink, var(--bph-c-on-brand)) !important;

  --bph-ink: var(--bph-c-on-brand);}

/* 05. Product grid temporary layer */
body.bephong-theme-luxury .bph-collection-products .products-view-grid {
	margin: 0;
}

body.bephong-theme-luxury .bph-collection-products .row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0 !important;
}

body.bephong-theme-luxury .bph-collection-products [class*="col-"] {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
}

body.bephong-theme-luxury .bph-collection-products .item_product_main {
	height: 100%;
	border-radius: 20px;
	background: var(--bph-c-surface);
	border: 1px solid var(--bph-c-border);
	overflow: hidden;
	box-shadow: 0 18px 44px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;

  --bph-ink: var(--bph-c-text);}

body.bephong-theme-luxury .bph-collection-products .item_product_main:hover {
	transform: translateY(-3px);
	border-color: var(--bph-c-border);
	box-shadow: 0 24px 58px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);
}

body.bephong-theme-luxury .bph-collection-products .product-thumbnail {
	position: relative;
	display: block;
	background: var(--bph-c-surface);
	overflow: hidden;

  --bph-ink: var(--bph-c-text);}

body.bephong-theme-luxury .bph-collection-products .product-thumbnail img,
body.bephong-theme-luxury .bph-collection-products .image_thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: transparent;
	mix-blend-mode: normal;
	padding: 16px;
}

body.bephong-theme-luxury .bph-collection-products .smart {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--bph-c-button);
	color: var(--bph-ink, var(--bph-c-on-brand));
	font-size: 12px;
	font-weight: 800;

  --bph-ink:var(--bph-c-button-text);}

body.bephong-theme-luxury .bph-collection-products .product-info {
	padding: 14px 14px 16px;
	background: var(--bph-c-surface);

  --bph-ink: var(--bph-c-text);}

body.bephong-theme-luxury .bph-collection-products .product-name {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 700;
}

body.bephong-theme-luxury .bph-collection-products .product-name a {
	color: var(--bph-c-text);
	text-decoration: none !important;
}

body.bephong-theme-luxury .bph-collection-products .product-name a:hover {
	color: var(--bph-c-link);
}

body.bephong-theme-luxury .bph-collection-products .price-box {
	min-height: 28px;
	color: var(--bph-c-price);
	font-size: 15px;
	font-weight: 800;
}

body.bephong-theme-luxury .bph-collection-products .compare-price {
	margin-left: 6px;
	color: color-mix(in srgb, var(--bph-c-price) 86.0%, transparent);
	font-size: 13px;
	text-decoration: line-through;
	font-weight: 600;
}

body.bephong-theme-luxury .bph-collection-products .action {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

body.bephong-theme-luxury .bph-collection-products .btn-cart,
body.bephong-theme-luxury .bph-collection-products .quick-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--bph-c-brand);
	background: var(--bph-c-button);
	color: var(--bph-ink, var(--bph-c-on-brand)) !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;

  --bph-ink:var(--bph-c-button-text);}

/* 06. Empty state */
body.bephong-theme-luxury .bph-collection-empty {
	padding: 28px;
	border-radius: 18px;
	border: 1px solid var(--bph-c-border);
	background: var(--bph-c-page);
	color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 86.0%, transparent);
}

/* 07. Responsive */
@media (max-width: 1199px) {
	body.bephong-theme-luxury .bph-collection-hero-text > p:last-child {
		white-space: normal;
	}

	body.bephong-theme-luxury .bph-collection-products .row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	body.bephong-theme-luxury .bph-collection-container {
		width: min(100% - 32px, 1680px);
	}

	body.bephong-theme-luxury .bph-collection-layout {
		grid-template-columns: 1fr;
	}

	body.bephong-theme-luxury .bph-collection-products .row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	body.bephong-theme-luxury .bph-collection-container {
		width: min(100% - 24px, 1680px);
	}

	body.bephong-theme-luxury .bph-collection-hero {
		padding: 18px 0 10px;
	}

	body.bephong-theme-luxury .bph-collection-hero-main {
		padding: 18px;
		border-radius: 16px;
	}

	body.bephong-theme-luxury .bph-collection-hero h1 {
		font-size: 25px;
	}

	body.bephong-theme-luxury .bph-collection-hero-text > p:last-child {
		font-size: 13.5px;
		line-height: 1.55;
		white-space: normal;
	}

	body.bephong-theme-luxury .bph-collection-toolbar {
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	margin: 12px 0 14px;
}

	body.bephong-theme-luxury .bph-collection-sort {
		justify-content: flex-start !important;
		width: 100% !important;
	}

	body.bephong-theme-luxury .bph-collection-sort #sort-by {
		width: 100% !important;
		justify-content: space-between !important;
	}

	body.bephong-theme-luxury .bph-collection-sort #sort-by select,
	body.bephong-theme-luxury .bph-collection-sort #sort-by .selectBox {
		min-width: 160px !important;
	}

	body.bephong-theme-luxury .bph-collection-products .row {
		gap: 14px;
	}
}

/* ===== END BepHong Collection Luxury 2026 ===== */
body.bephong-theme-luxury .bph-collection-toolbar-sort-only {
	justify-content: flex-end !important;
}
/* ===== START BepHong Collection Sidebar Title Hide ===== */

body.bephong-theme-luxury .bph-collection-sidebar .title-head {
	display: none !important;
}

/* ===== END BepHong Collection Sidebar Title Hide ===== */
/* =========================================================
   BẾP HỒNG COLLECTION - PRODUCT CARD FINAL AGREED PARTS
   - card bg: #FCFAF8
   - brand logo by tag logo-tenhang -> logo-tenhang.png
   - discount left / logo right
   - gold border / luxury hover
   - controlled product name 2 lines
   - compact grid gaps
========================================================= */

body.bephong-theme-luxury {
  --bph-product-card-bg: var(--bph-c-surface);
  --bph-product-accent: var(--bph-ink, var(--bph-c-on-brand));
  --bph-product-accent-hover: var(--bph-ink, var(--bph-c-on-brand));
  --bph-product-action: var(--bph-c-price);
  --bph-product-action-hover: var(--bph-c-price);
  --bph-product-text: var(--bph-c-text);
  --bph-product-muted: var(--bph-c-muted);

  --bph-product-gap-x-pc: 16px;
  --bph-product-gap-y-pc: 18px;
  --bph-product-gap-x-tablet: 16px;
  --bph-product-gap-y-tablet: 20px;
  --bph-product-gap-x-mobile: 10px;
  --bph-product-gap-y-mobile: 16px;
}

/* Reset card cũ trong collection */
body.bephong-theme-luxury .bph-collection-products .item_product_main {
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Product Area Container
   Số cột sản phẩm sẽ tự quyết định theo CHIỀU RỘNG THỰC của vùng sản phẩm,
   không phụ thuộc riêng vào PC / laptop / tablet / mobile. */
body.bephong-theme-luxury .bph-collection-products {
  container-type: inline-size;
  container-name: bph-product-area;
}

/* Grid fallback + mặc định cho màn hình/vùng sản phẩm rộng */
body.bephong-theme-luxury .bph-collection-products .products-view .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bph-product-gap-y-pc) var(--bph-product-gap-x-pc);
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.bephong-theme-luxury .bph-collection-products .products-view .row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Card chính */
body.bephong-theme-luxury .bph-product-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Container Query: logo thương hiệu tự co theo chính chiều rộng CARD */
  container-type: inline-size;
  container-name: bph-product-card;

  background: var(--bph-product-card-bg);
  border: 1px solid var(--bph-c-border);
  border-radius: 20px;

  box-shadow:
    0 12px 26px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover luxury trên PC/laptop */
/* Hover luxury glow rõ hơn trên PC/laptop */
@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-collection-products .item_product_main {
    overflow: visible !important;
  }

  body.bephong-theme-luxury .bph-product-card {
    isolation: isolate;
  }

  body.bephong-theme-luxury .bph-product-card::after {
    display: none !important;
  }

  body.bephong-theme-luxury .bph-product-card:hover {
    transform: none !important;
    border-color: var(--bph-c-border) !important;
    box-shadow:
      0 12px 26px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      0 0 10px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      inset 0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent) !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-collection-products .item_product_main:hover .bph-product-card {
    transform: none !important;
    border-color: var(--bph-c-border) !important;
    box-shadow:
      0 12px 26px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      0 0 10px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      inset 0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent) !important;
  }
}

/* Vùng ảnh: cùng màu với card */
body.bephong-theme-luxury .bph-product-card__top {
  position: relative;
  background: var(--bph-product-card-bg);
  padding: 46px 14px 8px;
}

/* Logo hãng bên phải - AUTO RESPONSIVE THEO KÍCH THƯỚC CARD
   - Card lớn: tối đa 88 x 24 px, giữ đúng cảm giác GrandX hiện tại trên PC.
   - Card hẹp: logo tự co theo cqw (container query width).
   - Logo ngang / dọc / vuông đều giữ đúng tỷ lệ bằng object-fit: contain.
   - Không cần CSS riêng theo từng hãng hoặc từng thiết bị. */
body.bephong-theme-luxury .bph-product-card__brand {
  position: absolute;
  z-index: 3;

  /* Cùng một header-row với badge giảm giá */
  top: 12px;
  right: 12px;
  width: 88px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
}

body.bephong-theme-luxury .bph-product-card__brand img,
body.bephong-theme-luxury .bph-product-card__brand-img {
  display: block;

  width: 100%;
  height: 24px;
  max-width: 100%;
  max-height: 24px;

  object-fit: contain;
  object-position: right center;

  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Trình duyệt hiện đại:
   chiều rộng logo tự co theo CARD,
   nhưng tâm dọc luôn khóa cùng badge giảm giá. */
@supports (width: 1cqw) {
  body.bephong-theme-luxury .bph-product-card__brand {
    width: clamp(50px, 25cqw, 88px);
    height: 30px;
    top: 12px;
    right: 12px;
  }

  body.bephong-theme-luxury .bph-product-card__brand img,
  body.bephong-theme-luxury .bph-product-card__brand-img {
    height: clamp(18px, 7cqw, 24px);
    max-height: 24px;
  }
}

/* Ảnh sản phẩm */
body.bephong-theme-luxury .bph-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 1 / 0.82;

  background: var(--bph-product-card-bg);
  text-decoration: none;
}

body.bephong-theme-luxury .bph-product-card__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-product-card:hover .bph-product-card__image img {
    transform: none !important;
  }
}

body.bephong-theme-luxury .bph-product-card__no-image {
  width: 100%;
  height: 100%;
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: color-mix(in srgb, var(--bph-c-brand) 4.5%, transparent);
  color: color-mix(in srgb, var(--bph-c-text) 86.0%, transparent);
  font-size: 13px;
  font-weight: 700;
}

/* Nội dung card */
body.bephong-theme-luxury .bph-product-card__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  background: var(--bph-product-card-bg);
}

/* Tên sản phẩm: tối đa 2 hàng, không dấu ... */
body.bephong-theme-luxury .bph-product-card__name {
  margin: 0 0 10px;
  min-height: 44px;
  max-height: 44px;

  overflow: hidden;

  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--bph-product-text);
}

body.bephong-theme-luxury .bph-product-card__name a {
  color: inherit;
  text-decoration: none;
}

/* Giá */
body.bephong-theme-luxury .bph-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
}

body.bephong-theme-luxury .bph-product-card__price-current {
  color: var(--bph-product-action);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

body.bephong-theme-luxury .bph-product-card__price-old {
  color: var(--bph-product-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: line-through;
  opacity: 0.8;
}

/* Nút - giữ gọn để không phá layout */
body.bephong-theme-luxury .bph-product-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.bephong-theme-luxury .bph-product-card__form {
  margin: 0;
}

body.bephong-theme-luxury .bph-product-card__btn {
  width: 100%;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

body.bephong-theme-luxury .bph-product-card__btn--buy {
  border: 1px solid var(--bph-product-action);
  background: var(--bph-c-button);
  color: var(--bph-ink, var(--bph-c-on-brand));
  box-shadow: 0 8px 16px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);

  --bph-ink:var(--bph-c-button-text);}

body.bephong-theme-luxury .bph-product-card__btn--view {
  border: 1px solid var(--bph-c-brand);
  background: transparent;
  color: var(--bph-product-action);
}

body.bephong-theme-luxury .bph-product-card__btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-product-card__btn:not(.is-disabled):hover {
    transform: translateY(-1px);
  }

  body.bephong-theme-luxury .bph-product-card__btn--buy:not(.is-disabled):hover {
    background:var(--bph-c-hover);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);
  
  --bph-ink:var(--bph-c-button-text);}

  body.bephong-theme-luxury .bph-product-card__btn--view:hover {
    border-color: var(--bph-product-accent);
    color: var(--bph-c-link);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);
  }
}

/* Tablet */
@media (max-width: 1199px) {
  body.bephong-theme-luxury .bph-collection-products .products-view .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bph-product-gap-y-tablet) var(--bph-product-gap-x-tablet);
  }
}

/* Tablet nhỏ */
@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-products .products-view .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 575px) {
  body.bephong-theme-luxury {
    --bph-product-gap-x-mobile: 12px;
    --bph-product-gap-y-mobile: 18px;
  }

  body.bephong-theme-luxury .bph-collection-products .products-view .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bph-product-gap-y-mobile) var(--bph-product-gap-x-mobile);
  }

  body.bephong-theme-luxury .bph-product-card {
    border-radius: 18px;
  }

  body.bephong-theme-luxury .bph-product-card__top {
    padding: 42px 10px 6px;
  }

  body.bephong-theme-luxury .bph-product-card__discount {
  position: absolute;
  z-index: 9;
  top: 10px;
  left: 12px;

  min-width: 48px;
  height: 30px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;
  background: var(--bph-c-button)!important;
  color: var(--bph-ink, var(--bph-c-on-brand)) !important;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.2px;
  white-space: nowrap;

  box-shadow:
    0 5px 12px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--bph-c-text) 13.0%, transparent);

  --bph-ink:var(--bph-c-button-text);}

  /* Fallback mobile cho trình duyệt cũ:
     logo và badge cùng top + cùng header-row */
  body.bephong-theme-luxury .bph-product-card__brand {
    top: 10px;
    right: 12px;
    width: 62px;
    height: 30px;
  }

  body.bephong-theme-luxury .bph-product-card__brand img,
  body.bephong-theme-luxury .bph-product-card__brand-img {
    width: 100%;
    height: 22px;
    max-width: 100%;
    max-height: 22px;
  }

  body.bephong-theme-luxury .bph-product-card__image {
    aspect-ratio: 1 / 0.92;
  }

  body.bephong-theme-luxury .bph-product-card__info {
    padding: 10px 12px 14px;
  }

  body.bephong-theme-luxury .bph-product-card__name {
    min-height: 42px;
    max-height: 42px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  body.bephong-theme-luxury .bph-product-card__price {
    display: block;
    margin-bottom: 14px;
  }

  body.bephong-theme-luxury .bph-product-card__price-current {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
  }

  body.bephong-theme-luxury .bph-product-card__price-old {
    display: block;
    font-size: 13px;
  }

  body.bephong-theme-luxury .bph-product-card__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.bephong-theme-luxury .bph-product-card__btn {
    height: 42px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 1.18;
    white-space: normal;
    text-align: center;
  }
}
/* FIX RIÊNG BADGE GIẢM GIÁ % ITEM SẢN PHẨM */
body.bephong-theme-luxury .bph-product-card .bph-product-card__discount {
  position: absolute !important;
  z-index: 20 !important;
  top: 12px !important;
  left: 12px !important;

  min-width: 50px !important;
  height: 30px !important;
  padding: 0 10px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 9px !important;
  background: var(--bph-c-button)!important;
  color: var(--bph-ink, var(--bph-c-on-brand)) !important;

  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.2px !important;
  white-space: nowrap !important;

  box-shadow:
    0 6px 14px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--bph-c-text) 13.0%, transparent) !important;

  --bph-ink:var(--bph-c-button-text);}
/* =========================================================
   Bep Hong Collection - Brand Logo Final
   Logo hãng góc phải: PNG trần, tự co đẹp, không khung
========================================================= */

.item_product_main .bh-product-brand-logo,
.item_product_main .product-brand-logo,
.bh-product-card .bh-product-brand-logo,
.product-card .bh-product-brand-logo {
  position: absolute !important;
  top: 7px !important;
  right: 6px !important;
  z-index: 6 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  height: auto !important;
  max-width: 62px !important;
  max-height: 22px !important;

  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  opacity: 0.9 !important;
  pointer-events: none !important;
}

.item_product_main .bh-product-brand-logo img,
.item_product_main .product-brand-logo img,
.bh-product-card .bh-product-brand-logo img,
.product-card .bh-product-brand-logo img {
  display: block !important;

  width: auto !important;
  height: auto !important;
  max-width: 62px !important;
  max-height: 22px !important;

  object-fit: contain !important;
  object-position: center !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Tablet + Mobile */
@media (max-width: 767px) {
  .item_product_main .bh-product-brand-logo,
  .item_product_main .product-brand-logo,
  .bh-product-card .bh-product-brand-logo,
  .product-card .bh-product-brand-logo {
    top: 6px !important;
    right: 5px !important;
    max-width: 54px !important;
    max-height: 19px !important;
  }

  .item_product_main .bh-product-brand-logo img,
  .item_product_main .product-brand-logo img,
  .bh-product-card .bh-product-brand-logo img,
  .product-card .bh-product-brand-logo img {
    max-width: 54px !important;
    max-height: 19px !important;
  }
}

/* Mobile nhỏ */
@media (max-width: 430px) {
  .item_product_main .bh-product-brand-logo,
  .item_product_main .product-brand-logo,
  .bh-product-card .bh-product-brand-logo,
  .product-card .bh-product-brand-logo {
    top: 6px !important;
    right: 4px !important;
    max-width: 50px !important;
    max-height: 18px !important;
  }

  .item_product_main .bh-product-brand-logo img,
  .item_product_main .product-brand-logo img,
  .bh-product-card .bh-product-brand-logo img,
  .product-card .bh-product-brand-logo img {
    max-width: 50px !important;
    max-height: 18px !important;
  }
}
/* =========================================================
   Bep Hong Collection - Product Image Zone
   Căn giữa ảnh, không méo, không vượt vùng ảnh
========================================================= */

.bph-product-card__image.bh-card-image-zone {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 16px 14px 12px !important;
  margin: 0 !important;

  background: var(--bph-c-surface) !important;

  overflow: hidden !important;
  box-sizing: border-box !important;
  border-radius: 18px 18px 8px 8px !important;

  --bph-ink: var(--bph-c-text);}

.bph-product-card__image.bh-card-image-zone .bh-card-product-img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  transform: none !important;
  filter: brightness(1.015) contrast(1.025) saturate(1.02) !important;
}

.bph-product-card__image.bh-card-image-zone .bh-card-no-image {
  width: 100% !important;
  height: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: var(--bph-c-surface) !important;
  color: var(--bph-c-muted) !important;
  border-radius: 10px !important;

  --bph-ink: var(--bph-c-text);}

/* Mobile */
@media (max-width: 767px) {
  .bph-product-card__image.bh-card-image-zone {
    padding: 14px 10px 10px !important;
    border-radius: 16px 16px 6px 6px !important;
  }
}

/* Mobile nhỏ */
@media (max-width: 430px) {
  .bph-product-card__image.bh-card-image-zone {
    padding: 12px 8px 8px !important;
  }
}
/* Mobile nhỏ - giảm gap sản phẩm theo mức đã chốt */
@media (max-width: 430px) {
  body.bephong-theme-luxury {
    --bph-product-gap-x-mobile: 10px;
    --bph-product-gap-y-mobile: 16px;
  }
}

/* =========================================================
   Bep Hong Collection - Product Grid + Card Auto Responsive V5
   NGUYÊN TẮC:
   - Responsive theo chiều rộng THỰC của vùng sản phẩm/card.
   - Không phụ thuộc tên thiết bị hay riêng viewport.
   - Có sidebar / không sidebar đều tự thích nghi.
   - Media query cũ phía trên được giữ làm fallback cho browser cũ.
========================================================= */

@supports (container-type: inline-size) {

  /* -------------------------------------------------------
     A. GRID: tự chuyển 4 -> 3 -> 2 cột theo PRODUCT AREA
     ------------------------------------------------------- */

  /* Vùng sản phẩm rộng: 4 card */
  body.bephong-theme-luxury .bph-collection-products .products-view .row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: clamp(10px, 1.35cqw, 16px) !important;
    row-gap: clamp(16px, 1.55cqw, 20px) !important;
  }

  /* Vùng sản phẩm hẹp vừa: 3 card */
  @container bph-product-area (max-width: 1080px) {
    body.bephong-theme-luxury .bph-collection-products .products-view .row {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

  /* Tablet / vùng sản phẩm hẹp: 2 card */
  @container bph-product-area (max-width: 840px) {
    body.bephong-theme-luxury .bph-collection-products .products-view .row {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  /* -------------------------------------------------------
     B. CARD: tự compact theo chính chiều rộng CARD
     ------------------------------------------------------- */

  /* Card <= 270px: giảm nhẹ spacing/font nhưng vẫn giữ giao diện đầy đủ */
  @container bph-product-card (max-width: 270px) {
    body.bephong-theme-luxury .bph-product-card__top {
      padding: 42px 11px 7px;
    }

    body.bephong-theme-luxury .bph-product-card__image.bh-card-image-zone {
      padding: 13px 10px 9px !important;
    }

    body.bephong-theme-luxury .bph-product-card__info {
      padding: 10px 12px 14px;
    }

    body.bephong-theme-luxury .bph-product-card__name {
      min-height: 42px;
      max-height: 42px;
      margin-bottom: 8px;
      font-size: 14px;
      line-height: 1.5;
    }

    body.bephong-theme-luxury .bph-product-card__price {
      gap: 6px 9px;
      margin-bottom: 14px;
    }

    body.bephong-theme-luxury .bph-product-card__price-current {
      font-size: 17px;
    }

    body.bephong-theme-luxury .bph-product-card__price-old {
      font-size: 13px;
    }

    body.bephong-theme-luxury .bph-product-card__actions {
      gap: 8px;
    }

    body.bephong-theme-luxury .bph-product-card__btn {
      height: 40px;
      padding: 0 8px;
      font-size: 12.5px;
    }
  }

  /* Card <= 210px: compact mạnh hơn cho mobile 2 cột / vùng rất hẹp */
  @container bph-product-card (max-width: 210px) {
    body.bephong-theme-luxury .bph-product-card {
      border-radius: 16px;
    }

    body.bephong-theme-luxury .bph-product-card__top {
      padding: 38px 8px 5px;
    }

    body.bephong-theme-luxury .bph-product-card__image.bh-card-image-zone {
      padding: 10px 7px 7px !important;
      border-radius: 14px 14px 6px 6px !important;
    }

    body.bephong-theme-luxury .bph-product-card__info {
      padding: 9px 9px 11px;
    }

    body.bephong-theme-luxury .bph-product-card__name {
      min-height: 40px;
      max-height: 40px;
      margin-bottom: 7px;
      font-size: 13px;
      line-height: 1.5;
    }

    body.bephong-theme-luxury .bph-product-card__price {
      display: block;
      margin-bottom: 11px;
    }

    body.bephong-theme-luxury .bph-product-card__price-current {
      display: block;
      margin-bottom: 4px;
      font-size: 15.5px;
      line-height: 1.2;
      letter-spacing: -0.2px;
    }

    body.bephong-theme-luxury .bph-product-card__price-old {
      display: block;
      font-size: 11.5px;
    }

    body.bephong-theme-luxury .bph-product-card__actions {
      grid-template-columns: 1fr 1fr;
      gap: 6px;
    }

    body.bephong-theme-luxury .bph-product-card__btn {
      height: 38px;
      padding: 0 5px;
      font-size: 11.5px;
      line-height: 1.15;
      white-space: normal;
      text-align: center;
    }

    /* Badge + logo cùng một header-row khi card rất hẹp */
    body.bephong-theme-luxury .bph-product-card .bph-product-card__discount {
      top: 9px !important;
      left: 9px !important;
      min-width: 44px !important;
      height: 27px !important;
      padding: 0 8px !important;
      border-radius: 8px !important;
      font-size: 12.5px !important;
    }

    body.bephong-theme-luxury .bph-product-card__brand {
      top: 9px !important;
      right: 9px !important;
      height: 27px !important;
    }

    body.bephong-theme-luxury .bph-product-card__brand img,
    body.bephong-theme-luxury .bph-product-card__brand-img {
      height: 21px !important;
      max-height: 21px !important;
    }
  }

  /* Card <= 175px: mức an toàn cho điện thoại màn hình rất hẹp */
  @container bph-product-card (max-width: 175px) {
    body.bephong-theme-luxury .bph-product-card__top {
      padding-top: 35px;
    }

    body.bephong-theme-luxury .bph-product-card__info {
      padding-left: 8px;
      padding-right: 8px;
    }

    body.bephong-theme-luxury .bph-product-card__name {
      min-height: 39px;
      max-height: 39px;
      font-size: 12.5px;
    }

    body.bephong-theme-luxury .bph-product-card__price-current {
      font-size: 15px;
    }

    body.bephong-theme-luxury .bph-product-card__price-old {
      font-size: 11px;
    }

    body.bephong-theme-luxury .bph-product-card__actions {
      gap: 5px;
    }

    body.bephong-theme-luxury .bph-product-card__btn {
      height: 37px;
      padding: 0 4px;
      font-size: 11px;
    }
  }
}
/* ===== END Product Grid + Card Auto Responsive V5 ===== */

/* =========================================================
   Bep Hong Collection - Pagination Final Clean Luxury
   Xoá nền trắng, căn giữa, nút đen/vàng đồng bộ
========================================================= */

/* Khung ngoài pagination */
body.bephong-theme-luxury .bph-collection-products .pagenav {
  width: 100% !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Reset toàn bộ lớp wrapper gây nền trắng */
body.bephong-theme-luxury .bph-collection-products .pagenav nav,
body.bephong-theme-luxury .bph-collection-products .pagenav ul,
body.bephong-theme-luxury .bph-collection-products .pagenav ol,
body.bephong-theme-luxury .bph-collection-products .pagenav .pagination,
body.bephong-theme-luxury .bph-collection-products .pagenav .page,
body.bephong-theme-luxury .bph-collection-products .pagenav .pages,
body.bephong-theme-luxury .bph-collection-products .pagenav .paginate,
body.bephong-theme-luxury .bph-collection-products .pagenav .pagination-wrapper,
body.bephong-theme-luxury .bph-collection-products .pagenav .collection-paginate,
body.bephong-theme-luxury .bph-collection-products .pagenav .collection-paginate-pages {
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* LI chỉ là khung chứa, không tạo nền/nút */
body.bephong-theme-luxury .bph-collection-products .pagenav li {
  margin: 0 !important;
  padding: 0 !important;

  display: block !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Chỉ a/span mới là nút số trang */
body.bephong-theme-luxury .bph-collection-products .pagenav a,
body.bephong-theme-luxury .bph-collection-products .pagenav span {
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 10px !important;
  border: 1px solid var(--bph-c-border) !important;
  background: var(--bph-c-page) !important;
  color: color-mix(in srgb, var(--bph-ink, var(--bph-c-on-brand)) 90.0%, transparent) !important;

  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  box-shadow:
    0 8px 18px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--bph-c-text) 5.0%, transparent) !important;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease !important;

  --bph-ink: var(--bph-c-on-brand);}

/* Trang hiện tại */
body.bephong-theme-luxury .bph-collection-products .pagenav .current,
body.bephong-theme-luxury .bph-collection-products .pagenav .active,
body.bephong-theme-luxury .bph-collection-products .pagenav li.active a,
body.bephong-theme-luxury .bph-collection-products .pagenav span.current {
  border-color: var(--bph-c-border) !important;
  background: var(--bph-c-button)!important;
  color: var(--bph-ink, var(--bph-c-on-brand)) !important;

  box-shadow:
    0 10px 22px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    0 0 22px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent) !important;

  --bph-ink:var(--bph-c-button-text);}

/* Hover PC */
@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-collection-products .pagenav a:hover {
    transform: translateY(-2px) !important;
    border-color: var(--bph-c-border) !important;
    background: color-mix(in srgb, var(--bph-c-brand) 18.0%, transparent) !important;
    color: var(--bph-ink, var(--bph-c-on-brand)) !important;

    box-shadow:
      0 12px 26px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
      0 0 20px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent) !important;
  }
}

/* Mobile */
@media (max-width: 575px) {
  body.bephong-theme-luxury .bph-collection-products .pagenav {
    margin-top: 20px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.bephong-theme-luxury .bph-collection-products .pagenav nav,
  body.bephong-theme-luxury .bph-collection-products .pagenav ul,
  body.bephong-theme-luxury .bph-collection-products .pagenav .pagination,
  body.bephong-theme-luxury .bph-collection-products .pagenav .paginate,
  body.bephong-theme-luxury .bph-collection-products .pagenav .collection-paginate,
  body.bephong-theme-luxury .bph-collection-products .pagenav .collection-paginate-pages {
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  body.bephong-theme-luxury .bph-collection-products .pagenav a,
  body.bephong-theme-luxury .bph-collection-products .pagenav span {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
  }
}
/* Fix active pagination: nền đỏ phải vào đúng khung nút */
body.bephong-theme-luxury .bph-collection-products .pagenav li.active,
body.bephong-theme-luxury .bph-collection-products .pagenav .active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.bephong-theme-luxury .bph-collection-products .pagenav li.active > a,
body.bephong-theme-luxury .bph-collection-products .pagenav li.active > span,
body.bephong-theme-luxury .bph-collection-products .pagenav a.current,
body.bephong-theme-luxury .bph-collection-products .pagenav span.current,
body.bephong-theme-luxury .bph-collection-products .pagenav .current > a,
body.bephong-theme-luxury .bph-collection-products .pagenav .current > span {
  border-color: var(--bph-c-border) !important;
  background: var(--bph-c-button)!important;
  color: var(--bph-ink, var(--bph-c-on-brand)) !important;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    0 0 0 1px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent),
    0 0 22px color-mix(in srgb, var(--bph-c-text) 13.0%, transparent) !important;

  --bph-ink:var(--bph-c-button-text);}

/* ===== FIX MOBILE: CÂN KHOẢNG CÁCH BỘ LỌC -> SẮP XẾP ===== */
@media (max-width: 575px) {
  body.bephong-theme-luxury .bph-collection-layout {
    gap: 12px !important;
  }

  body.bephong-theme-luxury .bph-collection-sidebar,
  body.bephong-theme-luxury .bph-filter-all,
  body.bephong-theme-luxury .bph-filter-mobile-toggle {
    margin-bottom: 0 !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar {
    margin: 0 0 14px !important;
  }
}
/* ===== END FIX MOBILE SPACING ===== */

/* =========================================================
   Bep Hong Collection - Brand Logo Container Responsive Final V6
   Logo tự co theo CARD nhưng luôn thẳng hàng với badge giảm giá
========================================================= */
@supports (width: 1cqw) {
  body.bephong-theme-luxury .bph-product-card__brand {
    width: clamp(50px, 25cqw, 88px) !important;
    height: 30px !important;
    top: 12px !important;
    right: 12px !important;
  }

  body.bephong-theme-luxury .bph-product-card__brand img,
  body.bephong-theme-luxury .bph-product-card__brand-img {
    width: 100% !important;
    height: clamp(18px, 7cqw, 24px) !important;
    max-width: 100% !important;
    max-height: 24px !important;
    object-fit: contain !important;
    object-position: right center !important;
  }
}
/* ===== END Brand Logo Container Responsive Final V6 ===== */