/* ARRØ PDP Builder — product option boxes (summary card, flavor card, icons with text, custom accordions)
 * and the extra template sections (banner, multicolumn, comparison table, card slider, featured icons,
 * logo slider, text block, custom HTML). Markup: inc/arro-pdp-builder.php */

.apb-sec-wrap { width: 100%; box-sizing: border-box; }
.apb-h2 { margin: 0 0 24px; text-align: center; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.apb-center { text-align: center; margin-top: 24px; }
.apb-btn { display: inline-block; padding: 14px 32px; border: 1px solid #000; border-radius: 40px; background: #000; color: #fff; font-weight: 700; text-decoration: none; line-height: 1.2; }
.apb-btn:hover { opacity: .85; color: inherit; }
[class^="apb-"].osr-section, section.apb-banner, section.apb-multi, section.apb-table, section.apb-cards, section.apb-icons, section.apb-text, section.apb-html { max-width: 1200px; margin: 0 auto; padding: 48px 20px; box-sizing: border-box; }

/* ── product option boxes ── */
.apb-summary { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #e3e3e3; border-radius: 16px; background: #fff; }
.apb-summary__rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.apb-stars { color: #00a1e9; letter-spacing: 2px; font-size: 16px; }
.apb-summary__count { color: #777; }
.apb-summary__title { margin: 8px 0 2px; font-size: 20px; line-height: 1.25; }
.apb-summary__sub { color: #666; font-size: 14px; }
.apb-summary__desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #333; }
.apb-summary__desc p { margin: 0 0 6px; }
.apb-summary__feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee; }
.apb-summary__feat { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; }
.apb-summary__feat img { flex: 0 0 auto; }

.apb-flavor { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px; border-radius: 16px; background: #f6f6f6; transition: background .25s; }
.apb-flavor__img { flex: 0 0 84px; }
.apb-flavor__img img { width: 84px; height: 84px; object-fit: contain; display: block; }
.apb-flavor__title { display: block; font-size: 16px; line-height: 1.3; }
.apb-flavor__desc { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #444; }

.apb-iwt { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 0; }
.apb-iwt li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 1.3; }
.apb-iwt img { flex: 0 0 auto; }
.apb-acc-body p:last-child { margin-bottom: 0; }

/* ── banner ── */
.apb-banner__card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 40px; border-radius: 28px; background: #f3f3f3; overflow: hidden; }
.apb-banner--left .apb-banner__img { order: -1; }
.apb-banner__text h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
.apb-banner__text p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.apb-banner__img img { width: 100%; height: auto; display: block; border-radius: 18px; }

/* ── multicolumn ── */
.apb-multi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.apb-multi__col { display: block; text-align: center; color: inherit; text-decoration: none; }
.apb-multi__col img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 14px; }
.apb-multi__col h3 { margin: 0 0 6px; font-size: 18px; }
.apb-multi__col p { margin: 0; font-size: 14px; line-height: 1.55; }

/* ── comparison table ── */
.apb-table__inner.has-img { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.apb-table__head { text-align: center; }
.apb-table__head .apb-h2 { margin-bottom: 12px; }
.apb-table__head p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.apb-table__img { max-width: 100%; height: auto; border-radius: 16px; }
.apb-table__scroll { overflow-x: auto; }
.apb-table table { width: 100%; border-collapse: collapse; min-width: 420px; }
.apb-table th, .apb-table td { padding: 14px 10px; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, .1); font-size: 14px; }
.apb-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.apb-table td.apb-table__feat { text-align: left; font-weight: 600; }
.apb-table .is-brand { background: rgba(0, 161, 233, .1); font-weight: 700; }
.apb-tick { color: #12a150; font-size: 18px; font-weight: 700; }
.apb-cross { color: #d23b3b; font-size: 16px; font-weight: 700; }

/* ── card slider ── */
.apb-cards__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.apb-cards__card { flex: 0 0 min(300px, 78%); scroll-snap-align: start; padding: 20px; border-radius: 20px; background: #f3f3f3; box-sizing: border-box; }
.apb-cards__card img { width: 100%; height: auto; border-radius: 14px; margin-bottom: 12px; }
.apb-cards__card h3 { margin: 0 0 6px; font-size: 18px; }
.apb-cards__card p { margin: 0; font-size: 14px; line-height: 1.55; }

/* ── featured icons ── */
.apb-icons__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
.apb-icons__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; text-align: center; font-size: 14px; font-weight: 600; }
.apb-icons__item img { width: 64px; height: 64px; object-fit: contain; }

/* ── logo slider ── */
.apb-logos { overflow: hidden; padding: 24px 0 !important; max-width: none !important; }
.apb-logos__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: apb-scroll 35s linear infinite; }
.apb-logos__item { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 700; }
.apb-logos__item img { height: 40px; width: auto; display: block; }
@keyframes apb-scroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .apb-logos__track { animation: none; } }

/* ── text block / html ── */
.apb-text--center { text-align: center; }
.apb-text__body { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.7; }
.apb-text--left .apb-text__body { margin: 0; }

@media (max-width: 849px) {
  [class^="apb-"].osr-section, section.apb-banner, section.apb-multi, section.apb-table, section.apb-cards, section.apb-icons, section.apb-text, section.apb-html { padding: 32px 16px; }
  .apb-banner__card { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .apb-banner--left .apb-banner__img { order: 0; }
  .apb-table__inner.has-img { grid-template-columns: 1fr; }
}
