@charset "UTF-8";
.green-color{color: green}
.card.card-accordion .card-header {font-weight: 500!important;}
.post-body a {
    color: blue;
}
.post-body a:hover {
    color: #CCC;
}
.product-single-details .price-box-1 {
    margin-bottom: 2.3rem;
    color: #333;
    font-weight: 500;
    font-family: Roboto, sans-serif;
}
.price-box-1 {
    margin-bottom: 1.4rem;
    font-weight: 500;
    font-family: "Open Sans", sans-serif;
    line-height: 1;
}
.price-box-1 p {
    line-height: 1.5;
}

.product-single-details .old-price-1 {
    position: relative;
    top: 0px;
    color: #a7a7a7;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}

.old-price-1 {
    text-decoration: line-through;
    font-size: 12px;
    letter-spacing: .005em;
    color: #999;
    margin-right: 3px;
}

.bg-grey, .bg-color-grey {
    background-color: #f4f4f4!important;
}

/* Cards */
.card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px; /* Bo góc 8px */
}
.card-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.card-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-body {
	padding: 32px;
	padding: 2rem;
	position: relative;
	z-index: 1;
}

.card-text-color-hover-light:hover * {
	color: var(--light) !important;
}

.card-background-image-hover {
	background-size: cover;
	background-position: center;
}

.card-background-image-hover .card-body {
	background: var(--light-rgba-90);
	margin: 16px;
	margin: 1rem;
	padding: 16px;
	padding: 1rem;
}

/* Border */
.card-border {
	overflow: hidden;
}

.card-border:after {
	content: "";
	transition: .2s all ease;
	backface-visibility: hidden;
	position: absolute;
	left: 50%;
	height: 5px;
	width: 100%;
	transform: translateX(-50%);
	background-color: var(--primary);
}

.card-border.card-border-top:after {
	top: 0;
}

.card-border.card-border-bottom:after {
	bottom: 0;
}

.card-border.card-border-hover:after {
	width: 0;
}

.card-border.card-border-hover:hover:after {
	width: 100%;
}

/* Flip Card */
.flip-card {
	position: relative;
	border: none;
	perspective: 1000px;
}

.flip-card .flip-front,
.flip-card .flip-back {
	padding: 32px;
	padding: 2rem;
	backface-visibility: hidden;
	background: var(--light);
	box-shadow: 0px 0px 44px -10px rgba(0, 0, 0, 0.15);
	transform-style: preserve-3d;
	transition: ease transform 500ms;
}

.flip-card .flip-front .flip-content,
.flip-card .flip-back .flip-content {
	transform: translate3d(0, 0, 1px);
	backface-visibility: hidden;
}

.flip-card .flip-front.overlay:before,
.flip-card .flip-back.overlay:before {
	transform: translate3d(0, 0, 0px);
	backface-visibility: hidden;
}

.flip-card .flip-front {
	transform: translate3d(0, 0, 1px) rotateY(0deg);
}

.flip-card .flip-back {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translate3d(0, 0, -1px) rotateY(180deg);
}

.flip-card:hover .flip-front {
	transform: translate3d(0, 0, -1px) rotateY(-180deg);
}

.flip-card:hover .flip-back {
	transform: translate3d(0, 0, 1px) rotateY(0deg);
}

.flip-card.flip-card-vertical .flip-front {
	transform: translate3d(0, 0, 1px) rotateX(0deg);
}

.flip-card.flip-card-vertical .flip-back {
	transform: translate3d(0, 0, -1px) rotateX(180deg);
}

.flip-card.flip-card-vertical:hover .flip-front {
	transform: translate3d(0, 0, -1px) rotateX(-180deg);
}

.flip-card.flip-card-vertical:hover .flip-back {
	transform: translate3d(0, 0, 1px) rotateX(0deg);
}

.flip-card.flip-card-3d .flip-front .flip-content, .flip-card.flip-card-3d .flip-back .flip-content {
	perspective: inherit;
	transform: translate3d(0, 0, 60px);
}

:root{
  --red:#e30000;
  --gray:#e6e6e6;
  --text:#222;
}

/* Giá tổng */
.price-wrap{margin-bottom:12px}
.price{
  font-size:40px;
  font-weight:700;
  color:var(--red);
  line-height:1.1;
}
.currency{font-weight:600; margin-left:6px}

