/*
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.   ***************/


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


}

/* ====== PRODUCT GALLERY – LOOK & FEEL ====== */

/* Khung ảnh lớn: bo góc + đổ bóng */
.product-gallery .woocommerce-product-gallery__wrapper.product-gallery-slider,
.product-gallery .woocommerce-product-gallery__wrapper .flickity-viewport,
.product-gallery .woocommerce-product-gallery__wrapper .flickity-slider {
  border-radius: 16px;
  
}
.product-gallery .woocommerce-product-gallery__wrapper.product-gallery-slider {
  position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Ảnh bên trong fill gọn */
.product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badge đếm ảnh (JS sẽ thêm .kb-gallery-counter vào wrapper) */
.product-gallery .kb-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.6);
  border-radius: 12px;
  line-height: 1;
  backdrop-filter: saturate(120%) blur(2px);
}

/* Nút điều hướng (mũi tên) dạng tròn nổi */
.product-gallery .flickity-button {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  width: 38px;
  height: 38px;
  opacity: .95;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
/*.product-gallery .flickity-button:hover { opacity: 1; transform: scale(1.06); }*/
.product-gallery .flickity-button .arrow { fill: #222; } /* màu mũi tên */

/* Ẩn viền mặc định khi disabled để gọn gàng */
.product-gallery .flickity-button:disabled { opacity: .35; box-shadow: none; }

/* ====== THUMBNAILS ROW ====== */
.product-thumbnails.thumbnails.slider {
  margin-top: 14px;
}
.product-thumbnails img{
    margin-bottom: 0px!important;
    opacity: 100%;
}
.product-thumbnails a {
    background-color: #ffffff00;}

/* Khoảng cách giữa các item */
.product-thumbnails .col { padding-left: 6px; padding-right: 6px; }

/* Ảnh thumbnail: bo góc + bóng + hiệu ứng hover */
.product-thumbnails .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 84px;                 /* cao đều nhau */
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
  display: block;
}
@media (max-width: 767.98px) {
  .product-thumbnails .attachment-woocommerce_thumbnail { height: 72px; }
}

/* Item được chọn: viền đậm + thu nhỏ nhẹ giống ảnh mẫu */
.product-thumbnails .is-nav-selected .attachment-woocommerce_thumbnail,
.product-thumbnails .is-selected .attachment-woocommerce_thumbnail {
  border-color: #1f2937;         /* neutral dark */
  transform: scale(0.985);
}

/* Nút điều hướng của dải thumbnail */
.product-thumbnails .flickity-button {
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.product-thumbnails .flickity-button:hover { background: #fff; }

/* Tăng khoảng thở xung quanh gallery */
.product-gallery.col.large-12 { padding: 4px; }

.product-thumbnails .is-nav-selected a, .product-thumbnails a:hover {
    border-color: rgb(0 0 0 / 0%)!important;
}

/* ===== Center prev/next arrows vertically ===== */

/* Main gallery */
.product-gallery .woocommerce-product-gallery__wrapper.product-gallery-slider {
  position: relative; /* để định vị nút theo khung */
}
.product-gallery .woocommerce-product-gallery__wrapper.product-gallery-slider
  .flickity-prev-next-button {
  top: 50% !important;          /* căn giữa theo chiều dọc */
 
  margin-top: 0 !important;     /* xoá offset cũ của theme (nếu có) */
  z-index: 5;
}

/* Đặt khoảng cách trái/phải cho nút */
.product-gallery .woocommerce-product-gallery__wrapper.product-gallery-slider
  .flickity-prev-next-button.previous { left: 14px; right: auto; }
.product-gallery .woocommerce-product-gallery__wrapper.product-gallery-slider
  .flickity-prev-next-button.next     { right: 14px; left:  auto; }

/* Thumbnails row */
.product-thumbnails .flickity-prev-next-button {
  top: 30% !important;
  transform: translateY(0%);
  margin-top: 0 !important;
  z-index: 3;
}

.product-info{
    padding-top: 10px;
    background-color: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.product-gallery.col.large-12 {
    padding: 4px;
    background-color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.mota_chitiet{
      padding: 4px;
    background-color: #fff;
    border-radius: 12px;
}

.kb-short-description {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f1f1;
}
.kb-short-description__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.kb-short-description__content {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
/* css siderba*/
.kb-seller-card{margin-bottom:18px;background:#fff;border:1px solid #eee;border-radius:14px;box-shadow:0 8px 22px rgba(0,0,0,.04);padding:14px}
        .kb-seller__header{display:flex;gap:12px;align-items:center;margin-bottom:10px}
        .kb-seller__avatar img{border-radius:50%}
        .kb-seller__name{font-weight:700}
        .kb-seller__small{font-size:12px;color:#666}
        .kb-seller__active-dot{display:inline-block;width:8px;height:8px;background:#22c55e;border-radius:999px;margin-right:6px;vertical-align:middle}

        .kb-seller__actions{display: flex;gap: 10px;margin: 10px 0 6px;justify-content: space-between;}
        .kb-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 14px;border-radius:10px;font-weight:600;border:1px solid #e5e7eb;text-decoration:none}
        .kb-btn--ghost{background:#fff}
        .kb-btn--call{background:#ffedd5;border-color:#fed7aa}
        .kb-btn__call-icon{margin-right:6px}

        .kb-quick-questions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
        .kb-chip{background:#f3f4f6;border:1px solid #e5e7eb;padding:6px 10px;border-radius:30px;font-size:13px;cursor:pointer}

        /* CF7 trong card */
        .kb-seller__form .kb-seller-form__title{display:none}
        .kb-seller__form label{display:block;font-size:13px;color:#555;margin:8px 0 4px}
        .kb-seller__form input[type="text"],
        .kb-seller__form input[type="tel"],
        .kb-seller__form textarea{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:20px 12px;box-sizing:border-box}
        .kb-seller__form textarea{min-height:90px;resize:vertical}
        .kb-seller__form .wpcf7-submit{width:100%;height:44px;border-radius:10px;background:#e11d48;color:#fff;border:0;font-weight:700}
        .kb-seller__form .wpcf7-form.submitting .wpcf7-submit{opacity:.7}
        .wpcf7 input[type="url"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] {
    direction: ltr;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 12px;
    box-sizing: border-box;
}
        @media screen and (min-width: 850px) {
    .row-large>.col, .row-large>.flickity-viewport>.flickity-slider>.col {
        margin-bottom: 0;
        padding: 0 10px 0px!important;
    }
}
.product-main {
    padding-top: 0px!important;
}
.product-main {
    padding: 3px 0!important;
}
/* Sticky sidebar cho trang sản phẩm (desktop) */
@media (min-width: 1025px) {
  #product-sidebar {
    position: sticky;
    top: 16px;                 /* khoảng cách với mép trên khi dính */
    align-self: flex-start;    /* fix Safari */
    height: max-content;       /* nội dung cao đến đâu tính đến đó */
    z-index: 5;                /* nổi hơn nền/ảnh */
  }

  /* Đảm bảo hàng cột không căn giữa khiến sticky bị trôi */
  .single-product .product-main .row,
  .single-product .container .row {
    align-items: flex-start !important;
  }
}

/* Tuỳ chọn: nếu theme đặt overflow/transform gây lỗi sticky, vô hiệu hoá nó ở cột cha */
@media (min-width: 1025px) {
  .single-product .product-main .row .col { overflow: visible; }
  .single-product .product-main { transform: none; } /* chỉ bật nếu thấy sticky không hoạt động */
}
/*css giam gia*/
/* Grid tổng */
.kb-coupons{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:18px}

/* Card */
.kb-coupon{
  display:flex;gap:0;background:#fff;border:1px solid #eee;border-radius:12px;
  box-shadow:0 8px 22px rgba(0,0,0,.04);overflow:hidden
}

/* Cờ trái + răng cưa */
.kb-coupon__flag{
  width:84px;background:#e11d48;position:relative;display:flex;align-items:center;justify-content:center
}
.kb-coupon__flag::before,
.kb-coupon__flag::after{
  content:"";position:absolute;right:-6px;width:12px;height:100%;
  background: radial-gradient(circle at left center,#fff 6px,transparent 6px) left/12px 12px repeat-y;
}
.kb-coupon__star{color:#ffd600;font-size:28px;line-height:1}

/* Nội dung */
.kb-coupon__body{flex:1;padding:12px}
.kb-coupon__title{font-weight:800;color:#b91c1c;margin:0 0 6px}
.kb-coupon__desc{color:#4b5563;font-size:13px;margin-bottom:10px;line-height:1.5}

/* Hành động */
.kb-coupon__actions{display:flex;gap:14px;align-items:center}
.kb-copy{
  background:#ef4444;color:#fff;border:0;border-radius:999px;padding:8px 14px;font-weight:700;cursor:pointer;font-size: 10px;
}
.kb-copy.copied{background:#16a34a}
.kb-conditions{font-size:13px;color:#2563eb;text-decoration:underline}
.price-wrapper .price {
    display: block;
    color: #e11d48;
}