:root {
  --tva-primary-color: #F5A623;
  --tva-primary-hover: #FFBC34;
  --tva-primary-v2: rgb(255, 250, 250);
  --tva-border-radius: 6px;
  --tva-overlay-bg: rgba(0, 0, 0, 0.8);
  --tva-box-shadow: 0 0 10px 0 rgba(200, 200, 200, 0.5);
  --tva-z-index-overlay: 1000;
  --tva-transition: 0.3s ease;
  --tva-text-color: var(--tva-text__dark);
  --tva-text__light: #fff;
  --tva-text__dark: #333;
  --tva-background-color: #F5F5F5;
  --tva-light-background: rgb(255, 250, 250);
  --tva-border-color: #CCC;
  --tva-table-odd-bg: rgb(255, 250, 250);
  --tva-heading-color: #C0EB6A;
  --tva-title-3-color: #C0EB6A;
  --tva-max-width: min(1200px, 100vw);
  --tva-container-margin-bottom: 10px;
  --tva-tabs-gap: 10px;
}


/****************************** GENERAL ******************************/

.tva-container {
  max-width: var(--tva-max-width) !important;
}

.container {
  padding: 0;
}

html {
	font-size: 14px;
}

#main-content {
  padding: 0px;
}

a {
    all: unset;
    cursor: pointer;
}

a:focus,
a:active {
    outline: none;
    border: none;
    box-shadow: none;
}

a:hover {
	color: var(--tva-primary-color);
}

nav {
  margin-left: 15px;
  color: inherit;
}

.tva-navbar {
	display: flex;
	padding: 6px;
	gap: 6px;
	align-items: flex-end;
}

.tva-text-box {
  border: 1px solid var(--tva-border-color);
  border-left: 5px solid var(--tva-primary-color);
  background-color: white;
  padding: 10px;
}

.tva-language a {
  color: #fff;
}

.tva-language a:hover {
  color: #000;
}

.tva-loading-cursor, 
.tva-loading-cursor * {
    cursor: wait !important;
}

.tva-no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100%;
}

.tva-hidden {
  display: none !important;
}

.tva-reset-border {
  border: unset;
}

/* TVA BUTTON SYSTEM - Full CSS */

/* Base button */
.tva-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    user-select: none;
    white-space: nowrap;
}

/* -----------------------------------
 * COLOR VARIANTS
 * ----------------------------------- */

