/**
 * OEM ASTRA J — Premium ultra-minimal mobile footer (≤900px)
 * Charcoal gradient + Champagne Gold accents. Apple HIG spacing.
 * Desktop workshop footer unchanged (≥901px).
 */

.mob-v2-footer {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --mob-v2-ft-bg0: #0b0b0c;
    --mob-v2-ft-bg1: #121417;
    --mob-v2-ft-gold: #d6c3a1;
    --mob-v2-ft-text: rgba(255, 255, 255, 0.92);
    --mob-v2-ft-muted: rgba(255, 255, 255, 0.55);
    --mob-v2-ft-soft: rgba(255, 255, 255, 0.4);
    --mob-v2-ft-line: rgba(255, 255, 255, 0.1);
    --mob-v2-ft-wa-green: #25d366;
  }

  footer {
    margin: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, var(--mob-v2-ft-bg0) 0%, var(--mob-v2-ft-bg1) 100%) !important;
    border: none !important;
    border-top: 1px solid var(--mob-v2-ft-line) !important;
    color: var(--mob-v2-ft-text);
  }

  footer::before {
    display: none !important;
  }

  footer > .footer-inner,
  footer > .footer-inner.footer-workshop,
  footer > .footer-inner.footer-workshop .why-oem-luxury-panel.fw-why {
    display: none !important;
  }

  .mob-v2-footer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
  }

  .mob-v2-ft-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    /* Tab bar clearance is on body (mobile-v2.css); keep only a tight gap under © */
    padding: 36px 20px 12px;
    box-sizing: border-box;
  }

  /* ── Header: [Logo] —4mm— [|] Taglines ── */
  .mob-v2-ft-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .mob-v2-footer-logo {
    display: block;
    width: auto;
    height: 56px;
    max-width: min(180px, 48vw);
    object-fit: contain;
    background: transparent !important;
    filter: none !important;
    flex-shrink: 0;
  }

  .mob-v2-ft-header-rule {
    display: block;
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    min-height: 36px;
    margin-inline-start: 4mm;
    margin-inline-end: 0;
    background: var(--mob-v2-ft-gold);
    opacity: 0.75;
  }

  .mob-v2-ft-taglines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    margin-inline-start: 12px;
    text-align: start;
  }

  html[dir="rtl"] .mob-v2-ft-taglines {
    align-items: flex-start;
    text-align: start;
  }

  .mob-v2-ft-taglines > span,
  .mob-v2-ft-taglines [data-store-tagline-line] {
    display: block;
    margin: 0;
    font-family: var(--font-en, "SF Pro Text", "Segoe UI", sans-serif);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--mob-v2-ft-gold);
    white-space: nowrap;
  }

  .mob-v2-ft-taglines em {
    font-style: normal;
    font-weight: 400;
    color: var(--mob-v2-ft-gold);
  }

  html[dir="rtl"] .mob-v2-ft-taglines > span,
  html[dir="rtl"] .mob-v2-ft-taglines [data-store-tagline-line] {
    font-family: var(--font-ar, Cairo, sans-serif);
    letter-spacing: 0.06em;
    white-space: normal;
  }

  /* ── Contact row: Location | Phone | Email | WhatsApp ── */
  .mob-v2-ft-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 4px 0 2px;
  }

  .mob-v2-ft-contact-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 4px 2px;
    text-align: center;
    text-decoration: none;
    color: var(--mob-v2-ft-muted);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-v2-ft-contact-cell[hidden] {
    display: flex !important;
  }

  .mob-v2-ft-contact-ico {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: var(--mob-v2-ft-gold);
  }

  .mob-v2-ft-contact-ico svg {
    width: 20px;
    height: 20px;
    stroke: var(--mob-v2-ft-gold);
    fill: none;
  }

  .mob-v2-ft-contact-ico--wa {
    color: var(--mob-v2-ft-wa-green);
  }

  .mob-v2-ft-contact-ico--wa svg {
    stroke: none;
    fill: currentColor;
  }

  .mob-v2-ft-contact-text {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--mob-v2-ft-muted);
    word-break: break-word;
  }

  html[dir="rtl"] .mob-v2-ft-contact-text {
    font-family: var(--font-ar, Cairo, sans-serif);
  }

  /* ── Accordion: Customer Service | Platform side by side ── */
  .mob-v2-ft-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-top: 1px solid var(--mob-v2-ft-line);
    border-bottom: 1px solid var(--mob-v2-ft-line);
  }

  .mob-v2-ft-acc {
    min-width: 0;
    border: none;
  }

  .mob-v2-ft-acc:first-child {
    border-inline-end: 1px solid var(--mob-v2-ft-line);
  }

  .mob-v2-ft-acc-sum {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 0 10px;
    cursor: pointer;
    color: var(--mob-v2-ft-text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-v2-ft-acc-sum::-webkit-details-marker {
    display: none;
  }

  html[dir="rtl"] .mob-v2-ft-acc-sum {
    font-family: var(--font-ar, Cairo, sans-serif);
    letter-spacing: 0.02em;
  }

  .mob-v2-ft-acc-chev {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--mob-v2-ft-soft);
    transition: transform 220ms ease;
  }

  html[dir="rtl"] .mob-v2-ft-acc-chev {
    transform: scaleX(-1);
  }

  .mob-v2-ft-acc-chev svg {
    width: 14px;
    height: 14px;
  }

  .mob-v2-ft-acc[open] .mob-v2-ft-acc-chev {
    transform: rotate(90deg);
  }

  html[dir="rtl"] .mob-v2-ft-acc[open] .mob-v2-ft-acc-chev {
    transform: scaleX(-1) rotate(90deg);
  }

  .mob-v2-ft-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
  }

  .mob-v2-ft-acc[open] .mob-v2-ft-acc-panel {
    grid-template-rows: 1fr;
  }

  .mob-v2-ft-acc:not([open]) > .mob-v2-ft-acc-panel {
    display: grid;
  }

  .mob-v2-ft-acc-panel > * {
    overflow: hidden;
    min-height: 0;
  }

  .mob-v2-ft-links {
    list-style: none;
    margin: 0;
    padding: 0 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mob-v2-ft-links a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    color: var(--mob-v2-ft-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    transition: color 180ms ease;
  }

  .mob-v2-ft-links a:active,
  .mob-v2-ft-links a:hover {
    color: var(--mob-v2-ft-text);
  }

  html[dir="rtl"] .mob-v2-ft-links a {
    font-family: var(--font-ar, Cairo, sans-serif);
  }

  /* ── Trust cards ── */
  .mob-v2-ft-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .mob-v2-ft-trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 12px;
    border: 1px solid var(--mob-v2-ft-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
  }

  .mob-v2-ft-trust-ico {
    display: inline-flex;
    width: 22px;
    height: 22px;
    color: var(--mob-v2-ft-gold);
  }

  .mob-v2-ft-trust-ico svg {
    width: 22px;
    height: 22px;
    stroke: var(--mob-v2-ft-gold);
    fill: none;
  }

  .mob-v2-ft-trust-card strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--mob-v2-ft-text);
    line-height: 1.3;
  }

  .mob-v2-ft-trust-card > span:not(.mob-v2-ft-trust-ico) {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--mob-v2-ft-soft);
  }

  html[dir="rtl"] .mob-v2-ft-trust-card strong,
  html[dir="rtl"] .mob-v2-ft-trust-card > span:not(.mob-v2-ft-trust-ico) {
    font-family: var(--font-ar, Cairo, sans-serif);
  }

  /* ── Payment methods ── */
  .mob-v2-ft-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    padding: 4px 0;
  }

  .mob-v2-ft-pay-item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    transition: color 180ms ease;
  }

  html[dir="rtl"] .mob-v2-ft-pay-item {
    font-family: var(--font-ar, Cairo, sans-serif);
    letter-spacing: 0.02em;
    text-transform: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .mob-v2-ft-pay-item--visa:hover { color: #1a1f71; }
    .mob-v2-ft-pay-item--mc:hover { color: #eb001b; }
    .mob-v2-ft-pay-item--meeza:hover { color: #00a651; }
    .mob-v2-ft-pay-item--insta:hover { color: #c026d3; }
  }

  /* ── Copyright ── */
  .mob-v2-ft-copy {
    border-top: 1px solid var(--mob-v2-ft-line);
    padding-top: 18px;
    text-align: center;
  }

  .mob-v2-ft-copy p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--mob-v2-ft-soft);
  }

  html[dir="rtl"] .mob-v2-ft-copy p {
    font-family: var(--font-ar, Cairo, sans-serif);
    letter-spacing: 0;
  }
}

@media (max-width: 600px) {
  .mob-v2-footer-logo {
    height: 48px;
    max-width: min(150px, 42vw);
  }

  .mob-v2-ft-taglines > span,
  .mob-v2-ft-taglines [data-store-tagline-line] {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .mob-v2-ft-contact-text {
    font-size: 9px;
  }

  .mob-v2-ft-acc-sum {
    font-size: 10px;
    padding: 0 8px;
  }
}
