/* หน้า /products — สไตล์ร้านค้าออนไลน์ (โทนกรมท่า + ขาว แบบอ้างอิงช้อปมาตรฐาน) */

.ec-shop-body {
  background: #f1f5f9;
}

.ec-page {
  --ec-navy: #0f2744;
  --ec-navy2: #132a4a;
  --ec-line: #e2e8f0;
  --ec-text: #0f172a;
  --ec-muted: #64748b;
  max-width: 100%;
}

/* ---------- header + search ---------- */
.ec-header {
  background: #fff;
  border-bottom: 1px solid var(--ec-line);
}

.ec-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}

.ec-brand {
  font-size: 18px;
  font-weight: 400;
  color: var(--ec-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ec-brand span {
  font-weight: 400;
  color: #334155;
}

.ec-search-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ec-line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  min-height: 46px;
}

.ec-search-wrap:focus-within {
  border-color: #94a3b8;
}

.ec-search-cat {
  border: 0;
  border-right: 1px solid var(--ec-line);
  padding: 0 12px;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  color: var(--ec-text);
  background: #f8fafc;
  max-width: 130px;
  cursor: pointer;
}

.ec-search-input {
  flex: 1;
  border: 0;
  padding: 0 14px;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.ec-search-submit {
  width: 52px;
  border: 0;
  background: var(--ec-navy);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.ec-search-submit:hover {
  background: var(--ec-navy2);
}

.ec-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ec-hdr-ic {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-navy);
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

a.ec-hdr-ic:hover {
  background: rgba(30, 73, 118, 0.08);
  color: var(--ec-navy);
}

.ec-hdr-ic em {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ec-navy);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- breadcrumb ---------- */
.ec-breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid var(--ec-line);
}

.ec-breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ec-muted);
}

.ec-breadcrumb-inner a {
  color: #475569;
  text-decoration: none;
}

.ec-breadcrumb-inner a:hover {
  text-decoration: underline;
  color: var(--ec-navy);
}

.ec-bc-sep {
  margin: 0 8px;
  color: #cbd5e1;
}

/* ---------- store sub-nav (หมวดหมู่ + ลิงก์ร้าน) ---------- */
.ec-store-nav {
  background: #f8fafc;
  border-bottom: 1px solid var(--ec-line, #e2e8f0);
}

.ec-store-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ec-store-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--ec-navy, #0f2744);
  color: #fff !important;
  border-radius: 4px;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.ec-store-cat-btn:hover {
  background: #1e4976;
  color: #fff !important;
}

.ec-store-cat-btn i {
  font-size: 14px;
  opacity: 0.95;
}

.ec-store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 4px;
}

.ec-store-links a {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #475569;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.ec-store-links a:hover {
  color: var(--ec-navy, #0f2744);
  background: rgba(30, 73, 118, 0.06);
}

.ec-store-links a.is-active {
  color: var(--ec-navy, #0f2744);
  font-weight: 500;
  background: rgba(30, 73, 118, 0.1);
}

@media (max-width: 640px) {
  .ec-store-nav-inner {
    padding: 8px 12px;
    gap: 10px;
  }

  .ec-store-cat-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .ec-store-links {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .ec-store-links::-webkit-scrollbar {
    display: none;
  }

  .ec-store-links a {
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* ---------- shop hero (หน้ารวมสินค้า) ---------- */
.ec-shop-hero-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 16px 12px;
}

.ec-shop-hero {
  position: relative;
  overflow: hidden;
  background: url('/assets/hero-bg-custom.png') center/cover no-repeat #0a1628;
  color: #fff;
  border-radius: 4px;
  padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.12);
}

.ec-shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(
    100deg,
    rgba(4, 16, 30, 0.65) 0%,
    rgba(15, 39, 68, 0.35) 55%,
    rgba(4, 16, 30, 0.1) 100%
  );
  pointer-events: none;
}

.ec-shop-hero > * {
  position: relative;
  z-index: 1;
}

.ec-shop-hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 10px;
  font-family: 'Prompt', sans-serif;
}

.ec-shop-hero-title {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-family: 'Prompt', sans-serif;
}

.ec-shop-hero-lead {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 100%;
  font-family: 'Prompt', sans-serif;
}

/* หน้าจอกว้าง: บรรทัดเดียว (เลื่อนแนวนอนได้ถ้าเนื้อหายาวเกิน) */
@media (min-width: 768px) {
  .ec-shop-hero-lead {
    font-size: clamp(12px, 0.85vw + 10px, 15px);
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .ec-shop-hero-lead::-webkit-scrollbar {
    height: 4px;
  }
  .ec-shop-hero-lead::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
  }
}

@media (max-width: 640px) {
  .ec-shop-hero-wrap {
    padding: 12px 12px 10px;
  }
}

/* ---------- layout ---------- */
.ec-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ec-layout .ec-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 400;
}

