﻿/* ============================================================
   Home Page — Full Styles
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --h-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --h-shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --h-radius:    10px;
}

/* ── Hero Banner ────────────────────────────────────────────── */
.home-hero {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--h-radius);
  overflow: hidden;
  box-shadow: var(--h-shadow-md);
  line-height: 0;
}

.home-banner-carousel {
  opacity: 1;
}

.home-banner-slide {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.home-banner-img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

.home-hero .owl-slide-animated .home-banner-img {
  transform: scale(1.04);
}

/* Banner nav arrows */
.home-hero .owl-buttons div,
.home-hero .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(4px);
  color: #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s, color .15s;
  /* reset button element defaults */
  border: none;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.home-hero .owl-buttons div:hover,
.home-hero .owl-nav button:hover {
  background: rgba(255,255,255,1);
  color: var(--h-accent);
}

.home-hero .owl-prev,
.home-hero .owl-nav .owl-prev { left: 12px; }
.home-hero .owl-next,
.home-hero .owl-nav .owl-next { right: 12px; }

/* Always show banner nav — override OWL's mobile hide */
.home-hero .owl-nav,
.home-hero .owl-buttons { display: block !important; }

/* Banner pagination dots */
.home-hero .owl-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 1;
}

.home-hero .owl-page { display: inline-block; margin: 0 3px; }

.home-hero .owl-page span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s, transform .2s;
}

.home-hero .owl-page.active span {
  background: #fff;
  transform: scale(1.3);
}

/* ── Quick Access ───────────────────────────────────────────── */
.home-quick-access {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  box-shadow: var(--h-shadow-sm);
  padding: 18px 20px 20px;
  margin-bottom: 20px;
}

.home-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--h-muted);
  margin: 0 0 14px;
}

.hqa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* ── Quick Access Card ──────────────────────────────────────── */
.hqa-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: box-shadow .2s, border-color .2s, background .15s;
}

.hqa-card:hover {
  background: var(--h-surface);
  box-shadow: var(--h-shadow-md);
  border-color: var(--c-primary-border);
}

.hqa-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hqa-icon-upload {
  background: var(--c-blue-lt);
  color: var(--c-blue);
}

.hqa-icon-stmt {
  background: var(--c-blue-lt);
  color: var(--c-blue);
}

.hqa-icon-catalogue {
  background: var(--c-blue-lt);
  color: var(--c-blue);
}

.hqa-card-body {
  flex: 1;
  min-width: 0;
}

.hqa-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--h-text);
  margin: 0 0 3px;
  line-height: 1.3;
}

.hqa-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: #eff6ff;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  font-family: serif;
  line-height: 1;
  transition: box-shadow .15s;
}

.hqa-info-btn:hover {
  box-shadow: 0 2px 8px rgba(59,130,246,.35);
}

.hqa-card-desc {
  font-size: 0.73rem;
  color: var(--h-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.hqa-card-note {
  font-size: 0.7rem;
  color: var(--h-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

.hqa-note-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--h-muted);
  text-decoration: none;
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  border-radius: 5px;
  padding: 4px 9px 4px 7px;
  transition: border-color .15s, color .15s, background .15s;
}

.hqa-note-link:visited {
  color: var(--h-muted);
  text-decoration: none;
}

.hqa-note-link:hover {
  color: var(--h-text);
  border-color: var(--c-primary-scroll);
  background: var(--h-surface);
  text-decoration: none;
}

/* File upload row */
.hqa-file-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.hqa-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--h-muted);
  cursor: pointer;
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
  user-select: none;
}

.hqa-file-btn:hover {
  border-color: var(--h-accent);
  color: var(--h-accent);
}

