/* EvoCat for Mac (/mac/). Extends product.css; same dark, quiet look. */
.mac-name { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--text-primary) !important; font-weight: 650; font-size: 1.05rem !important; }
.mac-name img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 10px 30px #0009; }
.mac-header h1 { margin-top: 26px; }
.mac-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mac-actions .btn { margin: 0; min-height: 50px; white-space: normal; text-align: center; }
.mac-page .btn-outline:hover { border-color: #efb46f; }
.mac-header .small { margin-top: 18px; max-width: 560px; }
.mac-header .mac-merchant { margin-top: 6px; }
.mac-nowrap { white-space: nowrap; }

/* Illustration: a paper "desktop", a browser window and Nori. */
.mac-scene { margin: 0; }
.mac-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 12px 16px 11px 15px; background: #efe7d7; transform: rotate(-1.5deg); overflow: hidden; box-shadow: 0 25px 50px #0008; }
.mac-menubar { position: absolute; inset: 0 0 auto; height: 7%; display: flex; align-items: center; gap: 4%; padding-inline: 5%; background: #e2d8c4; border-bottom: 2px solid #2a2722; }
.mac-menubar span { width: 7%; height: 22%; border-radius: 4px; background: #b8ad98; }
.mac-menubar img { width: auto; height: 80%; margin-left: auto; }
.mac-browser { position: absolute; left: 8%; top: 16%; width: 62%; height: 66%; background: #fbf8f1; border: 2px solid #2a2722; border-radius: 10px 12px 9px 13px; overflow: hidden; }
.mac-tabs { display: flex; gap: 3%; padding: 3.5% 4% 0; height: 17%; background: #e9e1d0; border-bottom: 2px solid #2a2722; }
.mac-tab { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 42%; padding: 0 6%; border: 2px solid #2a2722; border-bottom: 0; border-radius: 8px 8px 0 0; background: #fbf8f1; color: #2a2722; font-size: clamp(10px, 1.15vw, 14px); font-weight: 650; }
.mac-tab:first-child { background: #ded5c2; color: #4a443b; }
.mac-tab b { font-weight: 700; }
.mac-page-lines { display: grid; gap: 9%; padding: 9% 9%; }
.mac-page-lines span { height: 9px; border-radius: 5px; background: #ddd4c1; }
.mac-page-lines span:nth-child(2) { width: 80%; }
.mac-page-lines span:nth-child(4) { width: 55%; }
.mac-scene-cat { position: absolute; right: 4%; bottom: 3%; width: 38%; height: auto; }
.mac-scene figcaption { margin-top: 18px; text-align: center; color: #aaaab8; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .mac-tab-closing { animation: mac-tab-close 6s ease-in-out infinite; transform-origin: left bottom; }
  @keyframes mac-tab-close { 0%, 45% { opacity: 1; transform: none; } 55%, 85% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: none; } }
}

/* The small details and the full cast. */
.mac-details { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 2rem; }
.mac-details li { padding: 14px 0; border-bottom: 1px solid var(--border-strong); margin: 0 !important; }
.mac-cats { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
.mac-cats li { margin: 0 !important; text-align: center; font-size: .95rem !important; line-height: 1.4 !important; color: #d8d3ca !important; }
.mac-cat { display: block; margin-bottom: 8px; padding: 8%; background: #efe7d7; border-radius: 8px 12px 7px 13px; transform: rotate(-1.5deg); }
.mac-cats li:nth-child(even) .mac-cat { transform: rotate(1.5deg); }
.mac-cat img { display: block; width: 100%; height: auto; }
.mac-iphone { border-top: 1px solid var(--border-strong); padding-top: 32px; }
.mac-iphone .btn { white-space: normal; }

@media (max-width: 700px) {
  .mac-name img { width: 48px; height: 48px; border-radius: 11px; }
  .mac-header h1 { margin-top: 20px; }
  .mac-scene { max-width: 420px; width: 100%; margin-inline: auto; }
  .mac-details { grid-template-columns: 1fr; }
  .mac-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
  .mac-cats li { font-size: .85rem !important; }
}
@media (max-width: 420px) {
  .mac-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mac-actions .btn { width: 100%; }
}