.ec-layout.ec-layout--sidebar-open .ec-backdrop {
  display: block;
}

/* ---------- sidebar ---------- */
.ec-sidebar {
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  padding: 18px 16px;
  position: sticky;
  top: 12px;
}

.ec-side-block + .ec-side-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ec-line);
}

.ec-side-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--ec-text);
  margin: 0 0 12px;
}

.ec-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-cat-list li {
  margin-bottom: 4px;
}

.ec-cat-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.ec-cat-link:hover {
  background: #f1f5f9;
}

.ec-cat-link.is-active {
  background: #eff6ff;
  color: var(--ec-navy);
  font-weight: 400;
}

.ec-price-field label {
  display: block;
  font-size: 12px;
  color: var(--ec-muted);
  margin-bottom: 8px;
}

.ec-price-field input[type='range'] {
  width: 100%;
  accent-color: var(--ec-navy);
}

/* ---------- main ---------- */
.ec-main {
  min-width: 0;
}

.ec-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  margin-bottom: 14px;
}

.ec-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ec-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  background: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.ec-tool-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ec-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ec-sort-label {
  font-size: 13px;
  color: var(--ec-muted);
}

.ec-sort {
  padding: 8px 12px;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  min-width: 180px;
  background: #fff;
  cursor: pointer;
}

.ec-toolbar-count {
  margin: 0;
  font-size: 13px;
  color: var(--ec-muted);
}

.ec-view-toggle {
  display: flex;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  overflow: hidden;
}

.ec-view-btn {
  width: 40px;
  height: 38px;
  border: 0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.ec-view-btn.active {
  background: var(--ec-navy);
  color: #fff;
}

.ec-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ec-type-tab {
  padding: 8px 16px;
  border: 1px solid var(--ec-line);
  border-radius: 999px;
  background: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.ec-type-tab.active {
  background: var(--ec-navy);
  border-color: var(--ec-navy);
  color: #fff;
}

/* ---------- product grid ---------- */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ec-grid.ec-grid--list {
  grid-template-columns: 1fr;
}

.ec-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--ec-muted);
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
}

.ec-empty {
  padding: 40px;
  text-align: center;
  color: var(--ec-muted);
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
}

.ec-empty:not([hidden]) {
  display: block;
}

.ec-card {
  background: #fff;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ec-card:hover {
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.1);
  transform: translateY(-2px);
}

.ec-grid--list .ec-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.ec-card-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: #f1f5f9;
}

.ec-grid--list .ec-card-thumb {
  aspect-ratio: 4/3;
}

.ec-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-card-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}

.ec-card-flag--product {
  background: #1e4976;
}

.ec-card-flag--manual {
  background: #d97706;
}

.ec-card-flag--course {
  background: #2563eb;
}

.ec-card-body {
  padding: 14px 14px 16px;
}

.ec-card-cat {
  font-size: 12px;
  color: var(--ec-muted);
  margin-bottom: 6px;
}

