/* Right-side sidebar column on the single product page: showrooms + related
   products. See theme/inc/single-product-sidebar.php for the hooks that build
   the .pcseal-product-layout wrapper around WooCommerce's own single-product
   markup. */

.pcseal-product-layout {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.pcseal-product-main {
	flex: 1 1 auto;
	min-width: 0;
}

.pcseal-product-sidebar {
	flex: 0 0 260px;
	width: 260px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pcseal-sidebar-box {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
}

.pcseal-sidebar-box h3 {
	margin: 0 0 10px;
	font-size: 0.88rem;
	color: var(--ink);
	text-transform: uppercase;
	letter-spacing: .03em;
}

.pcseal-sidebar-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --- Sidebar: Contact (Liên hệ) --- */
.pcseal-sidebar-contact li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	font-size: 0.84rem;
}
.pcseal-sidebar-contact li:first-child {
	border-top: none;
	padding-top: 0;
}
.pcseal-sidebar-contact li:last-child {
	padding-bottom: 0;
}
.pcseal-sidebar-contact li .label {
	display: flex;
	flex-direction: column;
	color: var(--muted);
}
.pcseal-sidebar-contact li .label .name {
	font-style: normal;
	font-size: 0.76rem;
	color: var(--ink);
	font-weight: 600;
}
.pcseal-sidebar-contact li .phone {
	color: var(--accent-strong);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.84rem;
	white-space: nowrap;
}

/* --- Sidebar: Trust bullets (Yên tâm mua sắm) --- */
.pcseal-sidebar-trust ul li {
	position: relative;
	padding: 6px 0 6px 20px;
	border-top: 1px solid var(--line);
	font-size: 0.84rem;
	color: var(--ink);
}
.pcseal-sidebar-trust ul li:first-child {
	border-top: none;
	padding-top: 0;
}
.pcseal-sidebar-trust ul li:last-child {
	padding-bottom: 0;
}
.pcseal-sidebar-trust ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--accent-strong);
	font-weight: 700;
}
.pcseal-sidebar-trust ul li:first-child::before {
	top: 0;
}

/* --- Sidebar: Showrooms --- */
.pcseal-sidebar-showrooms li {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	font-size: 0.84rem;
}
.pcseal-sidebar-showrooms li:first-child {
	border-top: none;
	padding-top: 0;
}
.pcseal-sidebar-showrooms li:last-child {
	padding-bottom: 0;
}
.pcseal-sidebar-showrooms li strong {
	color: var(--ink);
}
.pcseal-sidebar-showrooms li .address {
	color: var(--muted);
}
.pcseal-sidebar-showrooms li .phone {
	color: var(--accent-strong);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.82rem;
}

/* --- Sidebar: Related products --- */
.pcseal-sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcseal-sidebar-related-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s;
}
.pcseal-sidebar-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pcseal-sidebar-related-item:hover {
  opacity: .8;
}
.pcseal-sidebar-related-item img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.pcseal-sidebar-related-item .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pcseal-sidebar-related-item .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcseal-sidebar-related-item .price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-strong);
}
.pcseal-sidebar-related-item .price del {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}

/* Stack below the main content on narrow viewports */
@media (max-width: 780px) {
	.pcseal-product-layout {
		flex-direction: column;
	}
	.pcseal-product-sidebar {
		width: 100%;
		flex: 1 1 auto;
	}
}
