﻿/* shop-detail.css ? Content area, shop detail, bento, sections, edit form, toast, loading, empty/error, cover */

/* -- Content area -- */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.content-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
  color: var(--text-dim);
  gap: 12px;
}
.content-empty .icon { font-size: 48px; opacity: 0.3; }
.content-empty p { font-size: 14px; }

/* -- Shop detail -- */
.shop-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.shop-title { display: flex; align-items: center; gap: 14px; }
.shop-title-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--warm-strong), var(--accent-soft));
  border: 1px solid rgba(17,100,102,0.14);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.shop-title-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-title h2 { font-size: 20px; font-weight: 600; color: var(--accent2); }
.shop-title-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.shop-title-city { font-size: 13px; color: var(--text-dim); }
.shop-actions { display: flex; gap: 8px; align-items: center; }
.bento-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.95fr);
  gap: 14px;
  margin-bottom: 16px;
  height: min(76vh, 520px);
  max-height: 76vh;
  align-items: stretch;
}
.bento-card {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44,53,49,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
}
.shop-hero-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.shop-hero-media {
  position: relative;
  min-height: 0;
  height: 100%;
  flex: 1;
  background: linear-gradient(135deg, rgba(255,203,154,0.42), rgba(209,232,226,0.72));
}
.shop-hero-media > div[id^="shop-cover-area-"] {
  position: relative;
  height: 100%;
}
.shop-hero-media .shop-cover-wrap {
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.shop-hero-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.shop-hero-copy {
  max-width: 360px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(17,100,102,0.1);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 16px 34px rgba(44,53,49,0.08);
  pointer-events: auto;
}
.shop-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 6px;
}
.shop-hero-copy h2 {
  font-size: 20px;
  line-height: 1.05;
  color: var(--accent2);
  margin-bottom: 6px;
}
.shop-hero-copy p {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-dim);
}
.shop-summary-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 12px;
  height: 100%;
  overflow: hidden;
}
.shop-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.shop-summary-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.shop-summary-main .shop-title-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 19px;
}
.shop-summary-headline h3 {
  font-size: 20px;
  line-height: 1.05;
  color: var(--accent2);
  margin-bottom: 4px;
}
.shop-summary-headline p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.3;
}
.shop-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(44,53,49,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align: left;
}
.quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(17,100,102,0.30);
  box-shadow: 0 14px 28px rgba(44,53,49,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}
.quick-action strong {
  font-size: 12px;
  color: var(--accent2);
}
.quick-action span {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.2;
}
.bento-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}
.bento-info-card {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(44,53,49,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  min-height: 58px;
}
.bento-info-card.wide {
  grid-column: span 2;
}
.bento-info-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 700;
}
.bento-info-value {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.products-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.products-toolbar .btn {
  padding: 10px 16px;
  font-size: 12px;
}

/* -- Section / cards -- */
.section { margin-bottom: 20px; }
.section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(17,100,102,0.18), rgba(17,100,102,0.04));
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.info-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,245,0.98));
  border: 1px solid rgba(17,100,102,0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.info-card-label { font-size: 11px; color: var(--text-dim); margin-bottom: 5px; }
.info-card-value { font-size: 14px; color: var(--text); font-weight: 500; }

/* -- Edit form -- */
.edit-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.edit-form-grid .span-2 { grid-column: span 2; }
@media (max-width: 700px) {
  .edit-form-grid { grid-template-columns: 1fr; }
  .edit-form-grid .span-2 { grid-column: span 1; }
}

.hours-picker { display: flex; flex-direction: column; gap: 8px; }
.hours-row { display: flex; align-items: center; gap: 8px; }
.hours-day { width: 62px; font-size: 12px; color: var(--text-dim); font-weight: 600; flex-shrink: 0; }
.hours-dash { color: var(--text-dim); font-weight: 700; flex-shrink: 0; }
.hours-sel { width: 80px !important; padding: 6px 8px !important; }

.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 10px;
}

/* -- Toast -- */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  animation: toast-in 0.2s ease;
  pointer-events: auto;
  min-width: 260px; max-width: 360px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-success { background: #f4fbf7; border: 1px solid rgba(47,143,106,0.22); color: var(--green); box-shadow: var(--shadow-card); }
.toast-error   { background: #fff5f3; border: 1px solid rgba(184,92,82,0.2); color: var(--red); box-shadow: var(--shadow-card); }

/* -- Loading -- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(17,100,102,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.loading-block {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 60px; color: var(--text-dim);
}

/* -- Empty state -- */
.empty-shops {
  text-align: center; padding: 40px 20px; color: var(--text-dim);
}
.empty-shops .icon { font-size: 36px; opacity: 0.3; margin-bottom: 12px; }

/* -- Error block -- */
.error-msg {
  background: rgba(184,92,82,0.07);
  border: 1px solid rgba(184,92,82,0.18);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
}

/* -- Map coords display -- */
.coords-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(209,232,226,0.45); border: 1px solid rgba(17,100,102,0.12);
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; color: var(--text-dim); font-family: monospace;
}

.sep { height: 1px; background: linear-gradient(90deg, rgba(17,100,102,0.16), rgba(17,100,102,0.04)); margin: 24px 0; }

/* Status dot */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.on  { background: var(--green); box-shadow: 0 0 0 4px rgba(47,143,106,0.12); }
.status-dot.off { background: var(--text-dim); }

/* -- Shop cover photo -- */
.shop-cover-wrap {
  position: relative; width: 100%; height: 152px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(247,251,249,0.92));
  border: 1px solid rgba(17,100,102,0.12);
  box-shadow: var(--shadow-soft);
}
.shop-cover-actions.hero {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
  padding: 0;
  gap: 6px;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}
.shop-cover-actions.hero span {
  display: none;
}
.shop-cover-actions.hero .btn {
  padding: 8px 12px;
  font-size: 11px;
}
.shop-cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.shop-cover-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-dim); font-size: 13px;
}
.shop-cover-empty .icon { font-size: 36px; opacity: 0.3; }
.shop-cover-actions {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center;
}

/* -- Bento add-product button -- */
.bento-add-product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(17,100,102,0.22);
  background: rgba(247,251,249,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
  min-height: 58px;
}
.bento-add-product-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.55);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(44,53,49,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
.bento-add-product-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.bento-add-product-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.3px;
}