.ec-card-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--ec-text);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-card-stars {
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.ec-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ec-card-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.ec-card-price {
  font-size: 18px;
  font-weight: 400;
  color: var(--ec-navy);
}

a.ec-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ec-card-pct {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #facc15, #84cc16);
  color: #0f172a;
  font-size: 11px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ec-card-best {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  border-radius: 2px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-card-ship {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  padding: 6px 8px;
  text-align: center;
  letter-spacing: 0.02em;
  z-index: 1;
}

@media (max-width: 1100px) {
  .ec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ec-header-inner {
    grid-template-columns: 1fr;
  }

  .ec-header-actions {
    justify-content: flex-end;
  }

  .ec-layout {
    grid-template-columns: 1fr;
  }

  .ec-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100vh;
    overflow-y: auto;
    z-index: 420;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }

  .ec-layout.ec-layout--sidebar-open .ec-sidebar {
    transform: translateX(0);
  }

  .ec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ec-grid--list .ec-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .ec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-body {
    padding: 10px 9px 12px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-flag,
  .ec-grid:not(.ec-grid--list) .ec-card-best {
    top: 6px;
    left: 6px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-pct {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
    font-size: 9px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-ship {
    padding: 4px 5px;
    font-size: 9px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-cat {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-title {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-stars {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-price-row {
    gap: 4px 6px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-old {
    font-size: 10px;
  }

  .ec-grid:not(.ec-grid--list) .ec-card-price {
    font-size: 15px;
  }

  .ec-sort {
    min-width: 0;
    flex: 1;
  }
}

/* ---------- card quick actions ---------- */
.ec-card-quick {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.ec-card:hover .ec-card-quick,
.ec-card-quick:focus-within {
  opacity: 1;
}

.ec-card-quick-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ec-navy, #0f2744);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.15);
}

.ec-card-quick-btn:hover {
  background: #1e4976;
  color: #fff;
}

.ec-card-quick-btn.is-active {
  background: #1e4976;
  color: #fff;
}

/* ---------- shop list pages ---------- */
.ec-list-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.ec-list-head {
  margin-bottom: 24px;
}

.ec-list-h1 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--ec-navy, #0f2744);
  font-family: 'Prompt', sans-serif;
}

.ec-list-sub {
  margin: 0 0 16px;
  color: var(--ec-muted, #64748b);
  font-size: 14px;
}

.ec-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ec-list-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ec-navy, #0f2744);
  font-size: 13px;
  font-family: 'Prompt', sans-serif;
  background: #fff;
}

.ec-list-tab.is-active {
  background: var(--ec-navy, #0f2744);
  border-color: var(--ec-navy, #0f2744);
  color: #fff;
}

.ec-list-loading,
.ec-list-msg {
  text-align: center;
  padding: 32px;
  color: var(--ec-muted, #64748b);
}

.ec-list-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ec-muted, #64748b);
}

.ec-list-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ec-list-empty-link {
  display: inline-block;
  margin-top: 12px;
  color: #2d6a9f;
  font-weight: 500;
}

.ec-list-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--ec-line, #e2e8f0);
  background: #fff;
  margin-bottom: 12px;
}

.ec-list-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.ec-list-title {
  font-weight: 500;
  color: var(--ec-navy, #0f2744);
  text-decoration: none;
  font-size: 15px;
}

.ec-list-price {
  margin-top: 6px;
  font-size: 16px;
  color: #1e4976;
}

.ec-list-qty {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
}

.ec-list-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 18px;
}

.ec-list-qty input {
  width: 48px;
  text-align: center;
  border: 0;
  font-family: inherit;
}

.ec-list-remove {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
}

.ec-list-remove:hover {
  color: #dc2626;
}

.ec-list-cart-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ec-line, #e2e8f0);
}

.ec-list-total strong {
  font-size: 22px;
  color: var(--ec-navy, #0f2744);
  margin-left: 8px;
}

.ec-list-checkout {
  display: inline-flex;
  padding: 12px 24px;
  background: var(--ec-navy, #0f2744);
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Prompt', sans-serif;
}

.ec-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ec-list-card {
  border: 1px solid var(--ec-line, #e2e8f0);
  background: #fff;
}

.ec-list-card-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ec-list-card-body {
  padding: 14px;
}

.ec-list-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ec-list-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--ec-navy, #0f2744);
  background: var(--ec-navy, #0f2744);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
}

.ec-list-btn--ghost {
  background: #fff;
  color: var(--ec-navy, #0f2744);
}

.ec-compare-wrap {
  overflow-x: auto;
}

.ec-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: 'Prompt', sans-serif;
}

.ec-compare-table th,
.ec-compare-table td {
  border: 1px solid var(--ec-line, #e2e8f0);
  padding: 12px;
  text-align: center;
  vertical-align: middle;
}

.ec-compare-table th[scope='row'] {
  background: #f8fafc;
  text-align: left;
  font-weight: 500;
  min-width: 100px;
}

.ec-compare-img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

.ec-compare-rm {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #94a3b8;
  margin-left: 4px;
}

.ec-shop-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 20px;
  background: var(--ec-navy, #0f2744);
  color: #fff;
  border-radius: 4px;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.25);
}

@media (max-width: 640px) {
  .ec-list-row {
    grid-template-columns: 80px 1fr;
  }

  .ec-list-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
