/* Shared styles for the Shop pages (shop-mac/ipad/iphone/watch.html) */
:root {
  --s-blue:    #0066cc;
  --s-blue-h:  #0077ed;
  --s-text-1:  #1d1d1f;
  --s-text-2:  #6e6e73;
  --s-text-3:  #86868b;
  --s-bg:      #ffffff;
  --s-bg-soft: #f5f5f7;
  --s-border:        #d2d2d7;
  --s-border-light:  #e8e8ed;
  --s-new:     #b64400;
}

body { background: var(--s-bg-soft); }

.s-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--s-text-1);
  font-size: 14px;
  line-height: 1.5;
}
.s-page a { color: var(--s-blue); text-decoration: none; }
.s-page a:hover { text-decoration: underline; }

@keyframes s-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.s-fu { animation: s-fade-up 0.35s ease both; }

/* ---------- Header: title left, quick search right ---------- */
.s-head {
  padding: 48px 0 8px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.s-title {
  font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0;
}
.s-greet {
  font-size: 14px; color: var(--s-text-2);
  margin: 8px 0 0;
  min-height: 21px;
}

/* ---------- Model nav: built from the groups that exist ---------- */
.s-models {
  margin: 24px -40px 0;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.s-models::-webkit-scrollbar { display: none; }
.s-models-row {
  display: flex; gap: 6px;
  padding: 4px 0 8px;
  min-height: 112px;
}
.s-model {
  flex: 0 0 auto;
  width: 112px;
  padding: 10px 6px 8px;
  border: 0; border-radius: 14px;
  background: transparent;
  font: inherit;
  color: var(--s-text-1);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: background 0.15s, opacity 0.15s;
}
.s-model:hover { background: rgba(0,0,0,0.04); }
.s-model img {
  width: 84px; height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply; /* white photo backgrounds melt into the page */
}
.s-model-name {
  font-size: 12px; font-weight: 500; line-height: 1.25;
  text-align: center;
}
.s-model-new {
  display: block;
  font-size: 10px; font-weight: 600;
  color: var(--s-new);
  margin-top: 1px;
}
.s-model.is-active { background: var(--s-bg); box-shadow: 0 0 0 1px var(--s-border-light), 0 2px 8px rgba(0,0,0,0.05); }
.s-model-skel {
  flex: 0 0 112px; height: 100px; border-radius: 14px;
}

/* ---------- Filter status line ---------- */
.s-status {
  font-size: 13px; color: var(--s-text-2);
  margin: 6px 0 0;
  min-height: 20px;
}
.s-status button {
  border: 0; background: none; padding: 0; margin-left: 8px;
  font: inherit; color: var(--s-blue); cursor: pointer;
}
.s-status button:hover { text-decoration: underline; }

/* ---------- Section ---------- */
.s-section {
  margin-top: 48px;
  scroll-margin-top: 80px;
}
.s-section[hidden] { display: none; }
#sFamilies .s-section:first-child { margin-top: 28px; }
.s-section-head {
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
}
.s-section-title {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0;
}
.s-section-title span { color: var(--s-text-3); }
.s-section-link {
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Horizontal-scroll row ---------- */
.s-scroll-wrap { position: relative; }
.s-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -40px;
  padding: 0 40px;
  scroll-padding: 0 40px;
}
.s-scroll::-webkit-scrollbar { display: none; }
.s-row {
  display: flex;
  gap: 20px;
  padding: 6px 0 18px;
}

/* ---------- Product card ---------- */
.s-card {
  flex: 0 0 300px;
  background: var(--s-bg);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: var(--s-text-1) !important;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}
.s-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.11), 0 0 1px rgba(0,0,0,0.08);
  transform: scale(1.01);
}
.s-card[hidden] { display: none; }
.s-card-new {
  font-size: 12px; font-weight: 600;
  color: var(--s-new);
  margin-bottom: 2px;
  min-height: 18px;
}
.s-card-name {
  font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
  margin: 0;
}
.s-card-desc {
  font-size: 14px; color: var(--s-text-2);
  line-height: 1.4;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.s-card-img {
  margin: 18px 0 16px;
  height: 190px;
  display: flex; align-items: center; justify-content: center;
}
/* Explicit size + object-fit: Safari otherwise reuses the thumbnail decode size */
.s-card-img img {
  width: 100%; height: 190px;
  object-fit: contain;
}
.s-card-swatches {
  display: flex; gap: 6px; flex-wrap: wrap;
  min-height: 12px;
  margin-bottom: 12px;
}
.s-sw {
  width: 12px; height: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.s-sw[data-href] {
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.s-sw[data-href]:hover {
  transform: scale(1.25);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25), 0 0 0 2px #fff, 0 0 0 3px var(--s-blue);
}
.s-card-chips {
  font-size: 12px; color: var(--s-text-2);
  min-height: 18px;
}
.s-card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.s-card-price { font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 51px; }
.s-card-price .s-mo,
.s-card-price .s-eur { display: block; font-size: 12px; font-weight: 400; color: var(--s-text-2); }
.s-card-price .s-eur { color: var(--s-text-3); }
.s-card-price .s-mo:empty { display: none; }
.s-buy {
  flex-shrink: 0;
  font-size: 13px; font-weight: 500;
  color: #fff;
  background: var(--s-blue);
  border-radius: 980px;
  padding: 5px 14px;
  transition: background 0.15s;
}
.s-card:hover .s-buy { background: var(--s-blue-h); }

/* ---------- Accessory card ---------- */
.s-acc {
  flex: 0 0 210px;
  background: var(--s-bg);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: var(--s-text-1) !important;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}
.s-acc:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 0 1px rgba(0,0,0,0.08);
  transform: scale(1.01);
}
.s-acc-img {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.s-acc-img img { width: 100%; height: 130px; object-fit: contain; }
.s-acc-brand {
  font-size: 11px; color: var(--s-text-3);
  margin-bottom: 2px;
  min-height: 16px;
}
.s-acc-name {
  font-size: 14px; font-weight: 500;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-acc-price { margin-top: auto; font-size: 13px; color: var(--s-text-2); }

/* ---------- Skeleton ---------- */
.s-skel {
  flex: 0 0 300px;
  height: 440px;
  background: var(--s-bg);
  border-radius: 18px;
  padding: 26px 24px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
}
.s-skel.is-acc { flex: 0 0 210px; height: 250px; border-radius: 16px; padding: 18px; }
.s-skel-block {
  background: linear-gradient(90deg, #f0f0f3 25%, #e6e6ea 50%, #f0f0f3 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: s-shimmer 1.6s ease-in-out infinite;
}
.s-skel-line { height: 14px; margin-bottom: 8px; }
.s-skel-line.is-short { width: 45%; }
.s-skel-img-fill { flex: 1; margin-top: 12px; border-radius: 12px; }
@keyframes s-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Empty ---------- */
.s-empty {
  margin-top: 40px;
  padding: 32px;
  background: var(--s-bg);
  border-radius: 18px;
  text-align: center;
  color: var(--s-text-2);
  font-size: 14px;
}

/* ---------- Help strip ---------- */
.s-help {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--s-border-light);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--s-text-2);
}
.s-help strong { color: var(--s-text-1); font-weight: 600; }

/* ---------- Scroll-row arrow buttons ---------- */
.s-scroll-arr {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--s-border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--s-text-1);
  transition: opacity 0.18s, box-shadow 0.15s;
  opacity: 0; pointer-events: none;
  outline: none;
}
.s-scroll-arr:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.s-arr-l { left: -18px; }
.s-arr-r { right: -18px; }
.s-scroll-arr.is-on { opacity: 1; pointer-events: auto; }
@media (hover: none) { .s-scroll-arr { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .s-page { padding: 0 24px 80px; }
  .s-models { margin: 20px -24px 0; padding: 0 24px; }
  .s-scroll { margin: 0 -24px; padding: 0 24px; scroll-padding: 0 24px; }
  .s-arr-l { left: 4px; }
  .s-arr-r { right: 4px; }
  .s-title { font-size: 40px; }
}
@media (max-width: 600px) {
  .s-page { padding: 0 16px 64px; }
  .s-models { margin: 16px -16px 0; padding: 0 16px; }
  .s-scroll { margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .s-head { padding-top: 32px; }
  .s-title { font-size: 32px; }
  .s-model { width: 92px; }
  .s-model img { width: 72px; height: 48px; }
  .s-section { margin-top: 36px; }
  .s-section-title { font-size: 22px; }
  .s-card { flex: 0 0 260px; padding: 22px 20px 20px; }
  .s-card-img, .s-card-img img { height: 160px; }
  .s-skel { flex: 0 0 260px; height: 400px; }
  .s-acc, .s-skel.is-acc { flex: 0 0 170px; }
}
