/**
 * Shop & Dine V2 — listing page (Yii frontend).
 * Design tokens aligned with Next.js prototype in Shop_Dine/.
 */

:root {
  --sdv2-primary: #e94e1b;
  --sdv2-primary-alt: #f5a623;
  --sdv2-secondary: #00a19a;
  --sdv2-blue: #0066b3;
  --sdv2-hero-bg: #1a1a2e;
  --sdv2-card: #ffffff;
  --sdv2-border: rgba(0, 0, 0, 0.08);
  --sdv2-muted: #6b7280;
  --sdv2-radius: 12px;
  --sdv2-mustard: #d4a012;
  --sdv2-mustard-hover: #b8890f;
  --sdv2-mustard-soft: #f5e6b8;
  --sdv2-pin: #e8b923;
}

/* Typography matches site branding (29ltbukra in new-style.css / new-style-ar.css). */
.shop-dine-v2 {
  font-family: "29ltbukra", sans-serif;
  font-weight: 500;
  color: #1a1a1a;
}

.shop-dine-v2 .sdv2-hero {
  position: relative;
  background: var(--sdv2-hero-bg);
  overflow: hidden;
  color: #fff;
}

.shop-dine-v2 .sdv2-hero.sdv2-hero--cms::before,
.shop-dine-v2 .sdv2-hero.sdv2-hero--cms::after {
  display: none;
}

.shop-dine-v2 .sdv2-hero.sdv2-hero--cms {
  min-height: 320px;
}

@media (min-width: 768px) {
  .shop-dine-v2 .sdv2-hero.sdv2-hero--cms {
    min-height: 400px;
  }
}

.shop-dine-v2 .sdv2-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: 24rem;
  height: 24rem;
  background: var(--sdv2-primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.shop-dine-v2 .sdv2-hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 18rem;
  height: 18rem;
  background: var(--sdv2-secondary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}

.shop-dine-v2 .sdv2-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
}

@media (min-width: 768px) {
  .shop-dine-v2 .sdv2-hero-inner {
    padding: 3.5rem 0 4.5rem;
  }
}

.shop-dine-v2 .sdv2-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.shop-dine-v2 .sdv2-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.shop-dine-v2 .sdv2-breadcrumb a:hover {
  color: var(--sdv2-primary-alt);
}

.shop-dine-v2 .sdv2-breadcrumb .sep {
  opacity: 0.5;
}

.shop-dine-v2 .sdv2-breadcrumb .current {
  color: var(--sdv2-primary-alt);
  font-weight: 600;
}

.shop-dine-v2 .sdv2-hero h1 {
  font-family: "29ltbukra", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.shop-dine-v2 .sdv2-hero-lead {
  font-size: 1.05rem;
  max-width: 42rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.shop-dine-v2 .sdv2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.25rem;
}

.shop-dine-v2 .sdv2-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.shop-dine-v2 .sdv2-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.shop-dine-v2 .sdv2-stat-icon.c1 {
  background: rgba(233, 78, 27, 0.2);
  color: var(--sdv2-primary-alt);
}

.shop-dine-v2 .sdv2-stat-icon.c2 {
  background: rgba(0, 161, 154, 0.2);
  color: var(--sdv2-secondary);
}

.shop-dine-v2 .sdv2-stat-icon.c3 {
  background: rgba(233, 78, 27, 0.25);
  color: #f5a623;
}

.shop-dine-v2 .sdv2-stat-title {
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-size: 0.95rem;
}

.shop-dine-v2 .sdv2-stat-sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.shop-dine-v2 .sdv2-main {
  padding: 2rem 0 3.5rem;
  background: #f8fafc;
}

.shop-dine-v2 .sdv2-toolbar {
  background: var(--sdv2-card);
  border-radius: var(--sdv2-radius);
  border: 1px solid var(--sdv2-border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.shop-dine-v2 .sdv2-result-count {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.shop-dine-v2 .sdv2-search-input {
  min-height: 48px;
  padding-left: 2.85rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.shop-dine-v2 .sdv2-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.shop-dine-v2 .sdv2-search-wrap .sdv2-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sdv2-muted);
  pointer-events: none;
}

.shop-dine-v2 .sdv2-search-wrap input {
  padding-left: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--sdv2-border);
}

.shop-dine-v2 .sdv2-view-toggle .btn {
  border-radius: 8px;
}

.shop-dine-v2 .sdv2-view-toggle .sdv2-view-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.5rem 0.75rem;
  min-width: 44px;
}

.shop-dine-v2 .sdv2-view-toggle .btn-check:checked + .sdv2-view-btn {
  background: var(--sdv2-mustard-soft);
  border-color: var(--sdv2-mustard);
  color: #1a1a1a;
}

.shop-dine-v2 .sdv2-icon-grid,
.shop-dine-v2 .sdv2-icon-list {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 3h7v7H3V3zm11 0h7v7h-7V3zM3 14h7v7H3v-7zm11 0h7v7h-7v-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 3h7v7H3V3zm11 0h7v7h-7V3zM3 14h7v7H3v-7zm11 0h7v7h-7v-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.shop-dine-v2 .sdv2-icon-list {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v2H4V6zm0 5h16v2H4v-2zm0 5h16v2H4v-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v2H4V6zm0 5h16v2H4v-2zm0 5h16v2H4v-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.shop-dine-v2 .sdv2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.shop-dine-v2 .sdv2-chip {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #374151;
}

.shop-dine-v2 .sdv2-chip:hover {
  border-color: var(--sdv2-mustard);
}

.shop-dine-v2 .sdv2-chip.is-active {
  border-color: var(--sdv2-mustard);
  background: var(--sdv2-mustard);
  color: #fff;
  font-weight: 600;
}

.shop-dine-v2 .sdv2-sidebar {
  background: var(--sdv2-card);
  border-radius: var(--sdv2-radius);
  border: 1px solid var(--sdv2-border);
  padding: 1.35rem 1.25rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.shop-dine-v2 .sdv2-filter-main-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #111827;
}

.shop-dine-v2 .sdv2-filter-block {
  margin-bottom: 1.35rem;
}

.shop-dine-v2 .sdv2-filter-block:last-child {
  margin-bottom: 0;
}

.shop-dine-v2 .sdv2-filter-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.65rem;
}

.shop-dine-v2 .sdv2-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shop-dine-v2 .sdv2-filter-pill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f9fafb;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shop-dine-v2 .sdv2-filter-pill:hover {
  background: #f3f4f6;
}

.shop-dine-v2 .sdv2-filter-pill.is-active {
  background: var(--sdv2-mustard);
  color: #fff;
  font-weight: 600;
  border-color: var(--sdv2-mustard);
}

.shop-dine-v2 .sdv2-filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

.shop-dine-v2 .sdv2-filter-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sdv2-mustard);
}