/* Primary */
.tva-button--primary {
    background-color: var(--tva-primary-color, #f0a500);
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}
.tva-button--primary:hover:not(:disabled) {
    background-color: #ffba00;
  	color: #fff;
}

/* Danger */
.tva-button--danger {
    background-color: var(--tva-danger-color, #dc3545);
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}
.tva-button--danger:hover:not(:disabled) {
    background-color: #e74c3c;
}

/* Success */
.tva-button--success {
    background-color: var(--tva-success-color, #28a745);
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}
.tva-button--success:hover:not(:disabled) {
    background-color: #34c759;
}

/* -----------------------------------
 * BORDER VARIANTS (Outline buttons)
 * ----------------------------------- */

/* Primary border */
.tva-button--primary-border {
    background-color: transparent;
    color: var(--tva-primary-color, #f0a500);
    border: 1px solid var(--tva-primary-color, #f0a500);
}
.tva-button--primary-border:hover:not(:disabled) {
    background-color: var(--tva-primary-color, #f0a500);
    color: #ffffff;
}

/* Danger border */
.tva-button--danger-border {
    background-color: transparent;
    color: var(--tva-danger-color, #dc3545);
    border: 1px solid var(--tva-danger-color, #dc3545);
}
.tva-button--danger-border:hover:not(:disabled) {
    background-color: var(--tva-danger-color, #dc3545);
    color: #ffffff;
}

/* Success border */
.tva-button--success-border {
    background-color: transparent;
    color: var(--tva-success-color, #28a745);
    border: 1px solid var(--tva-success-color, #28a745);
}
.tva-button--success-border:hover:not(:disabled) {
    background-color: var(--tva-success-color, #28a745);
    color: #ffffff;
}

/* -----------------------------------
 * SHAPE VARIANTS
 * ----------------------------------- */

/* Circle button */
.tva-button--circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

/* -----------------------------------
 * BEHAVIOR VARIANTS
 * ----------------------------------- */

/* Pressable effect (3D button) */
.tva-button--pressable {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
.tva-button--pressable:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* -----------------------------------
 * DISABLED STATE
 * ----------------------------------- */

.tva-button:disabled,
.tva-button--primary:disabled,
.tva-button--primary-border:disabled,
.tva-button--danger:disabled,
.tva-button--danger-border:disabled,
.tva-button--success:disabled,
.tva-button--success-border:disabled,
.tva-button--pressable:disabled,
.tva-button--circle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/*********** EFFECT **********/
/* Chữ chạy ngang */
.tva-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.tva-marquee-inner {
  display: inline-block;
  width: 100%;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  50% {
    transform: translateX(-120%);
  }
  50.00001% {
    transform: translateX(120%);
  }
  100% {
  transform: translateX(0%);
  }
}

/****************************** GENERAL ******************************/

.tva-p {
	font-size: 1rem !important; /* 14px */
}
.tva-small {
	font-size: 0.857rem; /* 12px */
}
.tva-h6, h6 {
	font-size: 1.14rem; /* 16px */
}
.tva-h5, h5 {
	font-size: 1.29rem; /* 18px */
}
.tva-h4, h4 {
	font-size: 1.5rem; /* 21px */
}
.tva-h3, h3 {
	font-size: 1.71rem; /* 24px */
}
.tva-h2, h2 {
	font-size: 2rem; /* 28px */
}
.tva-h1, h1 {
	font-size: 2.29rem; /* 32px */
}


/****************************** SINGLE PRODUCT ******************************/

.tva-spdesc-content {
  padding: 10px;
  max-height: 100vh;
  overflow-y: scroll;
}

.tva-sp-shortdesc {
  padding: 10px;
  max-height: 55vh;
  overflow-y: scroll;
}

.tva-sp-shortdesc::-webkit-scrollbar {
  display: none;
}

/* Bảng mô tả rút gọn */
.tva-spshortdesc tbody,
.tva-spshortdesc tr,
.tva-spshortdesc td,
.tva-spshortdesc th {
  border: 1px solid var(--tva-primary-color) !important;
}

.tva-spshortdesc thead {
  background-color: var(--tva-primary-hover);
}

.tva-spshortdesc tr td:first-child {
  font-weight: bold;
}

.tva-spshortdesc tbody tr:hover {
  text-decoration: underline;
}

.tva-spshortdesc table {
  display: list-item;
  list-style: none;
}

/* Cover */
.tva-sp-cover {
  padding-left: 0;
}

/* Meta */
.tva-sp-meta .tagged_as a {
  border: 1px solid var(--tva-border-color);
}

.tva-sp-meta .tagged_as a:hover {
  box-shadow: 0 0 2px black;
  color: black;
}

.tva-sp-meta .posted_in a {
  color: var(--tva-primary-color);
}

.tva-sp-meta .posted_in a:hover {
  color: var(--tva-primary-hover);
  text-decoration: underline;
}

/* Wishlist, Compare */
.tva-sp-wishlist a:hover,
.tva-sp-compare a:hover {
  color: var(--color);
  text-shadow: 0 0 16px var(--color);
}

.tva-sp-wishlist a:hover span,
.tva-sp-compare a:hover span {
  text-decoration: underline;
}

.tva-sp-wishlist a:hover:before {
  --spin-direction: rotatey(360deg);
  animation: 3s ease infinite spin;
}

.tva-sp-compare a:hover:before {
  --spin-direction: rotatex(360deg);
  animation: 3s ease infinite spin;
}

.tva-sp-wishlist a:hover {
  --color: rgb(230, 0, 0);
}

.tva-sp-compare a:hover {
  --color: green;
}

/* Share */
.tva-sp-share a {
  box-shadow: 0 0 5px var(--tva-subtle-color);
}

.tva-sp-share a:hover {
  animation: 0.4s ease infinite alternate bounce;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5) !important;
}

/* Disable review */
.wd-single-reviews {
  display: none;
}

/* Product nav */
.wd-event-hover:hover .wd-btn-prev + .wd-dropdown {
  right: 50%;
}
.wd-event-hover:hover .wd-btn-next + .wd-dropdown {
  left: 50%;
}


.tva-related-products .tva-product-carousel {
  border: unset;
}

/****************************** PRODUCT LIST ******************************/

.tva-pd-list .wd-product-cats,
.wd-add-btn {
  display: none;
}

.tva-pd-list .product-wrapper {
  background-color: white;
}

.tva-pd-list .product-element-bottom {
  padding: 0 4px;
}

.tva-pd-list .product-element-bottom .wd-entities-title {
  height: 39.2px;
  overflow: scroll;
  position: relative;
}

.tva-pd-list .product-element-bottom .wd-entities-title::-webkit-scrollbar {
  display: none;
}

.tva-pd-list .product-element-bottom .wd-entities-title a {
  position: absolute;
  color: var(--tva-text-color);
}

.tva-pd-list .product-wrapper:hover {
  border: 1px solid var(--tva-primary-color);
  box-shadow: 0 0 10px var(--tva-primary-color);
}

.tva-pd-list .product-wrapper:hover img {
  animation: 0.9s linear forwards zoom;
}

.tva-pd-list .product-wrapper:hover .content-product-imagin {
  box-shadow: 0 0 10px var(--tva-primary-color);
}

.tva-pd-list .product-wrapper:hover .wd-entities-title a {
  animation: 2.5s linear 1s text-flow;
}

/* Carousel */
.tva-pd-list .wd-carousel-item {
  border: 1px solid var(--tva-primary-color);
  border-left: unset;
}

.tva-pd-list .wd-carousel-item:first-child {
  border-left: 1px solid var(--tva-primary-color);
}

.carousel-bd-reset .wd-carousel-item {
  border: none;
}

.carousel-bd-reset .wd-carousel-item:first-child {
  border-left: none;
}

.tva-pd-list-cv {
  background-color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  margin-right: 160px;
}

/****************************** RANDOM PRODUCT ******************************/

.tva-random-pd .product-element-top img {
  transform-style: preserve-3d;
  --spin-direction: rotatey(360deg);
  animation: linear 6s 1 spin;
}

.tva-random-pd .product-element-top:hover img {
  animation: none;
}

.tva-random-pd .product-element-bottom {
  padding: 0 4px;
}

.tva-random-pd .product-element-bottom .wd-entities-title {
  height: 39.2px;
  overflow: scroll;
  position: relative;
}

.tva-random-pd .product-element-bottom .wd-entities-title::-webkit-scrollbar {
  display: none;
}

.tva-random-pd .product-element-bottom .wd-entities-title a {
  position: absolute;
  color: var(--tva-text-color);
}

.tva-random-pd .product-wrapper:hover .wd-entities-title a {
  animation: 2.5s linear 1s text-flow;
}

/****************************** TITLE ******************************/

/* === Tiêu đề dạng 1: Gradient + hiệu ứng nổi === */
.tva-title--1 {
  width: fit-content;
  position: relative;
  background: linear-gradient(0.25turn, var(--tva-primary-color), var(--tva-primary-hover));
  padding: 1rem;
  color: white !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  z-index: 1;
}
.tva-title--1::before,
.tva-title--1::after {
  content: "";
  position: absolute;
}
.tva-title--1::before {
  right: 0;
  top: 0;
  z-index: -1;
  width: 2.5rem;
  height: 100%;
  background-color: var(--tva-primary-hover);
  transform: skewX(-15deg) translateX(75%);
}
.tva-title--1::after {
  right: 0;
  top: 50%;
  z-index: -2;
  width: 2.5rem;
  height: 80%;
  background-color: black;
  transform: skewX(-15deg) translate(75%, -50%);
}

/* === Tiêu đề dạng 2: Viền trái nổi bật === */
.tva-title--2 {
  border: 1px solid var(--tva-primary-color);
  border-left: 6px solid var(--tva-primary-color);
  padding: 6px;
  margin: 6px;
  width: fit-content;
  background-color: white;
}

/* === Tiêu đề dạng 3: Mũi tên chỉ xuống === */
.tva-title--3 {
  width: fit-content;
  position: relative;
  background-color: var(--tva-title-3-color);
  padding: 15px 10px;
  border: none;
}
.tva-title--3::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  border-top: 10px solid var(--tva-title-3-color);
  border-left: 36px solid transparent;
  border-right: 36px solid transparent;
  border-bottom: none;
  z-index: 0;
}

/*ribbon down product nav single product layout*/

.tva-title--4 {
  width: fit-content;
  position: relative;
  background-color: var(--tva-title-3-color);
  padding: 6px 0px;
  border: none;
}

.tva-title--4::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  border-top: 10px solid var(--tva-title-3-color);
  border-left: 36px solid transparent;
  border-right: 36px solid transparent;
  border-bottom: none;
  z-index: 0;
}

.tva-title--4:hover {
  .wd-btn-next {		
    transform: translatex(10px);
  }
  .wd-btn-prev {
    transform: translatex(-10px);
  }
  .wd-btn-back {
    animation: 0.5s ease infinite alternate bounce;
  }
  .wd-btn-next, .wd-btn-prev, .wd-btn-back {
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,1);
  }
}

/* === Thẻ gắn tiêu đề nổi bật dạng "tag" === */
.tva-title--tag {
  position: relative;
  color: #fff;
  margin-left: 0;
  width: fit-content;
  text-shadow: 0 1px rgba(0, 0, 0, 0.8);
  background-color: var(--tva-primary-color);
  padding: 10px;
  box-shadow: 1px 2px 4px black;
}
.tva-title--tag::before {
  content: "";
  position: absolute;
  width: 10px;
  height: calc(100% + 10px);
  top: 0;
  left: -10px;
  background-color: var(--tva-primary-color);
  border-radius: 6px 0 0 6px;
}
.tva-title--tag::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  bottom: -7px;
  left: -7px;
  background-color: #333;
  border-radius: 6px 0 0 6px;
}

/****************************** CONTAINER STYLE ******************************/

.tva-glass {
  background: rgba(255, 255, 255, 0.1); /* Màu nền mờ */
  backdrop-filter: blur(10px);          /* Làm mờ nền phía sau */
  -webkit-backdrop-filter: blur(10px);  /* Cho Safari */
  border-radius: 15px;                  /* Bo góc */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Viền mờ */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);  /* Đổ bóng */
  padding: 20px;
  color: #fff;
}

.tva-glass-dark {
  background: rgba(0, 0, 0, 0.3);         /* Màu đen trong suốt */
  backdrop-filter: blur(10px);           /* Làm mờ nền phía sau */
  -webkit-backdrop-filter: blur(10px);   /* Hỗ trợ Safari */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Viền trắng nhẹ */
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: #fff;                           /* Chữ trắng */
  padding: 24px;
}








/* Dropdown */
.wd-dropdown {
  border: 1px solid var(--tva-primary-color);
  box-shadow: 0 0 15px var(--tva-primary-color);
  padding: 10px;
}

/* Flash cross effect */
.tva-flash {
  position: relative;
  overflow: hidden;
}

.tva-flash::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(5px);
}

.tva-flash:hover::after {
  animation: var(--flash-direction);
}

.tva-flash--ltr:hover {
  --flash-direction: tva-flash--ltr 0.35s ease-in-out;
}

.tva-flash--ltr::after {
  top: 0;
  left: calc(-30% - 20px);
  display: none;
  transform: skewX(-15deg);
}

.tva-flash--ltr:hover::after {
  display: block;
}

.tva-flash--rtl:hover {
  --flash-direction: tva-flash--rtl 0.35s ease-in-out;
}

.tva-flash--rtl::after {
  top: 0;
  right: calc(-30% - 20px);
  display: none;
  transform: skewX(15deg);
}

.tva-flash--rtl:hover::after {
  display: block;
}

/* End flash cross */

/****************************** KEYFRAMES ******************************/

@keyframes spin {
  0% {}
  70% {
    transform: var(--spin-direction);
  }
  100% {
    transform: var(--spin-direction);
  }
}

@keyframes float {
  0% {}
  50% {
    transform: scale(110%);
  }
  100% {
    transform: scale(100%);
  }
}

@keyframes shrink {
  0% {}
  100% {
    transform: scale(var(--tva-shrink));
  }
}

@keyframes zoom {
  from {}
  to {
    transform: scale(120%);
  }
}

@keyframes text-flow {
  0% {
    top: 0;
  }
  50% {
    transform: translateY(-100%);
  }
  100% {
    top: 0;
  }
}

@keyframes bounce {
  0% {}
  100% {
    transform: translateY(-10px);
  }
}

@keyframes expandSize {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tva-flash--ltr {
  from {}
  to {
    width: 0;
    top: 0;
    left: 120%;
  }
}

@keyframes tva-flash--rtl {
  from {}
  to {
    width: 0;
    top: 0;
    right: 120%;
  }
}

@keyframes tva-spin-360 {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}
