* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ── WIDGET ── */
.widget {
  border-radius: 16px;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.card {
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.card:hover {
  border-color: #e05a30;
  box-shadow: 0 2px 10px rgba(224, 90, 48, 0.10);
}

.card.selected {
  border: 2px solid #e05a30;
  box-shadow: 0 2px 14px rgba(224, 90, 48, 0.13);
}

/* ── CARD IMAGE ── */
.card-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── CARD TEXT ── */
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-align: center;
  line-height: 1.35;
}

.card.selected .card-title {
  color: #e05a30;
}

.card-price-area {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-display-price {
  font-size: 17px;
  color: #555;
  font-weight: 700;


}

.card-regular-price {
  display: none;
  /* font-size: 17px;
  color: #555;
  font-weight: 700; */
}

.is_on_sale {
  display: block;
  text-decoration: line-through !important;
}

.sale-price {
  font-size: 22px;
  color: #e05a30;
  font-weight: 800;
}

/* ── BUTTONS ── */
.btn-area {
  display: flex;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

#affiliate-link {
  width: 100%;
  margin-bottom: 1em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-affiliate {
  width: 100%;
}

.btn-custom-variation-product {
  flex: 1;
  border: none;
  border-radius: 12px !important;
  padding: 7px 5px;
  margin-right: 0px !important;
  margin-left: 0px !important;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  transition: filter 0.15s, transform 0.1s;
}

.btn-custom-variation-product:active {
  transform: scale(0.97);
}

.btn-affiliate {
  font-size: 15px;
  background: #f0c14b;
  color: #111;
}

.btn-affiliate-2 {
  font-size: 15px;
  background: #e67800;
  color: #111;
}

.btn-affiliate:hover {
  filter: brightness(0.93);
}

.btn-now {
  font-size: 14px;
  background: #f0a500;
  color: #050505;
}

.btn-now:hover {
  filter: brightness(0.9);
}

.btn-cart {
  font-size: 14px;
  background: #e05a30;
  color: #fff;
}

.btn-cart:hover {
  filter: brightness(0.9);
}

.woocm-variation-product-price p {
  margin-bottom: 0px !important;
  font-weight: 600;
  text-transform: uppercase;
  color: #71717b;
}

.woocm-variation-product-attribute p {
  font-size: 16px;
}


/* Button loading */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.button-loading.loading::after {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);

}

@keyframes spin {
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}


/* Notification slide */
.show-btn {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin: 10px;
}

.show-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


.notification-container {
  position: fixed;
  bottom: 65px;
  right: -400px;
  z-index: 1000;
  transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification {
  padding: 15px;
  color: black;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.notification-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  color: white;
  margin-right: 7px;
}

.notification-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.notification-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.notification-message {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.view-cart-btn {
  background-color: black;
  border-radius: 5px;
  cursor: pointer;
}

.view-cart-btn span {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
  margin: 10px;
  color: white;
  margin: 10px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.notification-container.show {
  right: 30px;
  /* Trượt vào từ phải */
}

.notification-container.hide {
  right: -400px;
  /* Trượt ra bên phải */
  transition: right 0.5s ease-in;
}

/* Responsive */
@media (max-width: 480px) {
  .notification {
    min-width: 300px;
    margin: 0 10px;
  }

  .notification-container {
    right: -350px;
  }

  .notification-container.show {
    right: 10px;
  }

  .notification-container.hide {
    right: -350px;
  }
}

.demo-container {
  text-align: center;
}

.info {
  color: white;
  margin-top: 20px;
  opacity: 0.8;
}