/* =========================
   GENERAL
========================= */

#main-content {
  padding: 0;
}

/* =========================
   HEADER CHÍNH
========================= */
.whb-main-header {
  --col-left-width: 20%;
}

.whb-main-header .container {
  padding: 0;
}

[data-elementor-device-mode="desktop"] .whb-general-header {
  background: linear-gradient(to right, #f5a623 50%, #fff 50%);
}

/* Cột trái + giữa: desktop */
[data-elementor-device-mode="desktop"] 
  .whb-general-header-inner .whb-col-left,
[data-elementor-device-mode="desktop"] 
  .whb-general-header-inner .whb-col-center {
  display: flex;
}

/* Cột trái */
.whb-general-header-inner .whb-col-left {
  width: var(--col-left-width);
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0;
  background-color: #fff;
}

.whb-general-header-inner .whb-col-left::before {
  content: '';
  position: absolute;
  inset: 0;
  right: 0;
  background-color: #f5a623;
  border-top-right-radius: calc(var(--wd-header-general-h) / 3);
  z-index: 10;
}

/* Cột giữa */
.whb-general-header-inner .whb-col-center {
  position: relative;
  background-color: #f5a623;
}

.whb-general-header-inner .whb-col-center::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 0;
  background-color: #fff;
  border-bottom-left-radius: calc(var(--wd-header-general-h) / 3);
}

/* Khi header dính */
.whb-sticked .whb-general-header-inner .whb-col-left::before {
  border-top-right-radius: calc(var(--wd-header-clone-h) / 3);
}

.whb-sticked .whb-general-header-inner .whb-col-center::before {
  border-bottom-left-radius: calc(var(--wd-header-clone-h) / 3);
}

/* Cột phải */
.whb-general-header-inner .whb-col-right {
  background-color: #fff;
}

/* =========================
   LOGO
========================= */
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--wd-header-general-h) * 0.8);
  aspect-ratio: 1 / 1;
  padding: 10px !important;
  border-radius: 50%;
  background-color: #fff;
  z-index: 11;
}

.whb-sticked .site-logo {
  width: auto;
  aspect-ratio: 1 / 1;
}

.wd-main-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90%;
  width: auto;
  aspect-ratio: 1 / 1;
}

.wd-main-logo img {
  height: 90%;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  padding: 0 !important;
}

/* =========================
   HEADER BOTTOM
========================= */


.whb-header-bottom {
  margin-top: -1px;
  border-top: 1px solid rgba(129, 129, 129, 0.2) !important;
}

.whb-header-bottom-inner .whb-col-left {
  width: var(--col-left-width);
  margin: 0;
  border-left: 1px solid rgba(129, 129, 129, 0.2);
  border-right: 1px solid rgba(129, 129, 129, 0.2);
}

.wd-header-cats {
  width: 100%;
  height: 100% !important;
  margin: 0 !important;
}

.wd-header-cats .menu-opener,
.wd-header-cats .wd-dropdown-cats {
  min-width: unset !important;
}

.wd-dropdown-cats {
  border: 1px solid var(--via-primary-color);
  padding: 12px;
}

#menu-nav-menu li {
  transition: transform 0.3s ease;
}

#menu-nav-menu li:hover {
  transform: translatey(-4px);
  transition: transform 0.3s ease;
}

#menu-mega-menu li:hover a {
  background-color: unset;
  color: #fff;
  transition: all ease 0.3s;
}

#menu-mega-menu li.menu-item-object-product_cat:hover {
  background-color: var(--via-primary-color);
}

#menu-mega-menu li.cat-item a {
  color: #333;
}

/* =========================
   NAVIGATION
========================= */
.wd-header-main-nav .current-menu-item {
  --dia: 12px;
  position: relative;
  color: var(--via-primary-color);
  background-color: #fff;
  padding: 0 12px;
  border-radius: 8px;
  pointer-events: none;
}

/* Chấm trang hiện tại */
.wd-header-main-nav .current-menu-item::after,
.wd-header-main-nav .current-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.wd-header-main-nav .current-menu-item::after {
  width: var(--dia);
  height: var(--dia);
  border-radius: 50%;
  background-color: #fff;
  transform: translate(-50%, calc(-100% + var(--dia) / 2));
  z-index: 11;
}

