/* Aimi directory theme. Shared components still inherit the selected accent and font. */
.theme-discover {
  --bg:#f7f8f6;
  --surface:#fff;
  --surface-2:#edf1ee;
  --text:#202e33;
  --muted:#56666b;
  --line:#d9e1dd;
  --header:#fff;
  --radius:10px;
  --max:1472px;
  --gutter:32px;
  background:var(--bg);
  color:var(--text);
}
.theme-discover .site-header { box-shadow:0 1px 2px #1b303908; }
.theme-discover .header-inner {
  max-width:calc(var(--max) + 2 * var(--gutter));
  min-height:61px;
  padding:9px var(--gutter);
  gap:26px;
}
.theme-discover .brand { font-size:22px; letter-spacing:-.035em; }
.theme-discover .header-search {
  max-width:390px;
  background:var(--bg);
  border-color:var(--line);
  border-radius:8px;
  box-shadow:none;
}
.theme-discover .header-search input { height:39px; padding:8px 12px; }
.theme-discover .header-search>button { padding:8px 12px; background:transparent; color:var(--muted); }
.theme-discover .header-search>button:hover { background:var(--accent-soft); color:var(--accent); }
.theme-discover .header-tools { gap:12px; }
.theme-discover .header-contact { min-height:39px; padding:7px 12px; border:0; }
.theme-discover .header-nav-row { border-top:1px solid var(--line); }
.theme-discover .desktop-nav { gap:24px; }
.theme-discover .desktop-nav a { min-height:40px; font-size:14px; padding:8px 2px; }
.theme-discover .desktop-nav a.active { color:var(--accent); }
.theme-discover .desktop-nav a.active:after { height:2px; }
.theme-discover .nav-caption { font-size:13px; }

.directory-home { padding-top:18px; }
.directory-banner {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(200px,270px);
  gap:24px 36px;
  align-items:center;
  border:1px solid var(--line);
  border-left:4px solid var(--accent);
  border-radius:var(--radius);
  padding:25px 30px;
  background-color:var(--accent-soft);
  background-image:linear-gradient(90deg,#ffffffbc 10%,#ffffff60 64%,#ffffff20),repeating-linear-gradient(90deg,transparent 0 47px,#647d7620 47px 48px);
}
.directory-kicker {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 6px;
  color:var(--accent-hover);
  font-size:12px;
  font-weight:700;
  letter-spacing:.065em;
  text-transform:uppercase;
}
.directory-kicker span { width:7px; height:7px; border-radius:2px; background:var(--accent); }
.directory-banner h1 {
  margin:0;
  font-size:clamp(31px,3.7vw,51px);
  font-weight:740;
  line-height:1.06;
  letter-spacing:-.04em;
  overflow-wrap:anywhere;
}
.directory-summary { max-width:62ch; margin:9px 0 0; font-size:15px; line-height:1.5; color:var(--muted); }
.directory-shortcuts {
  display:grid;
  padding:2px 12px;
  background:#ffffffd9;
  border:1px solid var(--line);
  border-radius:8px;
}
.directory-shortcuts a {
  min-height:40px;
  display:grid;
  grid-template-columns:16px minmax(0,1fr) 16px;
  align-items:center;
  gap:9px;
  font-size:13px;
  font-weight:650;
  line-height:1.3;
}
.directory-shortcuts a+a { border-top:1px solid var(--line); }
.directory-shortcuts a:hover { color:var(--accent); text-decoration:underline; }
.directory-shortcuts .icon { width:16px; height:16px; color:var(--accent); }

.directory-section { margin:24px 0; scroll-margin-top:18px; }
.directory-heading { align-items:center; margin:0 0 10px; gap:12px; }
.directory-heading h2 { min-width:0; gap:8px; font-size:clamp(21px,2.3vw,28px); letter-spacing:-.027em; line-height:1.15; overflow-wrap:anywhere; }
.directory-heading .text-link { padding-block:8px; font-size:13px; }
.directory-count {
  flex:none;
  border:1px solid var(--line);
  border-radius:5px;
  padding:2px 5px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  line-height:1.2;
}
.catalogue-tabs {
  display:flex;
  align-items:center;
  gap:6px;
  overflow:auto;
  margin:0 0 11px;
  padding:2px 2px 7px;
  scrollbar-width:thin;
}
.catalogue-tabs a {
  display:flex;
  align-items:center;
  gap:6px;
  flex:none;
  min-height:36px;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--surface);
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
}
.catalogue-tabs a:hover { border-color:var(--accent); color:var(--accent); }
.catalogue-tabs .catalogue-tab-all { background:var(--accent); border-color:var(--accent); color:#fff; }
.catalogue-tabs .catalogue-tab-all:hover { background:var(--accent-hover); color:#fff; }
.catalogue-tabs .icon { width:15px; height:15px; }

.theme-discover .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.theme-discover .product-grid .product-card {
  display:grid;
  grid-template-columns:minmax(0,38%) minmax(0,1fr);
  align-items:stretch;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  min-width:0;
}
.theme-discover .product-grid .product-image {
  height:100%;
  min-height:158px;
  aspect-ratio:auto;
  border:0;
  border-right:1px solid var(--line);
  border-radius:9px 0 0 9px;
  background:#edf0ed;
}
.theme-discover .product-grid .product-image img { position:absolute; inset:0; object-fit:contain; }
.theme-discover .product-badge { padding:2px 5px; top:5px; left:5px; right:auto; font-size:10px; }
.theme-discover .product-grid .product-card-body { min-width:0; padding:10px 10px 5px; }
.theme-discover .product-grid .product-category {
  color:var(--accent-hover);
  font-size:11px;
  font-weight:700;
  letter-spacing:0;
  text-transform:none;
  overflow-wrap:anywhere;
}
.theme-discover .product-grid .product-card h3 {
  display:block;
  margin-top:3px;
  overflow:visible;
  overflow-wrap:anywhere;
  font-size:14px;
  line-height:1.25;
}
.theme-discover .product-grid .product-card p { margin-top:4px; font-size:12px; line-height:1.4; }
.theme-discover .product-grid .product-card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0 6px;
  padding-top:4px;
}
.theme-discover .product-grid .product-card-bottom>span,
.theme-discover .product-grid .product-card-bottom a { font-size:12px; }
.theme-discover .product-grid .product-card-bottom>.card-price { font-size:14px; }
.theme-discover .product-grid .product-card-bottom a { min-height:30px; line-height:1.2; }
.theme-discover .product-grid .product-card-bottom a .icon { width:11px; height:11px; }
.theme-discover .product-grid .card-offer-link { min-height:36px; margin:0; font-size:12px; text-align:left; line-height:1.2; }
.theme-discover .product-grid .card-offer-link .icon { width:14px; height:14px; flex:none; }
.theme-discover .card-specs { display:flex; flex-wrap:wrap; gap:3px; margin-top:5px; }
.theme-discover .card-specs span {
  background:var(--surface-2);
  border-radius:4px;
  padding:2px 4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.directory-offer {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--accent-soft);
  padding:12px 14px;
}
.directory-offer-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:8px; background:#fff; color:var(--accent); }
.directory-offer h2,.directory-method h2 { font-size:16px; line-height:1.3; }
.directory-offer p,.directory-method p { margin-top:3px; color:var(--muted); font-size:13px; line-height:1.45; }
.directory-offer .button { font-size:13px; }
.directory-offer .button .icon { width:15px; height:15px; }

.theme-discover .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.theme-discover .article-grid .article-card {
  min-width:0;
  display:grid;
  grid-template-columns:clamp(108px,12vw,150px) minmax(0,1fr);
  gap:12px;
  padding:10px;
  border:1px solid var(--line);
  border-top:0;
  background:var(--surface);
}
.theme-discover .article-grid .article-card:nth-child(-n+2) { border-top:1px solid var(--line); border-radius:var(--radius) var(--radius) 0 0; }
.theme-discover .article-grid .article-card:nth-last-child(-n+2) { border-radius:0 0 var(--radius) var(--radius); }
.theme-discover .article-grid .article-card:only-child { border-radius:var(--radius); }
.theme-discover .article-grid .article-image { min-height:94px; height:100%; aspect-ratio:auto; border-radius:6px; }
.theme-discover .article-grid .article-image img { position:absolute; inset:0; object-fit:cover; }
.theme-discover .article-grid .article-image>span { bottom:4px; left:4px; max-width:calc(100% - 8px); padding:2px 4px; font-size:10px; line-height:1.2; }
.theme-discover .article-grid .article-card-body { min-width:0; padding:0; }
.theme-discover .article-grid .article-meta { gap:5px; font-size:11px; }
.theme-discover .article-grid .article-card h3 { margin-top:3px; font-size:15px; line-height:1.25; overflow-wrap:anywhere; }
.theme-discover .article-grid .article-card p { margin-top:4px; font-size:12px; line-height:1.4; -webkit-line-clamp:2; }
.theme-discover .article-grid .article-card .text-link { margin-top:4px; padding-block:3px; font-size:12px; }
.directory-method {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 0;
  border-top:1px solid var(--line);
  margin-top:20px;
}
.directory-method>.icon { flex:none; width:18px; height:18px; color:var(--accent); margin-top:1px; }

.theme-discover .article-lead-frame { background:var(--surface-2); }
.theme-discover .article-heading h1 { font-size:clamp(26px,4vw,46px); }
.theme-discover .site-footer { margin-top:28px; }
.theme-discover .page-intro { padding-block:14px; }
.theme-discover .footer-top { padding-block:24px; }

@media (max-width:1250px) {
  .theme-discover .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:980px) {
  .theme-discover { --gutter:21px; }
  .theme-discover .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:768px) {
  .theme-discover { --gutter:14px; }
  .theme-discover .header-inner { gap:9px; padding-block:6px; min-height:57px; }
  .theme-discover .brand { font-size:19px; gap:6px; }
  .theme-discover .header-tools { gap:4px; }
  .theme-discover .header-nav-row { border-top:0; }
  .directory-home { padding-top:11px; }
  .directory-banner { padding:18px 15px; gap:12px; }
  .directory-section { margin:18px 0; }
  .catalogue-tabs a { min-height:44px; }
}
@media (max-width:699px) {
  .directory-banner { grid-template-columns:minmax(0,1fr); }
  .directory-shortcuts { display:flex; flex-wrap:wrap; padding:3px 6px; gap:0 9px; }
  .directory-shortcuts a { display:inline-flex; gap:4px; min-height:42px; font-size:12px; }
  .directory-shortcuts a+a { border-top:0; }
  .directory-shortcuts a>.icon:last-child { display:none; }
  .directory-shortcuts .icon { width:13px; height:13px; }
  .theme-discover .article-grid { grid-template-columns:minmax(0,1fr); }
  .theme-discover .article-grid .article-card:nth-child(n) { border-top:0; border-radius:0; }
  .theme-discover .article-grid .article-card:first-child { border-top:1px solid var(--line); border-radius:var(--radius) var(--radius) 0 0; }
  .theme-discover .article-grid .article-card:last-child { border-radius:0 0 var(--radius) var(--radius); }
  .theme-discover .article-grid .article-card:only-child { border-radius:var(--radius); }
}
@media (max-width:560px) {
  .directory-heading h2 { display:block; }
  .directory-heading .directory-count { display:inline-block; vertical-align:middle; }
  .theme-discover .product-grid { gap:8px; }
  .theme-discover .product-grid .product-card { display:flex; }
  .theme-discover .product-grid .product-image {
    aspect-ratio:1.08;
    height:auto;
    min-height:0;
    border-right:0;
    border-bottom:1px solid var(--line);
    border-radius:9px 9px 0 0;
  }
  .theme-discover .product-grid .product-card-body { padding:7px 7px 3px; }
  .theme-discover .product-grid .product-card-bottom a { min-height:36px; }
  .theme-discover .product-grid .card-offer-link { min-height:44px; }
  .directory-offer { grid-template-columns:auto minmax(0,1fr); }
  .directory-offer .button { grid-column:2; justify-self:start; }
}
@media (prefers-reduced-motion:reduce) {
  .theme-discover .product-card:hover .product-image img { transform:none; }
}
