/* Matches: Ekors product view / modern product catalog */
.ekors-products-view {
  background: #f8fafc;
  padding: 30px 0 50px;
  font-family: 'Poppins', 'Segoe UI', -apple-system, sans-serif;
  color: #1e293b;
}

.ekors-products-view .pv-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header Section */
.ekors-products-view .pv-header-section {
  text-align: center;
  margin-bottom: 28px;
}

.ekors-products-view .pv-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138, 51, 36, 0.08);
  color: #8A3324;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(138, 51, 36, 0.16);
}

.ekors-products-view .pv-page-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.ekors-products-view .pv-page-subtitle {
  font-size: 15px;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Modern Filter Panel Card */
.ekors-products-view .pv-filter-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px 18px;
  margin-bottom: 35px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.3s ease;
}

.ekors-products-view .pv-filter-card:hover {
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.09), 0 6px 10px -3px rgba(0, 0, 0, 0.03);
}

/* Filter Fields Grid */
.ekors-products-view .pv-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.6fr 1.6fr 0.9fr auto;
  gap: 16px;
  align-items: flex-end;
}

.ekors-products-view .pv-filter-col {
  display: flex;
  flex-direction: column;
}

.ekors-products-view .pv-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 7px;
}

.ekors-products-view .pv-filter-label i {
  color: #8A3324;
  font-size: 13px;
}

/* Search Input Box */
.ekors-products-view .pv-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ekors-products-view .pv-search-input-box .pv-search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}

.ekors-products-view .pv-search-input-box input {
  width: 100%;
  padding: 11px 36px 11px 38px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  height: 44px;
  margin-bottom: 0;
}

.ekors-products-view .pv-search-input-box input:focus {
  background: #ffffff;
  border-color: #8A3324;
  box-shadow: 0 0 0 3.5px rgba(138, 51, 36, 0.12);
}

.ekors-products-view .pv-search-input-box input:focus + .pv-search-icon {
  color: #8A3324;
}

.ekors-products-view .pv-search-clear {
  position: absolute;
  right: 10px;
  background: #e2e8f0;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.ekors-products-view .pv-search-clear:hover {
  background: #8A3324;
  color: #ffffff;
}

/* Select Dropdown Wrapper */
.ekors-products-view .pv-select-wrapper {
  position: relative;
  width: 100%;
}

.ekors-products-view .pv-select-wrapper select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  height: 44px;
  margin-bottom: 0;
}

.ekors-products-view .pv-select-wrapper select:focus {
  background-color: #ffffff;
  border-color: #8A3324;
  box-shadow: 0 0 0 3.5px rgba(138, 51, 36, 0.12);
}

.ekors-products-view .pv-select-wrapper select:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Reset Filter Button */
.ekors-products-view .pv-reset-filter-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 44px;
  box-sizing: border-box;
}

.ekors-products-view .pv-reset-filter-btn:hover {
  background: #fee2e2;
  color: #8A3324;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.ekors-products-view .pv-reset-filter-btn i {
  transition: transform 0.3s ease;
}

.ekors-products-view .pv-reset-filter-btn:hover i {
  transform: rotate(-180deg);
}

