/* ============================================
   CUSTOMER STORE PAGES
   ============================================ */

:root {
  --nf-store-surface: #ffffff;
  --nf-store-surface-soft: #f8fafc;
  --nf-store-line: #e2e8f0;
  --nf-store-line-soft: #f1f5f9;
  --nf-store-text: #1e293b;
  --nf-store-text-soft: #334155;
  --nf-store-text-muted: #475569;
  --nf-store-text-faint: #64748b;
  --nf-store-text-ghost: #cbd5e1;
  --nf-store-accent: #ff6b35;
  --nf-store-success: #10b981;
  --nf-store-success-dark: #059669;
  --nf-store-danger: #ef4444;
  --nf-store-danger-dark: #dc2626;
  --nf-store-warning: #d97706;
  --nf-store-rating-surface: #fffbeb;
  --nf-store-rating-border: #fef3c7;
  --nf-store-rating-surface-strong: #fde68a;
  --nf-store-hours-surface: #f0fdf4;
  --nf-store-hours-border: #dcfce7;
  --nf-store-hours-border-strong: #bbf7d0;
  --nf-store-danger-surface: #fef2f2;
  --nf-store-danger-border: #fecaca;
  --nf-store-danger-border-strong: #fca5a5;
  --nf-store-primary: #2563eb;
  --nf-store-primary-dark: #1d4ed8;
  --nf-store-overlay-soft: rgba(0, 0, 0, 0.15);
  --nf-store-overlay-mid: rgba(0, 0, 0, 0.3);
  --nf-store-overlay-white: rgba(255, 255, 255, 0.95);
  --nf-store-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --nf-store-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --nf-store-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06);
  --nf-store-shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.08);
  --nf-store-shadow-float: 0 2px 8px rgba(0, 0, 0, 0.15);
  --nf-store-shadow-sheet: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.restaurant-closed .restaurant-header-section,
.restaurant-closed .restaurant-hero,
.restaurant-closed .restaurant-card {
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.5s ease;
}

.restaurant-closed .restaurant-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nf-store-overlay-soft);
  pointer-events: none;
  z-index: 1;
}

.restaurant-closed .restaurant-card .restaurant-content {
  position: relative;
  z-index: 2;
}

.breadcrumb-section {
  background: var(--nf-store-surface);
  padding: 12px 0;
  border-bottom: 1px solid var(--nf-store-line-soft);
}

.breadcrumb-section .el-breadcrumb {
  font-size: 14px;
}

.breadcrumb-section .el-breadcrumb__item a {
  color: var(--nf-store-text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-section .el-breadcrumb__item a:hover {
  color: var(--nf-store-accent);
}

.breadcrumb-section .el-breadcrumb__item:last-child .el-breadcrumb__inner {
  color: var(--nf-store-text);
  font-weight: 500;
}

.restaurant-header-section {
  background: linear-gradient(135deg, var(--nf-store-surface-soft) 0%, var(--nf-store-surface) 100%);
  padding: 7px 0 14px;
  position: relative;
}

.restaurant-cover-image {
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  overflow: hidden;
  z-index: 0;
}

.restaurant-cover-image .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-cover-image .cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--nf-store-overlay-mid), var(--nf-store-overlay-white));
}

.restaurant-card {
  background: var(--nf-store-surface);
  border-radius: 20px;
  box-shadow: var(--nf-store-shadow-lg);
  padding: 28px 32px;
  position: relative;
  z-index: 1;
  margin-top: 44px;
  transition: all 0.3s ease;
  border: 1px solid var(--nf-store-line-soft);
}

.restaurant-card:hover {
  box-shadow: var(--nf-store-shadow-xl);
}

.restaurant-header-section:not(:has(.restaurant-cover-image)) .restaurant-card {
  margin-top: 0;
}

.restaurant-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 20px;
  padding: 20px;
}

.restaurant-left {
  display: flex;
  gap: 20px;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

.restaurant-logo-wrapper {
  flex-shrink: 0;
  position: relative;
}

.restaurant-logo {
  border: 3px solid var(--nf-store-surface) !important;
  box-shadow: var(--nf-store-shadow-md) !important;
  background: var(--nf-store-surface);
}

.restaurant-card .restaurant-logo,
.restaurant-card .el-avatar {
  width: 64px !important;
  height: 64px !important;
}

.fav-button-overlay {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--nf-store-surface);
  border-radius: 50%;
  padding: 4px;
  box-shadow: var(--nf-store-shadow-sm);
}

.restaurant-main-info {
  flex: 1;
  min-width: 0;
}

.restaurant-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.restaurant-title {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--nf-store-text);
  margin: 0;
  line-height: 1.2;
}

.cuisine-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cuisine-item {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-store-text-muted);
  background: var(--nf-store-line-soft);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--nf-store-line);
}

.cuisine-separator {
  color: var(--nf-store-text-ghost);
  font-weight: 400;
  font-size: 12px;
  margin: 0 4px;
}

.cuisine-more {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-store-text-faint);
  background: var(--nf-store-line);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--nf-store-line);
}

.address-section {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--nf-store-line);
  border-radius: 12px;
  padding: 6px 10px;
}

.address-section .el-icon {
  font-size: 16px;
  color: var(--nf-store-text-faint);
}

