.cello-special-listing,
.special-intro {
  --special-accent: #ff6600;
  --special-text: #292929;
  --special-muted: #777;
  --special-border: #e7e7e7;
  --special-soft: #fff7f1;
}

.special-intro {
  padding: 22px 0 24px;
  background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
  border-bottom: 1px solid #f2e8e1;
}

.special-intro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border: 1px solid #f1e5dc;
  border-radius: 12px;
  background: #fff;
}

.special-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--special-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.special-intro h1 {
  margin: 0 0 8px;
  color: var(--special-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.special-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--special-muted);
  font-size: 14px;
  line-height: 1.65;
}

.special-summary {
  flex: 0 0 auto;
  min-width: 150px;
  padding-left: 26px;
  border-left: 1px solid #eee4dd;
  text-align: right;
}

.special-summary strong {
  display: block;
  color: var(--special-accent);
  font-size: 28px;
  line-height: 1.1;
}

.special-summary span,
.special-visible-count {
  color: var(--special-muted);
  font-size: 12px;
}

.cello-special-listing {
  padding-top: 24px;
}

.special-filter-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--special-border);
  border-radius: 10px;
  background: #fff;
}

.special-search {
  display: flex;
  flex: 1 1 320px;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--special-border);
  border-radius: 8px;
  background: #fafafa;
}

.special-search i { color: #999; }
.special-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--special-text);
  font-size: 13px;
}

.special-filter-chips {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.special-filter-chips button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--special-border);
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

.special-filter-chips button:hover,
.special-filter-chips button.active {
  border-color: var(--special-accent);
  background: var(--special-accent);
  color: #fff;
}

.cello-special-listing .filter-nav .filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cello-special-listing .product-item {
  height: 100%;
}

.special-product-cell {
  margin-bottom: 18px;
}

.special-no-match,
.special-empty {
  padding: 55px 20px;
  border: 1px solid var(--special-border);
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
}

.special-no-match i {
  margin-bottom: 8px;
  color: var(--special-accent);
  font-size: 30px;
}

.special-no-match h3 { margin: 0 0 5px; font-size: 18px; }
.special-no-match p { margin: 0; color: var(--special-muted); }

.cello-special-listing #special-load-more.is-loading {
  pointer-events: none;
  opacity: .7;
}

@media (max-width: 767px) {
  .special-intro { padding: 10px 0 14px; }
  .special-intro .container { padding-right: 10px; padding-left: 10px; }
  .special-intro-inner { align-items: flex-start; padding: 20px; }
  .special-intro h1 { font-size: 23px; }
  .special-summary { min-width: auto; padding-left: 16px; }
  .special-summary strong { font-size: 22px; }
  .special-summary span { display: none; }
  .special-filter-panel { align-items: stretch; flex-direction: column; padding: 10px; }
  .special-search { flex-basis: auto; }
  .special-filter-chips { overflow-x: auto; padding-bottom: 2px; }
  .special-filter-chips button { flex: 0 0 auto; }
  .special-visible-count { display: none; }
  .special-product-cell { margin-bottom: 10px; }
}

