/* Joris Express — Boutique e-commerce */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.je-nav__cart {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--je-ink, #0f172a) !important;
  background: rgba(15, 23, 42, 0.04);
}

.je-nav__cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.jx-shop,
.jx-pdp,
.jx-cart,
.jx-checkout,
.jx-thanks {
  padding: clamp(16px, 3vw, 28px) 0 clamp(32px, 6vw, 56px);
}

.jx-shop__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.jx-shop__hero--compact {
  align-items: center;
}

.jx-shop__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.jx-shop__hero h1 {
  margin: 0 0 4px !important;
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

.jx-shop__hero p {
  margin: 0;
  color: var(--je-mute, #64748b);
  max-width: 42ch;
  font-size: 0.9rem;
}

.jx-shop__search {
  display: flex;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.jx-shop__search input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  background: transparent;
}

.jx-shop__search button {
  border: 0;
  background: #0f172a;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
}

.jx-shop__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
}

.jx-filters {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 12px;
}

.jx-filters__block {
  margin-bottom: 12px;
}

.jx-filters__block h2 {
  margin: 0 0 6px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.jx-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: #334155;
}

.jx-chip input {
  display: none;
}

.jx-chip.is-active,
.jx-chip:hover {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.jx-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jx-price-row input,
.jx-filters select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.jx-filters__apply {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

.jx-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.jx-cats__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.jx-cats__chip:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.jx-cats__chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.jx-shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.jx-shop__count {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.jx-shop__sort-mobile {
  display: none;
}

.jx-shop__sort-mobile select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}

.jx-filters-toggle {
  display: none;
}

/* Grille dense type catalogue e-commerce */
.jx-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.jx-grid--4 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.jx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jx-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  color: inherit;
  transform: none;
}

.jx-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.jx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.jx-card:hover .jx-card__media img {
  transform: scale(1.03);
}

.jx-card__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 1.2rem;
}

.jx-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.jx-badge--mute {
  left: auto;
  right: 6px;
  background: #64748b;
}

.jx-card__body {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.jx-card__cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.jx-card__body h2 {
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.3;
  color: #0f172a !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-card__body p {
  display: none;
}

.jx-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.jx-card__price strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.jx-card__price s {
  color: #94a3b8;
  font-size: 0.75rem;
}

.jx-card__go {
  display: none;
}

.jx-swatches {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.jx-swatches span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.jx-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.jx-pagination a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.jx-empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
}

.jx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #64748b;
}

.jx-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.jx-pdp__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.jx-pdp__main-img {
  border-radius: 22px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1;
}

.jx-pdp__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jx-pdp__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.jx-pdp__thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
}

.jx-pdp__thumbs button.is-active {
  border-color: #2563eb;
}

.jx-pdp__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jx-pdp__cat {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.jx-pdp__info h1 {
  margin: 0 0 10px !important;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

.jx-pdp__lead {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 1.05rem;
}

.jx-pdp__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.jx-pdp__price strong {
  font-size: 1.8rem;
}

.jx-pdp__price s {
  color: #94a3b8;
}

.jx-opt {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.jx-opt legend {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.jx-opt__colors,
.jx-opt__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jx-color {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
  background: var(--swatch);
  cursor: pointer;
}

.jx-color.is-active {
  box-shadow: 0 0 0 2px #2563eb;
}

.jx-size {
  min-width: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.jx-size.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.jx-size.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.jx-stock {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.92rem;
}

.jx-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.jx-qty input {
  width: 88px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: inherit;
}

.jx-add-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px !important;
}

.jx-pdp__desc {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.jx-pdp__desc h2 {
  margin: 0 0 10px !important;
  font-size: 1.1rem !important;
}

.jx-related {
  margin-top: 56px;
}

.jx-related h2 {
  margin: 0 0 18px !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
}

.jx-cart__layout,
.jx-checkout__layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.jx-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jx-cart__row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 12px;
}

.jx-cart__thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}

.jx-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jx-cart__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jx-cart__meta a {
  color: inherit;
  text-decoration: none;
}

.jx-cart__meta span {
  color: #64748b;
  font-size: 0.9rem;
}

.jx-cart__qty-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jx-cart__qty-form input {
  width: 64px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.jx-cart__remove {
  border: 0;
  background: #fef2f2;
  color: #dc2626;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.jx-cart__line-total {
  font-weight: 800;
  min-width: 72px;
  text-align: right;
}

.jx-cart__summary {
  background: #0f172a;
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  position: sticky;
  top: 96px;
}

.jx-cart__summary h2 {
  margin: 0 0 16px !important;
  font-size: 1.15rem !important;
  color: #fff !important;
}

.jx-cart__sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.jx-cart__note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin: 0 0 16px;
}

.jx-cart__summary .je-btn {
  width: 100%;
  justify-content: center;
}

.jx-checkout__form {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.jx-checkout__form h2 {
  margin: 0 0 16px !important;
  font-size: 1.2rem !important;
}

.jx-field {
  margin-bottom: 14px;
}

.jx-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.jx-field input,
.jx-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: inherit;
}

.jx-field.has-error input,
.jx-field.has-error textarea {
  border-color: #dc2626;
}

.jx-error {
  color: #dc2626;
  font-size: 0.85rem;
}

.jx-checkout__mini {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.jx-checkout__mini li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.jx-thanks__card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.jx-thanks__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.jx-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.jx-thanks .jx-checkout__mini li,
.jx-thanks .jx-cart__sum-row {
  text-align: left;
  color: #0f172a;
  border-color: #e2e8f0;
}

@media (max-width: 1200px) {
  .jx-grid,
  .jx-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .jx-grid,
  .jx-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .jx-shop__layout,
  .jx-pdp__grid,
  .jx-cart__layout,
  .jx-checkout__layout {
    grid-template-columns: 1fr;
  }

  .jx-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
  }

  .jx-filters {
    position: static;
    display: none;
    margin-bottom: 10px;
    padding: 10px;
  }

  .jx-shop__layout.is-filters-open .jx-filters {
    display: block;
  }

  .jx-filters .jx-filters__block:has(select[name="tri"]) {
    display: none;
  }

  .jx-shop__sort-mobile {
    display: block;
  }

  .jx-cart__row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "thumb meta"
      "qty total";
  }

  .jx-cart__thumb { grid-area: thumb; }
  .jx-cart__meta { grid-area: meta; }
  .jx-cart__qty-form { grid-area: qty; }
  .jx-cart__line-total { grid-area: total; }
}

@media (max-width: 640px) {
  .jx-grid,
  .jx-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 560px) {

  .jx-card__body {
    padding: 7px 8px 9px;
  }

  .jx-card__body h2 {
    font-size: 0.78rem !important;
  }

  .jx-card__price strong {
    font-size: 0.88rem;
  }

  .jx-shop__hero p {
    display: none;
  }

  .jx-cart__qty-form {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .jx-shop .je-container,
  .jx-pdp .je-container,
  .jx-cart .je-container,
  .jx-checkout .je-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