.mobile-address {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-address .el-icon {
  color: var(--nf-store-text-faint);
}

.mobile-address span {
  color: var(--nf-store-text-soft);
  font-weight: 600;
}

.restaurant-right {
  flex-shrink: 0;
}

.stats-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--nf-store-surface-soft);
  border-radius: 14px;
  border: 1px solid var(--nf-store-line);
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 140px;
}

.stat-card:hover {
  background: var(--nf-store-surface);
  border-color: var(--nf-store-text-ghost);
  box-shadow: var(--nf-store-shadow-lg);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--nf-store-text);
  margin: 0 0 2px;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--nf-store-text-faint);
  font-weight: 500;
  line-height: 1;
}

.rating-card {
  background: var(--nf-store-rating-surface);
  border-color: var(--nf-store-rating-border);
}

.rating-card:hover {
  background: var(--nf-store-rating-border);
  border-color: var(--nf-store-rating-surface-strong);
}

.rating-card .stat-value {
  color: var(--nf-store-warning);
}

.hours-card {
  background: var(--nf-store-hours-surface);
  border-color: var(--nf-store-hours-border);
}

.hours-card:hover {
  background: var(--nf-store-hours-border);
  border-color: var(--nf-store-hours-border-strong);
}

.hours-card .stat-value {
  color: var(--nf-store-success-dark);
}

.hours-card.closed-status {
  background: var(--nf-store-danger-surface);
  border-color: var(--nf-store-danger-border);
}

.hours-card.closed-status:hover {
  background: var(--nf-store-danger-border);
  border-color: var(--nf-store-danger-border-strong);
}

.hours-card.closed-status .stat-value {
  color: var(--nf-store-danger-dark);
}

.delivery-card {
  background: var(--nf-store-danger-surface);
  border-color: var(--nf-store-danger-border);
}

.delivery-card:hover {
  background: var(--nf-store-danger-border);
  border-color: var(--nf-store-danger-border-strong);
}

.delivery-card .stat-value {
  color: var(--nf-store-accent);
}

.mobile-merchant-header {
  background: var(--nf-store-surface);
}

.mobile-cover-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.mobile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--nf-store-overlay-mid), transparent);
}

.mobile-header-actions {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.mobile-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nf-store-overlay-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nf-store-shadow-float);
  color: var(--nf-store-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-back-btn:hover {
  background: var(--nf-store-surface);
  transform: scale(1.05);
}

.mobile-restaurant-card {
  background: var(--nf-store-surface);
  padding: 20px;
  margin-top: -36px;
  border-radius: 24px 24px 0 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--nf-store-shadow-sheet);
}

.mobile-header-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mobile-restaurant-logo {
  border: 3px solid var(--nf-store-surface) !important;
  box-shadow: var(--nf-store-shadow-md) !important;
  flex-shrink: 0;
}

.mobile-title-section {
  flex: 1;
  min-width: 0;
}

.mobile-restaurant-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--nf-store-text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.mobile-cuisine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-cuisine-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--nf-store-text-muted);
  background: var(--nf-store-line-soft);
  padding: 4px 10px;
  border-radius: 12px;
}

.mobile-cuisine-tag.more {
  background: var(--nf-store-line);
  color: var(--nf-store-text-faint);
}

.mobile-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--nf-store-line-soft);
  border-bottom: 1px solid var(--nf-store-line-soft);
  margin-bottom: 12px;
}

.mobile-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.mobile-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--nf-store-text);
}

.mobile-stat-label {
  font-size: 13px;
  color: var(--nf-store-text-faint);
}

.mobile-stat.open .mobile-stat-value {
  color: var(--nf-store-success);
}

.mobile-stat.closed .mobile-stat-value {
  color: var(--nf-store-danger);
}

.mobile-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 0;
  color: var(--nf-store-text-faint);
  font-size: 14px;
  line-height: 1.5;
}

.mobile-address .el-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.mobile-more-info-wrap {
  padding-top: 2px;
  margin-bottom: 10px;
}

.mobile-more-info-btn {
  color: var(--nf-store-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-more-info-btn:hover {
  color: var(--nf-store-primary-dark);
  text-decoration: none;
}

@media (min-width: 992px) {
  .menu-center {
    position: relative;
  }

  .menu-right {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
  }
}

@media (max-width: 991px) {
  .restaurant-card {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--nf-store-line-soft);
  }

  .restaurant-content {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
  }

  .restaurant-title {
    font-size: 18px;
  }

  .restaurant-left {
    width: 100%;
  }

  .stats-grid {
    gap: 14px;
    width: 100%;
    justify-content: flex-start;
  }

  .stat-card {
    flex: 1;
    min-width: auto;
  }
}

@media (max-width: 767px) {
  .restaurant-left {
    gap: 12px;
  }

  .restaurant-title {
    font-size: 22px;
  }

  .restaurant-card .restaurant-logo,
  .restaurant-card .el-avatar {
    width: 56px !important;
    height: 56px !important;
  }

  .cuisine-item {
    font-size: 13px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 10px 14px;
    min-width: auto;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  .restaurant-content {
    padding: 14px;
  }
}

@media (max-width: 575px) {
  .restaurant-title-row {
    flex-wrap: wrap;
  }

  .stats-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .restaurant-card .restaurant-logo,
  .restaurant-card .el-avatar {
    width: 52px !important;
    height: 52px !important;
  }

  .restaurant-title {
    font-size: 15px;
  }
}
.merchant-breadcrumb-label {
  max-width: 350px;
}

.item-modal-hero-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
}

.item-modal-gallery-image {
  width: 100%;
  height: 60px;
}