/* Promotion discovery: compact brand and category navigation */
.special-intro-copy { max-width: 760px; }
.special-intro-copy > p { max-width: 700px; }
.special-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: #5d554f;
  font-size: 13px;
  font-weight: 600;
}
.special-intro-points span { display: inline-flex; align-items: center; gap: 7px; }
.special-intro-points i { color: var(--special-accent); }
.special-summary small {
  display: block;
  margin-top: 8px;
  color: #756b64;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.special-discovery-panel {
  margin: 28px 0 34px;
  padding: 22px;
  border: 1px solid #ece7e2;
  border-radius: 16px;
  background: #fbfaf9;
}
.special-discovery-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.special-discovery-panel-head h2 {
  margin: 3px 0 4px;
  color: #292929;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}
.special-discovery-panel-head p {
  margin: 0;
  color: #817871;
  font-size: 13px;
}
.special-section-kicker {
  color: #938a83;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.special-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--special-accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.special-clear-filter:hover,
.special-clear-filter:focus { color: #df5900; }

.special-discovery-group {
  padding-top: 18px;
  border-top: 1px solid #ece7e2;
}
.special-discovery-group + .special-discovery-group { margin-top: 20px; }
.special-discovery-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.special-discovery-group-head h3 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}
.special-discovery-group-head > span {
  color: #9a918a;
  font-size: 11px;
  white-space: nowrap;
}

.special-brand-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.special-brand-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #ebe6e1;
  border-radius: 10px;
  background: #fff;
  color: #333;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.special-brand-chip:hover,
.special-brand-chip:focus,
.special-brand-chip.active {
  border-color: rgba(255, 102, 0, .45);
  background: #fff8f3;
  color: #292929;
  box-shadow: 0 4px 12px rgba(50, 42, 36, .06);
}
.special-brand-logo {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  padding: 5px;
  border-radius: 8px;
  background: #faf9f8;
}
.special-brand-logo img {
  width: 100%;
  height: 30px;
  object-fit: contain;
}
.special-brand-logo strong {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
}
.special-brand-meta,
.special-category-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.special-brand-meta strong,
.special-category-meta strong {
  overflow: hidden;
  color: #34302d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.special-brand-meta small,
.special-category-meta small {
  margin-top: 2px;
  color: #918880;
  font-size: 10px;
  line-height: 1.3;
}

.special-category-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.special-category-tile {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 28px 8px 8px;
  border: 1px solid #ebe6e1;
  border-radius: 10px;
  background: #fff;
  color: #333;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.special-category-tile:hover,
.special-category-tile:focus,
.special-category-tile.active {
  border-color: rgba(255, 102, 0, .45);
  background: #fff8f3;
  color: #292929;
  box-shadow: 0 4px 12px rgba(50, 42, 36, .06);
}
.special-category-thumb {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 50px;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f7f5;
}
.special-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.special-category-thumb i { color: #c6b7ab; font-size: 22px; }
.special-category-arrow {
  position: absolute;
  right: 11px;
  color: #b5ada7;
  font-size: 14px;
}
.special-category-tile:hover .special-category-arrow,
.special-category-tile.active .special-category-arrow { color: var(--special-accent); }

@media (max-width: 1199px) {
  .special-brand-list,
  .special-category-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .special-brand-list,
  .special-category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .special-intro-points { display: grid; gap: 8px; }
  .special-discovery-panel {
    margin: 20px -5px 28px;
    padding: 17px 15px;
    border-radius: 12px;
  }
  .special-discovery-panel-head { align-items: flex-start; margin-bottom: 17px; }
  .special-discovery-panel-head h2 { font-size: 19px; }
  .special-discovery-panel-head p { font-size: 12px; }
  .special-clear-filter { font-size: 0; }
  .special-clear-filter i { font-size: 16px; }
  .special-discovery-group { padding-top: 15px; }
  .special-discovery-group + .special-discovery-group { margin-top: 17px; }
  .special-discovery-group-head { margin-bottom: 10px; }
  .special-discovery-group-head h3 { font-size: 14px; }
  .special-discovery-group-head > span { display: none; }
  .special-brand-list,
  .special-category-list {
    display: flex;
    gap: 8px;
    margin-right: -15px;
    overflow-x: auto;
    padding: 1px 15px 8px 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .special-brand-list::-webkit-scrollbar,
  .special-category-list::-webkit-scrollbar { display: none; }
  .special-brand-chip {
    flex: 0 0 178px;
    min-height: 56px;
    scroll-snap-align: start;
  }
  .special-category-tile {
    flex: 0 0 200px;
    min-height: 64px;
    scroll-snap-align: start;
  }
}

/* Cello Special Mobile v1.5
 * Mobile-first refinements for /special only.
 */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .main-breadcrumb {
    margin-bottom: 0;
  }

  .main-breadcrumb .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .main-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .special-intro {
    padding: 8px 0 12px;
  }

  .special-intro .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .special-intro-inner {
    display: block;
    padding: 17px 15px;
    border-radius: 12px;
  }

  .special-kicker {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .special-intro h1 {
    margin-bottom: 7px;
    font-size: 22px;
    line-height: 1.25;
  }

  .special-intro p {
    display: -webkit-box;
    max-height: 63px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .special-intro-points {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 13px;
    font-size: 11px;
  }

  .special-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-top: 14px;
    padding: 12px 0 0;
    border-top: 1px solid #eee4dd;
    border-left: 0;
    text-align: left;
  }

  .special-summary strong {
    flex: 0 0 auto;
    font-size: 24px;
  }

  .special-summary span {
    display: block;
    flex: 1 1 auto;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
  }

  .special-summary small {
    display: none;
  }

  .cello-special-listing {
    padding-top: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .special-discovery-panel {
    margin: 12px 0 18px;
    padding: 15px 12px;
    border-radius: 12px;
  }

  .special-discovery-panel-head {
    margin-bottom: 14px;
  }

  .special-discovery-panel-head h2 {
    font-size: 18px;
  }

  .special-discovery-panel-head p {
    display: none;
  }

  .special-brand-list,
  .special-category-list {
    margin-right: -12px;
    padding-right: 12px;
  }

  .special-brand-chip {
    flex-basis: 158px;
    min-height: 54px;
    padding: 7px 8px;
  }

  .special-brand-logo {
    flex-basis: 42px;
    width: 42px;
    height: 38px;
  }

  .special-category-tile {
    flex-basis: 180px;
    min-height: 60px;
  }

  .special-category-thumb {
    flex-basis: 46px;
    width: 46px;
    height: 44px;
  }

  .special-filter-panel {
    position: sticky;
    top: 0;
    z-index: 24;
    gap: 8px;
    margin: 0 -10px 8px;
    padding: 8px 10px 9px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .045);
    backdrop-filter: blur(8px);
  }

  .special-search {
    height: 40px;
    border-radius: 10px;
    background: #f7f7f7;
  }

  .special-search input {
    font-size: 13px;
  }

  .special-filter-chips {
    width: 100%;
    margin: 0;
    padding: 0 0 1px;
    scrollbar-width: none;
  }

  .special-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .special-filter-chips button {
    height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .cello-special-listing .filter-nav {
    position: static;
    min-height: 42px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .cello-special-listing .listing-title {
    max-width: 47vw;
    font-size: 15px;
  }

  .cello-special-listing #input-sort {
    width: 145px;
    min-width: 145px;
    height: 36px;
    border-radius: 9px;
    font-size: 11px;
  }

  .cello-special-listing .row.no-gutters {
    margin-right: -4px;
    margin-left: -4px;
  }

  .cello-special-listing .row.no-gutters > .special-product-cell {
    padding-right: 4px;
    padding-left: 4px;
  }

  .special-product-cell {
    margin-bottom: 8px;
  }

  .cello-special-listing .product-item {
    min-height: 278px;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 10px;
  }

  .cello-special-listing .product-item .top-item .image {
    padding: 9px 6px 2px;
  }

  .cello-special-listing .product-item .top-item .image > a {
    height: 132px;
  }

  .cello-special-listing .product-item .top-item .pro {
    top: 6px;
    left: 6px;
    width: 27px;
    height: 27px;
    font-size: 8px;
  }

  .cello-special-listing .product-item .top-item .posMark {
    top: 6px;
    right: 6px;
    max-width: 66%;
  }

  .cello-special-listing .product-item .top-item .status {
    max-width: 100%;
    height: 20px;
    overflow: hidden;
    padding: 0 6px;
    font-size: 8px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cello-special-listing .product-item .block-option-link {
    min-height: 18px;
    margin: 0 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  .cello-special-listing .gird-option-color {
    overflow: hidden;
    white-space: nowrap;
  }

  .cello-special-listing .gird-option-color li:nth-child(n+6) {
    display: none;
  }

  .cello-special-listing .gird-option-color li span {
    width: 12px;
    height: 12px;
  }

  .cello-special-listing .product-item .bot-item {
    padding: 1px 8px 10px;
  }

  .cello-special-listing .product-item .bot-item h4 {
    height: 36px;
    margin-top: 5px;
    font-size: 11px;
    line-height: 18px;
    text-transform: none;
  }

  .cello-special-listing .product-item .bot-item .price {
    display: flex;
    min-height: 39px;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1px;
    padding-top: 6px;
  }

  .cello-special-listing .product-item .bot-item .price .new,
  .cello-special-listing .product-item .bot-item .price .old {
    width: 100%;
    line-height: 1.2;
  }

  .cello-special-listing .product-item .bot-item .price .new span {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cello-special-listing .product-item .bot-item .price .old span {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cello-special-listing .item-label-gift {
    right: 6px;
    bottom: 4px;
    max-width: 72px;
    overflow: hidden;
    padding: 1px 5px;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .special-no-match,
  .special-empty {
    padding: 38px 16px;
  }

  .cello-special-listing .btn-load-pagination {
    margin-top: 16px;
  }

  .cello-special-listing .btn-load-pagination .title-button {
    width: min(100%, 260px);
    min-height: 42px;
  }
}

@media (max-width: 374px) {
  .special-intro h1 {
    font-size: 20px;
  }

  .cello-special-listing .product-item {
    min-height: 266px;
  }

  .cello-special-listing .product-item .top-item .image > a {
    height: 120px;
  }

  .cello-special-listing #input-sort {
    width: 132px;
    min-width: 132px;
  }
}