.wd-header-main-nav .current-menu-item::before {
  width: calc(var(--dia) * 1.5);
  height: calc(var(--dia) * 1.5);
  border-radius: 80%;
  background-color: #f5a623;
  transform: translate(-50%, calc(-100% + calc(var(--dia) * 1.5) / 2));
  z-index: 10;
}

/* Link thường */
.wd-nav[class*="wd-style-"] > li > a {
  color: #fff;
}

.wd-header-main-nav 
  .wd-nav[class*="wd-style-"] > li:not(.current-menu-item) > a:hover {
  color: #fff;
  animation: float ease 0.5s;
}

/* =========================
   MOBILE
========================= */

[data-elementor-device-mode="mobile"] .whb-general-header > .container {
	padding: 0;
}

.whb-mobile-left, .whb-mobile-right {
  width: 20%;
  background-color: var(--via-primary-color);
  margin: 0 !important;
}

.whb-mobile-left {
  border-top: 1px solid rgba(129, 129, 129, 0.2);
  border-top-right-radius: calc(var(--wd-header-general-sm-h));
}

.whb-mobile-right {
  border-top: 1px solid rgba(129, 129, 129, 0.2);
  border-top-left-radius: calc(var(--wd-header-general-sm-h));
}

.whb-mobile-center {
  width: 60%;
  justify-content: center;
  border-bottom: 1px solid rgba(129, 129, 129, 0.2);
  border-bottom-left-radius: calc(var(--wd-header-general-sm-h));
  border-bottom-right-radius: calc(var(--wd-header-general-sm-h));
}

/* =========================
   POSTER
========================= */

.via-poster-cover {
	overflow: hidden !important;
}
.via-poster {
	width: 100%;
	aspect-ratio: 21 / 9;
}

/* =========================
	BANNER
========================= */

.via-banner-cover {
	
}

.via-nested-banner {
	width: 100%;
}

.via-nested-banner .banner__item {
	aspect-ratio: 21 / 9;
}

.banner__item-field {
	position: relative;
	display: flex;
	height: 100% !important;
	justify-content: center;
	align-items: center;
}

.banner__item-text {
	position: absolute !important;
	top: 0;
	left: 0;
}

.banner__item-img {
	position: relative;
    width: 100%;
	height: 100%;
	overflow: hidden;
}

.banner__item-img img {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
    width: 100%;
	height: 100%;
	transition: all 1s ease;
}

.banner__item .banner__item-img.item--1 {
	animation: circle-move 20s linear infinite;
}

.banner__item:hover .banner__item-img.item--1 {
	animation: none;
	animation: bannerZoom 1s ease forwards;
}

.banner__item:hover .banner__item-img.item--2 {
	animation: bannerZoom 1s ease forwards;
}

@keyframes circle-move {
	0%   { transform: scale(1.2) translateX(10px) rotate(0deg); }
	25%  { transform: scale(1.2) rotate(90deg) translateX(10px) rotate(-90deg); }
	50%  { transform: scale(1.2) rotate(180deg) translateX(10px) rotate(-180deg); }
	75%  { transform: scale(1.2) rotate(270deg) translateX(10px) rotate(-270deg); }
	100% { transform: scale(1.2) rotate(360deg) translateX(10px) rotate(-360deg); }
}

@keyframes bannerZoom {
	0% {
		transform: scale(1) ;
	}
	100% {
		transform: scale(1.1) translatex(-20px);
	}
}


/* =========================
	GIỚI THIỆU
========================= */

.bar {
  --color-main: #a047c6;
  --color-side: #6f3289;
  --padding: 10px 20px;
  --side-border-width: 4px;
  --height: 50px;

  color: #FFF;
  background-color: var(--color-main);
  padding: var(--padding);
  width: fit-content;
  height: var(--height);
  margin: 50px auto;
  text-align: center;
  position: relative;
  text-transform: uppercase;
  font: 18px/1.5 'Bree Serif', Courier, monospace;
  border: 2px transparent solid;
  box-shadow: 0 10px 30px -10px gray;
}