/* Nhãn lựa chọn hiện tại */
.choice-line{margin:8px 0 16px; font-size:15px}
.choice-line b{color:#205081}

/* Nhóm radio dạng pill */
.variants{
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.variant{
  position:relative;
}
.variant input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

/* Sử dụng Grid để bố trí radio + text */
.variant label{
  display:grid;
  grid-template-columns: 20px 1fr; /* Cột radio + cột text */
  align-items:center;
  gap:0 8px;
  min-width:220px;
  border:1.5px solid var(--gray);
  border-radius:8px;
  padding:12px 16px;
  cursor:pointer;
  transition:.2s ease;
}

/* Tiêu đề và giá xuống 2 dòng trong cột text */
.variant label .title,
.variant label .subprice{
  grid-column:2;
  display:block;
}
.variant label .title{
  font-weight:600;
  margin-bottom:2px;
}
.variant label .subprice{
  font-weight:700;
}

/* Trạng thái checked */
.variant input:checked + label{
  border-color:var(--red);
  box-shadow:0 0 0 2px rgba(227,0,0,.08);
}

/* Radio icon giả lập */
.variant label::before{
  content:"";
  grid-column:1;
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid var(--gray);
}

/* Khi checked có chấm đỏ bên trong */
.variant input:checked + label::before{
  border-color:var(--red);
  background: radial-gradient(circle, var(--red) 50%, transparent 51%);
}

.content-show-hide {
    /* Thiết lập chiều cao tối đa ban đầu. 
       1em tương đương chiều cao 1 dòng chữ. 12em ~ 7-8 dòng.
       Bạn có thể thay đổi giá trị này để hiển thị nhiều hoặc ít dòng hơn.
    */
    max-height: 12em; 
    overflow: hidden; /* Ẩn đi phần nội dung bị thừa */
    position: relative;
    transition: max-height 0.7s ease-in-out; /* Tạo hiệu ứng chuyển động mượt mà */
}

/* Lớp phủ mờ ở cuối đoạn văn bản bị cắt */
.content-show-hide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    transition: opacity 0.5s ease;
}

/* Trạng thái khi nội dung được mở rộng */
.content-show-hide.expanded {
    /* Chiều cao tối đa sẽ được tính bằng JavaScript để vừa khít nội dung */
    max-height: 2000px; /* Một giá trị đủ lớn để chứa mọi nội dung */
}

/* Ẩn lớp phủ mờ khi nội dung đã mở rộng */
.content-show-hide.expanded::after {
    opacity: 0;
}

/* Container để căn giữa nút */
.button-container-show-hide {
    text-align: center; /* Căn giữa nút */
    margin-top: 20px;
}

/* Nút "Xem thêm" */
#toggle-btn-show-hide {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Thay đổi để text-align có hiệu lực */
}

#toggle-btn-show-hide:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* CKEditor 5 content images */
.product-desc-content figure.image,
.product-size-content figure.image {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

.product-desc-content figure.image img,
.product-size-content figure.image img {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
}

.product-desc-content figure.image figcaption,
.product-size-content figure.image figcaption {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px auto 0;
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

/* CKEditor 5 responsive media embeds */
.product-desc-content figure.media,
.product-size-content figure.media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 24px auto;
    overflow: hidden;
    background: #000;
}

.product-desc-content figure.media iframe,
.product-size-content figure.media iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    opacity: 0;
    transition: opacity 180ms ease;
}

.product-desc-content figure.media iframe.is-loaded,
.product-size-content figure.media iframe.is-loaded {
    opacity: 1;
}

/* Reusable CTA button for article content */
.product-desc-content .tg-check-button,
.product-size-content .tg-check-button {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 15px 30px;
    background: #e8232a;
    color: #fff !important;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(232, 35, 42, 0.28);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.product-desc-content .tg-align-left,
.product-size-content .tg-align-left {
    text-align: left !important;
}

.product-desc-content .tg-align-center,
.product-size-content .tg-align-center {
    text-align: center !important;
}

.product-desc-content .tg-align-right,
.product-size-content .tg-align-right {
    text-align: right !important;
}

.product-desc-content .tg-align-justify,
.product-size-content .tg-align-justify {
    text-align: justify !important;
}

.product-desc-content .tg-check-button:hover,
.product-desc-content .tg-check-button:focus,
.product-size-content .tg-check-button:hover,
.product-size-content .tg-check-button:focus {
    background: #c91d23;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 35, 42, 0.36);
}

@media (max-width: 768px) {
    .product-desc-content .tg-check-button,
    .product-size-content .tg-check-button {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 18px;
        font-size: 16px;
        text-align: center;
    }
}

/* CKEditor 5 content tables */
.product-desc-content table,
.product-size-content table {
    width: auto;
    max-width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
}

.product-desc-content table.table,
.product-size-content table.table {
    margin-left: auto;
    margin-right: auto;
}

.product-desc-content table th,
.product-desc-content table td,
.product-size-content table th,
.product-size-content table td {
    padding: 10px 12px;
    border: 1px solid #d9e2ec;
    vertical-align: middle !important;
}

.product-desc-content .table-bordered,
.product-size-content .table-bordered {
    border: 1px solid #d9e2ec;
}
/* Render page content immediately instead of waiting for window.load. */
body:not(.loaded) > :not(.loading-overlay),
body:not(.loaded) > :not(.loading-overlay) * {
    visibility: visible !important;
    transition: none !important;
}

.loading-overlay {
    display: none !important;
}