.hqa-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Buttons */
.hqa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.hqa-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hqa-btn-primary {
  background: var(--h-accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(61,61,151,.22);
}

.hqa-btn-primary:hover:not(:disabled) {
  background: var(--h-accent-dark);
  color: #fff;
}

.hqa-btn-secondary {
  background: var(--h-surface);
  color: var(--h-accent);
  border: 1.5px solid var(--h-accent);
}

.hqa-btn-secondary:hover:not(:disabled) {
  background: var(--h-accent);
  color: #fff;
}

/* ── Carousel Sections ──────────────────────────────────────── */
.home-carousel-wrap {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  box-shadow: var(--h-shadow-sm);
  padding: 16px 20px 24px;
  margin-bottom: 20px;
  position: relative;
}

.home-carousel-wrap .pl-toolbar {
  margin-bottom: 14px;
}

.home-carousel-new-arrivals {
  border-color: #a3cfbb;
  background: #f6fdf9;
}

.home-new-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #0f5132;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
  margin-left: 6px;
}

/* ── Public (logged-out) vertical carousel ───────────────────── */

.home-owl-carousel-pub .owl-item {
  display: flex;
  align-items: stretch;
}

.home-owl-carousel-pub .owl-item .pl-card-pub-vert {
  margin: 0 6px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  background: var(--pl-bg, #fff);
  border: 1px solid var(--pl-border, #e5e7eb);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s;
}

.home-owl-carousel-pub .owl-item .pl-card-pub-vert:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Image: square, full width */
.home-owl-carousel-pub .pl-card-pub-vert .pl-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f9fa;
  border-bottom: 1px solid var(--pl-border, #e5e7eb);
  flex-shrink: 0;
}

.home-owl-carousel-pub .pl-card-pub-vert .pl-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Body: name + login msg, tight spacing */
.home-owl-carousel-pub .pl-card-pub-vert .pl-card-body {
  flex: 1 1 auto;
  padding: 8px 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

/* Product name: 2 lines max, no extra margin */
.home-owl-carousel-pub .pl-card-name-vert {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  height: calc(2 * 12px * 1.35);
  min-height: calc(2 * 12px * 1.35);
  color: var(--c-text, #1a1a1a);
  margin: 0;
}

/* Login message: sits flush under name */
.home-owl-carousel-pub .pl-pub-login-msg {
  font-size: 10.5px;
  color: #6c757d;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-owl-carousel-pub .pl-pub-login-msg .fa {
  font-size: 9px;
  margin-right: 2px;
}

/* Footer: view-product button */
.home-owl-carousel-pub .pl-card-pub-vert .pl-card-footer {
  padding: 5px 8px 8px;
  border-top: 1px solid var(--pl-border, #e5e7eb);
  flex-shrink: 0;
}

.home-owl-carousel-pub .pl-card-pub-vert .web-view-product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .4rem .5rem;
  font-size: .78rem;
  font-weight: 600;
  background: transparent;
  color: var(--c-primary) !important;
  border: 1.5px solid var(--c-primary);
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}

.home-owl-carousel-pub .pl-card-pub-vert:hover .web-view-product-btn {
  background: var(--c-primary);
  color: #fff !important;
}

/* ── Carousel card: horizontal layout ───────────────────────── */

/* All items in one OWL slide stretch to the same height */
.home-owl-carousel .owl-item {
  display: flex;
  align-items: stretch;
}

/* Card becomes a 2-col grid: image left, content right */
.home-owl-carousel .owl-item .pl-card {
  margin: 0 6px;
  flex: 1 1 auto;          /* fill the equalised owl-item height */
  min-height: 190px;
  display: grid;
  grid-template-columns: 48% 52%;
  grid-template-rows: 1fr auto;
  /* rows: [body content] / [footer] */
}

/* Image occupies left column, both rows — stretches to full card height */
.home-owl-carousel .pl-card-img-wrap {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: unset;   /* override base 1/1 so height follows the grid rows */
  align-self: stretch;   /* fill the full card height */
  border-bottom: none;
  border-right: none; /* divider handled by box-shadow on right cells */
}



/* Body occupies right column, first row — grows to fill */
.home-owl-carousel .pl-card-body {
  grid-column: 2;
  grid-row: 1;
  padding: 7px 8px 4px;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  /* full-height divider: inset shadow on left edge */
  box-shadow: inset 1px 0 0 var(--pl-border);
}

/* Footer occupies right column, second row */
.home-owl-carousel .pl-card-footer {
  grid-column: 2;
  grid-row: 2;
  padding: 5px 8px 8px;
  border-top: 1px solid var(--pl-border);
  border-left: none;
  /* continues the full-height divider */
  box-shadow: inset 1px 0 0 var(--pl-border);
}

/* ── Content tweaks for narrower right column ─────────────── */

/* Hide model/nappi codes — not enough room */
.home-owl-carousel .pl-card-codes {
  display: none;
}

/* Show badges small */
.home-owl-carousel .pl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.home-owl-carousel .pl-badge {
  font-size: 9px;
  padding: 1px 4px;
}

/* Product name: always exactly 2 lines — same reserved height on every card */
.home-owl-carousel a.pl-card-name {
  font-size: 11px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  height: calc(2 * 11px * 1.4); /* 30.8 px — fixed, never grows or shrinks */
  min-height: calc(2 * 11px * 1.4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Promo deal tag */
.home-owl-carousel .pl-card-promo-deal {
  font-size: 10px;
  padding: 2px 6px;
}

/* Stock line */
.home-owl-carousel .pl-card-stock {
  font-size: 9.5px;
}

/* Price row */
.home-owl-carousel .pl-price-special,
.home-owl-carousel .pl-price-regular {
  font-size: 13px;
}

.home-owl-carousel .pl-price-old {
  font-size: 10px;
}

/* incl/excl label */
.home-owl-carousel .pl-price-label {
  font-size: 9px;
  margin-left: 0;
  align-self: flex-end;
}

/* Type badge overlaying image — keep small */
.home-owl-carousel .pl-card-type-badge {
  font-size: 9px;
  padding: 2px 5px;
  top: 5px;
  left: 5px;
}

.home-owl-carousel .pl-card-saving-badge {
  font-size: 9px;
  padding: 2px 5px;
  top: 5px;
  right: 5px;
}

/* ── Footer action rows ─────────────────────────────────────── */

/*
  2-col grid: [pill (input+arrows) — 1fr] [fav — auto]
              [cart button — spans both cols          ]

  Arrows sit in the same col as input (col 1) and overlay the right edge
  via justify-self:end. Input has border-right:none so the two elements
  look like a single merged pill.
*/
.home-owl-carousel .pl-qty-group {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 5px;
  row-gap: 5px;
  align-items: stretch;
}

/* Input — left portion of merged pill (col 1, row 1) */
.home-owl-carousel .pl-qty-input {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  box-sizing: border-box;
  height: 30px;
  font-size: 12px;
  text-align: center;
  border-radius: 5px 0 0 5px;
  border-right: none;
  margin: 0 !important;
}

/* Arrows — right portion of pill, overlaid at right edge of col 1 */
.home-owl-carousel .pl-qty-arrows {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: stretch;
  width: 22px;
  flex-shrink: 0;
  border: 1px solid var(--pl-border);
  border-left: none;
  border-radius: 0 5px 5px 0;
  overflow: hidden;
  background: var(--pl-bg);
  position: relative;
  z-index: 1;
}

.home-owl-carousel .pl-qty-arrow {
  flex: 1;
  width: 22px;
  height: auto;
  font-size: 7px;
  border: none;
  border-radius: 0;
}

.home-owl-carousel .pl-qty-arrow + .pl-qty-arrow {
  border-top: 1px solid var(--pl-border);
}

.pl-qty-input {
  margin-left: unset !important;
  width: unset !important;
}

/* Fav button — col 2, row 1 */
.home-owl-carousel .pl-btn-fav {
  grid-column: 2;
  grid-row: 1;
  width: 30px;
  height: 30px;
  font-size: 11px;
  align-self: stretch;
  margin: 0;
}

/* Cart button — spans full width, row 2 */
.home-owl-carousel .pl-btn-cart {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 30px;
  font-size: 11px;
  justify-content: center;
  margin: 0 !important;
}

/* Carousel nav buttons */
.home-owl-carousel .owl-buttons div,
.home-owl-carousel .owl-nav button {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(61,61,151,.88);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 100;
  transition: background .15s;
  /* reset button element defaults */
  border: none;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.home-owl-carousel .owl-buttons div:hover,
.home-owl-carousel .owl-nav button:hover {
  background: var(--h-accent-dark);
}

.home-owl-carousel .owl-prev,
.home-owl-carousel .owl-nav .owl-prev { left: -4px; }
.home-owl-carousel .owl-next,
.home-owl-carousel .owl-nav .owl-next { right: -4px; }

/* Always show product carousel nav — override OWL's mobile hide */
.home-owl-carousel .owl-nav,
.home-owl-carousel .owl-buttons { display: block !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-owl-carousel .owl-item .pl-card { min-height: 170px; }
}

@media (max-width: 1115px) {
  .hqa-grid { grid-template-columns: 1fr; }
  .home-carousel-wrap,
  .home-quick-access { padding: 14px 14px 18px; }
  .home-owl-carousel .owl-item .pl-card { min-height: 155px; }
  .home-owl-carousel .pl-qty-input  { height: 28px; font-size: 11px; }
  .home-owl-carousel .pl-qty-arrows { width: 20px; }
  .home-owl-carousel .pl-qty-arrow  { width: 20px; font-size: 6.5px; }
  .home-owl-carousel .pl-btn-cart   { height: 28px; font-size: 10px; }
  .home-owl-carousel .pl-btn-fav    { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .home-owl-carousel .owl-item .pl-card {
    min-height: 140px;
    grid-template-columns: 44% 56%;
  }
}

@media (max-width: 350px) {
  .hqa-card{
    width: 250px;
     margin: 0 auto;
  }

  #homeStmtText{
    font-size: 9px;
  }
}

/* ============================================================
   CSV Import Modal
   ============================================================ */

/* ── Overlay ────────────────────────────────────────────────── */
.csv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 16px;
  backdrop-filter: blur(3px);
  animation: csvFadeIn .18s ease;
  overflow-y: auto;
  overscroll-behavior: contain;        /* prevent scroll from leaking to body */
  -webkit-overflow-scrolling: touch;   /* smooth momentum scroll on iOS        */
}

.csv-modal-overlay[hidden] {
  display: none !important;
}

@keyframes csvFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Dialog ─────────────────────────────────────────────────── */
.csv-modal-dialog {
  background: var(--h-surface, #fff);
  border: 1px solid var(--h-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .08);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: csvSlideIn .2s ease;
  margin-top: 40px;
}

@keyframes csvSlideIn {
  from { transform: translateY(-18px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Header ─────────────────────────────────────────────────── */
.csv-modal-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--h-border, #e5e7eb);
  position: sticky;
  top: 0;
  background: var(--h-surface, #fff);
  border-radius: 14px 14px 0 0;
  z-index: 1;
}

.csv-modal-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-blue-lt, #eff6ff);
  color: var(--c-blue, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.csv-modal-header-text {
  flex: 1;
  min-width: 0;
}

.csv-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--h-text, #111);
  margin: 0 0 2px;
  line-height: 1.3;
}

.csv-modal-subtitle {
  font-size: 0.73rem;
  color: var(--h-muted, #6b7280);
  margin: 0;
  line-height: 1.4;
}

.csv-modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--h-border, #e5e7eb);
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  color: var(--h-muted, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0;
}

.csv-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ── Body ───────────────────────────────────────────────────── */
.csv-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Format Section ─────────────────────────────────────────── */
.csv-format-section {
  padding-bottom: 20px;
}

.csv-format-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--h-muted, #6b7280);
  margin: 0 0 6px;
}

.csv-format-desc {
  font-size: 0.78rem;
  color: var(--h-text, #111);
  margin: 0 0 12px;
  line-height: 1.6;
}

.csv-format-desc strong {
  color: var(--h-text, #111);
}

/* ── Spreadsheet Illustration ───────────────────────────────── */
.csv-sheet {
  border: 1px solid var(--h-border, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11.5px;
  margin: 0 0 14px;
  background: var(--h-bg, #fff);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* Column letter row (A B C D E) */
.csv-sheet-colrow {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 2fr 0.6fr;
  background: #f3f4f6;
  border-bottom: 1px solid var(--h-border, #e5e7eb);
}

.csv-col-alpha {
  padding: 5px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 10.5px;
  color: #555;
  border-right: 1px solid var(--h-border, #e5e7eb);
  letter-spacing: 0.03em;
}

.csv-col-alpha:last-child,
.csv-col-alpha--qty {
  border-right: none;
}

/* Data rows */
.csv-sheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 2fr 0.6fr;
  border-bottom: 1px solid #f0f0f0;
}

.csv-sheet-row:last-child {
  border-bottom: none;
}

.csv-cell {
  padding: 6px 8px;
  border-right: 1px solid #f0f0f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-size: 11px;
}

.csv-cell:last-child {
  border-right: none;
}

.csv-cell--qty {
  text-align: center;
  font-weight: 600;
}

.csv-cell--blank {
  color: #d1d5db;
}

.csv-cell--blank::after {
  content: '—';
  font-size: 10px;
}

/* Label row (field name row) */
.csv-sheet-row--labels .csv-cell {
  font-weight: 700;
  font-size: 10.5px;
  color: var(--c-blue, #2563eb);
  background: var(--c-blue-lt, #eff6ff);
  border-bottom: 2px solid var(--h-border, #e5e7eb);
  padding: 7px 8px;
}

/* Alternating row tint */
.csv-sheet-row--alt {
  background: #fafafa;
}

/* ── Format Notes ───────────────────────────────────────────── */
.csv-format-notes {
  margin: 0 0 16px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: disc;
}

.csv-format-notes li {
  font-size: 0.74rem;
  color: var(--h-muted, #6b7280);
  line-height: 1.55;
}

.csv-format-notes li strong {
  color: var(--h-text, #111);
  font-weight: 600;
}

.csv-format-notes li em {
  font-style: italic;
}

/* ── Sample Download Link ───────────────────────────────────── */
.csv-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--h-muted, #6b7280);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: color .15s, text-decoration-color .15s;
  line-height: 1.4;
}

.csv-sample-btn:hover {
  color: var(--h-accent, #3d3d97);
  text-decoration-color: var(--h-accent, #3d3d97);
}

/* ── Upload Section ─────────────────────────────────────────── */
.csv-upload-section {
  border-top: 1px solid var(--h-border, #e5e7eb);
  padding-top: 18px;
}

/* ── Modal Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .csv-modal-dialog {
    border-radius: 12px;
    max-height: 95vh;
  }

  .csv-modal-header {
    padding: 14px 14px 12px;
  }

  .csv-modal-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .csv-modal-title {
    font-size: 0.9rem;
  }

  .csv-modal-body {
    padding: 14px;
  }

  .csv-sheet {
    font-size: 10px;
  }

  .csv-sheet-colrow,
  .csv-sheet-row {
    grid-template-columns: 0.9fr 0.9fr 1.2fr 1.8fr 0.55fr;
  }

  .csv-cell,
  .csv-col-alpha {
    padding: 5px 5px;
  }
}

@media (max-width: 400px) {
  .csv-modal-overlay {
    padding: 8px;
  }

  .csv-sheet-colrow,
  .csv-sheet-row {
    grid-template-columns: 0.8fr 0.8fr 1.1fr 1.6fr 0.5fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Home Feature Cards
   ═══════════════════════════════════════════════════════════ */
.home-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.hfc-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  min-height: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.hfc-card--promo    { background: #3b3fa8; color: #fff; }
.hfc-card--delivery { background: #f0f4ff; color: #1e2a4a; }
.hfc-card--support  { background: #f0faf4; color: #1e2a4a; }

.hfc-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
  flex: 1 1 55%;
}

.hfc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.hfc-card--promo    .hfc-icon { background: rgba(255,255,255,.15); color: #fff; }
.hfc-card--delivery .hfc-icon { background: #dce6ff; color: #3b3fa8; }
.hfc-card--support  .hfc-icon { background: #d1f0e0; color: #2e7d52; }

.hfc-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.hfc-card--promo    .hfc-title { color: #fff; }
.hfc-card--delivery .hfc-title,
.hfc-card--support  .hfc-title { color: #1e2a4a; }

.hfc-desc {
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.5;
}
.hfc-card--promo    .hfc-desc { color: rgba(255,255,255,.85); }
.hfc-card--delivery .hfc-desc,
.hfc-card--support  .hfc-desc { color: #4a5568; }

.hfc-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background .15s, color .15s;
}
.hfc-card--promo    .hfc-btn { background: #fff; color: #3b3fa8; }
.hfc-card--promo    .hfc-btn:hover { background: #e8eaff; color: #3b3fa8; text-decoration: none; }
.hfc-card--delivery .hfc-btn { background: #fff; color: #3b3fa8; border: 1px solid #c8d5f5; }
.hfc-card--delivery .hfc-btn:hover { background: #e8eeff; text-decoration: none; }
.hfc-card--support  .hfc-btn { background: #fff; color: #2e7d52; border: 1px solid #b5dfc8; }
.hfc-card--support  .hfc-btn:hover { background: #e4f7ed; text-decoration: none; }

.hfc-card-img {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hfc-card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

@media (max-width: 860px) {
  .home-feature-cards { grid-template-columns: 1fr; }
  .hfc-card-img { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Trust badge strip  (.web-trust-strip)
   ═══════════════════════════════════════════════════════════ */
.web-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.web-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid var(--c-border);
}
.web-trust-item:last-child { border-right: none; }

.web-trust-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-primary-lt);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.web-trust-text strong {
  font-size: 0.8375rem;
  font-weight: 700;
  color: var(--c-text-ink);
  line-height: 1.2;
}
.web-trust-text span {
  font-size: 0.775rem;
  color: var(--c-text-muted);
  line-height: 1.3;
}

@media (max-width: 860px) {
  .web-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .web-trust-item:nth-child(2) { border-right: none; }
  .web-trust-item:nth-child(1),
  .web-trust-item:nth-child(2) { border-bottom: 1px solid var(--c-border); }
}
@media (max-width: 480px) {
  .web-trust-strip { grid-template-columns: 1fr; }
  .web-trust-item { border-right: none; border-bottom: 1px solid var(--c-border); }
  .web-trust-item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   Supplier Spotlight  (.web-supplier-strip)
   ═══════════════════════════════════════════════════════════ */
.web-supplier-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.web-supplier-label {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 18px;
  background: var(--c-primary-dark)
  border-right: none;
}

.web-supplier-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.web-supplier-sub {
  font-size: 0.775rem;
  color: rgba(255,255,255,.78);
  margin: 0;
  line-height: 1.4;
}

.web-supplier-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #fff;
  color: var(--c-primary);
  border-radius: 4px;
  font-size: 0.775rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: opacity .15s;
}
.web-supplier-btn:hover { opacity: .85; text-decoration: none; color: var(--c-primary); }

.web-supplier-track-wrap {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  display: flex;
  align-items: center;
}

.web-supplier-carousel { width: 100%; }

/* Continuous marquee */
.web-supplier-marquee {
  width: 100%;
  overflow: hidden;
}

.web-supplier-track {
  display: flex;
  width: max-content;
  animation: web-supplier-scroll 40s linear infinite;
}
.web-supplier-marquee:hover .web-supplier-track { animation-play-state: paused; }

@keyframes web-supplier-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .web-supplier-track { animation: none; }
}

.web-supplier-slide {
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  height: 72px;
}

.web-supplier-slide img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .2s;
}
.web-supplier-slide:hover img { filter: grayscale(0%); }

@media (max-width: 640px) {
  .web-supplier-strip { flex-direction: column; }
  .web-supplier-label {padding:20px;justify-content:unset;flex:unset;}
}
