/* Shop & deals (sort=discount) */

/* Category filters with icons */
.shop-cat-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.shop-cat-filter__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700, #334155);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shop-cat-filter__item:hover {
  background: var(--primary-light);
  border-color: #d4c0da;
  color: var(--primary);
}

.shop-cat-filter__item--active {
  background: var(--gradient-surface);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(102, 59, 114, 0.12);
}

.shop-cat-filter__icon-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-surface);
  border: 1px solid #cfc0d8;
  border-radius: 50%;
}

.shop-cat-filter__item--active .shop-cat-filter__icon-wrap {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(102, 59, 114, 0.15);
}

.shop-cat-filter__item--active .shop-cat-filter__icon-fallback {
  color: var(--primary);
}

.shop-cat-filter__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.shop-cat-filter__icon-fallback {
  color: var(--primary);
  opacity: 0.8;
}

.shop-cat-filter__label {
  line-height: 1.25;
}

/* Mobile category chips with icons */
.shop-cat-scroll {
  gap: 10px;
  padding: 6px 0 10px;
}

.shop-cat-chip {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 78px;
  max-width: 88px;
  padding: 10px 8px !important;
  text-align: center;
  font-size: 0.7rem !important;
  line-height: 1.2;
  background: #ffffff !important;
  border: 1.5px solid var(--gray-200, #e2e8f0) !important;
  box-shadow: 0 2px 10px rgba(22, 32, 42, 0.06);
  color: var(--gray-600, #475569) !important;
}

.shop-cat-chip__icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-surface);
  border: 1px solid #cfc0d8;
  border-radius: 50%;
}

.shop-cat-chip__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.shop-cat-chip__icon.shop-cat-filter__icon-fallback {
  color: var(--primary);
  opacity: 0.85;
}

.shop-cat-chip--active,
.shop-cat-chip.app-chip--active {
  background: var(--gradient-surface) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(102, 59, 114, 0.14);
}

.shop-cat-chip--active .shop-cat-chip__icon-wrap,
.shop-cat-chip.app-chip--active .shop-cat-chip__icon-wrap {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(102, 59, 114, 0.15);
}

.shop-cat-chip--active .shop-cat-filter__icon-fallback,
.shop-cat-chip.app-chip--active .shop-cat-filter__icon-fallback {
  color: var(--primary);
  opacity: 1;
}

.page-header--deals {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 45%, #f59e0b 100%);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-header__sub {
  margin: 6px 0 0;
  font-size: 0.9rem;
  opacity: 0.92;
  font-weight: 400;
}

.page-header__badge {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Mobile deals hero */
.shop-deals-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 12px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.28);
}

.shop-deals-hero__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

.shop-deals-hero__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  margin-bottom: 6px;
}

.shop-deals-hero__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.shop-deals-hero__sub {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.92;
  line-height: 1.4;
}

.shop-app-top--deals {
  border-bottom: none;
  padding-top: 4px;
}

/* Sort pills (mobile) */
.shop-sort-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 2px;
  margin-top: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-sort-pills::-webkit-scrollbar {
  display: none;
}

.shop-sort-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--app-bg, #f1f5f9);
  color: var(--gray-600, #475569);
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shop-sort-pill--active {
  background: var(--primary);
  color: #fff;
}

.shop-sort-pill--deals.shop-sort-pill--active {
  background: linear-gradient(135deg, #dc2626, #ea580c);
}

.shop-sort-pill--deals:not(.shop-sort-pill--active) {
  border-color: rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

.shop-sort-pill__icon {
  font-weight: 800;
  font-size: 0.85rem;
}

/* Desktop sort links */
.shop-sort-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-sort-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700, #334155);
  text-decoration: none;
  border: 1px solid var(--gray-200, #e2e8f0);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shop-sort-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.shop-sort-link--active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.shop-sort-link--deals.shop-sort-link--active {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

.shop-sidebar-deals {
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border-radius: 12px;
  border: 1px solid #fecaca;
  font-size: 0.82rem;
  color: #9a3412;
  line-height: 1.45;
}

.shop-sidebar-deals p {
  margin: 0;
}

.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-500, #64748b);
}

@media (min-width: 768px) {
  .shop-results-bar {
    padding: 0 0 14px;
  }
}

.shop-results-bar__sort {
  font-weight: 600;
  color: var(--primary);
}

.app-body--shop-deals .shop-results-bar__sort {
  color: #dc2626;
}

/* Empty state */
.shop-empty {
  text-align: center;
  padding: 48px 24px 56px;
  margin: 8px 12px 24px;
  background: var(--white, #fff);
  border-radius: 16px;
  border: 1px dashed var(--gray-200, #e2e8f0);
}

@media (min-width: 768px) {
  .shop-empty {
    margin: 0;
    padding: 64px 32px;
  }
}

.shop-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1;
}

.shop-empty__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 8px;
}

.shop-empty__sub {
  font-size: 0.88rem;
  color: var(--gray-500, #64748b);
  margin: 0 0 20px;
  line-height: 1.45;
}

/* Deals product grid */
.product-grid--deals .product-card--app {
  border-color: rgba(220, 38, 38, 0.12);
}

.product-grid--deals .product-card--app .badge--sale {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  font-size: 0.7rem;
  padding: 4px 8px;
}

.product-card__save {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  margin-top: 2px;
}

.app-body--shop-deals .shop-sort-row {
  display: none;
}

/* Instagram feed — shop social sidebar */
.shop-social-sidebar.instagram-feed,
.app-section--instagram .instagram-feed {
  margin-top: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.shop-filters .shop-social-sidebar {
  margin-top: 20px;
}

.shop-instagram-mobile {
  padding-bottom: 24px;
}

.shop-instagram-mobile .instagram-feed {
  margin-top: 0;
}

.instagram-feed__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.instagram-feed__icon {
  display: flex;
  color: var(--primary);
}

.instagram-feed__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.instagram-feed__profile {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-decoration: none;
}

.instagram-feed__profile:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.instagram-feed__grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.instagram-feed__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.instagram-feed__grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

.instagram-feed__item {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-light);
  border: 1px solid var(--gray-200);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.instagram-feed__item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.instagram-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-feed__cta {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 10px;
  border-radius: var(--radius);
  background: var(--primary-light);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.instagram-feed__cta:hover {
  background: var(--primary);
  color: #fff;
}