/* Bottom Bar of Filter Panel */
.ekors-products-view .pv-filter-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.ekors-products-view .pv-count-indicator {
  font-size: 13.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ekors-products-view .pv-count-indicator strong {
  color: #8A3324;
  font-weight: 700;
  background: rgba(138, 51, 36, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Active Chips Tag Container */
.ekors-products-view .pv-active-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ekors-products-view .pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ekors-products-view .pv-chip:hover {
  background: #dbeafe;
  color: #1e40af;
}

.ekors-products-view .pv-chip i {
  font-size: 11px;
}

.ekors-products-view .pv-chip.pv-chip-category {
  background: rgba(138, 51, 36, 0.08);
  color: #8A3324;
  border-color: rgba(138, 51, 36, 0.25);
}

.ekors-products-view .pv-chip.pv-chip-category:hover {
  background: rgba(138, 51, 36, 0.15);
}

.ekors-products-view .pv-chip.pv-chip-clear-all {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.ekors-products-view .pv-chip.pv-chip-clear-all:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Empty State Design */
.ekors-products-view .pv-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
  margin: 20px 0;
}

.ekors-products-view .pv-empty-state-icon {
  width: 65px;
  height: 65px;
  background: #fee2e2;
  color: #8A3324;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.ekors-products-view .pv-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.ekors-products-view .pv-empty-state p {
  font-size: 14px;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.ekors-products-view .pv-empty-reset-btn {
  background: #8A3324;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ekors-products-view .pv-empty-reset-btn:hover {
  background: #6f271a;
  transform: translateY(-2px);
}

/* Responsive Breakpoints for Filter Grid */
@media (max-width: 1024px) {
  .ekors-products-view .pv-filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .ekors-products-view .pv-filter-search {
    grid-column: 1 / -1;
  }
  .ekors-products-view .pv-col-action {
    grid-column: 1 / -1;
  }
  .ekors-products-view .pv-reset-filter-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .ekors-products-view {
    padding: 20px 0 40px;
  }
  .ekors-products-view .pv-filter-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .ekors-products-view .pv-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ekors-products-view .pv-page-title {
    font-size: 24px;
  }
  .ekors-products-view .pv-filter-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ekors-products-view .products-gallery {
    display: grid;
    /* auto-fit collapses empty tracks (auto-fill keeps them) and a capped
       track width stops a lone card from stretching, so 1-3 results sit
       centred instead of hugging the left edge. The cap is the exact 4-up
       width of the container (273px at 1170) so a full row still fills it;
       the max() floor matters because Chrome sizes the auto-fit count from
       the MAX value -- without it a narrow container would overflow. */
    grid-template-columns: repeat(auto-fit, minmax(272px, max(272px, calc((100% - 3 * 26px) / 4))));
    justify-content: center;
    gap: 26px;
    align-items: stretch;
}

/* ---- card shell -------------------------------------------------------- */
.ekors-products-view .card {
    display: flex;
    flex-direction: column;          /* buttons stay aligned across the row */
    /* bootstrap.min.css pins a bare `.card` to width/min/max 320px, which made
       these overflow their grid track and overlap. Let the track size them. */
    width: auto;
    min-width: 0;
    max-width: none;
    background: #fff;
    border: 1px solid #ece7e5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
                0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.3, 1),
                box-shadow 0.28s ease, border-color 0.28s ease;
}

.ekors-products-view .card:hover {
    transform: translateY(-6px);
    border-color: #e2d5d1;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06),
                0 18px 40px rgba(138, 51, 36, 0.14);
}

/* ---- image ------------------------------------------------------------
   Source photos are 1200x857 (7:5) and carry their own backdrop plus printed
   feature text, so the box matches that ratio and uses `contain` -- cropping
   would cut the branding off. */
.ekors-products-view .pcard-media {
    position: relative;
    aspect-ratio: 7 / 5;
    background: linear-gradient(160deg, #fbf8f7 0%, #f4eeec 100%);
    border-bottom: 1px solid #f0eae8;
    overflow: hidden;
}

.ekors-products-view .card .big-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.3, 1);
}

.ekors-products-view .card:hover .big-image {
    transform: scale(1.04);
}

/* ---- thumbnails -------------------------------------------------------- */
.ekors-products-view .card .small-images {
    display: flex;
    gap: 8px;
    padding: 12px 14px 0;
}

.ekors-products-view .card .small-images img {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 7 / 5;
    height: auto;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid #ece7e5;
    background: #faf7f6;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.22s ease, border-color 0.22s ease,
                box-shadow 0.22s ease, transform 0.22s ease;
}

.ekors-products-view .card .small-images img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.ekors-products-view .card .small-images img.active {
    opacity: 1;
    border-color: #8A3324;
    box-shadow: 0 0 0 2px rgba(138, 51, 36, 0.18);
}

.ekors-products-view .card .small-images img:focus-visible {
    outline: 2px solid #8A3324;
    outline-offset: 2px;
}

/* ---- text -------------------------------------------------------------- */
.ekors-products-view .card .info {
    display: flex;
    flex-direction: column;
    flex: 1;                          /* pushes the buttons to the bottom */
    padding: 14px 18px 18px;
}

.ekors-products-view .card .pcard-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #8A3324;
    margin-bottom: 6px;
}

.ekors-products-view .card .info h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: #1f2937;
}

/* ---- actions ----------------------------------------------------------- */
.ekors-products-view .button-group {
    display: flex;
    gap: 9px;
    margin-top: auto;
}

.ekors-products-view .button-group button {
    flex: 1;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease,
                color 0.22s ease, box-shadow 0.22s ease;
}

.ekors-products-view .details-btn {
    background: #8A3324;
    border-color: #8A3324;
    color: #fff;
    box-shadow: 0 4px 12px rgba(138, 51, 36, 0.22);
}

.ekors-products-view .details-btn:hover {
    background: #71291d;
    border-color: #71291d;
    box-shadow: 0 6px 18px rgba(138, 51, 36, 0.3);
}

.ekors-products-view .enquire-btn {
    background: #fff;
    border-color: #d9dee6;
    color: #33415a;
}

.ekors-products-view .enquire-btn:hover {
    background: #fdf5f4;
    border-color: #8A3324;
    color: #8A3324;
}

.ekors-products-view .button-group button:focus-visible {
    outline: 2px solid #8A3324;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ekors-products-view .card,
    .ekors-products-view .card .big-image,
    .ekors-products-view .card .small-images img { transition: none; }
    .ekors-products-view .card:hover { transform: none; }
    .ekors-products-view .card:hover .big-image { transform: none; }
}

.ekors-products-view .products-pagination {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.ekors-products-view .products-pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.ekors-products-view .products-pagination button:hover:not(:disabled) {
  border-color: #8A3324;
  color: #8A3324;
  background: rgba(138, 51, 36, 0.06);
  transform: translateY(-2px);
}

.ekors-products-view .products-pagination button.active {
  background: linear-gradient(135deg, #8A3324 0%, #a83d2c 100%);
  color: #ffffff !important;
  border-color: #8A3324;
  box-shadow: 0 4px 12px rgba(138, 51, 36, 0.3);
}

.ekors-products-view .products-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  box-shadow: none;
  transform: none;
}

.ekors-products-view .products-pagination .page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}

@media (max-width: 576px) {
  .ekors-products-view .products-pagination {
    gap: 5px;
    margin-top: 25px;
  }
  .ekors-products-view .products-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 6px;
  }
  .ekors-products-view .products-pagination .page-dots {
    padding: 0 3px;
    font-size: 14px;
  }
}

