﻿/* Office finish: calm surfaces, compact typography and consistent controls. */
.site-shell:has(.catalog-masthead), .shop-body { background: var(--mc-canvas); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.site-shell:has(.catalog-masthead)::before, .shop-body::before { opacity: .18; }
.catalog-masthead { padding: 28px 32px; border-radius: 16px; background: linear-gradient(115deg,#142033,#244668); box-shadow: var(--mc-shadow-sm); }
.catalog-masthead .catalog-title { font-family: inherit; font-size: clamp(1.8rem,3vw,2.7rem); letter-spacing: -.035em; }
.catalog-masthead .page-eyebrow { color: #b9d4ee; letter-spacing: .12em; }
.catalog-masthead .admin-subtitle { color: #dce7f2; }
.catalog-masthead .page-masthead-mark { font-size: .8rem; border: 1px solid #7591ad; padding: 9px 16px; border-radius: 8px; }
.new-filter-bar { padding: 22px; border: 1px solid var(--mc-line); border-radius: 16px; background: var(--mc-paper); box-shadow: var(--mc-shadow-sm); }
.filter-top-row { flex-wrap: wrap; gap: 12px; }
.new-filter-bar .filter-group { flex: 1 1 150px; min-width: 0; }
.general-search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.general-search-form input { flex: 1 1 260px; min-width: 0; min-height: 44px; }
.hidden-search-input.show-search { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--mc-line); }
.catalog-summary { gap: 16px; flex-wrap: wrap; color: var(--mc-muted); }
.site-shell .product-card, .shop-product-card { border: 1px solid var(--mc-line) !important; border-radius: 16px !important; box-shadow: var(--mc-shadow-sm) !important; }
.site-shell .product-card:hover, .shop-product-card:hover { border-color: #9cb7d3 !important; transform: translateY(-2px); }
.shop-header { background: var(--mc-paper); border-bottom: 1px solid var(--mc-line); box-shadow: var(--mc-shadow-sm); }
.shop-brand-name, .shopx-heading, .shopx-opening h1, .shopx-section-head h2, .shopx-simcha-head h2, .shop-product-title { font-family: inherit; letter-spacing: -.025em; }
.shopx-opening { padding: clamp(20px,3vw,36px); margin-block: 20px 28px; border: 1px solid var(--mc-line); border-radius: 20px; background: var(--mc-paper); box-shadow: var(--mc-shadow-sm); }
.shopx-opening h1 { font-size: clamp(1.8rem,3.5vw,3rem); color: var(--mc-ink); }
.shopx-kicker, .shopx-rail-title { color: var(--mc-blue); }
.shopx-quick, .shopx-rail-block, .shopx-dept, .shop-cart-item, .shop-cart-summary { background: var(--mc-paper); border-color: var(--mc-line); border-radius: 14px; box-shadow: var(--mc-shadow-sm); }
.shopx-dept { padding: 22px; border-top: 3px solid var(--mc-blue); }
.shopx-dept-name { font-family: inherit; font-size: 1.15rem; font-weight: 700; }
.shopx-dept:hover { border-color: var(--mc-blue); }
.shopx-toolbar { padding: 20px; border: 1px solid var(--mc-line); border-radius: 14px; background: var(--mc-paper); }
.shop-header-search input, .shopx-hero-search input, .shopx-toolbar-search input, .shop-select { border-radius: 9px; background: var(--mc-paper); color: var(--mc-ink); border-color: var(--mc-line); }
.shop-header-search button, .shopx-hero-search button, .shopx-toolbar-search button { border-radius: 9px; background: var(--primary); color: #fff; min-height: 44px; }
.shop-product-image-wrap { background: #f6f8fb; border-bottom: 1px solid var(--mc-line); }
.shop-product-title { line-height: 1.5; }
.shop-product-id { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--shop-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.shop-product-id-value { color: var(--primary); font: 800 .78rem/1 Inter, "Segoe UI", sans-serif; letter-spacing: .03em; text-decoration: none; }
a.shop-product-id-value:hover { text-decoration: underline; text-underline-offset: 3px; }
[dir=rtl] .shop-product-id { justify-content: flex-start; }
[dir=rtl] .shop-product-title { direction: rtl; unicode-bidi: plaintext; text-align: start; }
.shop-product-price { font-variant-numeric: tabular-nums; color: var(--mc-blue); }
.shop-footer { border-top: 1px solid var(--mc-line); color: var(--mc-muted); }
/* Logical placement follows the chosen language; identifiers keep their order. */
[dir=rtl] body { text-align: start; }
[dir=rtl] .filter-group label, [dir=rtl] .shop-product-body, [dir=rtl] .shopx-opening-text,
[dir=rtl] .shopx-filter, [dir=rtl] th, [dir=rtl] .choices__list--dropdown .choices__item { text-align: start; }
[dir=rtl] .shopx { grid-template-columns: 230px minmax(0,1fr); }
[dir=rtl] .shopx-dept-go { right: auto; left: 20px; transform: scaleX(-1); }
[dir=rtl] .shopx-dept { padding-inline-end: 48px; }
[dir=rtl] .shopx-simcha-go em { transform: scaleX(-1); }
[dir=rtl] .choices[data-type*=select-one]::after { right: auto; left: 11.5px; }
[dir=rtl] .choices[data-type*=select-one] .choices__inner { padding-right: 7.5px; padding-left: 24px; }
[dir=rtl] .choices__input { text-align: start; }
[data-vrp-identifier], .shop-product-price, .js-price, .shop-qty-input, input[type=tel], input[type=email], input[type=number] { direction: ltr; unicode-bidi: isolate; }
.catalog-label-link { color: var(--primary); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.shop-label-portal-copy { margin: 10px 0 18px; color: var(--shop-muted); line-height: 1.55; }
.shop-label-portal-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; text-decoration: none; }
.site-shell .vrp-translate, .shop-body .vrp-translate, .vrp-translate { right: auto; inset-inline-end: calc(14px + env(safe-area-inset-right,0px)); width: auto; min-width: 0; display: inline-flex; border-radius: 999px; }
@media(max-width: 760px) {
  .catalog-masthead { padding: 22px; }
  .new-filter-bar { padding: 16px; }
  .general-search-form input { flex-basis: 100%; }
  .shopx-toolbar { grid-template-columns: minmax(0,1fr); grid-template-areas: "crumbs" "heading" "count" "search"; gap: 8px; }
  .shopx-toolbar-search input { width: 100%; min-width: 0; flex: 1; }
  [dir=rtl] .shopx { grid-template-columns: minmax(0,1fr); }
}
@media(prefers-reduced-motion: reduce) { .site-shell .product-card:hover, .shop-product-card:hover { transform: none; } }

/* Shop masthead -----------------------------------------------------------
   catalog-office.css is the final stylesheet on shop pages. Keep the entire
   masthead treatment here so the old dark-header rules cannot leave white
   text on the newer white surface. */
.shop-body .shop-header {
  min-height: 0;
  padding: 0;
  color: var(--mc-ink);
  background: rgba(255, 255, 255, .97);
  border: 0;
  border-bottom: 1px solid var(--mc-line);
  box-shadow: 0 5px 20px rgba(20, 32, 51, .07);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.shop-body .shop-header-inner {
  width: min(100%, 1500px);
  min-height: 82px;
  padding: 14px clamp(20px, 3.2vw, 48px);
  grid-template-columns: minmax(235px, auto) minmax(280px, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
}

.shop-body .shop-brand {
  min-width: max-content;
  gap: 13px;
  color: var(--mc-ink);
}

.shop-body .shop-brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--mc-ink);
  border: 2px solid var(--mc-ink);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff8e8, #efd497);
  box-shadow: 0 3px 10px rgba(20, 32, 51, .12), inset 0 0 0 3px rgba(255, 255, 255, .7);
  font-size: 14px;
  letter-spacing: .04em;
}

.shop-body .shop-brand-name {
  color: var(--mc-ink);
  font: 750 1.08rem/1.1 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.018em;
}

.shop-body .shop-brand-lockup small {
  margin-top: 4px;
  color: var(--mc-muted);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .11em;
}

.shop-body .shop-header-search {
  width: min(100%, 640px);
  max-width: 640px;
  justify-self: center;
  gap: 8px;
}

.shop-body .shop-header-search input {
  min-height: 46px;
  padding: 11px 16px;
  color: var(--mc-ink);
  border: 1px solid #cbd7e5;
  border-radius: 11px;
  background: #f7f9fc;
  box-shadow: inset 0 1px 2px rgba(20, 32, 51, .035);
}

.shop-body .shop-header-search input::placeholder { color: #7a899d; }

.shop-body .shop-header-search input:focus {
  color: var(--mc-ink);
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ring);
}

.shop-body .shop-header-search button {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 11px;
  background: linear-gradient(180deg, #3478bd, var(--primary));
  box-shadow: 0 4px 10px rgba(37, 99, 169, .18);
}

.shop-body .shop-header-search button:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.shop-body .shop-header-links {
  justify-content: flex-end;
  gap: 4px;
}

.shop-body .shop-header-link {
  min-height: 42px;
  padding: 0 10px;
  color: #42536a;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .79rem;
  font-weight: 700;
  opacity: 1;
  white-space: nowrap;
}

.shop-body .shop-header-link:hover {
  color: var(--primary-strong);
  border-color: #d7e3ef;
  background: var(--primary-soft);
  text-decoration: none;
  transform: none;
}

.shop-body .shop-cart-link {
  min-height: 44px;
  margin-left: 4px;
  padding: 0 16px;
  color: var(--mc-ink);
  border: 1px solid #e4d2aa;
  border-radius: 11px;
  background: linear-gradient(180deg, #fffaf0, var(--mc-brass-pale));
  box-shadow: 0 3px 10px rgba(181, 138, 57, .12);
  white-space: nowrap;
}

.shop-body .shop-cart-link:hover {
  color: var(--mc-ink);
  border-color: var(--mc-brass);
  background: #fff7e4;
  transform: translateY(-1px);
}

.shop-body .shop-cart-badge {
  top: -8px;
  right: -7px;
  color: #fff;
  background: var(--mc-red);
  box-shadow: 0 2px 7px rgba(194, 65, 79, .28);
}

.shop-body .shop-header :is(a, button, input):focus-visible {
  outline: 3px solid rgba(37, 99, 169, .28);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .shop-body .shop-header-inner {
    grid-template-columns: minmax(220px, 1fr) auto;
    grid-template-areas: "brand links" "search search";
    row-gap: 12px;
  }
  .shop-body .shop-brand { grid-area: brand; }
  .shop-body .shop-header-links { grid-area: links; }
  .shop-body .shop-header-search {
    grid-area: search;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .shop-body .shop-header-inner {
    min-height: 0;
    padding: 12px 14px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .shop-body .shop-brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .shop-body .shop-brand-name { font-size: .98rem; }
  .shop-body .shop-brand-lockup small { display: none; }
  .shop-body .shop-header-link { min-height: 40px; padding: 0 8px; font-size: .75rem; }
  .shop-body .shop-header-link:nth-last-of-type(n+3) { display: none; }
  .shop-body .shop-cart-link { min-height: 42px; padding: 0 13px; }
}

@media (max-width: 470px) {
  .shop-body .shop-brand-lockup { display: none; }
  .shop-body .shop-header-inner { grid-template-columns: auto 1fr; }
  .shop-body .shop-header-links { min-width: 0; }
  .shop-body .shop-header-link { display: none; }
  .shop-body .shop-header-search button { padding: 0 16px; }
}
