/* Navigation, catalogue, comparison and editorial patterns. */
.oppo-storefront { --oppo-store-width: 1488px; --oppo-store-gutter: 48px; }
.oppo-store-container { width: min(var(--oppo-store-width), calc(100% - var(--oppo-store-gutter) * 2)); margin-inline: auto; }
.oppo-store-header { background: white; border-bottom: 1px solid #ebebeb; position: sticky; top: 0; z-index: 20; }
.oppo-store-header__inner { height: 72px; display: flex; align-items: center; gap: 48px; }
.oppo-store-logo img { display: block; width: 91px; height: auto; }
.oppo-store-nav { display: flex; align-items: center; gap: 32px; margin-right: auto; }
.oppo-store-nav > a, .oppo-mega > summary { font-size: 14px; text-decoration: none; padding-block: 24px; color: #333; }
.oppo-mega > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.oppo-mega > summary::-webkit-details-marker { display: none; }
.oppo-mega > summary::after { content: '⌄'; font-size: 16px; transition: rotate var(--oppo-motion); }
.oppo-mega[open] > summary::after { rotate: 180deg; }
.oppo-mega__panel { position: absolute; left: 0; top: 100%; width: 100%; padding-block: 40px; background: white; box-shadow: 0 24px 32px rgb(0 0 0 / 8%); border-top: 1px solid #ebebeb; max-height: calc(100vh - 140px); overflow: auto; }
.oppo-mega__inner { display: grid; grid-template-columns: 1fr 280px; gap: 64px; }
.oppo-mega__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.oppo-mega__product { display: grid; gap: 16px; text-align: center; text-decoration: none; padding: 24px; border-radius: 16px; background: #f7f7f7; }
.oppo-mega__product img { width: 100%; height: 220px; object-fit: contain; }
.oppo-mega__product span { font-size: 16px; }
.oppo-mega__aside { display: grid; align-content: start; gap: 24px; padding: 24px 0 24px 40px; border-left: 1px solid #ebebeb; }
.oppo-mega__aside a { font-size: 16px; text-decoration: none; }
.oppo-mega__aside p { margin: 0; color: #666; font-size: 12px; }
.oppo-store-utility { display: flex; align-items: center; gap: 16px; }
.oppo-store-subnav { background: white; border-bottom: 1px solid #ebebeb; position: sticky; top: 72px; z-index: 18; }
.oppo-store-subnav__inner { min-height: 56px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.oppo-store-subnav a { font-size: 13px; text-decoration: none; }
.oppo-store-subnav span { margin-left: auto; font-size: 12px; color: #666; }
.oppo-store-title { font-size: clamp(40px, 3.8vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; margin: 16px 0 24px; }
.oppo-store-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.oppo-catalog { padding-block: 64px 96px; scroll-margin-top: 152px; }
.oppo-catalog__intro { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.oppo-catalog__intro > p { color: #666; max-width: 390px; font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.oppo-catalog-tools { display: flex; align-items: center; gap: 24px; padding-block: 20px; margin-bottom: 24px; border-block: 1px solid #e5e5e5; }
.oppo-catalog-search { margin-left: auto; width: 270px; }
.oppo-catalog-tools details > summary { font-size: 14px; cursor: pointer; }
.oppo-catalog-tools details { position: relative; }
.oppo-catalog-filter-panel { position: absolute; right: 0; top: calc(100% + 24px); width: 280px; padding: 24px; border: 1px solid #dedede; border-radius: 16px; background: white; box-shadow: var(--oppo-shadow); z-index: 5; display: grid; gap: 24px; }
.oppo-catalog-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.oppo-catalog-tools fieldset { border: 0; padding: 0; margin: 0; }
.oppo-catalog-chip { position: relative; }
.oppo-catalog-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.oppo-catalog-chip span { display: block; padding: 10px 20px; border: 1px solid #ddd; border-radius: 999px; font-size: 14px; cursor: pointer; }
.oppo-catalog-chip input:checked + span { background: black; color: white; border-color: black; }
.oppo-catalog-chip input:focus-visible + span { outline: 2px solid #046a38; outline-offset: 4px; }
.oppo-catalog-status { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #666; margin: 0 0 24px; gap: 24px; }
.oppo-catalog-status button { border: 0; background: none; font: inherit; color: black; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.oppo-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.oppo-catalog-card { background: #f6f6f6; border-radius: 24px; padding: 32px; position: relative; min-width: 0; }
.oppo-catalog-card__favorite { position: absolute; right: 24px; top: 24px; }
.oppo-catalog-card__series { color: #666; font-size: 12px; }
.oppo-catalog-card__image { display: block; width: 100%; height: 340px; object-fit: contain; margin: 24px 0 28px; }
.oppo-catalog-card h3 { font-size: 28px; line-height: 1.2; font-weight: 500; margin: 0 0 12px; letter-spacing: -.03em; }
.oppo-catalog-card__specs { font-size: 14px; color: #666; margin: 0; }
.oppo-catalog-card__colors { display: flex; gap: 10px; margin: 24px 0 12px; }
.oppo-catalog-card__colors button { border: 1px solid transparent; border-radius: 50%; background: transparent; padding: 6px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.oppo-catalog-card__colors button[aria-pressed="true"] { border-color: black; }
.oppo-catalog-card__colors i { width: 24px; height: 24px; background: var(--swatch); border: 1px solid #ccc; border-radius: 50%; }
.oppo-catalog-card__color { font-size: 12px; margin: 0 0 24px; color: #666; }
.oppo-catalog-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.oppo-compare-toggle { font-size: 13px; font-family: inherit; border: 0; padding: 8px 0; background: transparent; cursor: pointer; color: #333; }
.oppo-compare-toggle[aria-pressed="true"] { color: #046a38; }
.oppo-compare-toggle::before { content: '+'; margin-right: 8px; }
.oppo-compare-toggle[aria-pressed="true"]::before { content: '✓'; }
.oppo-catalog-empty { text-align: center; padding: 64px 24px; background: #f6f6f6; border-radius: 24px; }
.oppo-compare-section { padding-block: 96px; background: #fafafa; scroll-margin-top: 152px; }
.oppo-compare-section h2, .oppo-editorial h2 { font-size: clamp(36px, 3vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin: 16px 0 32px; }
.oppo-compare-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 24px; font-size: 14px; color: #666; }
.oppo-compare-scroll { overflow: auto; border: 1px solid #e5e5e5; border-radius: 24px; background: white; }
.oppo-compare-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.oppo-compare-table caption { padding: 24px; font-size: 12px; color: #666; text-align: left; border-bottom: 1px solid #e5e5e5; }
.oppo-compare-table th, .oppo-compare-table td { padding: 18px 24px; border-bottom: 1px solid #ebebeb; font-weight: 400; font-size: 14px; vertical-align: top; }
.oppo-compare-table thead th { font-size: 20px; font-weight: 500; padding-block: 28px; }
.oppo-compare-table tbody th { color: #666; width: 220px; }
.oppo-compare-table tr:last-child > * { border-bottom: 0; }
.oppo-compare-table tr[data-different="true"] > td { background: #f5faf7; }
.oppo-compare-table thead img { display: block; width: 100%; height: 140px; object-fit: contain; margin-bottom: 20px; }
.oppo-compare-table a { display: inline-block; font-size: 12px; margin-top: 8px; }
.oppo-compare-tray { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; width: min(1200px, calc(100% - 48px)); padding: 20px 24px; border-radius: 24px; border: 1px solid #dedede; background: white; box-shadow: 0 16px 60px rgb(0 0 0 / 18%); z-index: 25; display: flex; gap: 24px; align-items: center; }
.oppo-compare-tray__items { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.oppo-compare-tray__item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.oppo-compare-tray__item button { border: 0; background: #f2f2f2; color: black; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.oppo-pattern-dialog { width: min(1184px, calc(100% - 48px)); max-width: none; padding: 40px; }
.oppo-pattern-dialog--compare { width: min(1488px, calc(100% - 64px)); }
.oppo-pattern-dialog h2 { margin: 0; font-weight: 500; font-size: 32px; letter-spacing: -.03em; }
.oppo-pattern-dialog__heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.oppo-search-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 24px 0 0; padding: 0; }
.oppo-search-result { display: grid; text-decoration: none; gap: 16px; background: #f6f6f6; border-radius: 16px; padding: 24px; }
.oppo-search-result img { width: 100%; height: 160px; object-fit: contain; }
.oppo-search-result strong { font-weight: 500; }
.oppo-pattern-dialog .oppo-search-count { margin: 24px 0 0; font-size: 13px; color: #666; }
.oppo-editorial { padding-block: 96px; scroll-margin-top: 152px; }
.oppo-editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
.oppo-editorial-card { display: block; text-decoration: none; overflow: hidden; border-radius: 24px; background: #f6f6f6; }
.oppo-editorial-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform var(--oppo-motion); }
.oppo-editorial-card__media { overflow: hidden; }
.oppo-editorial-card:hover img { transform: scale(1.025); }
.oppo-editorial-card__copy { display: block; padding: 28px; }
.oppo-editorial-card h3 { font-size: 24px; font-weight: 500; margin: 0 0 12px; }
.oppo-editorial-card p { font-size: 14px; color: #666; margin: 0 0 24px; }
.oppo-editorial-card__arrow { font-size: 13px; }
.oppo-store-footer { background: #f5f5f5; padding-block: 64px 40px; }
.oppo-store-footer__columns { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 56px; }
.oppo-store-footer h3 { font-size: 16px; font-weight: 500; margin: 0 0 24px; }
.oppo-store-footer ul { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.oppo-store-footer li, .oppo-store-footer p { font-size: 13px; color: #666; }
.oppo-store-footer a { text-decoration: none; }
.oppo-store-footer__bottom { border-top: 1px solid #dedede; padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 12px; color: #666; }
@media (max-width: 1100px) {
  .oppo-storefront { --oppo-store-gutter: 32px; }
  .oppo-store-header__inner { gap: 32px; }
  .oppo-store-nav { gap: 20px; }
  .oppo-mega__inner { grid-template-columns: 1fr 190px; gap: 32px; }
  .oppo-mega__product { padding: 20px 12px; }
  .oppo-mega__product img { height: 160px; }
  .oppo-catalog-card { padding: 24px; }
  .oppo-catalog-card__image { height: 280px; }
  .oppo-catalog-card h3 { font-size: 24px; }
  .oppo-catalog-search { width: 220px; }
  .oppo-store-footer__columns { gap: 24px; }
}
@media (max-width: 700px) {
  .oppo-storefront { --oppo-store-gutter: 20px; }
  .oppo-store-header__inner { height: 64px; gap: 24px; }
  .oppo-store-logo img { width: 72px; }
  .oppo-store-nav > a { display: none; }
  .oppo-store-nav, .oppo-store-utility { gap: 12px; }
  .oppo-store-nav > a, .oppo-mega > summary { font-size: 12px; }
  .oppo-store-subnav { top: 64px; }
  .oppo-store-subnav__inner { gap: 24px; }
  .oppo-store-subnav span { display: none; }
  .oppo-mega__panel { padding-block: 24px; max-height: calc(100vh - 100px); }
  .oppo-mega__inner { grid-template-columns: 1fr; gap: 24px; }
  .oppo-mega__products { gap: 12px; }
  .oppo-mega__product { padding: 16px 8px; }
  .oppo-mega__product img { height: 120px; }
  .oppo-mega__product span { font-size: 11px; }
  .oppo-mega__aside { display: flex; flex-wrap: wrap; border-left: 0; border-top: 1px solid #ebebeb; padding: 24px 0 0; }
  .oppo-mega__aside a { font-size: 13px; }
  .oppo-catalog { padding-block: 48px 64px; }
  .oppo-catalog__intro { display: block; }
  .oppo-catalog__intro > p { margin: 24px 0; }
  .oppo-catalog-tools { flex-wrap: wrap; gap: 20px; }
  .oppo-catalog-search { margin-left: 0; width: 100%; order: 3; }
  .oppo-catalog-chip span { padding: 8px 16px; font-size: 12px; }
  .oppo-catalog-filter-panel { right: auto; left: 0; }
  .oppo-catalog-grid, .oppo-editorial-grid { grid-template-columns: 1fr; }
  .oppo-catalog-card { padding: 28px; }
  .oppo-catalog-card__image { height: 320px; }
  .oppo-compare-section, .oppo-editorial { padding-block: 64px; }
  .oppo-compare-tray { bottom: 12px; width: calc(100% - 24px); padding: 16px; flex-wrap: wrap; gap: 12px; }
  .oppo-compare-tray__items { flex-basis: 100%; gap: 12px; }
  .oppo-compare-tray__item { font-size: 11px; }
  .oppo-compare-tray .oppo-button { min-height: 40px; padding: 8px 16px; }
  .oppo-pattern-dialog, .oppo-pattern-dialog--compare { padding: 24px; width: calc(100% - 24px); }
  .oppo-pattern-dialog h2 { font-size: 24px; }
  .oppo-search-results { grid-template-columns: 1fr; }
  .oppo-search-result { grid-template-columns: 80px 1fr; align-items: center; padding: 16px; }
  .oppo-search-result img { height: 100px; }
  .oppo-store-footer__columns { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 380px) { .oppo-store-header__inner { gap: 16px; } .oppo-store-logo img { width: 60px; } .oppo-mega > summary { font-size: 11px; } }