/* Product detail popup
   The old version centred a taller-than-viewport panel inside a scrolling
   overlay, which pushed the top (and the close button with it) off-screen --
   on a phone the popup could not be closed at all. The shell is now bounded to
   the viewport and only the body inside it scrolls. */
#ekors-product-popup.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 10050;
  overflow: hidden;
}

#ekors-product-popup.popup.is-open {
  display: flex;
}

body.ekors-popup-open {
  overflow: hidden;                 /* page behind the popup stays put */
}

#ekors-product-popup .popup-content {
  background: #fff;
  width: 100%;
  max-width: 1120px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 20px;
  padding: 0;
  position: relative;
  border: 1px solid #ece7e5;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#ekors-product-popup .popup-body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 26px;
}

#ekors-product-popup .popup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

/* without this a long spec value sets the track's min-content width and the
   column grows wider than the panel */
#ekors-product-popup .popup-grid > * {
  min-width: 0;
}

/* image: same 7:5 treatment as the product cards, no stretching */
#ekors-product-popup .popup-main {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: contain;
  background: linear-gradient(160deg, #fbf8f7 0%, #f4eeec 100%);
  border: 1px solid #f0eae8;
  border-radius: 14px;
  display: block;
}

#ekors-product-popup .popup-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#ekors-product-popup .popup-thumbs img {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ece7e5;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#ekors-product-popup .popup-thumbs img:hover { opacity: 1; }

#ekors-product-popup .popup-thumbs img.active {
  opacity: 1;
  border-color: #8A3324;
  box-shadow: 0 0 0 2px rgba(138, 51, 36, 0.18);
}

#ekors-product-popup #popupTitle {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #1f2937;
  margin: 0 0 8px;
}

#ekors-product-popup .popup-type {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8A3324;
}

#ekors-product-popup .popup-type strong { display: none; }   /* the label is redundant */

/* tabs: a scrollable strip, never a stack of full-width blocks */
#ekors-product-popup .tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid #f0eae8;
}

#ekors-product-popup .tabs::-webkit-scrollbar { display: none; }

#ekors-product-popup .tab-btn {
  flex: 0 0 auto;
  background: transparent;
  color: #64748b;
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#ekors-product-popup .tab-btn:hover { color: #8A3324; background: #fdf5f4; }

#ekors-product-popup .tab-btn.active {
  color: #8A3324;
  border-bottom-color: #8A3324;
  background: transparent;
}

#ekors-product-popup .tab-btn:focus-visible {
  outline: 2px solid #8A3324;
  outline-offset: -2px;
}

#ekors-product-popup .tab-content {
  display: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #3f4a5a;
}

#ekors-product-popup .tab-content.active { display: block; }

#ekors-product-popup .tab-content ul { list-style: none; padding: 0; margin: 0; }

#ekors-product-popup .tab-content li {
  background: #faf8f7;
  margin-bottom: 8px;
  padding: 11px 14px;
  border: 1px solid #f0eae8;
  border-left: 3px solid #8A3324;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

#ekors-product-popup .table-wrapper { width: 100%; overflow-x: auto; }

#ekors-product-popup .spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

