/* Merchant Page Redesign - Figma Match */

:root {
  --primary-color: #d4002c;
  --star-color: #ffc107;
  --rating-bg: #fff8e1;
  --delivery-bg: #fff0f0;
  --time-bg: #fff7ed;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
}

.merchant-page-container {
  --font-main: 'Outfit', 'Inter', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-family: var(--font-main);
}

.merchant-header-new {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #fff;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.merchant-cover-photo {
  height: 320px;
  width: 100%;
  background: #eee;
}

  .merchant-cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.merchant-header-content {
  padding: 0 40px 30px;
  position: relative;
  margin-top: -100px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.merchant-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

.merchant-profile-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
}

  .merchant-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

/* Figma 2615:9928 — overridden by MerchantHeader inline for shop page */
.super-restaurant-badge {
  background: rgba(247, 182, 20, 0.3);
  color: var(--primary, #d22e00);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 20px;
  border-radius: 1000px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: none;
  text-transform: capitalize;
  white-space: nowrap;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  line-height: 18px;
}

  .super-restaurant-badge i {
    display: none !important;
  }

  .super-restaurant-badge .super-restaurant-badge-icon {
    width: 12px;
    height: 20px;
    flex-shrink: 0;
  }

.merchant-info-area {
  flex: 1;
  margin-top: 110px;
}

  .merchant-info-area h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #111;
  }

.merchant-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 800px;
}