.bar p {
  margin: 0;
  position: relative;
  z-index: 2;
}

.bar span {
  position: absolute;
}

/* Tam giác nhỏ phía dưới */
.bar span:nth-child(2),
.bar span:nth-child(4) {
  border-style: solid;
  border-width: var(--side-border-width);
  z-index: 1;
  top: 100%;
}

.bar span:nth-child(2) {
  border-color: #000 #000 transparent transparent;
  left: 0;
	transform: rotate(-90deg);
}
.bar span:nth-child(4) {
  border-color: #000 transparent transparent #000;
  right: 0;
	transform: rotate(90deg);
}

/* Miếng lớn 2 bên */
.bar span:nth-child(3),
.bar span:nth-child(5) {
  top: calc(var(--height) * 0.3);
  border-style: solid;
  border-width: calc(var(--height) / 2.5);
  z-index: 0;
}

.bar span:nth-child(3) {
  border-color: var(--color-side) var(--color-side) var(--color-side) transparent;
  right: 100%;
  box-shadow: 20px 20px 30px -10px grey;
}
.bar span:nth-child(5) {
  border-color: var(--color-side) transparent var(--color-side) var(--color-side);
  left: 100%;
  box-shadow: -20px 20px 30px -10px grey;
}

/* =========================
	SHOP PAGE
========================= */

.via-category-card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.via-category-card img:hover {
  transform: scale(1.3);
  transition: transform ease 0.3s;
}

.via-category-tree ul {
  list-style: none;
  max-height: 200px;
  overflow-y: scroll;
}

.via-category-tree ul::-webkit-scrollbar {
  width: 6px;
}

.via-category-tree ul::-webkit-scrollbar-track {
  background: transparent;
}

.via-category-tree ul::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.via-category-tree ul::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.via-category-tree  a.parent-cat {
  font-weight: bold;
  font-size: 1.25rem;
  color: #000;
}
.via-category-tree a.child-cat {
  color: rgb(131, 131, 131);
}

.via-category-tree .parent-cat:hover {
  padding-left: 6px;
  transition: padding-left ease 0.5s;
}

.via-category-tree .child-cat-list {
  padding: 2px;
}

.via-category-tree .child-cat-list li {
  position: relative;
  width: fit-content;
}

.via-category-tree .child-cat-list li:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0;
  width: 0;
  background-color: var(--via-primary-color);
}

.via-category-tree .child-cat-list li:hover:after {
  height: 1px;
  width: 100%;
  transition: width ease 0.5s;
}

@media (max-width: 767px) {
  .via-category-card {
    max-width: 50% !important;
  }
  .via-category-tree .child-cat-list {
    display: none;
  }
}

.via-category-group {
  display: none;
}

/* =========================
	BREADCRUMBS
========================= */
.via-breadcrumbs {
  padding: 10px;
  background-color: #fff;
}

.via-breadcrumbs a {
  color: #333;
  text-decoration: none;
}

.via-breadcrumbs a:hover {
  color: var(--tva-primary-color);
}

.via-breadcrumbs .elementor-widget-container {
  margin-bottom: 0 !important;
}

.via-breadcrumbs__last {
  font-weight: bold;
}

/* =========================
	PRODUCT CAROUSEL
========================= */

.via-product-carousel .wd-carousel {
  padding: 12px;
}

.via-product-carousel .wd-carousel-wrap {
  gap: 6px;
}

.via-product-carousel .wd-product {
  background-color: #fff;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.3s ease;
}