#ekors-product-popup .spec-table th {
  background: #8A3324;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

#ekors-product-popup .spec-table th,
#ekors-product-popup .spec-table td {
  padding: 11px 13px;
  border: 1px solid #ece7e5;
  text-align: left;
  vertical-align: top;
}

#ekors-product-popup .spec-table tbody tr:nth-child(even) { background: #faf8f7; }

#ekors-product-popup .spec-table td:first-child {
  font-weight: 600;
  color: #1f2937;
  width: 40%;
}

#ekors-product-popup .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2d5d1;
  color: #8A3324;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#ekors-product-popup .close-btn:hover {
  background: #8A3324;
  color: #fff;
  transform: rotate(90deg);
}

#ekors-product-popup .close-btn:focus-visible {
  outline: 2px solid #8A3324;
  outline-offset: 2px;
}

/* Enquiry popup */
#ekors-enquiry-popup.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 10060;
}

#ekors-enquiry-popup.popup.is-open {
  display: flex;
}

#ekors-enquiry-popup .popup-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 25px;
  position: relative;
  border: 3px solid #911d11;
}

#ekors-enquiry-popup .close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4d4d;
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

#ekors-enquiry-popup input,
#ekors-enquiry-popup textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#ekors-enquiry-popup .enquire-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: #007bff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

#ekors-enquiry-popup .enquire-btn:hover {
  background: #005ed1;
}

@media (max-width: 768px) {
  .ekors-products-view .products-gallery {
    /* cap = exact 3-up width so a full tablet row still fills the container */
    grid-template-columns: repeat(auto-fit, minmax(220px, max(220px, calc((100% - 2 * 16px) / 3))));
    justify-content: center;
    gap: 16px;
  }
  .ekors-products-view .card .info { padding: 12px 14px 14px; }
  .ekors-products-view .card .info h3 { font-size: 15px; }
  .ekors-products-view .button-group button { font-size: 12.5px; padding: 10px 8px; }
}

/* Sub-category dropdown: greyed out when the chosen category has none. */
.ekors-products-view .top-bar-products select:disabled {
  background: #f4f6f8;
  color: #9aa4b2;
  border-color: #e2e6ea;
  cursor: not-allowed;
}

/* Enquiry popup status message (success / failure of the sheet submit). */
#ekors-enquiry-popup .enquiry-alert {
  margin: 4px 0 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

#ekors-enquiry-popup .enquiry-alert.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

#ekors-enquiry-popup .enquiry-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}


/* ==========================================================================
   PRODUCT POPUP — RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
  #ekors-product-popup .popup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #ekors-product-popup #popupTitle { font-size: 22px; }
}

@media (max-width: 767px) {
  #ekors-product-popup.popup { padding: 10px; }

  #ekors-product-popup .popup-content {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  #ekors-product-popup .popup-body { padding: 18px 16px 22px; }

  #ekors-product-popup .close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  /* keep the title clear of the close button */
  #ekors-product-popup #popupTitle {
    font-size: 20px;
    padding-right: 8px;
  }

  #ekors-product-popup .popup-type { margin-bottom: 14px; }

  #ekors-product-popup .tab-btn { padding: 9px 12px; font-size: 13px; }

  #ekors-product-popup .tab-content { font-size: 14px; }

  /* Specifications: a 2-column table is unreadable at this width, so each row
     becomes its own label/value card. */
  #ekors-product-popup .table-wrapper { overflow-x: visible; }

  #ekors-product-popup .spec-table,
  #ekors-product-popup .spec-table tbody,
  #ekors-product-popup .spec-table tr,
  #ekors-product-popup .spec-table td {
    display: block;
    width: 100%;
  }

  #ekors-product-popup .spec-table thead { display: none; }

  #ekors-product-popup .spec-table tr {
    background: #faf8f7 !important;
    border: 1px solid #f0eae8;
    border-left: 3px solid #8A3324;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  #ekors-product-popup .spec-table td {
    border: 0;
    padding: 0;
  }

  #ekors-product-popup .spec-table td:first-child {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #8A3324;
    margin-bottom: 3px;
  }

  #ekors-product-popup .spec-table td:last-child {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
  }

  #ekors-product-popup .popup-thumbs img { border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #ekors-product-popup .close-btn,
  #ekors-product-popup .tab-btn,
  #ekors-product-popup .popup-thumbs img { transition: none; }
  #ekors-product-popup .close-btn:hover { transform: none; }
}

@media (max-width: 576px) {
  .ekors-products-view .products-gallery {
    /* phones: let the single column fill the width (a lone full-width card
       is already centred); auto-fit + justify-content still centre 2-up rows */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
