/* Search Form Styles */
#wrapper .search-form__wrapper {
  margin: 32px 0;
}

#wrapper .search-form {
  width: 100%;
  max-width: 745px;
}

#wrapper .search-form__input-group {
  display: flex;
  align-items: center;
  backdrop-filter: blur(35.424930572509766px);
  background: rgba(255, 229, 161, 0.18);
  border-radius: 18px;
  padding: 9px 18px;
}

/* Icon */
#wrapper .search-form__icon {
  display: flex;
  align-items: center;
  margin-left: 16px;
  margin-right: 8px;
}

/* Input */
#wrapper .search-form__input {
  flex: 1;
  border: none;
  background: transparent !important;
  color: #fff;
  font-size: 18px;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: none;
}
#wrapper .search-form__input::placeholder {
  color: #fff;
  opacity: 0.8;
}

/* Button */
#wrapper .search-form__button {
  background: rgba(255, 255, 0, 1);
  color: #434343;
  border: none;
  border-radius: 40px;
  font-size: 18px;
  line-height: 46px;
  font-weight: 700;
  margin: 0 0 0 8px;
  cursor: pointer;
  width: 177px;
  text-align: center;
}

@media (max-width: 768px) {
  #wrapper .search-form__button {
    display: none;
  }
}

/* ----------- */

/* ============================================================
   PRODUCT SLIDER - BEM
   [slider_products] shortcode
   ============================================================ */

/* Block: product-slider */
.product-slider {
  position: relative;
  padding: 0;
}

/* Container bao quanh swiper */
.product-slider__container {
  overflow: hidden;
}

/* Swiper root element */
.product-slider__swiper {
  overflow: hidden;
}

/* Swiper wrapper (ngang) */
.product-slider__wrapper {
  display: flex;
}

/* Mỗi slide */
.product-slider__slide {
  box-sizing: border-box;
}

/* ============================================================
   PRODUCT CARD - BEM
   ============================================================ */

/* Block: product-card */
.product-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E6E6E6;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image wrapper */
.product-card__image-link {
  display: block;
  text-decoration: none;
}

.product-card__image {
  position: relative;
  height: 193px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Sale badge - góc trên phải ảnh */
.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FF5A5F;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Body */
.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 16px;
  margin-top: -16px;
  background-color: #fff;
  z-index: 1;
}

/* Category */
.product-card__category {
  font-size: 14px;
  line-height: 20px;
  color: #6A7282;
  margin: 0 0 6px;
  font-weight: 400;
}

/* Title */
.product-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #101828;
  margin: 0 0 6px;
  line-height: 28px;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Duration */
.product-card__duration {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: #616161;
  margin: 0 0 6px;
}

/* Description */
.product-card__description {
  font-size: 14px;
  line-height: 1.2;
  color: #616161;
  margin: 0 0 10px;
  line-height: 1.2;
}

/* Meta row: rating + sold */
.product-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Rating group */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Star icon */
.product-card__rating-star {
  color: #FFC107;
  font-size: 14px;
  line-height: 1;
}