.shop-dine-v2 .sdv2-card {
  background: var(--sdv2-card);
  border-radius: var(--sdv2-radius);
  border: 1px solid var(--sdv2-border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.shop-dine-v2 .sdv2-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.shop-dine-v2 .sdv2-card-img-wrap {
  position: relative;
  border-radius: var(--sdv2-radius) var(--sdv2-radius) 0 0;
  overflow: hidden;
  background: #e5e7eb;
}

.shop-dine-v2 .sdv2-card-img-el {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}

.shop-dine-v2 .sdv2-card-img {
  aspect-ratio: 4 / 3;
  background: var(--sdv2-hero-bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.shop-dine-v2 .sdv2-card-img.no-img {
  min-height: 200px;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.shop-dine-v2 .sdv2-img-dining-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--sdv2-secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  max-width: calc(100% - 1.5rem);
  line-height: 1.2;
}

.shop-dine-v2.rtl .sdv2-img-dining-label {
  left: auto;
  right: 0.75rem;
}

.shop-dine-v2 .sdv2-img-pre {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--sdv2-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.shop-dine-v2.rtl .sdv2-img-pre {
  right: auto;
  left: 0.75rem;
}

.shop-dine-v2 .sdv2-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-dine-v2 .sdv2-card-title {
  font-family: "29ltbukra", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #111827;
  line-height: 1.25;
}

.shop-dine-v2 .sdv2-card-desc {
  font-size: 0.875rem;
  color: var(--sdv2-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.75rem;
}

.shop-dine-v2 .sdv2-card-meta {
  margin: 0.25rem 0 0.75rem;
}

.shop-dine-v2 .sdv2-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.shop-dine-v2 .sdv2-meta-row:last-child {
  margin-bottom: 0;
}

.shop-dine-v2 .sdv2-meta-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.shop-dine-v2 .sdv2-meta-pin {
  background: var(--sdv2-pin);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.shop-dine-v2 .sdv2-meta-fork {
  background: var(--sdv2-secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v-8H16zm0 8L16.5 22H19l2-8h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v-8H16zm0 8L16.5 22H19l2-8h-4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.shop-dine-v2 .sdv2-meta-cuisine {
  color: var(--sdv2-secondary);
  font-weight: 600;
}

.shop-dine-v2 .sdv2-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shop-dine-v2 .sdv2-feature-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.shop-dine-v2 .sdv2-list-row {
  flex-direction: row;
  align-items: stretch;
}

.shop-dine-v2 .sdv2-list-row .sdv2-card-img-wrap {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  border-radius: var(--sdv2-radius) 0 0 var(--sdv2-radius);
}

.shop-dine-v2 .sdv2-list-row .sdv2-card-img-el {
  aspect-ratio: auto;
  min-height: 200px;
  height: 100%;
  object-fit: cover;
}

.shop-dine-v2 .sdv2-list-row .sdv2-card-img {
  width: 240px;
  min-width: 240px;
  aspect-ratio: auto;
  min-height: 160px;
}

@media (max-width: 767px) {
  .shop-dine-v2 .sdv2-list-row {
    flex-direction: column;
  }
  .shop-dine-v2 .sdv2-list-row .sdv2-card-img {
    width: 100%;
    min-width: 100%;
    min-height: 180px;
  }
}

.shop-dine-v2 .sdv2-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--sdv2-muted);
}

.shop-dine-v2 .sdv2-filter-mobile {
  border: 1px solid var(--sdv2-mustard);
  color: var(--sdv2-mustard);
  font-weight: 600;
}

.shop-dine-v2.rtl {
  direction: rtl;
  text-align: right;
}

.shop-dine-v2.rtl .sdv2-search-wrap .sdv2-search-icon {
  left: auto;
  right: 0.85rem;
}

.shop-dine-v2.rtl .sdv2-search-wrap input {
  padding-left: 0.75rem;
  padding-right: 2.75rem;
}
