* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #f5f7f4;
  color: #243023;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; border-radius: 18px; }
button, input, select, textarea { font-family: inherit; }

.container { width: min(1120px, 92%); margin: auto; }

header {
  background: #ffffff;
  border-bottom: 1px solid #e0e7dc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 27px;
  font-weight: 900;
  color: #1f3f2b;
  letter-spacing: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #e9f6e4 100%);
  border: 1px solid #d4e5cf;
  box-shadow: 0 10px 24px rgba(47, 93, 58, 0.12);
}
nav { display: flex; gap: 18px; font-size: 15px; color: #4d5b4b; flex-wrap: wrap; }
nav a:hover { color: #2f5d3a; }

.hero {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-contact {
  margin-top: 12px;
  font-size: 16px;
  color: #2f5d3a;
  font-weight: 700;
}

.tag {
  display: inline-block;
  background: #e6f0e4;
  color: #2f5d3a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 16px;
}

h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.2; margin-bottom: 18px; color: #1f2c1f; }
h2 { color: #1f2c1f; margin-bottom: 10px; }
p { color: #596457; }

.buttons, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: bold;
  border: 1px solid #bfd1bb;
  cursor: pointer;
  display: inline-block;
}

.primary { background: #2f5d3a; color: #ffffff; }
.light { background: #ffffff; color: #2f5d3a; }
.line { background: #138a36; color: #ffffff; border: none; }
.danger { background: #fff1ee; color: #b64b34; border-color: #f2c1b6; }

.card, .hero-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e0e7dc;
  box-shadow: 0 14px 35px rgba(42, 62, 39, 0.08);
}

.slider { position: relative; overflow: hidden; border-radius: 18px; }
.slides { display: flex; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.slide { min-width: 100%; position: relative; }
.slide img { height: 330px; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.02)); }

.slide-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255,255,255,0.92);
  padding: 16px 18px;
  border-radius: 16px;
  max-width: calc(100% - 36px);
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.slide-text strong { display: block; color: #2f5d3a; font-size: 16px; line-height: 1.2; }
.slide-text span { color: #596457; font-size: 13px; display: block; margin-top: 4px; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #2f5d3a;
  cursor: pointer;
  font-size: 24px;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}

.arrow.left { left: 14px; }
.arrow.right { right: 14px; }

.dots { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.dot { width: 10px; height: 10px; border: none; border-radius: 50%; background: #c9d5c4; cursor: pointer; transition: 0.3s ease; }
.dot.active { width: 26px; border-radius: 999px; background: #2f5d3a; }

section { padding: 46px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { font-size: 32px; }
.section-title p { color: #647061; }

.line-panel {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(42, 62, 39, 0.06);
}

.line-badge {
  display: inline-block;
  background: #e8f8ec;
  color: #138a36;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 12px;
}

.line-step {
  background: #f5f7f4;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e0e7dc;
  margin-top: 12px;
}

.line-preview { background: #eef7ef; border-radius: 22px; padding: 22px; }
.phone-box { background: #ffffff; border-radius: 22px; padding: 16px; max-width: 340px; margin: auto; box-shadow: 0 12px 25px rgba(0,0,0,0.08); }
.chat-title { color: #138a36; font-weight: bold; margin-bottom: 12px; border-bottom: 1px solid #e0e7dc; padding-bottom: 8px; }
.chat-message { background: #e8f8ec; border-radius: 16px; padding: 12px; color: #243023; font-size: 14px; margin-bottom: 10px; }
.chat-note { font-size: 13px; color: #647061; text-align: center; }

.truck-grid, .info-grid, .kpi-grid, .admin-grid { display: grid; gap: 20px; }
.truck-grid { grid-template-columns: repeat(3, 1fr); }
.info-grid { grid-template-columns: repeat(3, 1fr); }
.kpi-grid { grid-template-columns: repeat(4, 1fr); }
.admin-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

.truck-card, .info-box, .kpi-card, .admin-card {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 20px;
  padding: 20px;
}

.truck-card img { height: 190px; object-fit: cover; margin-bottom: 16px; }
.catalog-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-clickable:hover,
.catalog-clickable:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(42, 62, 39, 0.12);
  outline: none;
}

.catalog-clickable:focus-visible {
  outline: 3px solid rgba(47, 93, 58, 0.32);
  outline-offset: 3px;
}
.price { font-size: 22px; color: #b45f25; font-weight: bold; margin: 8px 0; }
.specs, .muted { color: #596457; font-size: 15px; }
.small-btn { display: inline-block; background: #e6f0e4; color: #2f5d3a; padding: 8px 14px; border-radius: 10px; font-weight: bold; font-size: 14px; border: none; cursor: pointer; }

.contact {
  background: #2f5d3a;
  color: #ffffff;
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.contact p { color: #e8f1e6; margin-top: 8px; }

input, select, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #d7dfd4;
  border-radius: 10px;
  background: #ffffff;
}

textarea { min-height: 85px; resize: vertical; }
label { display: block; font-size: 14px; color: #596457; margin-bottom: 4px; }

.product-row { border-bottom: 1px solid #e0e7dc; padding: 12px 0; }
.product-row:last-child { border-bottom: none; }
.status-box { margin-top: 14px; padding: 12px; background: #f5f7f4; border-radius: 14px; color: #596457; font-size: 14px; }
.kpi-card strong { display: block; font-size: 26px; color: #2f5d3a; margin-top: 6px; }
canvas { width: 100%; max-height: 300px; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(42, 62, 39, 0.1);
}

.security-panel {
  margin-top: 16px;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 14px;
}

.security-panel h3 { color: #2f5d3a; font-size: 16px; margin-bottom: 8px; }
.security-panel ul { padding-left: 18px; color: #596457; font-size: 14px; }

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f8ec;
  color: #138a36;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}

.auth-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

footer { text-align: center; color: #647061; padding: 28px 0; font-size: 14px; }

@media (max-width: 900px) {
  .hero, .contact, .line-panel, .admin-grid { grid-template-columns: 1fr; }
  .truck-grid, .info-grid, .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .truck-grid, .info-grid, .kpi-grid { grid-template-columns: 1fr; }
  .contact { padding: 24px; }
  .slide img { height: 240px; }
  .slide-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255,255,255,0.96);
  padding: 20px 24px;
  border-radius: 18px;
  max-width: 100%;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
}

.gallery-main {
  background: #08122b;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.gallery-main img {
  height: 470px;
  object-fit: contain;
  background: #08122b;
  cursor: zoom-in;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumbnail-row img {
  height: 92px;
  object-fit: cover;
  border: 3px solid transparent;
  cursor: zoom-in;
  transition: 0.2s ease;
}

.thumbnail-row img:hover,
.thumbnail-row img.active {
  border-color: #2f5d3a;
  transform: translateY(-2px);
}

.detail-box {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(42, 62, 39, 0.08);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-item {
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 14px;
  padding: 12px;
}

.zoom-modal {
  display: none;
  position: fixed;
  z-index: 99;
  inset: 0;
  background: rgba(0,0,0,0.86);
  place-items: center;
  padding: 24px;
}

.zoom-modal.show {
  display: grid;
}

.zoom-inner {
  max-width: 94vw;
  max-height: 88vh;
  overflow: auto;
  cursor: zoom-in;
}

.zoom-inner.zoomed {
  cursor: zoom-out;
}

.zoom-inner img {
  width: min(1100px, 90vw);
  max-width: none;
  height: auto;
  border-radius: 14px;
  transition: transform 0.25s ease;
}

.zoom-inner.zoomed img {
  transform: scale(1.7);
  transform-origin: center center;
}

.zoom-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #243023;
  font-size: 24px;
  cursor: pointer;
}

.zoom-hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.admin-help {
  font-size: 13px;
  color: #647061;
  margin-top: -8px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .gallery-main img { height: 340px; }
}

@media (max-width: 620px) {
  .thumbnail-row { grid-template-columns: repeat(3, 1fr); }
  .thumbnail-row img { height: 76px; }
  .gallery-main img { height: 260px; }
}


/* Fixed homepage slider */
.slide img {
  cursor: pointer;
}

.slide-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255,255,255,0.96);
  padding: 20px 24px;
  border-radius: 18px;
  max-width: 100%;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.slide-text strong {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.slide-text span {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

/* Detail gallery arrows */
.gallery-main {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: #2f5d3a;
  font-size: 28px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.gallery-arrow:hover {
  background: #ffffff;
}

.gallery-arrow.left {
  left: 14px;
}

.gallery-arrow.right {
  right: 14px;
}

@media (max-width: 620px) {
  .slide-text strong {
    font-size: 19px;
  }

  .slide-text span {
    font-size: 14px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

.slide-text strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #1f2c1f;
}

.slide-text span {
  display: block;
  font-size: 20px;
  line-height: 1.5;
  color: #444;
}


/* Final slider text style: small card like reference image */
.slide-text {
  position: absolute !important;
  left: 28px !important;
  right: auto !important;
  bottom: 28px !important;

  width: auto !important;
  max-width: 360px !important;

  background: rgba(255, 255, 255, 0.92) !important;
  padding: 18px 22px !important;
  border-radius: 18px !important;

  text-align: left !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14) !important;
}

.slide-text strong {
  display: block !important;
  font-size: 28px !important;
  line-height: 1.25 !important;
  margin-bottom: 8px !important;
  color: #1f3a27 !important;
  white-space: normal !important;
}

.slide-text span {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  color: #4d5b4b !important;
}

.hero-card {
  align-self: center;
}

.slider {
  border-radius: 18px;
}

@media (max-width: 620px) {
  .slide-text {
    left: 16px !important;
    bottom: 16px !important;
    max-width: 82% !important;
    padding: 12px 14px !important;
  }

  .slide-text strong {
    font-size: 21px !important;
  }

  .slide-text span {
    font-size: 15px !important;
  }
}


.search-panel {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(42, 62, 39, 0.06);
}

.search-panel label {
  font-weight: bold;
  color: #2f5d3a;
  margin-bottom: 6px;
}

.search-panel input,
.search-panel select {
  margin-bottom: 0;
}

.result-count {
  color: #647061;
  margin-bottom: 18px;
  text-align: center;
}

.empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #bfd1bb;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: #647061;
}

@media (max-width: 900px) {
  .search-panel {
    grid-template-columns: 1fr;
  }
}


.share-box {
  margin-top: 22px;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 16px;
}

.suggestion-panel {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  box-shadow: 0 12px 30px rgba(42, 62, 39, 0.06);
}

.suggestion-form {
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 20px;
  padding: 18px;
}

.dashboard-section {
  padding: 18px 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  border-bottom: 1px solid #e0e7dc;
  padding: 12px;
  text-align: left;
}

th {
  color: #2f5d3a;
  background: #f5f7f4;
}

td a {
  color: #2f5d3a;
  font-weight: bold;
}

@media (max-width: 900px) {
  .suggestion-panel {
    grid-template-columns: 1fr;
  }
}


.image-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.image-order-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.image-order-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 16px;
  padding: 10px;
}

.image-order-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.image-order-item .muted {
  word-break: break-all;
  font-size: 12px;
}

.kpi-card {
  min-height: 118px;
}

@media (max-width: 620px) {
  .image-url-row {
    grid-template-columns: 1fr;
  }

  .image-order-item {
    grid-template-columns: 1fr;
  }

  .image-order-item img {
    width: 100%;
    height: 160px;
  }
}


.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 14px;
  flex-wrap: wrap;
}

.filter-bar select {
  width: auto;
  min-width: 180px;
  margin-bottom: 0;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.funnel-step {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(42, 62, 39, 0.06);
}

.funnel-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6f0e4;
  color: #2f5d3a;
  font-weight: bold;
  margin-bottom: 8px;
}

.funnel-step strong {
  display: block;
  font-size: 34px;
  color: #2f5d3a;
}

.ai-helper {
  margin-top: 18px;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 16px;
}

.ai-helper h3 {
  color: #2f5d3a;
  margin-bottom: 4px;
}

.ai-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ai-warning {
  background: #fff8e8;
  border: 1px solid #ecd8a0;
  color: #6b4c00;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
}

.ai-good {
  background: #e8f8ec;
  border: 1px solid #bfe7c8;
  color: #137333;
  border-radius: 12px;
  padding: 10px;
  font-weight: bold;
}

.ai-score {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 12px;
  padding: 10px;
  font-weight: bold;
  color: #2f5d3a;
}

@media (max-width: 620px) {
  .funnel-grid {
    grid-template-columns: 1fr;
  }
}


.image-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  color: #243023;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.image-order-item {
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.image-order-item:active {
  cursor: grabbing;
}

.image-order-item.dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.image-order-item.drag-over {
  border-color: #2f5d3a;
  background: #e8f8ec;
}

.drag-hint {
  font-size: 12px;
  color: #647061;
  margin-top: 6px;
}

@media (max-width: 620px) {
  .image-counter {
    right: 12px;
    bottom: 12px;
    font-size: 12px;
  }
}


.image-order-list {
  scroll-margin-bottom: 120px;
}

.image-order-item.dragging {
  box-shadow: 0 12px 30px rgba(42, 62, 39, 0.18);
}

.autoscroll-note {
  font-size: 12px;
  color: #647061;
}


.video-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.video-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 16px;
  padding: 10px;
}

.video-preview-small video {
  width: 130px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.video-placeholder {
  width: 130px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e6f0e4;
  color: #2f5d3a;
  font-weight: bold;
}

.video-section {
  margin-top: 24px;
}

.video-section h2 {
  margin-bottom: 12px;
}

.video-gallery {
  display: grid;
  gap: 16px;
}

.video-card {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(42, 62, 39, 0.06);
}

.video-title {
  font-weight: bold;
  color: #2f5d3a;
  margin-bottom: 10px;
}

.video-card iframe,
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  background: #111;
}

.external-video {
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

@media (max-width: 620px) {
  .video-item {
    grid-template-columns: 1fr;
  }

  .video-preview-small video,
  .video-placeholder {
    width: 100%;
    height: 160px;
  }
}


.video-item {
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-item:active {
  cursor: grabbing;
}

.video-item.dragging {
  opacity: 0.55;
  transform: scale(0.98);
  box-shadow: 0 12px 30px rgba(42, 62, 39, 0.18);
}

.video-item.drag-over {
  border-color: #2f5d3a;
  background: #e8f8ec;
}

.video-item input {
  margin-bottom: 8px;
}


.product-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 16px;
}

.product-image-wrap img {
  margin-bottom: 0 !important;
}

.status-ribbon {
  position: absolute;
  top: 22px;
  left: -42px;
  width: 170px;
  transform: rotate(-35deg);
  text-align: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  padding: 7px 0;
  z-index: 2;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  letter-spacing: 1px;
}

.status-ribbon.sold {
  background: #d93025;
}

.status-ribbon.reserved {
  background: #f4b400;
  color: #3b2a00;
}

.truck-card.is-sold {
  opacity: 0.82;
}

.truck-card.is-reserved {
  opacity: 0.92;
}

.detail-status {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: bold;
}

.detail-status.available {
  background: #e8f8ec;
  color: #138a36;
}

.detail-status.reserved {
  background: #fff4ce;
  color: #8a5a00;
}

.detail-status.sold {
  background: #fde8e5;
  color: #b3261e;
}


.interest-similar {
  background: #fff4ce;
  color: #7a5200;
  border: 1px solid #f1d27a;
}

.interest-similar:hover {
  background: #ffe9a6;
}


/* Dark theme */
body.dark-theme {
  background: #111816;
  color: #e7f0e5;
}

body.dark-theme header,
body.dark-theme .card,
body.dark-theme .hero-card,
body.dark-theme .truck-card,
body.dark-theme .info-box,
body.dark-theme .kpi-card,
body.dark-theme .admin-card,
body.dark-theme .login-card,
body.dark-theme .line-panel,
body.dark-theme .suggestion-panel,
body.dark-theme .product-row,
body.dark-theme .detail-box,
body.dark-theme .video-card {
  background: #18221f;
  border-color: #2c3a35;
  color: #e7f0e5;
}

body.dark-theme .logo {
  background: #101815 !important;
  border-color: #34443e !important;
  color: #dff2dc !important;
}

body.dark-theme p,
body.dark-theme .muted,
body.dark-theme .specs,
body.dark-theme label,
body.dark-theme nav {
  color: #b9c8b4;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
  color: #f2f7ef;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background: #101815;
  color: #e7f0e5;
  border-color: #34443e;
}

body.dark-theme .light {
  background: #101815;
  color: #dff2dc;
  border-color: #42554d;
}

body.dark-theme .status-box,
body.dark-theme .line-step,
body.dark-theme .security-panel,
body.dark-theme .auth-bar,
body.dark-theme .suggestion-form,
body.dark-theme .image-order-item,
body.dark-theme .video-item {
  background: #101815;
  border-color: #34443e;
  color: #d8e6d4;
}

body.dark-theme .slide-text {
  background: rgba(24, 34, 31, 0.92) !important;
}

body.dark-theme .slide-text strong,
body.dark-theme .slide-text span {
  color: #eef7ec !important;
}

.theme-toggle {
  border: 1px solid #bfd1bb;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: #2f5d3a;
  cursor: pointer;
  font-weight: bold;
}

body.dark-theme .theme-toggle {
  background: #101815;
  color: #dff2dc;
  border-color: #42554d;
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-search-panel,
.type-panel {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 20px;
  padding: 16px;
}

body.dark-theme .admin-search-panel,
body.dark-theme .type-panel {
  background: #18221f;
  border-color: #2c3a35;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pagination button {
  border: 1px solid #bfd1bb;
  background: #ffffff;
  color: #2f5d3a;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
}

.pagination button.active {
  background: #2f5d3a;
  color: #ffffff;
}

body.dark-theme .pagination button {
  background: #101815;
  color: #dff2dc;
  border-color: #42554d;
}

@media (max-width: 900px) {
  .admin-tools {
    grid-template-columns: 1fr;
  }
}


.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f0e4;
  color: #2f5d3a;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  margin: 4px;
  font-weight: bold;
  font-size: 13px;
}

.type-chip button {
  border: none;
  border-radius: 999px;
  padding: 4px 7px;
  cursor: pointer;
  background: #fff1ee;
  color: #b64b34;
  font-weight: bold;
}

body.dark-theme .type-chip {
  background: #26352f;
  color: #dff2dc;
}


.select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  margin-bottom: 4px;
}

.select-row input {
  width: auto;
  margin: 0;
}

.admin-search-panel select {
  margin-bottom: 12px;
}


.product-row.selectable {
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.product-row.selectable:hover {
  background: #eef6f0;
}

.product-row.selected {
  background: #dff2e4;
  border-color: #2f5d3a;
}

body.dark-theme .product-row.selectable:hover {
  background: #1f2a26;
}

body.dark-theme .product-row.selected {
  background: #26352f;
}

.row-right {
  position: absolute;
  right: 16px;
  top: 16px;
}

.row-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
}



/* Fixed product row selection layout */
.product-row.selectable {
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
}

.product-row-main {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.product-row-info {
  min-width: 0;
}

.product-row-info strong {
  display: block;
  padding-right: 8px;
}

.product-row-info .actions {
  margin-top: 10px;
}

.row-check-wrap {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f5f7f4;
  border: 1px solid #d7dfd4;
  cursor: pointer;
}

.row-checkbox {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  cursor: pointer;
  accent-color: #2f5d3a;
}

.product-row.selected .row-check-wrap {
  background: #e8f8ec;
  border-color: #2f5d3a;
}

.product-row.selectable:hover {
  background: #eef6f0;
}

.product-row.selected {
  background: #dff2e4;
}

.row-right {
  position: static !important;
}

body.dark-theme .row-check-wrap {
  background: #101815;
  border-color: #34443e;
}

body.dark-theme .product-row.selected .row-check-wrap {
  background: #1e3a2a;
  border-color: #78c48c;
}

@media (max-width: 620px) {
  .product-row-main {
    grid-template-columns: 1fr;
  }

  .row-check-wrap {
    width: 100%;
    height: 42px;
  }
}


#typeFilter {
  min-height: 118px;
}

.filter-help {
  font-size: 12px;
  margin-top: 6px;
}

.admin-search-panel .actions {
  align-items: center;
}


.type-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
}

.type-chip-btn {
  border: 1px solid #bfd1bb;
  background: #ffffff;
  color: #2f5d3a;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.type-chip-btn:hover {
  background: #e6f0e4;
}

.type-chip-btn.active {
  background: #2f5d3a;
  color: #ffffff;
  border-color: #2f5d3a;
}

body.dark-theme .type-chip-btn {
  background: #101815;
  color: #dff2dc;
  border-color: #42554d;
}

body.dark-theme .type-chip-btn.active {
  background: #78c48c;
  color: #102015;
  border-color: #78c48c;
}

.th-sort {
  border: none;
  background: transparent;
  color: #2f5d3a;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.th-sort.active::after {
  content: " ↓";
}

body.dark-theme .th-sort {
  color: #dff2dc;
}

#kpiProductSearch {
  max-width: 320px;
  margin-bottom: 0;
}


.catalog-pagination-top {
  margin: 0 0 18px;
  justify-content: center;
}


/* Clearer pagination for light/dark themes */
.pagination {
  align-items: center;
}

.pagination button {
  min-width: 42px;
  min-height: 40px;
  font-size: 15px;
  transition: 0.2s ease;
}

.pagination button:hover {
  background: #e6f0e4;
  border-color: #2f5d3a;
  transform: translateY(-1px);
}

.pagination button.active {
  background: #2f5d3a !important;
  color: #ffffff !important;
  border-color: #2f5d3a !important;
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.18);
}

/* Dark theme: make current page very obvious */
body.dark-theme .pagination button {
  background: #101815;
  color: #d7ead2;
  border: 1px solid #5f766b;
}

body.dark-theme .pagination button:hover {
  background: #22332d;
  color: #ffffff;
  border-color: #9be7ad;
}

body.dark-theme .pagination button.active {
  background: #9be7ad !important;
  color: #0b1712 !important;
  border-color: #9be7ad !important;
  font-weight: 900;
  box-shadow:
    0 0 0 3px rgba(155, 231, 173, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.35);
}

body.dark-theme .catalog-pagination-top {
  background: #18221f;
  border: 1px solid #2c3a35;
  border-radius: 18px;
  padding: 12px;
}

body.dark-theme .result-count {
  color: #e1efdc;
  font-weight: bold;
}


.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.map-section-detail {
  padding: 28px 0;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.map-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #e0e7dc;
  box-shadow: 0 12px 30px rgba(42, 62, 39, 0.08);
  background: #ffffff;
}

.map-info-card {
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(42, 62, 39, 0.06);
}

.map-truck-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #e8f8ec;
  color: #138a36;
  border-radius: 18px;
  font-size: 30px;
  margin-bottom: 12px;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}

.contact-bot {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: #2f5d3a;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 16px 12px 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.bot-emoji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #ffffff;
  color: #2f5d3a;
  border-radius: 50%;
  font-size: 24px;
}

.contact-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.contact-menu.show {
  display: grid;
  gap: 8px;
}

.contact-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f7f4;
  color: #2f5d3a;
  font-weight: bold;
}

.contact-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.contact-brand-icon.telegram { background: #229ED9; }
.contact-brand-icon.line { background: #06C755; font-size: 10px; }
.contact-brand-icon.facebook { background: #1877F2; font-size: 22px; font-family: Arial, sans-serif; }
.contact-brand-icon.phone { background: #2f5d3a; font-size: 17px; }
.contact-brand-icon.tiktok { background: #111111; font-size: 18px; }

.contact-menu a:hover {
  background: #e6f0e4;
}

body.dark-theme .map-frame,
body.dark-theme .map-info-card,
body.dark-theme .contact-menu {
  background: #18221f;
  border-color: #2c3a35;
}

body.dark-theme .contact-menu a {
  background: #101815;
  color: #dff2dc;
}

body.dark-theme .contact-menu a:hover {
  background: #26352f;
}

body.dark-theme .map-truck-icon {
  background: #1e3a2a;
  color: #9be7ad;
}

@media (max-width: 900px) {
  .map-layout,
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .floating-contact {
    right: 14px;
    bottom: 14px;
  }

  .contact-bot span:last-child {
    display: none;
  }

  .contact-menu {
    right: 0;
    bottom: 58px;
  }
}


/* Dark theme readability fix: prevent light #f5f7f4 panels with light text */
body.dark-theme {
  background: #0f1714 !important;
  color: #e7f0e5 !important;
}

body.dark-theme section,
body.dark-theme main {
  color: #e7f0e5;
}

body.dark-theme .status-box,
body.dark-theme .line-step,
body.dark-theme .security-panel,
body.dark-theme .auth-bar,
body.dark-theme .suggestion-form,
body.dark-theme .search-panel,
body.dark-theme .admin-search-panel,
body.dark-theme .type-panel,
body.dark-theme .detail-item,
body.dark-theme .share-box,
body.dark-theme .external-video,
body.dark-theme .image-order-item,
body.dark-theme .video-item,
body.dark-theme .filter-bar,
body.dark-theme .empty-state,
body.dark-theme .contact-menu a,
body.dark-theme .line-preview,
body.dark-theme .phone-box,
body.dark-theme .chat-message {
  background: #101815 !important;
  border-color: #34443e !important;
  color: #e7f0e5 !important;
}

body.dark-theme .card,
body.dark-theme .hero-card,
body.dark-theme .truck-card,
body.dark-theme .info-box,
body.dark-theme .kpi-card,
body.dark-theme .admin-card,
body.dark-theme .login-card,
body.dark-theme .line-panel,
body.dark-theme .suggestion-panel,
body.dark-theme .detail-box,
body.dark-theme .map-info-card,
body.dark-theme .map-frame,
body.dark-theme .video-card {
  background: #18221f !important;
  border-color: #2c3a35 !important;
  color: #e7f0e5 !important;
}

body.dark-theme p,
body.dark-theme .muted,
body.dark-theme .specs,
body.dark-theme label,
body.dark-theme .detail-item span,
body.dark-theme .status-box,
body.dark-theme .chat-note,
body.dark-theme .result-count {
  color: #c8d8c4 !important;
}

body.dark-theme strong,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
  color: #f2f7ef !important;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background: #0b120f !important;
  color: #e7f0e5 !important;
  border-color: #52665c !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #9dad99 !important;
}

/* Fix any leftover light backgrounds from old CSS */
body.dark-theme [style*="#f5f7f4"],
body.dark-theme [style*="rgb(245, 247, 244)"] {
  background: #101815 !important;
  color: #e7f0e5 !important;
}


/* Lock product status colors so dark theme does not change them */
.detail-status.available,
body.dark-theme .detail-status.available {
  background: #e8f8ec !important;
  color: #138a36 !important;
  border: 1px solid #bfe7c8 !important;
}

.detail-status.reserved,
body.dark-theme .detail-status.reserved {
  background: #fff4ce !important;
  color: #8a5a00 !important;
  border: 1px solid #f1d27a !important;
}

.detail-status.sold,
body.dark-theme .detail-status.sold {
  background: #fde8e5 !important;
  color: #b3261e !important;
  border: 1px solid #f2b8b5 !important;
}

/* Shopee-like Thai address autocomplete */
.address-autocomplete {
  grid-column: 1 / -1;
  position: relative;
}

.address-suggestions {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  z-index: 30;
  background: #ffffff;
  border: 1px solid #d7dfd4;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(42, 62, 39, 0.16);
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.address-suggestions.show {
  display: grid;
  gap: 6px;
}

.address-suggestion-item {
  text-align: left;
  border: none;
  background: #f5f7f4;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: #243023;
}

.address-suggestion-item:hover {
  background: #e6f0e4;
}

.address-suggestion-item strong {
  display: block;
  color: #2f5d3a;
  font-size: 15px;
}

.address-suggestion-item span {
  color: #596457;
  font-size: 13px;
}

.address-no-result {
  padding: 12px;
  color: #596457;
  background: #f5f7f4;
  border-radius: 12px;
}

body.dark-theme .address-suggestions {
  background: #18221f;
  border-color: #34443e;
}

body.dark-theme .address-suggestion-item,
body.dark-theme .address-no-result {
  background: #101815;
  color: #e7f0e5;
}

body.dark-theme .address-suggestion-item:hover {
  background: #26352f;
}

body.dark-theme .address-suggestion-item strong {
  color: #9be7ad !important;
}

body.dark-theme .address-suggestion-item span,
body.dark-theme .address-no-result {
  color: #c8d8c4 !important;
}


.admin-map-picker {
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0;
}

#adminMap,
#contactLocationMap {
  height: 320px;
  border-radius: 18px;
  border: 1px solid #d7dfd4;
  overflow: hidden;
  margin: 12px 0;
  background: #ffffff;
}

.leaflet-truck-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f8f3a;
  color: #ffffff;
  font-size: 25px;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

body.dark-theme .admin-map-picker {
  background: #101815 !important;
  border-color: #34443e !important;
}

body.dark-theme #adminMap,
body.dark-theme #contactLocationMap {
  border-color: #34443e;
}


.inline-select {
  width: auto !important;
  min-width: 130px;
  margin-bottom: 0 !important;
}

.contact-location-panel textarea {
  min-height: 70px;
}

.home-content-panel textarea {
  min-height: 74px;
}

.home-service-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 14px;
}

.home-service-editor > div {
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 14px;
  padding: 12px;
}

body.dark-theme .home-service-editor > div {
  background: #101815 !important;
  border-color: #34443e !important;
}

@media (max-width: 900px) {
  .home-service-editor {
    grid-template-columns: 1fr;
  }
}

.ai-warning.soft {
  background: #eef6ff;
  border-color: #b7d6ff;
  color: #24527a;
}

body.dark-theme .ai-warning.soft {
  background: #102236 !important;
  border-color: #28547a !important;
  color: #c7e4ff !important;
}

.address-no-result small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.85;
}


.admin-bottom-section {
  margin-top: 28px;
}

.admin-bottom-section .contact-location-panel {
  max-width: 980px;
  margin: 0 auto;
}

.status-box.success {
  background: #e8f8ec !important;
  border-color: #7ddc94 !important;
  color: #137333 !important;
  font-weight: bold;
}

body.dark-theme .status-box.success {
  background: #12331e !important;
  border-color: #5fc579 !important;
  color: #bff2cb !important;
}

.inline-select option[value=""] {
  color: #777;
}


.type-count {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 93, 58, 0.12);
  color: #2f5d3a;
  font-size: 12px;
  font-weight: bold;
}

body.dark-theme .type-count {
  background: rgba(155, 231, 173, 0.16);
  color: #9be7ad;
}

.image-order-list,
.video-list {
  min-height: 52px;
}

.image-order-item img {
  display: block;
}

.video-preview-small video {
  display: block;
}



.address-suggestions {
  max-height: 380px;
}

.address-suggestion-item {
  border-left: 4px solid transparent;
}

.address-suggestion-item:hover {
  border-left-color: #2f5d3a;
}

body.dark-theme .address-suggestion-item:hover {
  border-left-color: #9be7ad;
}


.address-suggestions {
  max-height: 420px;
}

.address-suggestion-item {
  border-left: 4px solid transparent;
}

.address-suggestion-item:hover {
  border-left-color: #2f5d3a;
}

body.dark-theme .address-suggestion-item:hover {
  border-left-color: #9be7ad;
}

.admin-help.warning {
  color: #b45f06 !important;
  font-weight: bold;
}

body.dark-theme .admin-help.warning {
  color: #ffd38a !important;
}


.address-import-panel {
  grid-column: 1 / -1;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

body.dark-theme .address-import-panel {
  background: #101815 !important;
  border-color: #34443e !important;
}

.address-import-panel input[type="file"] {
  margin-bottom: 10px;
}


/* Ultimate address autocomplete: visible above everything */
.address-autocomplete {
  position: relative !important;
  z-index: 10000 !important;
  overflow: visible !important;
}

.location-grid,
.admin-map-picker,
.admin-card,
.type-panel,
.admin-search-panel,
.dashboard-section,
main,
.container {
  overflow: visible !important;
}

.address-suggestions {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  max-height: min(420px, 58vh) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #ffffff !important;
  border: 1px solid #cfd8cc !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.24) !important;
  padding: 8px !important;
}

.address-suggestion-item {
  width: 100%;
  display: block;
  text-align: left;
  border: none;
  border-left: 4px solid transparent;
  background: #f5f7f4;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: #243023;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
  background: #e5f2e7 !important;
  border-left-color: #2f5d3a !important;
  transform: translateX(2px);
}

.address-suggestion-item strong {
  display: block;
  color: #2f5d3a;
  font-size: 15px;
  margin-bottom: 3px;
}

.address-suggestion-item span {
  color: #526050;
  font-size: 13px;
}

.address-suggestion-item mark {
  background: #fff1a8;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.address-loading,
.address-no-result {
  padding: 14px;
  border-radius: 12px;
  background: #f5f7f4;
  color: #526050;
}

body.dark-theme .address-suggestions {
  background: #18221f !important;
  border-color: #4a5f55 !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55) !important;
}

body.dark-theme .address-suggestion-item,
body.dark-theme .address-loading,
body.dark-theme .address-no-result {
  background: #101815 !important;
  color: #e7f0e5 !important;
}

body.dark-theme .address-suggestion-item:hover,
body.dark-theme .address-suggestion-item.active {
  background: #26352f !important;
  border-left-color: #9be7ad !important;
}

body.dark-theme .address-suggestion-item strong {
  color: #9be7ad !important;
}

body.dark-theme .address-suggestion-item span {
  color: #c8d8c4 !important;
}

body.dark-theme .address-suggestion-item mark {
  background: #775f10;
  color: #ffffff;
}


/* Telegram notification styles */
.btn.telegram {
  background: #229ED9;
  color: #ffffff;
}

.btn.telegram:hover {
  filter: brightness(0.95);
}

.telegram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.telegram-contact-card {
  background: #ffffff;
  border: 1px solid #dce8f0;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.telegram-contact-card img {
  width: 160px;
  height: 160px;
  display: block;
  border-radius: 10px;
  background: #ffffff;
}

.telegram-contact-card span {
  color: #526050;
  font-size: 13px;
}

.telegram-contact-card {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.telegram-contact-card .btn {
  justify-content: center;
}

.telegram-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 18px;
}

.telegram-modal.show {
  display: grid;
}

.telegram-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 20, 0.58);
}

.telegram-modal-card {
  position: relative;
  width: min(380px, 100%);
  background: #ffffff;
  border: 1px solid #dce8f0;
  border-radius: 18px;
  padding: 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.24);
}

.telegram-modal-card h3 {
  margin: 0;
  color: #1f3a27;
}

.telegram-modal-card p {
  margin: 0;
  color: #526050;
}

.telegram-modal-card img {
  width: 220px;
  height: 220px;
  border-radius: 10px;
  background: #ffffff;
}

.telegram-modal-card .btn {
  justify-content: center;
}

.telegram-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef4f7;
  color: #1f3a27;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-call-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.contact-call-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 14px;
  text-align: center;
  box-shadow: 0 18px 42px rgba(42, 62, 39, 0.12);
}

.contact-call-card h1 {
  font-size: 30px;
  margin: 0;
}

.contact-call-card .btn {
  justify-content: center;
}

.telegram-panel,
.telegram-preview,
.telegram-step,
.telegram-badge {
  /* Keeps the old LINE layout working after rename */
}

body.dark-theme .btn.telegram {
  background: #229ED9;
  color: #ffffff;
}

body.dark-theme .telegram-contact-card {
  background: #101815 !important;
  border-color: #34443e !important;
}

body.dark-theme .telegram-modal-card {
  background: #101815 !important;
  border-color: #34443e !important;
}

body.dark-theme .telegram-modal-card h3 {
  color: #dff2dc !important;
}

body.dark-theme .telegram-modal-card p {
  color: #c8d8c4 !important;
}

body.dark-theme .telegram-modal-close {
  background: #1d2b25 !important;
  color: #dff2dc !important;
}


.debug-box {
  max-height: 220px;
  overflow: auto;
  background: #101815;
  color: #dff2dc;
  padding: 12px;
  border-radius: 14px;
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 10px;
}


.telegram-channel-hint {
  font-size: 13px;
  color: #526050;
  margin-top: 6px;
}

.channel-message-box {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.channel-message-preset-row {
  margin: 8px 0;
}


.address-preset-box {
  grid-column: 1 / -1;
  background: #f5f7f4;
  border: 1px solid #e0e7dc;
  border-radius: 18px;
  padding: 14px;
  margin: 8px 0 12px;
}

.preset-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.address-preset-box select,
.address-preset-box input {
  min-width: 0;
}

body.dark-theme .address-preset-box {
  background: #101815 !important;
  border-color: #34443e !important;
}

@media (max-width: 760px) {
  .preset-row {
    grid-template-columns: 1fr;
  }
}


.google-map-link-box {
  grid-column: 1 / -1;
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-radius: 18px;
  padding: 14px;
  margin: 8px 0 12px;
}

body.dark-theme .google-map-link-box {
  background: #101825 !important;
  border-color: #34445f !important;
}

.google-preview-link {
  text-decoration: none;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.leaflet-container {
  font-family: inherit;
}


.map-search-unified-note {
  font-size: 13px;
  color: #526050;
}

body.dark-theme .map-search-unified-note {
  color: #c8d8c4;
}


.map-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  grid-column: 1 / -1;
}

.map-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #526050;
  margin: 8px 0;
}

.google-map-preview-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.gps-debug {
  font-size: 13px;
  margin: 8px 0;
  color: #526050;
}

.gps-debug a {
  color: inherit;
  font-weight: 700;
}

body.dark-theme .map-mini-title,
body.dark-theme .gps-debug {
  color: #c8d8c4;
}

@media (max-width: 900px) {
  .map-preview-grid {
    grid-template-columns: 1fr;
  }
}


/* Admin homepage custom slider editor */
.home-slide-editor {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(76, 99, 71, 0.18);
  border-radius: 16px;
  background: rgba(250, 252, 248, 0.8);
}
.home-slide-admin-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(76, 99, 71, 0.16);
  border-radius: 14px;
  background: #fff;
}
.home-slide-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.home-slide-admin-preview {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0 10px;
}
body.dark-theme .home-slide-editor,
body.dark-theme .home-slide-admin-card {
  background: rgba(25, 32, 27, 0.9);
  border-color: rgba(255,255,255,0.12);
}

/* Professional homepage slider layout */
.hero-card {
  padding: 14px !important;
}

.slider {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #eef4eb !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55) !important;
  isolation: isolate !important;
}

.slides {
  display: flex !important;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform !important;
}

.slide {
  min-width: 100% !important;
  height: clamp(240px, 36vw, 420px) !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #eef4eb !important;
}

.slide-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

.slide img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.01) !important;
}

.slide::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 45%, rgba(0,0,0,0.34) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.slide-text {
  position: absolute !important;
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  z-index: 2 !important;
  width: fit-content !important;
  max-width: min(330px, calc(100% - 36px)) !important;
  padding: 10px 13px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.62) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16) !important;
  text-align: left !important;
}

.slide-text strong {
  display: block !important;
  color: #17351f !important;
  font-size: clamp(15px, 1.6vw, 19px) !important;
  line-height: 1.22 !important;
  margin: 0 0 3px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.slide-text span {
  display: block !important;
  color: #465343 !important;
  font-size: clamp(12px, 1.15vw, 14px) !important;
  line-height: 1.35 !important;
  margin: 1px 0 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.slide-text:empty {
  display: none !important;
}

.arrow {
  z-index: 4 !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255,255,255,0.65) !important;
  background: rgba(255,255,255,0.76) !important;
  color: #24452c !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14) !important;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease !important;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.05) !important;
  background: rgba(255,255,255,0.92) !important;
}

.arrow.left { left: 14px !important; }
.arrow.right { right: 14px !important; }

.slider.single-slide .arrow,
.slider.single-slide + .dots,
.dots:empty {
  display: none !important;
}

.dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin-top: 12px !important;
  min-height: 12px !important;
}

.dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #bccbb7 !important;
  cursor: pointer !important;
  transition: width 0.25s ease, background 0.25s ease, opacity 0.25s ease !important;
  opacity: 0.86 !important;
}

.dot.active {
  width: 24px !important;
  background: #3f7046 !important;
  opacity: 1 !important;
}

.empty-slide {
  display: grid !important;
  place-items: center !important;
}

.empty-slide-content {
  padding: 12px 16px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.75) !important;
  color: #4d5b4b !important;
  font-weight: 700 !important;
}

body.dark-theme .slider {
  background: #1a211d !important;
}

body.dark-theme .slide {
  background: #1a211d !important;
}

body.dark-theme .slide-text {
  background: rgba(26, 31, 27, 0.74) !important;
  border-color: rgba(255,255,255,0.12) !important;
}

body.dark-theme .slide-text strong,
body.dark-theme .slide-text span {
  color: #eef6ec !important;
}

body.dark-theme .arrow {
  background: rgba(26, 31, 27, 0.72) !important;
  color: #eef6ec !important;
  border-color: rgba(255,255,255,0.16) !important;
}

body.dark-theme .dot {
  background: #4d5b4b !important;
}

body.dark-theme .dot.active {
  background: #a6d49f !important;
}

@media (max-width: 720px) {
  .hero-card {
    padding: 10px !important;
  }

  .slide {
    height: 250px !important;
    border-radius: 18px !important;
  }

  .slider {
    border-radius: 18px !important;
  }

  .slide-text {
    left: 12px !important;
    bottom: 12px !important;
    max-width: calc(100% - 24px) !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .slide-text strong {
    font-size: 14px !important;
  }

  .slide-text span {
    font-size: 12px !important;
  }

  .arrow {
    width: 34px !important;
    height: 34px !important;
  }

  .arrow.left { left: 9px !important; }
  .arrow.right { right: 9px !important; }
}


/* Final override: keep slide text below image so it never covers the photo */
.slider { overflow: hidden !important; }
.slide { height: auto !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.slide-link { height: auto !important; min-height: 100% !important; display: flex !important; flex-direction: column !important; }
.slide img { height: clamp(240px, 36vw, 420px) !important; flex: 0 0 auto !important; }
.slide::after { display: none !important; }
.slide-text { position: static !important; z-index: auto !important; width: auto !important; max-width: none !important; margin: 10px 12px 12px !important; padding: 9px 12px !important; border-radius: 14px !important; background: rgba(255, 255, 255, 0.82) !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.slide-text strong { font-size: 15px !important; line-height: 1.25 !important; margin-bottom: 2px !important; }
.slide-text span { font-size: 12.5px !important; line-height: 1.35 !important; }
.arrow { top: calc(clamp(240px, 36vw, 420px) / 2) !important; }
@media (max-width: 720px) {
  .slide img { height: 250px !important; }
  .slide-text { margin: 8px 10px 10px !important; padding: 8px 10px !important; }
  .arrow { top: 125px !important; }
}


/* Slide image fit system: fixed 16:9 image stage + caption below */
.slide-size-hint,
.slide-admin-help {
  margin: 6px 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f4f7ef;
  color: #596457;
  font-size: 13px;
  line-height: 1.45;
}

.slider {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.slide img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: min(66vh, 520px) !important;
  min-height: 220px !important;
  display: block !important;
  background: #f3f5ef !important;
}

.slide-link img,
.slide > img {
  border-radius: 18px 18px 0 0 !important;
}

.slide-text {
  border-top: 1px solid rgba(47,93,58,0.08) !important;
}

body.dark-theme .slide-size-hint,
body.dark-theme .slide-admin-help {
  background: rgba(255,255,255,0.08);
  color: #e7eadf;
}

@media (max-width: 720px) {
  .slide img {
    min-height: 190px !important;
    max-height: 320px !important;
  }
}

/* Keep slider arrows centered on the image area after caption moved below */
.arrow {
  top: min(33vw, 260px) !important;
  transform: translateY(-50%) !important;
}
@media (max-width: 720px) {
  .arrow { top: 95px !important; }
}

#contact-location {
  scroll-margin-top: 96px;
}

.btn.danger {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.btn.danger:hover {
  filter: brightness(0.95);
}

/* Product card image hover motion */
.product-image-wrap img {
  transition: transform 0.45s ease, filter 0.45s ease;
  will-change: transform;
}
.catalog-clickable:hover .product-image-wrap img,
.catalog-clickable:focus .product-image-wrap img {
  transform: scale(1.08);
  filter: saturate(1.04);
}
.btn.interest-similar {
  background: #fff4ce;
  color: #7a5200;
  border: 1px solid #f1d27a;
}
.btn.interest-similar:hover {
  background: #ffe9a6;
}

/* v32 fixes: keep long product details from stretching homepage cards */
.product-card-detail {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.gallery-main {
  touch-action: pan-y;
}

.detail-preset-box {
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid #e0e7dc;
  border-radius: 14px;
  background: #f8fbf6;
}

.detail-preset-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.detail-preset-row:first-of-type {
  grid-template-columns: 1fr auto;
}

.btn.danger,
.btn.light.danger {
  color: #9b1c1c;
  border-color: #f1b9b9;
  background: #fff1f1;
}

.contact-hours-note {
  color: #e8f1e6;
  opacity: 0.95;
}

body.dark-theme .detail-preset-box {
  background: #18221f;
  border-color: #34443c;
}

@media (max-width: 720px) {
  .detail-preset-row,
  .detail-preset-row:first-of-type {
    grid-template-columns: 1fr;
  }
}

/* Prevent old/default admin content from flashing before fresh settings load */
body.home-content-loading [data-home-dynamic] {
  visibility: hidden;
}

/* Hero social contact buttons */
.hero-social-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 93, 58, 0.16);
  color: #203529;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(47, 93, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-social-link:hover,
.hero-social-link:focus {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(47, 93, 58, 0.14);
}

body.dark-theme .hero-social-link {
  background: rgba(24, 34, 31, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef7ec;
}

body.dark-theme .hero-social-link:hover,
body.dark-theme .hero-social-link:focus {
  background: #202d28;
}

/* FIX V49: host path/cache fix for hero social links */
.hero-social-links{margin-top:14px!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important}
.hero-social-links>a.hero-social-link{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 12px!important;border-radius:999px!important;background:rgba(255,255,255,.92)!important;border:1px solid rgba(47,93,58,.18)!important;color:#203529!important;text-decoration:none!important;font-weight:800!important;font-size:14px!important;line-height:1.2!important;box-shadow:0 10px 22px rgba(47,93,58,.08)!important;white-space:nowrap!important;overflow:hidden!important}
.hero-social-links>a.hero-social-link:hover,.hero-social-links>a.hero-social-link:focus{transform:translateY(-2px)!important;background:#fff!important;box-shadow:0 14px 26px rgba(47,93,58,.14)!important}
.hero-social-links .contact-brand-icon{width:32px!important;height:32px!important;border-radius:9px!important;display:inline-grid!important;place-items:center!important;flex:0 0 32px!important;color:#fff!important;font-weight:800!important}