.merchant-info-chips {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.info-chip {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.chip-rating {
  background: var(--rating-bg);
  color: #b45309;
  border-color: #fde68a;
}

.chip-delivery {
  background: var(--delivery-bg);
  color: #dc2626;
  border-color: #fecaca;
}

.chip-time {
  background: var(--time-bg);
  color: #ea580c;
  border-color: #ffedd5;
}

.merchant-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.btn-subscribe {
  background: #10b981;
  color: #fff;
  padding: 0 20px;
  border-radius: 40px;
  font-weight: 400;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 14px;
  min-height: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

  .btn-subscribe:hover {
    background: #059669;
    transform: translateY(-2px);
  }

.btn-call {
  border: 1px solid #000;
  color: #000;
  padding: 0 18px;
  border-radius: 40px;
  font-weight: 400;
  background: #fff;
  transition: all 0.3s;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-height: 34px;
  height: 34px;
  box-sizing: border-box;
}

  .btn-call:hover {
    background: #f8f8f8;
    border-color: #ccc;
  }

.merchant-location-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

  .merchant-location-address i {
    color: #d4002c;
    margin-top: 3px;
  }

  .merchant-location-address span {
    font-weight: 700;
    color: #444;
  }

/* Promotions/Coupons - Swiper Ticket Design */
.coupon-carousel-wrapper {
  position: relative;
  margin: 10px 0 30px;
  padding: 0 10px;
}

.coupon-swiper {
  width: 100%;
  padding: 15px 0 !important;
}

.coupon-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.promotions-container.coupon-carousel::-webkit-scrollbar {
  display: none;
}

.coupon-card {
  min-width: 362px;
  width: 362px;
  height: 77px; /* Figma 2615:9342 — fixed ticket height so children can vertically center */
  min-height: 77px;
  flex-shrink: 0;
  background: #fff0f3; /* Light pink background */
  border-radius: 12px;
  border: 1px dashed #ffc0cb; /* Dashed pink border */
  position: relative;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coupon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Semi-circle cutouts on left and right */
.coupon-card::before,
.coupon-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background-color: #fff; /* Match parent container background */
  border-radius: 50%;
  z-index: 1;
  border: 0;
  transform: translateY(-50%);
}

.coupon-card::before {
  left: -13px;
  right: auto;
  border-right: 1px dashed #ffc0cb;
}

.coupon-card::after {
  right: -13px;
  left: auto;
  border-left: 1px dashed #ffc0cb;
}

[dir="rtl"] .coupon-card::before,
html[dir="rtl"] .coupon-card::before {
  left: auto;
  right: -13px;
  border-right: 0;
  border-left: 1px dashed #ffc0cb;
}

[dir="rtl"] .coupon-card::after,
html[dir="rtl"] .coupon-card::after {
  right: auto;
  left: -13px;
  border-left: 0;
  border-right: 1px dashed #ffc0cb;
}

.coupon-card.coupon-applied {
  background: #f3f4f6; /* Light grey background */
  border-color: #d1d5db;
}

.coupon-card.coupon-applied::before {
  border-right-color: #d1d5db;
}

.coupon-card.coupon-applied::after {
  border-left-color: #d1d5db;
}

[dir="rtl"] .coupon-card.coupon-applied::before,
html[dir="rtl"] .coupon-card.coupon-applied::before {
  border-left-color: #d1d5db;
  border-right-color: transparent;
}

[dir="rtl"] .coupon-card.coupon-applied::after,
html[dir="rtl"] .coupon-card.coupon-applied::after {
  border-right-color: #d1d5db;
  border-left-color: transparent;
}

.coupon-card-inner {
  display: flex;
  align-items: center; /* vertical center of logo / info / Apply */
  justify-content: flex-start;
  gap: 9px;
  height: 100%;
  min-height: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.coupon-logo {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  align-self: center;
}

.coupon-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coupon-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b, #ee0979);
}

.coupon-divider {
  width: 1px;
  height: 59px;
  align-self: center;
  border-left: 1px dashed rgba(235, 0, 56, 0.2);
  margin: 0;
  flex-shrink: 0;
}

.coupon-applied .coupon-divider {
  border-left-color: #d1d5db;
}

.coupon-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  align-self: center;
}

/* FS_UI_VOUCHER_TRUNC: show full voucher title (wrap) instead of Bronze Birthd… */
.coupon-info h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 20px;
}

.coupon-info p {
  margin: 0;
  font-size: 12px;
  color: #000;
  font-weight: 400;
  line-height: 20px;
}

.coupon-action {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  align-self: center;
}

.btn-coupon-action {
  height: 34px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-apply-coupon {
  background: #ff6600;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

.btn-apply-coupon:hover {
  background: #e65c00;
  transform: scale(1.05);
}

.coupon-applied-badge {
  background: #9ca3af;
  color: #fff;
  cursor: default;
}

.coupon-swiper-btn-next,
.coupon-swiper-btn-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #ff6600;
  transition: all 0.2s ease;
}

.coupon-swiper-btn-next:hover,
.coupon-swiper-btn-prev:hover {
  background: #ff6600;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.coupon-swiper-btn-next::after,
.coupon-swiper-btn-prev::after {
  font-family: 'icon-font';
  font-size: 16px;
  font-weight: 700;
}

.coupon-swiper-btn-next::after {
  content: '\e012';
}

.coupon-swiper-btn-prev::after {
  content: '\e010';
}

.coupon-swiper-btn-next {
  right: -5px;
}

.coupon-swiper-btn-prev {
  left: -5px;
}

html[dir="rtl"] .coupon-swiper-btn-next {
  right: auto;
  left: -5px;
}

html[dir="rtl"] .coupon-swiper-btn-prev {
  left: auto;
  right: -5px;
}

html[dir="rtl"] .coupon-swiper-btn-next::after {
  content: '\e010';
}

html[dir="rtl"] .coupon-swiper-btn-prev::after {
  content: '\e012';
}

.coupon-swiper-btn-next.swiper-button-disabled,
.coupon-swiper-btn-prev.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* Hide coupon arrows when all slides fit */
.coupon-swiper-btn-next.swiper-button-lock,
.coupon-swiper-btn-prev.swiper-button-lock {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Category Navigation - Figma QuickBite */
.sticky-nav-container {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eff6ff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 30px;
  border-radius: 4px;
  font-family: 'Rubik', 'Outfit', 'Inter', sans-serif;
}

.sticky-nav-search-wrap {
  flex-shrink: 0;
  width: 350px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 10px;
  border-right: 1px solid #e5e4ee;
}

.sticky-nav-search-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 1;
  color: #767484;
}

.sticky-nav-search-wrap .product-search-box {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  flex: 1;
  min-width: 0;
}

  /* Neutralize theme .search-box chrome (pill input + ::before magnifier) */
  .sticky-nav-search-wrap .product-search-box.search-box form::before,
  .sticky-nav-search-wrap .product-search-box.search-box form::after {
    content: none !important;
    display: none !important;
  }

  .sticky-nav-search-wrap .product-search-box form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .sticky-nav-search-wrap .product-search-box .product-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .sticky-nav-search-wrap .product-search-box .search-box-text,
  .sticky-nav-search-wrap .product-search-box input.search-box-text {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: auto !important;
    /* Room for clear (×) only — left icon is .sticky-nav-search-icon */
    padding: 0 28px 0 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 400;
    color: #767484;
    outline: none;
  }

    .sticky-nav-search-wrap .product-search-box .search-box-text::placeholder {
      color: #767484;
    }

  .sticky-nav-search-wrap .product-search-box .btn-clear-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: auto;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    color: #767484;
    cursor: pointer;
    line-height: 1;
  }

    .sticky-nav-search-wrap .product-search-box .btn-clear-search i {
      font-size: 12px;
      color: #767484;
      pointer-events: none;
    }

    .sticky-nav-search-wrap .product-search-box .btn-clear-search:hover,
    .sticky-nav-search-wrap .product-search-box .btn-clear-search:hover i {
      color: #333;
    }

  .sticky-nav-search-wrap .product-search-box .search-box-button {
    display: none;
  }

.category-nav-tabs {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0 10px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav-tab {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  padding: 15px 10px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

  .nav-tab.active {
    font-weight: 500;
    color: #d22e00;
    border-bottom: 2px solid #d22e00;
  }

/* Products Layout */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 12px;
}

  .section-title::before {
    content: '\e071';
    font-family: 'icon-font';
    font-weight: 500;
    color: #ea580c;
    font-size: 26px;
  }

.btn-see-all {
  background: #ea580c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  text-decoration: none !important;
}

@media (max-width: 1000px) {
  /* Align merchant See all with Figma mobile text-link treatment */
  .btn-see-all {
    background: transparent;
    color: #FF6600;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
  }
}

.products-grid-wrap {
  position: relative;
  margin-bottom: 40px;
  margin-left: 12px;
  margin-right: 12px;
  overflow: visible;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

  .products-grid.swiper.products-swiper {
    display: block;
    overflow: hidden;
  }

  .products-grid.swiper .swiper-wrapper {
    align-items: stretch;
  }

  .products-grid.swiper .swiper-slide {
    height: auto;
  }

    .products-grid.swiper .swiper-slide .product-item {
      height: 100%;
      margin-top: 4px;
    }

    .products-grid.swiper .swiper-slide .product-card {
      height: 100%;
    }

/* Figma 2615:10166 — white circle, 8px pad, 14px primary arrow, soft shadow */
.products-swiper {
  --swiper-navigation-sides-offset: 0px;
  --swiper-navigation-top-offset: 50%;
}

.products-swiper .products-swiper-btn-prev,
.products-swiper .products-swiper-btn-next,
.products-swiper .swiper-button-prev.products-swiper-btn-prev,
.products-swiper .swiper-button-next.products-swiper-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  background: var(--white, #fff) !important;
  border: none;
  border-radius: 1000px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
  color: var(--pc, #d22e00) !important;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* LTR: left arrow flush start, right arrow flush end */
.products-swiper .products-swiper-btn-prev,
.products-swiper .swiper-button-prev.products-swiper-btn-prev {
  left: 0 !important;
  right: auto !important;
}

.products-swiper .products-swiper-btn-next,
.products-swiper .swiper-button-next.products-swiper-btn-next {
  right: 0 !important;
  left: auto !important;
}

/* Hide nav when all slides fit (watchOverflow → swiper-button-lock) */
.products-swiper .products-swiper-btn-prev.swiper-button-lock,
.products-swiper .products-swiper-btn-next.swiper-button-lock,
.products-swiper .swiper-button-prev.products-swiper-btn-prev.swiper-button-lock,
.products-swiper .swiper-button-next.products-swiper-btn-next.swiper-button-lock,
.products-swiper.swiper-initialized.swiper-watch-overflow.swiper-locked .products-swiper-btn-prev,
.products-swiper.swiper-initialized.swiper-watch-overflow.swiper-locked .products-swiper-btn-next,
/* Hide end-of-rail disabled arrows (nothing left to slide that way) */
.products-swiper .products-swiper-btn-prev.swiper-button-disabled,
.products-swiper .products-swiper-btn-next.swiper-button-disabled,
.products-swiper .swiper-button-prev.products-swiper-btn-prev.swiper-button-disabled,
.products-swiper .swiper-button-next.products-swiper-btn-next.swiper-button-disabled {
  display: none !important;
  pointer-events: none !important;
}

.products-swiper .products-swiper-btn-prev:hover,
.products-swiper .products-swiper-btn-next:hover,
.products-swiper .swiper-button-prev.products-swiper-btn-prev:hover,
.products-swiper .swiper-button-next.products-swiper-btn-next:hover {
  background: var(--white, #fff) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: var(--pc, #d22e00) !important;
}

.products-swiper .products-swiper-btn-prev::after,
.products-swiper .products-swiper-btn-next::after,
.products-swiper .swiper-button-prev.products-swiper-btn-prev::after,
.products-swiper .swiper-button-next.products-swiper-btn-next::after {
  content: '' !important;
  font-size: 0 !important;
  line-height: 0;
  width: 14px;
  height: 14px;
  display: block;
  background-color: var(--pc, #d22e00);
  -webkit-mask: url('../images/products-swiper-arrow.svg') center / 14px 14px no-repeat;
  mask: url('../images/products-swiper-arrow.svg') center / 14px 14px no-repeat;
}

.products-swiper .products-swiper-btn-next::after,
.products-swiper .swiper-button-next.products-swiper-btn-next::after {
  transform: none;
}

.products-swiper .products-swiper-btn-prev::after,
.products-swiper .swiper-button-prev.products-swiper-btn-prev::after {
  transform: scaleX(-1);
}

.category-section {
  margin-bottom: 40px;
}

/* Add extra bottom margin to category section for button overflow */
.products-wrapper .category-section:last-child {
  margin-bottom: 20px;
}

/* Product item wrapper - transparent to not interfere with design */
.products-grid .product-item {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* Figma 2106:8532 / 1757:6595 — shop product tiles 170×190 @393w */
@media (max-width: 768px) {
  .html-merchant-page .products-grid.swiper .swiper-slide,
  .merchant-main-content .products-grid.swiper .swiper-slide {
    width: 170px !important;
    max-width: 170px;
  }

  .html-merchant-page .products-grid .product-item,
  .html-merchant-page .products-grid .product-card,
  .merchant-main-content .products-grid .product-item,
  .merchant-main-content .products-grid .product-card {
    width: 170px;
    max-width: 170px;
    height: 190px;
    max-height: 190px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .html-merchant-page .products-grid .product-image,
  .merchant-main-content .products-grid .product-image {
    height: 100px;
    max-height: 100px;
  }
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: visible;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

  .product-card:hover {
    transform: translateY(-2px);
  }

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #FF0054;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(255, 0, 84, 0.3);
}

.product-image {
  width: 100%;
  height: 100%;
  min-height: 132px;
  aspect-ratio: 5/3;
  object-fit: cover;
  border-radius: 5px;
  background: #f3f3f3;
  display: block;
}

.product-image-link {
  display: block;
  position: relative;
  text-decoration: none;
  width: 100%;
  min-height: 132px;
  aspect-ratio: 5/3;
  background: #f3f3f3;
  border-radius: 5px;
  overflow: hidden;
}

.product-details {
  padding: 16px 10px 20px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #000;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: start;
}

  .product-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
  }

    .product-title a:hover {
      color: #FF0054;
    }

.product-cuisine {
  display: block;
  font-size: 13px;
  color: #888;
  margin: 0 0 10px 0;
  text-align: start;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  gap: 8px;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

  .price-box .old-price {
    order: 1;
  }

  .price-box .actual-price {
    order: 2;
  }

.actual-price {
  font-size: 15px;
  font-weight: 700;
  color: #d22e00;
}

.old-price {
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
}

/* Figma 1931:5637 — pill badge on the trailing edge of the price row */
.discount-percent {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #eb0038;
  padding: 5px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.btn-add-text {
  display: none !important;
}

.btn-add-to-cart {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff5722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  font-weight: 300;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.45);
  transition: all 0.3s;
  padding: 0;
  line-height: 1;
  z-index: 3;
}

html[dir="rtl"] .btn-add-to-cart {
  right: auto !important;
  left: 10px !important;
}

  .btn-add-to-cart span {
    color: #fff;
    display: block;
    margin-top: -2px;
  }

  .btn-add-to-cart:hover {
    background: #E64A19;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.5);
  }

.no-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 40px;
  text-align: center;
  background: var(--white, #fff);
  border-radius: 24px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--pc, #d22e00) 8%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.04);
  margin: 40px auto;
  border: 1px solid var(--grey, #e0e0e0);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.no-result::before {
  content: '';
  position: absolute;
  top: -48px;
  inset-inline-end: -48px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--pc, #d22e00) 10%, transparent) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.no-result .no-result-icon {
  width: 72px;
  height: 72px;
  background: var(--bg, color-mix(in srgb, var(--pc, #d22e00) 10%, #fff));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--pc, #d22e00);
  font-size: 28px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--pc, #d22e00) 14%, transparent);
  transform: none;
  animation: none;
}

.no-result .no-result-icon i,
.no-result .no-result-icon .icon-font-search,
.no-result .no-result-icon::before {
  color: var(--pc, #d22e00);
}

.no-result p {
  font-size: 22px;
  font-weight: 600;
  color: var(--black, #111318);
  margin: 0 0 10px;
  letter-spacing: 0;
  line-height: 1.3;
}

.no-result span {
  font-size: 15px;
  font-weight: 400;
  color: var(--dark-grey, #767484);
  max-width: 440px;
  line-height: 1.6;
}

@keyframes noResultFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Merchant Favorite Button (shop header CTA) — Figma Restaurant-Details: 173×34 pill */
.merchant-action-buttons .btn-favorite-merchant {
  background: #fff;
  border: 1px solid #000;
  border-radius: 1000px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-size: 14px;
  line-height: 20px;
  color: #000;
  font-weight: 400;
  min-width: 173px;
  width: max-content;
  min-height: 34px;
  height: 34px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: none;
}

  .merchant-action-buttons .btn-favorite-merchant .btn-text {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .merchant-action-buttons .btn-favorite-merchant .icon-font-heart {
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .merchant-action-buttons .btn-favorite-merchant .icon-font-heart:before,
  .merchant-action-buttons .btn-favorite-merchant span.icon-font-heart:before {
    font-size: 14px;
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .merchant-action-buttons .btn-favorite-merchant:hover {
    background: #fff5f5;
    border-color: #dc2626;
    color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  }

  .merchant-action-buttons .btn-favorite-merchant:hover .icon-font-heart {
    transform: scale(1.15);
  }

  .merchant-action-buttons .btn-favorite-merchant:hover .icon-font-heart:before {
    color: #dc2626;
  }

  .merchant-action-buttons .btn-favorite-merchant.is-favorite {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
  }

  .merchant-action-buttons .btn-favorite-merchant.is-favorite .icon-font-heart:before {
    color: #dc2626;
  }

  .merchant-action-buttons .btn-favorite-merchant.is-favorite:hover {
    background: #fecaca;
    border-color: #dc2626;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
  }

  .merchant-action-buttons .btn-favorite-merchant.is-favorite:hover .icon-font-heart {
    transform: scale(1.15);
  }

  .merchant-action-buttons .btn-favorite-merchant.is-favorite:hover .icon-font-heart:before {
    color: #b91c1c;
  }

/* No Results Layout — keep filters visible so users can adjust */
#merchant-catalog.no-results-layout .no-result {
    margin: 0 auto;
    margin-top: 20px;
}

/* Header Favorites Button */
.header-favorites-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6b7280;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

  .header-favorites-button:hover {
    color: #dc2626;
  }

.header-favorites-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Merchant Closed Status Badge */
.merchant-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

  .merchant-status-badge.closed {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
  }

/* Merchant Item Closed Styling */
.merchant-item.merchant-closed {
  opacity: 0.75;
  filter: grayscale(30%);
}

  .merchant-item.merchant-closed:hover {
    opacity: 0.9;
    filter: grayscale(20%);
  }

  .merchant-item.merchant-closed .picture {
    position: relative;
  }

  .merchant-item.merchant-closed .product-title a {
    color: #6b7280;
  }

/* Media Queries */
@media only screen and (max-width: 768px) {
  /* Figma 2106:8841 — compact ticket so Apply stays fully visible beside next arrow */
  .coupon-carousel-wrapper {
    position: relative;
    margin: 20px -15px 20px;
    /* Left page gutter + right room for 30px next arrow */
    padding: 0 40px 0 15px;
    width: calc(100% + 30px);
    max-width: none;
    box-sizing: border-box;
  }

  .coupon-swiper {
    padding: 0 !important;
    /* Swiper sets overflow:hidden inline — must force visible so Apply isn't clipped */
    overflow: visible !important;
  }

  .coupon-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .coupon-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 70px;
    min-height: 70px;
    background: #fff0f3;
    border: 1px dashed rgba(235, 0, 56, 0.25);
    border-radius: 12px;
  }

  .coupon-card-inner {
    padding: 0 10px 0 12px;
    gap: 6px;
  }

  .coupon-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .coupon-logo img,
  .coupon-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 1000px;
    border: 2px solid var(--white, #fff);
    object-fit: cover;
  }

  .coupon-divider {
    height: 48px;
    border-color: rgba(235, 0, 56, 0.2);
  }

  .coupon-info {
    gap: 4px;
    min-width: 0;
  }

  .coupon-info h5 {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: var(--black, #000);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }

  .coupon-info h5 .coupon-discount,
  .coupon-info h5 strong {
    font-weight: 500;
    color: var(--red, #eb0038);
    text-transform: uppercase;
  }

  .coupon-info p {
    font-size: 11px;
    line-height: 14px;
    color: var(--black, #000);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .coupon-action {
    flex: 0 0 auto;
    margin-left: 0;
    z-index: 3;
  }

  .btn-apply-coupon,
  .btn-coupon-action {
    height: 28px;
    min-height: 28px;
    min-width: 0;
    padding: 0 12px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-transform: capitalize;
    box-shadow: none;
    background: var(--secondary, #f60) !important;
    color: var(--white, #fff) !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .coupon-swiper-btn-next,
  .coupon-swiper-btn-prev {
    width: 30px;
    height: 30px;
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
    background: var(--white, #fff);
    border-radius: 1000px;
    z-index: 5;
  }

  .coupon-swiper-btn-next {
    right: 6px;
  }

  .coupon-swiper-btn-prev {
    left: 6px;
  }

  .coupon-btn-text-desktop {
    display: none;
  }

  .coupon-btn-text-mobile {
    display: inline;
  }

  .sticky-nav-container {
    background: #fff;
    border-radius: 0;
    border-bottom: 0;
  }

  .sticky-nav-search-wrap {
    display: none;
  }

  /* Figma 2106:8637 — underline tabs, full-bleed grey hairline */
  .category-nav-tabs {
    width: 100%;
    gap: 10px;
    padding: 0 15px;
    margin: 0;
    border-bottom: 1px solid var(--dark-grey, #767484);
    list-style: none;
    align-items: stretch;
  }

  .nav-tab {
    display: flex !important;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--black, #000);
    line-height: normal;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
  }

    .nav-tab.active {
      font-weight: 500;
      color: var(--primary, #d22e00);
      border-bottom: 2px solid var(--primary, #d22e00);
      margin-bottom: -1px;
    }

  /* Figma request — category section header spacing */
  .category-section .section-header {
    margin-bottom: 10px !important;
  }

  .category-section .section-title {
    font-size: 14px;
    font-weight: 500;
  }

  /* Align product/review rails to 15px content edge */
  .products-container {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    max-width: none;
    padding: 0; /* -15 already lands on 15px viewport rail */
    box-sizing: border-box;
  }

  /* Inside products-container (already on 15px rail) — no second negative margin */
  .products-container .merchant-shop-reviews-rail {
    margin: 24px 0 28px;
    padding: 0;
    width: 100%;
  }

  .category-section .section-header {
    margin-bottom: 10px !important;
  }

  .category-section .section-title {
    font-size: 14px;
    font-weight: 500;
  }
}

@media all and (max-width: 768px) {
  .products-grid .swiper-slide {
    text-align: left;
  }

  .product-details {
    text-align: left;
  }

  .product-title {
    font-size: 14px;
  }

  .product-cuisine {
    font-size: 12px;
  }

  .actual-price {
    font-size: 15px;
  }

  .old-price {
    font-size: 12px;
  }

  .discount-percent {
    font-size: 11px;
  }

  .products-swiper .products-swiper-btn-prev,
  .products-swiper .products-swiper-btn-next,
  .products-swiper .swiper-button-prev.products-swiper-btn-prev,
  .products-swiper .swiper-button-next.products-swiper-btn-next {
    width: 30px;
    height: 30px;
    background: var(--white, #fff) !important;
    color: var(--pc, #d22e00) !important;
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.05);
  }

  .products-swiper .products-swiper-btn-prev,
  .products-swiper .swiper-button-prev.products-swiper-btn-prev {
    left: 0 !important;
    right: auto !important;
  }

  .products-swiper .products-swiper-btn-next,
  .products-swiper .swiper-button-next.products-swiper-btn-next {
    right: 0 !important;
    left: auto !important;
  }

  /* RTL mobile: same physical sides as LTR — left ← @ left:0, right → @ right:0 */
  html[dir="rtl"] .products-swiper .products-swiper-btn-next,
  html[dir="rtl"] .products-swiper .swiper-button-next.products-swiper-btn-next,
  html[dir="rtl"] .products-swiper.swiper-rtl .products-swiper-btn-next,
  html[dir="rtl"] .products-swiper.swiper-rtl .swiper-button-next.products-swiper-btn-next {
    right: 0 !important;
    left: auto !important;
  }

  html[dir="rtl"] .products-swiper .products-swiper-btn-prev,
  html[dir="rtl"] .products-swiper .swiper-button-prev.products-swiper-btn-prev,
  html[dir="rtl"] .products-swiper.swiper-rtl .products-swiper-btn-prev,
  html[dir="rtl"] .products-swiper.swiper-rtl .swiper-button-prev.products-swiper-btn-prev {
    left: 0 !important;
    right: auto !important;
  }

  .products-swiper .products-swiper-btn-prev::after,
  .products-swiper .products-swiper-btn-next::after,
  .products-swiper .swiper-button-prev.products-swiper-btn-prev::after,
  .products-swiper .swiper-button-next.products-swiper-btn-next::after {
    width: 14px;
    height: 14px;
    font-size: 0 !important;
    color: var(--pc, #d22e00) !important;
  }
}

@media all and (min-width: 1001px) {
  .products-grid.swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    flex-wrap: wrap;
  }

  .products-grid.swiper .swiper-slide {
    width: auto !important;
    height: auto !important;
  }

  /* Beat base (0,3,0) display:flex — desktop is a grid, not a carousel */
  .products-swiper .products-swiper-btn-prev,
  .products-swiper .products-swiper-btn-next,
  .products-swiper .swiper-button-prev.products-swiper-btn-prev,
  .products-swiper .swiper-button-next.products-swiper-btn-next {
    display: none !important;
  }
}

/* Merchant Banner Styles */
.merchant-banner-container {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-lg, 16px);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.merchant-list-feed-banner {
  max-width: 1500px;
  width: 90%;
  margin: 0 auto 24px;
}

.merchant-banner-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
  object-fit: cover;
  object-position: center right;
}

.merchant-list-feed-banner .merchant-banner-image {
  min-height: 180px;
  max-height: 280px;
}

.merchant-banner-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 40px 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  text-align: left;
}

  .merchant-banner-title h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

@media only screen and (max-width: 768px) {
  .merchant-banner-container {
    border-radius: 0;
    margin-bottom: 15px;
  }

  .merchant-list-feed-banner {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    border-radius: 0;
  }

  .merchant-banner-title {
    padding: 20px 20px 15px;
  }

    .merchant-banner-title h1 {
      font-size: 22px;
    }
}

/* ===== Favorites page (matches Featured / merchant list cards) ===== */
.favorites-list-page {
  max-width: 1500px;
  width: 90%;
  margin: 0 auto;
  padding: 24px 0 64px;
  box-sizing: border-box;
}

.favorites-list-page .page-title {
  text-align: left;
  margin: 0 0 24px;
  padding: 0;
  min-height: 0;
  border: none;
  background: none;
}

.favorites-list-page .page-title h1 {
  font-family: var(--font-family, 'Rubik', sans-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black, #111318);
  margin: 0;
}

.favorites-list-page .favorites-grid.product-grid .item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px 20px;
  float: none;
  width: 100%;
}

.favorites-list-page .favorites-grid .item-box {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.favorites-list-page .favorites-grid .merchant-item {
  width: 100%;
  background: var(--white, #fff);
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--pc, #d22e00) 6%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.favorites-list-page .favorites-grid .merchant-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pc, #d22e00) 12%, transparent);
}

.favorites-list-page .favorites-grid .merchant-item .picture-wrapper,
.favorites-list-page .favorites-grid .merchant-item .picture {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg, #f7f7f8);
}

.favorites-list-page .favorites-grid .merchant-item .picture a {
  display: block;
  position: relative;
}

.favorites-list-page .favorites-grid .merchant-item .picture a:before {
  content: "";
  display: block;
  padding-top: 62%;
}

.favorites-list-page .favorites-grid .merchant-item .picture img,
.favorites-list-page .favorites-grid .merchant-item .picture-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.favorites-list-page .favorites-grid .merchant-item .merchant-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px 16px;
  box-sizing: border-box;
}

.favorites-list-page .favorites-grid .merchant-item .merchant-name {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black, #111318);
  white-space: normal;
}

.favorites-list-page .favorites-grid .merchant-item .merchant-name a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
}

.favorites-list-page .favorites-grid .merchant-item .merchant-name a:hover {
  color: var(--pc, #d22e00);
}

.favorites-list-page .favorites-grid .merchant-item .merchant-ribbons {
  margin: 0;
  gap: 4px;
  width: 100%;
}

.favorites-list-page .favorites-grid .merchant-item .ribbon-row {
  font-size: 12px;
  line-height: 1.35;
  color: var(--dark-grey, #767484);
  gap: 6px;
}

.favorites-list-page .favorites-grid .merchant-item .ribbon-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.favorites-list-page .no-favorites {
  max-width: 480px;
  margin: 40px auto;
  padding: 48px 28px;
  text-align: center;
  background: var(--white, #fff);
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 20px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--pc, #d22e00) 8%, transparent);
}

.favorites-list-page .no-favorites-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--bg, color-mix(in srgb, var(--pc, #d22e00) 10%, #fff));
  color: var(--pc, #d22e00);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pc, #d22e00) 14%, transparent);
}

.favorites-list-page .no-favorites p {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-grey, #767484);
  margin: 0 0 20px;
}

.favorites-list-page .btn-browse-merchants {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  background: var(--pc, #d22e00);
  color: var(--white, #fff) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s ease;
}

.favorites-list-page .btn-browse-merchants:hover {
  background: var(--sc, #ff6600);
  color: var(--white, #fff) !important;
}

@media (max-width: 769px) {
  .favorites-list-page {
    width: calc(100% - 32px);
    padding: 16px 0 48px;
  }

  .favorites-list-page .page-title h1 {
    font-size: 20px;
  }

  .favorites-list-page .favorites-grid.product-grid .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .favorites-list-page .favorites-grid .merchant-item .merchant-name {
    font-size: 13px;
  }

  .favorites-list-page .favorites-grid .merchant-item .merchant-details {
    padding: 10px 10px 12px;
  }
}

.coupon-auto-badge {
  background: #ff6600;
  color: #fff;
  cursor: default;
}

.merchant-welcome-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.merchant-welcome {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  line-height: 24px;
}

.merchant-open-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
}

.merchant-open-pill.is-open {
  background: #FF6B00;
  color: #fff;
}

.merchant-open-pill.is-closed {
  background: #9e9e9e;
  color: #fff;
}

/* RTL — product/favorites rails stay LTR-forced via text-align:left above */
html[dir="rtl"] .product-title,
html[dir="rtl"] .product-cuisine,
html[dir="rtl"] .favorites-list-page .page-title,
html[dir="rtl"] .products-grid .swiper-slide,
html[dir="rtl"] .product-details {
  text-align: right;
}

/* RTL: same physical sides as LTR — next @ right →, prev @ left ← */
html[dir="rtl"] .products-swiper .products-swiper-btn-next,
html[dir="rtl"] .products-swiper .swiper-button-next.products-swiper-btn-next,
html[dir="rtl"] .products-swiper.swiper-rtl .products-swiper-btn-next,
html[dir="rtl"] .products-swiper.swiper-rtl .swiper-button-next.products-swiper-btn-next {
  right: 0 !important;
  left: auto !important;
}

html[dir="rtl"] .products-swiper .products-swiper-btn-prev,
html[dir="rtl"] .products-swiper .swiper-button-prev.products-swiper-btn-prev,
html[dir="rtl"] .products-swiper.swiper-rtl .products-swiper-btn-prev,
html[dir="rtl"] .products-swiper.swiper-rtl .swiper-button-prev.products-swiper-btn-prev {
  left: 0 !important;
  right: auto !important;
}

/* Keep LTR chevrons: next points right, prev points left */
html[dir="rtl"] .products-swiper .products-swiper-btn-next::after,
html[dir="rtl"] .products-swiper .swiper-button-next.products-swiper-btn-next::after {
  transform: none !important;
}

html[dir="rtl"] .products-swiper .products-swiper-btn-prev::after,
html[dir="rtl"] .products-swiper .swiper-button-prev.products-swiper-btn-prev::after {
  transform: scaleX(-1) !important;
}

/* ===== Merchant shop Reviews rail (Figma 2615:10090 / mobile 2106:8580) ===== */
.merchant-shop-reviews-rail {
  margin: 32px 0 40px;
  width: 100%;
}

.fs-mr-rail {
  position: relative;
  font-family: Rubik, var(--mr-font, sans-serif);
  color: var(--black, #000);
}

.fs-mr-rail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fs-mr-rail__titles {
  min-width: 0;
}

.fs-mr-rail__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: var(--black, #000);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-mr-rail__title::before {
  content: '\e071';
  font-family: 'icon-font';
  font-weight: 500;
  color: #ea580c;
  font-size: 22px;
  line-height: 1;
}

.fs-mr-rail__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
  color: var(--dark-grey, #767484);
}

.fs-mr-rail__open-all-icon {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary, #d22e00);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fs-mr-rail__viewport {
  position: relative;
}

.fs-mr-rail__track {
  display: flex;
  align-items: stretch;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 2px 8px;
  padding-inline: 0 8px;
  /* Keep scrollLeft geometry predictable; flex order still follows page dir via inherit on cards */
  -webkit-overflow-scrolling: touch;
}

.fs-mr-rail__track::-webkit-scrollbar {
  display: none;
}

.fs-mr-summary-card {
  flex: 0 0 115px;
  width: 115px;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 6px;
  background: rgba(224, 224, 224, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}

.fs-mr-summary-card:hover,
.fs-mr-summary-card:focus-visible {
  border-color: var(--secondary, #f60);
  outline: none;
}

.fs-mr-ring {
  position: relative;
  width: 65px;
  height: 60px;
}

.fs-mr-ring svg {
  width: 65px;
  height: 60px;
  display: block;
  transform: rotate(-90deg);
}

.fs-mr-ring__bg {
  fill: none;
  stroke: #eeeeee;
  stroke-width: 7;
}

.fs-mr-ring__fg {
  fill: none;
  stroke: var(--secondary, #f60);
  stroke-width: 7;
  stroke-linecap: round;
}

.fs-mr-ring__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--black, #000);
}

.fs-mr-summary-card__caption {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  text-transform: capitalize;
  color: var(--black, #000);
}

.fs-mr-summary-card__caption i {
  color: var(--black, #000);
  font-size: 10px;
}

.fs-mr-card {
  flex: 0 0 255px;
  width: 255px;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  box-sizing: border-box;
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  overflow: hidden;
}

.fs-mr-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.fs-mr-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 1000px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

.fs-mr-card__who {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.fs-mr-card__name-block {
  min-width: 0;
}

.fs-mr-card__name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--black, #000);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.fs-mr-card__contrib {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--dark-grey, #767484);
  white-space: nowrap;
}

.fs-mr-card__chevron {
  color: var(--dark-grey, #767484);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.fs-mr-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--black, #000);
}

.fs-mr-card__stars {
  display: inline-flex;
  gap: 3px;
  color: var(--secondary, #f60);
  font-size: 8px;
}

.fs-mr-card__stars .far {
  color: #cfcfcf;
}

.fs-mr-card__verified {
  color: var(--green, #148162);
  font-weight: 500;
}

.fs-mr-card__text {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--black, #000);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fs-mr-rail__next,
.fs-mr-rail__prev {
  position: absolute;
  top: calc(50% + 8px);
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 1000px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  color: var(--pc, #d22e00);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
  line-height: 1;
}

/* Match coupon/products carousels — icon-font (FA often not loaded on this page) */
.fs-mr-rail__next i,
.fs-mr-rail__prev i {
  display: none !important;
}

.fs-mr-rail__next::after,
.fs-mr-rail__prev::after {
  font-family: 'icon-font';
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  speak: never;
}

.fs-mr-rail__next::after {
  content: '\e012';
}

.fs-mr-rail__prev::after {
  content: '\e010';
}

.fs-mr-rail__next {
  right: 0;
  left: auto;
}

.fs-mr-rail__prev {
  left: 0;
  right: auto;
}

html[dir="rtl"] .fs-mr-rail__next {
  left: 0;
  right: auto;
}

html[dir="rtl"] .fs-mr-rail__prev {
  right: 0;
  left: auto;
}

/* Swap glyphs in RTL (do not scaleX — that fights icon-font metrics) */
html[dir="rtl"] .fs-mr-rail__next::after {
  content: '\e010';
}

html[dir="rtl"] .fs-mr-rail__prev::after {
  content: '\e012';
}

html[dir="rtl"] .fs-mr-card__chevron {
  transform: scaleX(-1);
}

.fs-mr-rail__next[hidden],
.fs-mr-rail__prev[hidden] {
  display: none !important;
}

.fs-mr-empty {
  font-size: 13px;
  color: var(--dark-grey, #767484);
  padding: 12px 0;
}

/* Modals */
.fs-mr-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.fs-mr-modal.is-open {
  display: flex;
}

.fs-mr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.fs-mr-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(900px, 92vh);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.fs-mr-modal__dialog--author .fs-mr-modal__head {
  background: linear-gradient(173deg, #eb0038 15.5%, var(--secondary, #f60) 87.5%);
  color: #fff;
}

.fs-mr-modal__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey, #e0e0e0);
  flex-shrink: 0;
}

.fs-mr-modal__head-spacer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.fs-mr-modal__close {
  order: 3;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.fs-mr-modal__title {
  order: 2;
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

.fs-mr-modal__body {
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.fs-mr-all-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
}

.fs-mr-all-summary__left {
  flex: 0 0 115px;
}

.fs-mr-all-summary .fs-mr-summary-card {
  width: 100%;
  min-height: 107px;
  cursor: default;
}

.fs-mr-dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fs-mr-dist__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  position: relative;
}

.fs-mr-dist__label {
  width: 10px;
  color: #000;
}

.fs-mr-dist__star {
  color: var(--secondary, #f60);
  font-size: 8px;
}

.fs-mr-dist__bar {
  flex: 1;
  height: 4px;
  border-radius: 1000px;
  background: var(--grey, #e0e0e0);
  overflow: hidden;
}

.fs-mr-dist__fill {
  height: 100%;
  background: var(--secondary, #f60);
  border-radius: 1000px;
}

.fs-mr-dist__pct {
  width: 32px;
  text-align: right;
  color: var(--dark-grey, #767484);
}

.fs-mr-modal-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--dark-grey, #767484);
  margin: 0 -16px 12px;
  padding: 0 16px;
  scrollbar-width: none;
}

.fs-mr-modal-tabs::-webkit-scrollbar {
  display: none;
}

.fs-mr-modal-tab {
  border: 0;
  background: transparent;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 400;
  color: var(--black, #000);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.fs-mr-modal-tab.active {
  color: var(--primary, #d22e00);
  font-weight: 500;
  border-bottom-color: var(--primary, #d22e00);
}

.fs-mr-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fs-mr-modal-toolbar__count {
  font-size: 14px;
  font-weight: 500;
}

.fs-mr-modal-toolbar select {
  height: 40px;
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
}

.fs-mr-modal .product-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-mr-modal .review-card {
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 8px;
  padding: 14px 13px 0;
  background: #fff;
}

.fs-mr-modal .review-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fs-mr-modal .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 1000px;
  background: var(--dark-grey, #767484);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.fs-mr-modal .review-author-name {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--black, #000);
  cursor: pointer;
  text-align: left;
}

.fs-mr-modal .review-author-name:hover {
  color: var(--primary, #d22e00);
  text-decoration: underline;
}

.fs-mr-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 8px;
}

.fs-mr-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 8px;
  background: #fff;
  color: var(--black, #000);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.fs-mr-page-btn.active {
  background: var(--secondary, #f60);
  border-color: var(--secondary, #f60);
  color: #fff;
}

.fs-mr-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fs-mr-modal .review-header-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.fs-mr-modal .review-header-rating-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dark-grey, #767484);
}

.fs-mr-modal .review-rating-stars {
  color: var(--secondary, #f60);
  font-size: 12px;
}

.fs-mr-modal .review-text {
  margin: 12px 0;
  font-size: 14px;
  line-height: 20px;
}

.fs-mr-modal .review-pictures {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fs-mr-modal .review-picture-item {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.fs-mr-modal .review-picture-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-mr-modal .review-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--grey, #e0e0e0);
  min-height: 45px;
  padding: 0 0 0 0;
}

.fs-mr-modal .review-action-button {
  border: 0;
  background: transparent;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--black, #000);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fs-mr-modal .review-action-button.report-button {
  margin-left: auto;
  color: var(--dark-grey, #767484);
}

.fs-mr-modal .review-action-button.highlighted {
  color: var(--primary, #d22e00);
}

.fs-mr-modal .reply-form {
  margin: 12px 0 16px;
}

.fs-mr-modal .reply-form textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--grey, #e0e0e0);
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  font-family: inherit;
}

.fs-mr-modal .reply-form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.fs-mr-modal .reply-form-button {
  border-radius: 20px;
  padding: 8px 18px;
  border: 1px solid var(--grey, #e0e0e0);
  background: #fff;
  cursor: pointer;
}

.fs-mr-modal .reply-form-button.submit {
  background: var(--secondary, #f60);
  border-color: var(--secondary, #f60);
  color: #fff;
}

.fs-mr-modal .review-replies {
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-mr-modal .review-reply {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fs-mr-modal .review-reply-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  box-sizing: border-box;
}

/* Storefront / shared reply list (non-modal) — keep avatars circular */
.review-reply {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.review-reply-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .merchant-shop-reviews-rail {
    margin: 24px 0 28px;
  }

  /* Figma 2106:8580 — Reviews title without icon glyph */
  .fs-mr-rail__title {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    color: var(--black, #000);
  }

  .fs-mr-rail__title::before {
    content: none !important;
    display: none !important;
  }

  .fs-mr-rail__meta {
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    color: #7d7c86;
  }

  .fs-mr-rail__header {
    margin-bottom: 12px;
    align-items: flex-start;
  }

  .fs-mr-rail__open-all-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grey, #e0e0e0);
    color: var(--black, #000);
  }

  .fs-mr-rail__track {
    gap: 10px;
    padding: 0;
  }

  .fs-mr-card {
    flex-basis: 233px;
    width: 233px;
    height: 107px;
    min-height: 107px;
    max-height: 107px;
    padding: 10px;
    gap: 6px;
    background: rgba(224, 224, 224, 0.5);
    border: none;
    border-radius: 6px;
  }

  .fs-mr-summary-card {
    flex: 0 0 115px;
    width: 115px;
    height: 107px;
    min-height: 107px;
    max-height: 107px;
    padding: 8px 6px;
    border: 1px solid var(--grey, #e0e0e0);
    border-radius: 6px;
    background: rgba(224, 224, 224, 0.2);
  }

  .fs-mr-rail__next,
  .fs-mr-rail__prev {
    display: none;
  }

  .fs-mr-modal {
    padding: 0;
    align-items: stretch;
  }

  .fs-mr-modal__dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ps-arrow-12-gutter */


