/* Shop page */

/* Shop Top */
.cms-shop-top {
  padding: 32px 40px;
  background-color: #fff;
}

.cms-shop-top h1 {
  color: var(--primary-text);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 900;
}

.cms-shop-top p {
  color: var(--muted-text);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.cms-shop-top .cms-icon-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cms-shop-top .cms-icon-list .cms-icon-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.cms-shop-top .cms-icon-list .cms-icon-chinhhang span.material-symbols-outlined {
  color: var(--accent-success);
}

.cms-shop-top .cms-icon-list .cms-icon-freeship span.material-symbols-outlined {
  color: var(--primary-blue);
}

.cms-shop-top .cms-icon-list .cms-icon-tuvan span.material-symbols-outlined {
  color: var(--accent-orange);
}

@media screen and (max-width: 468px) {
  .cms-shop-top {
    padding: 15px;
  }

  .cms-shop-top h1 {
    font-size: 1.6rem;
    line-height: 2rem;
  }

  .cms-shop-top p {
    font-size: 1rem;
    line-height: 1.6rem;
  }

  .cms-shop-top .cms-icon-list .cms-icon-item {
    gap: 4px;
  }
}

/* End - Shop Top */

/* === Shop Hero ============================================= */
.cms-shop-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, #dbeafe 0%, transparent 70%),
    linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  padding: 52px 20px 44px;
  border-bottom: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative ring */
.cms-shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0,104,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(0,104,255,.05) 0%, transparent 45%);
  pointer-events: none;
}

.cms-shop-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* Eyebrow badge */
.cms-shop-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1a6eff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #c7dcff;
  margin: 0 0 16px;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 8px rgba(0,104,255,.08);
}

.cms-shop-hero-eyebrow > .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: "FILL" 1;
  color: var(--accent-success);
}

/* Title */
.cms-shop-hero-title {
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  color: var(--primary-text);
  margin: 0 0 14px;
  letter-spacing: -0.8px;
}

/* Subtitle — text-wrap balance fixes awkward single-word wrapping */
.cms-shop-hero-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: var(--second-text);
  margin: 0 auto 24px;
  max-width: 560px;
  text-wrap: balance;
}

/* Stats row */
.cms-shop-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}

.cms-shop-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.cms-shop-hero-stat strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.cms-shop-hero-stat span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-text);
  line-height: 1.3;
  margin-top: 1px;
}

.cms-shop-hero-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-default);
  flex-shrink: 0;
}

/* === Trust Strip =========================================== */
.cms-shop-hero-trust {
  background: #fff;
  border-bottom: 1px solid var(--border-default);
  padding: 20px;
}

.cms-shop-hero-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* Base card */
.cms-shop-hero-trust .cms-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  cursor: default;
}

.cms-shop-hero-trust .cms-trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -6px rgba(15,23,42,.12);
}

/* Icon container */
.cms-shop-hero-trust .cms-trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cms-shop-hero-trust .cms-trust-icon > .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: "FILL" 1;
}