/* Rating score */
.product-card__rating-score {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* Rating count (reviews) */
.product-card__rating-count {
  font-size: 12px;
  color: #888;
}

/* Divider dot */
.product-card__divider {
  color: #ccc;
  font-size: 12px;
}

/* Sold count */
.product-card__sold {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: #4A5565;
}

/* Price block */
.product-card__price {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-card__price * {
  font-size: 22px;
  line-height: 30px;
  color: #101828;
  font-weight: 700;
}

/* Tags row */
.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Tag pill */
.product-card__tag {
  background: #FEF2F2;
  color: #E7000B;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #FFC9C9;
}

/* ============================================================
   PRODUCT CARD VER 2 - Horizontal layout
   ============================================================ */

.product-card--ver-2 {
  flex-direction: row;
  align-items: stretch;
  height: auto;
  min-height: 172px;
  padding: 10px;
}

.product-card--ver-2 .product-card__image-link {
  flex-shrink: 0;
  width: 151px;
}

.product-card--ver-2 .product-card__image {
  height: 100%;
  min-height: 120px;
  border-radius: 0;
  border-radius: 16px;
}

.product-card--ver-2 .product-card__body {
  margin-top: 0;
  padding: 0 12px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.product-card--ver-2 .product-card__category {
  font-size: 15px;
  color: #616161;
  margin: 0;
}

.product-card--ver-2 .product-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #000000;
}

.product-card--ver-2 .product-card__description {
  font-size: 13px;
  color: #616161;
  margin: 0;
  line-height: 1.4;
}

.product-card--ver-2 .product-card__cta-btn {
  display: inline-block;
  margin-top: 8px;
  align-self: flex-start;
  background: #FFFF00;
  color: #434343;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 27px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ============================================================
   SLIDER FOOTER: Xem thêm + Navigation
   ============================================================ */

.product-slider__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: 0 2px;
}

/* Button Xem thêm */
.product-slider__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFF00;
  color: #434343;
  font-size: 14px;
  line-height: 37px;
  font-weight: 700;
  padding: 0 23px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* Navigation arrows group */
.product-slider__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav button base */
.product-slider__nav-btn {
  width: 39px;
  height: 39px;
  min-height: unset;
  border-radius: 50%;
  border: 1px solid #BE8B24;
  background: #fff;
  color: #BE8B24;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Disabled state */
.product-slider__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}


/* ============================================================
   REVIEW SLIDER - BEM
   [review_slider] shortcode
   ============================================================ */

/* Block wrapper */
.review-slider {
  position: relative;
  padding-bottom: 8px;
}

/* Swiper container */
.review-slider__container {
  overflow: hidden;
}

/* Swiper wrapper */
.review-slider__wrapper {
  display: flex;
}

/* Each slide */
.review-slider__item {
  box-sizing: border-box;
}

/* Card */
.review-slider__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 360px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.review-slider__card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Background image */
.review-slider__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #c8c8c8;
}

/* Content box at bottom */
.review-slider__content {
  width: calc(100% - 16px);
  border-radius: 8px;
  border: none;
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Title */
.review-slider__title {
  font-size: 16px;
  font-weight: 700;
  color: #878717;
  margin: 0 0 8px;
  line-height: 1.35;
  text-transform: uppercase;
  position: relative;
  padding-left: 22px;
}

/* Opening quote icon */
.review-slider__title::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 28px;
  font-family: Georgia, 'Times New Roman', serif;
  color: inherit;
  line-height: 1;
}

/* Excerpt with quote icon */
.review-slider__excerpt {
  font-size: 14px;
  color: #0E0E0E;
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Author block */
.review-slider__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
}

.review-slider__author-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.review-slider__author-position {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* Navigation */
.review-slider__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: absolute;
  width: calc(100% + 50px);
  top: 50%;
  left: -25px;
  transform: translateY(-50%);
  z-index: 9;
}

.review-slider__prev,
.review-slider__next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #434343;
  background: #434343;
  color: #FFFF00;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.review-slider__prev.swiper-button-disabled,
.review-slider__next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   SEARCH FORM HISTORY DROPDOWN
   [search_form_history] shortcode
   ============================================================ */

/* Cần position: relative để dropdown định vị đúng */
.search-form--history {
  position: relative;
}

/* Icon dùng currentColor – mặc định trắng */
#wrapper .search-form--history .search-form__icon {
  color: #fff;
}

/* Thêm transparent border để layout không bị shift khi focus */
#wrapper .search-form--history .search-form__input-group {
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

/* ── Focus-within: đổi nền trắng + viền vàng ── */
#wrapper .search-form--history .js-search-history-form:focus-within .search-form__input-group {
  background: #fff;
  border-color: #FFFF00;
}

/* Icon đổi sang tối khi focused */
#wrapper .search-form--history .js-search-history-form:focus-within .search-form__icon {
  color: #434343;
}

/* Input text đổi sang tối khi focused */
#wrapper .search-form--history .js-search-history-form:focus-within .search-form__input {
  color: #434343;
}

#wrapper .search-form--history .js-search-history-form:focus-within .search-form__input::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

/* Dropdown panel */
.search-form__history {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px #00000017;
  padding: 20px;
  z-index: 200;
  width: 744px;
}

.search-form__history[hidden] {
  display: none;
}

/* Header: tiêu đề + nút xoá */
.search-form__history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-form__history-title {
  font-size: 18px;
  font-weight: 500;
  color: #101828;
  line-height: 24px;
}

/* Nút xoá lịch sử */
.search-form__history-clear {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6A7282;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color 0.2s;
  margin-right: 0;
}

.search-form__history-clear:hover {
  color: #E7000B;
}

/* Vùng chứa tags */
.search-form__history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Từng tag lịch sử */
.search-form__history-tag {
  background: #F3F4F6;
  color: #364153;
  font-weight: 500;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  padding: 9px 19px;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}

.search-form__history-tag:hover {
  background: #FFFF00;
  color: #434343;
}
#wrapper .search-form--history__wrapper .search-form__input {
  width: 248px;
  height: 30px;
}
#wrapper .search-form--history__wrapper .search-form__input::placeholder {
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  color: #FFFFFF;
}
#wrapper .search-form--history__wrapper .search-form__icon {
  margin-left: 0px;
  margin-right: 20px;
}
#wrapper .search-form--history__wrapper .search-form__input-group {
  padding: 3px 18px;
  background: #99A1AF;
}