/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Global font */
html,
body {
  font-family: "Montserrat", sans-serif !important;
}

/* Flatsome fixes */
body,
p,
a,
li,
span,
button,
input,
textarea,
select {
  font-family: "Montserrat", sans-serif !important;
}

li {
  /* list-style: none; */
}

/* Heading */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif !important;
}

.header-nav.header-nav-main {
  justify-content: center;
}
.header-nav.header-nav-main a {
  text-decoration: none;
}

.marquee-index ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 150px;
}
.marquee-index ul li {
  color: var(--Theme-Neutral-color-900, #000);
  text-align: center;
  font-size: var(--font-size-heading-heading-3, 40px);
  font-style: normal;
  font-weight: var(--Font-Weight-Semibold, 600);
  line-height: 150%; /* 60px */
  margin-bottom: 0;
}

/* Hiệu ứng hover vào các thẻ navigation header */
.header-nav > li > a:before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav > li:hover > a:before {
  transform: translateX(-50%) scaleX(1);
}

/* ẩn địa chỉ thnah toán ở trang my account */
.woocommerce-Address:last-child,
.u-column2.col-2.woocommerce-Address {
  display: none !important;
}

/* Footer */
#footer {
  background: var(--Color-BG, #f9f9f9);
}
.footer-menu ul li a {
  color: var(--Text-text-primary-2, #333);
  font-size: var(--Font-Size-Body-Lg, 16px);
  font-style: normal;
  line-height: 150%; /* 24px */
  letter-spacing: -0.16px;
}
.footer-menu ul li a:hover {
  color: var(--Color-blue, #005095) !important;
}
/* End Footer */

/* Product Card Hover Effects */
.newest-products-section {
  padding: 40px 0;
}

.product-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Hover Effect 1: Box Shadow */
.product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Product Image Wrapper */
.product-image {
  position: relative;
  overflow: hidden;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

/* Hover Effect 2: Image Swap */
.product-image-main {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.product-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
}

/* Chỉ ẩn ảnh chính khi hover VÀ có ảnh gallery */
.product-card:hover .product-image-wrapper.has-gallery .product-image-main {
  opacity: 0;
}

.product-card:hover .product-image-wrapper.has-gallery .product-image-hover {
  opacity: 1;
}

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: white;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10;
}

/* Product Info */
.product-info {
  padding: 20px 15px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: #333;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
}

.product-price del {
  color: #999;
  margin-left: 8px;
  font-weight: 400;
}

/* Color Dots */
.product-colors {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.2);
  border-color: #000;
}

/* Hover Effect 3: Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.add-to-cart-btn:hover::before {
  width: 300px;
  height: 300px;
}

.add-to-cart-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.add-to-cart-btn:hover .cart-icon {
  transform: scale(1.2) rotate(10deg);
}
/* End Product Card Hover Effects */

.header-top {
  background: var(--Color-blue, #005095);
}

.woocommerce-MyAccount-navigation ul li {
  margin-left: 0;
}

/* scroller inner */

.scroller[data-animated="true"] {
  overflow: hidden;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 15s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 60s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

.tag-list {
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

/* chat ở footer */

.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.chat-icon-main {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.chat-icon-main:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chat-icon-main img {
  transition: transform 0.3s ease;
}

.chat-widget:hover .chat-icon-main img {
  transform: rotate(15deg);
}

.chat-options {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.chat-widget:hover .chat-options,
.chat-widget:active .chat-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  transform: scale(0.5);
  -webkit-transform: scale(0.5);
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  -o-transform: scale(0.5);
}

.chat-widget:hover .chat-option {
  opacity: 1;
  transform: scale(1);
}

.chat-option:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(1.15) !important;
  -moz-transform: scale(1.15) !important;
  -ms-transform: scale(1.15) !important;
  -o-transform: scale(1.15) !important;
}

.chat-option.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dca 100%);
}

.chat-option.instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcaf45 100%);
}

/* Animation cho mobile */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 20px;
    right: 20px;
  }

  .chat-icon-main {
    width: 55px;
    height: 55px;
  }

  .chat-option {
    width: 45px;
    height: 45px;
  }
}

/* Hiệu ứng pulse nhẹ */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.6);
  }
}

.chat-icon-main {
  animation: pulse 2s ease-in-out infinite;
}

.chat-widget:hover .chat-icon-main {
  animation: none;
}

/* hiển thị qr code khi khách chuyển khoản */

.qr-thankyou-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}
.qr-thankyou-code {
  text-align: center;
  margin: 20px 0;
}
.qr-thankyou-code img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 8px;
}

.qr-thankyou-warning {
  background: #ededed;
  color: #000;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0;
  font-weight: 500;
}
.qr-thankyou-warning a:hover {
  text-decoration: underline;
}

/* CSS mã giảm giá xuất hiện */

#coupon-card-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coupon-card {
  border: 2px dashed #000;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.coupon-card .coupon-content {
  position: relative;
  z-index: 1;
}

.coupon-card:not(.active):hover {
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Nút xóa (X) - nằm bên trái */
.coupon-card .coupon-remove {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: #f44336;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
}

/* Hiện nút X khi card active */
.coupon-card.active .coupon-remove {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.coupon-card .coupon-remove:hover {
  background: #d32f2f;
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Loading state */
.coupon-card .coupon-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 20;
}

.coupon-card.loading .coupon-loading {
  display: flex;
}

.coupon-card.loading {
  pointer-events: none;
}

/* Spinner */
.coupon-loading .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: #4caf50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Trạng thái active */
.coupon-card.active {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: white !important;
  border-color: #4caf50 !important;
  border-style: solid !important;
  cursor: default;
  transform: scale(1.02);
}

.coupon-card.active:hover {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: white !important;
  transform: scale(1.02);
}

.coupon-card.active strong {
  color: white !important;
}

/* Animation cho nút xóa */
@keyframes removeAppear {
  0% {
    transform: scale(0) rotate(90deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Message */
.coupon-message {
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

/* End mã giảm giá */

@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/
}