/* Per-item accent colors */
.cms-trust--green .cms-trust-icon { background: #e8f7ee; color: #16a34a; }
.cms-trust--green:hover            { border-color: #86efac; }

.cms-trust--blue .cms-trust-icon   { background: #e9f6ff; color: #0068ff; }
.cms-trust--blue:hover             { border-color: #93c5fd; }

.cms-trust--teal .cms-trust-icon   { background: #e0fafa; color: #0891b2; }
.cms-trust--teal:hover             { border-color: #67e8f9; }

.cms-trust--purple .cms-trust-icon { background: #f3f0ff; color: #7c3aed; }
.cms-trust--purple:hover           { border-color: #c4b5fd; }

.cms-trust--orange .cms-trust-icon { background: #fff4ed; color: #ea6f1f; }
.cms-trust--orange:hover           { border-color: #fdba74; }

.cms-trust--indigo .cms-trust-icon { background: #eef2ff; color: #4f46e5; }
.cms-trust--indigo:hover           { border-color: #a5b4fc; }

/* Text */
.cms-shop-hero-trust .cms-trust-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cms-shop-hero-trust .cms-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-text);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cms-shop-hero-trust .cms-trust-sub {
  font-size: 11px;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media screen and (max-width: 1099px) {
  .cms-shop-hero-trust-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .cms-shop-hero {
    padding: 32px 16px 28px;
  }
  .cms-shop-hero-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .cms-shop-hero-stats {
    padding: 6px 12px;
  }
  .cms-shop-hero-stat {
    padding: 0 12px;
  }
  .cms-shop-hero-stat strong { font-size: 14px; }
  .cms-shop-hero-trust {
    padding: 14px;
  }
  .cms-shop-hero-trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cms-shop-hero-trust .cms-trust-item {
    padding: 10px 10px;
    gap: 8px;
  }
  .cms-shop-hero-trust .cms-trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }
  .cms-shop-hero-trust .cms-trust-icon > .material-symbols-outlined {
    font-size: 17px;
  }
  .cms-shop-hero-trust .cms-trust-title { font-size: 12px; }
  .cms-shop-hero-trust .cms-trust-sub   { font-size: 10px; }
}

/* === Breadcrumb + sort bar polish === */
.shop-page-title.category-page-title {
  background-color: var(--surface-page) !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--border-default);
}

.shop-page-title.category-page-title > .page-title-inner {
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.shop-page-title .breadcrumbs,
.shop-page-title .breadcrumbs a,
.shop-page-title .breadcrumbs span {
  font-size: 13px;
  letter-spacing: 0.1px;
}

.shop-page-title .breadcrumbs a {
  color: var(--second-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.shop-page-title .breadcrumbs a:hover {
  color: var(--primary-blue);
}

.shop-page-title.category-page-title > .page-title-inner .cms-ordering {
  background-color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.08);
  color: var(--muted-text);
  border: 1px solid var(--border-default);
  font-size: 13px;
}

/* === Pagination === */
.woocommerce-pagination {
  margin-top: 32px !important;
  margin-bottom: 8px !important;
}

.woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.woocommerce-pagination .page-numbers li {
  margin: 0;
}

.woocommerce-pagination .page-numbers li > a,
.woocommerce-pagination .page-numbers li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-default);
  color: var(--primary-text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.woocommerce-pagination .page-numbers li > a:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.woocommerce-pagination .page-numbers li > span.current {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.shop-container .star-rating {
  display: none;
}

.shop-page-title,
#main {
  background-color: #fff;
}

.cms-shop-filter-price-wrapper {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.cms-shop-filter-price {
  padding: 0 !important;
}

.cms-shop-filter-price-wrapper h3 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.cms-shop-filter-price-wrapper h3 {
  font-size: 18px;
  line-height: 28px;
  color: var(--primary-text);
  font-weight: 700;
}

.price-filter-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-filter-list li {
  margin: 0 !important;

  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.price-filter-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-text);

  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.price-filter-list .circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-pill);
  margin-right: 10px;
  position: relative;
  box-sizing: border-box;
}

.price-filter-list li.active .circle {
  border-color: var(--primary-blue);
}

.price-filter-list li.active .circle::after,
.price-filter-list li:hover .circle:after {
  opacity: 1;
}

.price-filter-list li:hover .circle {
  border: 2px solid var(--primary-blue);
}

.price-filter-list .circle::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.price-filter-list a.active .circle {
  border-color: #000;
}

.price-filter-list a.active .circle::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.price-filter-list a:hover {
  color: #000;
}

/* Filter Category */
#shop-sidebar > .widget_product_categories {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 12px;
}

#shop-sidebar > .widget_product_categories > .widget-title {
  font-size: 18px;
  line-height: 28px;
  color: var(--primary-text);
  font-weight: 700;
  text-transform: capitalize;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

#shop-sidebar > .widget_product_categories > .widget-title > .material-symbols-outlined {
  font-size: 24px;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item {
  border-top: unset;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item a span.label {
  color: var(--primary-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  opacity: 1;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item a span.circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm) !important;
  opacity: 1;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item a span.circle::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item:hover a span.circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-sm) !important;
}

#shop-sidebar > .widget_product_categories > .product-categories > li.cat-item:hover a span.circle::after {
  background-color: var(--primary-blue);
}

#shop-sidebar > .widget_product_categories .is-divider {
  display: none;
}

/* ============================================================
   SHOP — MOBILE COMPRESSION
   ============================================================ */
@media (max-width: 768px) {
  /* === Page wrapper === */
  .archive.woocommerce, .shop-page-title { padding: 0 !important; }
  .shop-container { padding: 0 12px !important; }

  /* === Shop Top — title + trust icons === */
  .cms-shop-top { padding: 14px 12px !important; }
  .cms-shop-top h1 { font-size: 20px !important; line-height: 1.25 !important; margin: 0 0 4px !important; }
  .cms-shop-top p { font-size: 13px !important; line-height: 1.5 !important; margin: 0 0 8px !important; }
  .cms-shop-top .cms-icon-list { gap: 8px !important; }
  .cms-shop-top .cms-icon-list .cms-icon-item { font-size: 11.5px !important; gap: 4px !important; }
  .cms-shop-top .cms-icon-list .material-symbols-outlined { font-size: 16px !important; }

  /* === Shop Hero === */
  .cms-shop-hero { padding: 24px 12px 18px !important; }
  .cms-shop-hero h1, .cms-shop-hero-title { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 6px !important; }
  .cms-shop-hero-subtitle { font-size: 13px !important; margin-bottom: 12px !important; line-height: 1.5 !important; }
  .cms-shop-hero-stats { padding: 6px 10px !important; gap: 6px !important; }
  .cms-shop-hero-stat strong { font-size: 13.5px !important; }
  .cms-shop-hero-stat span { font-size: 10.5px !important; }
  .cms-shop-hero-trust { padding: 10px !important; }
  .cms-shop-hero-trust-inner { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .cms-shop-hero-trust .cms-trust-item { padding: 8px !important; gap: 6px !important; }
  .cms-shop-hero-trust .cms-trust-icon { width: 28px !important; height: 28px !important; border-radius: 6px !important; }
  .cms-shop-hero-trust .cms-trust-item strong { font-size: 12px !important; }
  .cms-shop-hero-trust .cms-trust-item span { font-size: 10.5px !important; }

  /* === Filter price wrapper === */
  .cms-shop-filter-price-wrapper { padding: 10px 12px !important; margin-bottom: 8px !important; }
  .cms-shop-filter-price-wrapper h3 { font-size: 14px !important; margin: 0 0 6px !important; }

  /* === Product grid === */
  .products.row { margin-left: -4px !important; margin-right: -4px !important; }
  .products.row > .product-small { padding-left: 4px !important; padding-right: 4px !important; margin-bottom: 8px !important; }

  /* === Pagination === */
  .woocommerce-pagination ul.page-numbers { gap: 4px !important; }
  .woocommerce-pagination .page-numbers { width: 36px !important; height: 36px !important; line-height: 34px !important; font-size: 13px !important; }
}