.via-product-carousel .wd-product:hover {
  transform: translatey(-10px);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.via-product-carousel .wd-product .product-wrapper .product-element-bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* =========================
	CATEGORY MANSORY
========================= */

.via-category-mansory .category-grid-item:hover .wd-cat-content {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  inset-inline-start: 12px;
  inset-inline-end: 12px;
  padding: 6px !important;
  bottom: 12px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.via-category-mansory .wd-entities-title {
  background-color: inherit;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: inherit;
  padding: 6px;
  width: 100%;
}

.via-category-mansory .wd-cat-count {
  color: inherit;
}

/* =========================
	LOADMORE BUTTON
========================= */

.wd-load-more, .wd-load-more:hover {
  background-color: var(--via-primary-color);
  color: #fff;
  border: 1px solid var(--via-primary-color);
}

.wd-load-more:hover {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5) !important;
}


/* =========================
	SINGLE PRODUCT
========================= */

/* Wishlist, Compare */
.via-sp-wishlist a:hover,
.via-sp-compare a:hover {
  color: var(--color);
  text-shadow: 0 0 16px var(--color);
}

.via-sp-wishlist a:hover span,
.via-sp-compare a:hover span {
  text-decoration: underline;
}

.via-sp-wishlist a:hover:before {
  --spin-direction: rotatey(360deg);
  animation: 3s ease infinite wc-spin;
}

.via-sp-compare a:hover:before {
  --spin-direction: rotatex(360deg);
  animation: 3s ease infinite wc-spin;
}

.via-sp-wishlist a:hover {
  --color: rgb(230, 0, 0);
}

.via-sp-compare a:hover {
  --color: green;
}

/* Meta */
.via-sp-meta .tagged_as a {
  border: 1px solid var(--via-border-color);
}

.via-sp-meta .tagged_as a:hover {
  box-shadow: 0 0 2px black;
  color: black;
}

.via-sp-meta .posted_in a {
  color: var(--via-primary-color);
}

/* Share */
.iva-sp-share a {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.via-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;
}

@keyframes wc-spin {
  0% {}
  70% {
    transform: var(--spin-direction);
  }
  100% {
    transform: var(--spin-direction);
  }
}

/* =========================
	FOOTER
========================= */

.via-footer-container {
	width: 100%;
    background-color: #16191e;
    color: #fff;
    border-top: 10px solid var(--via-primary-color);
}

.via-footer__row {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

.via-footer__row__col {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.via-footer__row.row--1 .col--1 {
	width: 30%;
}

.via-footer__row.row--1 .col--2 {
	width: 70%;
    align-items: center;
}

.via-footer-logo {
	display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo__image {
	max-width: 140px;
}

.logo__sub {
    font-size: 0.5rem;
	width: fit-content;
    color: rgb(170, 170, 170);
}

.via-footer-title {
	font-size: 1.5rem;
    line-height: 1;
    text-align: center;
    font-weight: bold;
}

.via-footer__row.row--2 .col--1, 
.via-footer__row.row--2 .col--2 {
	width: 50%;
    display: grid;
    align-items: start;
    grid-gap: 10px;
}

.via-footer__row.row--2 .col--1 {
    grid-template-columns: 1fr 1fr 1fr;
}

.via-footer__row.row--2 .col--2 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.via-footer-infobox {
	display: flex;
    flex-direction: column;
}

.infobox__title {
	text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.infobox__content {
	color: rgb(170, 170, 170);
    overflow: hidden;
    padding-left: 20px;
    font-size: 0.9rem;
}

.infobox__content a {
	color: rgb(170, 170, 170);
}

.infobox__content a:hover {
	color: var(--via-primary-color);
}

.infobox__content ul {
	list-style: disc;
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 768px) { 
    .via-footer__row {
        margin-bottom: 10px;
        flex-direction: row;
    }
    .logo__image {
        max-width: 60px;
    }

    .via-footer-title {
        font-size: 1rem;
    }

    .infobox__content {
        display: none;
        padding: 10px 0 0;
    }

    .infobox__title {
        cursor: pointer;
        position: relative;
        padding-right: 20px;
        font-size: 0.85rem;
        text-align: left;
    }

    .infobox__title::after {
        content: '▼';
        font-size: 0.65rem;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 0.3s;
    }

    .infobox__title.active::after {
        transform: translateY(-50%) rotate(180deg);
    }
  
    .infobox__title.active + .infobox__content {
        display: block;
        font-size: 0.8rem;
    }
    
    .via-footer__row.row--2 .col--1, 
    .via-footer__row.row--2 .col--2 {
        grid-template-columns: 1fr;
    }
}