/* ARTHUR Commerce 3.0 - minimalist international marketplace layer.
   Loaded after arthur-v2.css; overrides tokens and adds v3-* components. */
:root {
    --v3-ink: #0e1626;
    --v3-muted: #667085;
    --v3-line: #e6e9f0;
    --v3-soft: #f6f8fc;
    --v3-navy: #0a1f5c;
    --v3-navy-2: #12338f;
    --v3-green: #0e7a3c;
    --v3-radius: 10px;
    --av-radius: 10px;
    --av-radius-sm: 8px;
    --av-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --av-soft: #f6f8fc;
}
body.v3-body { background: #fff; color: var(--v3-ink); font-family: var(--av-font); letter-spacing: -.003em; }
.v3-body h1, .v3-body h2, .v3-body h3 { letter-spacing: -.02em; }
.v3-body a { color: var(--v3-navy-2); }
.v3-body svg { flex: none; }

/* ------------------------------------------------------------ header */
.v3-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--v3-line); }
.v3-announce { background: var(--v3-navy); color: #d3dcf7; font-size: 12.5px; }
.v3-announce .av-container { display: flex; justify-content: space-between; gap: 16px; min-height: 32px; align-items: center; }
.v3-announce a { color: #fff; font-weight: 600; white-space: nowrap; }
@media (max-width: 575px) { .v3-announce .av-container > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.v3-header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.v3-brand { display: flex; align-items: center; gap: 10px; color: var(--v3-navy) !important; }
.v3-brand img { width: 40px; height: 40px; border-radius: 9px; }
.v3-brand b { display: block; font-size: 18px; font-weight: 800; letter-spacing: .1em; line-height: 1; }
.v3-brand small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v3-muted); margin-top: 4px; font-weight: 500; }
.v3-search { position: relative; max-width: 760px; width: 100%; justify-self: center; }
.v3-search form { display: flex; align-items: center; background: var(--v3-soft); border: 1px solid transparent; border-radius: 999px; transition: border-color .15s, background .15s, box-shadow .15s; }
.v3-search form:focus-within { background: #fff; border-color: var(--v3-navy-2); box-shadow: 0 0 0 4px rgba(18, 51, 143, .1); }
.v3-search-icon { width: 20px; height: 20px; margin-left: 16px; color: var(--v3-muted); }
.v3-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 12px; font-size: 15px; outline: none; color: var(--v3-ink); }
.v3-search button { border: 0; background: var(--v3-navy); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 20px; margin: 4px; border-radius: 999px; cursor: pointer; }
.v3-search button:hover { background: var(--v3-navy-2); }
.v3-tools { display: flex; align-items: center; gap: 6px; }
.v3-link { color: var(--v3-ink) !important; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.v3-link:hover { background: var(--v3-soft); }
.v3-link-btn { border: 0; background: transparent; cursor: pointer; }
.v3-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--v3-green); color: #fff !important; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.v3-wa:hover { filter: brightness(.94); }
.v3-wa svg { width: 18px; height: 18px; }
.v3-wa-solid { padding: 10px 18px; }
@media (max-width: 991px) {
    .v3-header-main { grid-template-columns: 1fr auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
    .v3-search { grid-column: 1 / -1; order: 3; max-width: none; }
    .v3-tools .v3-wa span { display: none; }
    .v3-tools .v3-wa { padding: 10px; }
}

.v3-nav { border-top: 1px solid var(--v3-line); background: #fff; }
.v3-nav-inner { display: flex; align-items: center; gap: 6px; min-height: 46px; }
.v3-mega { position: relative; flex: none; }
.v3-mega summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; background: var(--v3-soft); color: var(--v3-navy); user-select: none; }
.v3-mega summary::-webkit-details-marker { display: none; }
.v3-mega summary svg { width: 18px; height: 18px; }
.v3-mega[open] summary { background: var(--v3-navy); color: #fff; }
.v3-mega-panel { position: absolute; left: 0; top: calc(100% + 10px); width: min(760px, 92vw); background: #fff; border: 1px solid var(--v3-line); border-radius: 14px; box-shadow: 0 24px 60px rgba(14, 22, 38, .18); padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; z-index: 1100; }
.v3-mega-panel a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--v3-ink) !important; font-size: 14.5px; font-weight: 500; }
.v3-mega-panel a:hover { background: var(--v3-soft); }
.v3-mega-panel em { font-style: normal; color: var(--v3-muted); font-size: 12.5px; }
@media (max-width: 640px) { .v3-mega-panel { grid-template-columns: repeat(2, 1fr); } }
.v3-nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.v3-nav-links::-webkit-scrollbar { display: none; }
.v3-nav-links a { flex: none; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--v3-ink) !important; border-radius: 8px; }
.v3-nav-links a:hover, .v3-nav-links a.is-active { color: var(--v3-navy-2) !important; background: var(--v3-soft); }

/* ------------------------------------------------------------ hero */
.v3-hero { background: linear-gradient(180deg, #f6f8fc 0%, #fff 100%); }
.v3-hero-grid { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 44px; align-items: center; }
@media (min-width: 992px) { .v3-hero-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; padding-top: 64px; padding-bottom: 64px; } }
.v3-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v3-navy-2); margin: 0 0 16px; }
.v3-hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; font-weight: 800; margin: 0 0 18px; color: var(--v3-navy); }
.v3-lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--v3-muted); max-width: 520px; margin: 0 0 28px; }
.v3-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.v3-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.v3-btn svg { width: 18px; height: 18px; }
.v3-btn-solid { background: var(--v3-navy); color: #fff !important; }
.v3-btn-solid:hover { background: var(--v3-navy-2); }
.v3-btn-line { border-color: #c9d2e6; color: var(--v3-navy) !important; background: #fff; }
.v3-btn-line:hover { border-color: var(--v3-navy-2); }
.v3-btn-wa { background: var(--v3-green); color: #fff !important; }
.v3-facts { display: flex; gap: 36px; margin: 36px 0 0; flex-wrap: wrap; }
.v3-facts dt { font-size: 24px; font-weight: 800; color: var(--v3-navy); }
.v3-facts dd { margin: 2px 0 0; font-size: 13px; color: var(--v3-muted); }
.v3-mosaic { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 118px; }
@media (min-width: 640px) { .v3-mosaic { grid-auto-rows: 150px; } }
.v3-tile { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--v3-line); }
.v3-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px 14px 46px; background: #fff; transition: transform .35s ease; }
.v3-tile:hover img { transform: scale(1.04); }
.v3-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(0deg, #fff 55%, rgba(255, 255, 255, 0)); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.v3-tile-label b { font-size: 14px; color: var(--v3-ink); }
.v3-tile-label em { font-style: normal; font-size: 12px; color: var(--v3-muted); }
.v3-tile-1 { grid-column: span 4; grid-row: span 2; }
.v3-tile-2 { grid-column: span 2; grid-row: span 2; }
.v3-tile-3, .v3-tile-4, .v3-tile-5 { grid-column: span 2; }
.v3-tile-1 img { padding: 22px 22px 52px; }
@media (max-width: 575px) { .v3-tile-label em { display: none; } .v3-tile-1 { grid-column: span 6; } .v3-tile-2 { grid-column: span 3; grid-row: span 1; } .v3-tile-3 { grid-column: span 3; } .v3-tile-4, .v3-tile-5 { grid-column: span 3; } }

/* ------------------------------------------------------------ category chips */
.v3-chips-wrap { border-bottom: 1px solid var(--v3-line); background: #fff; }
.v3-chips { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.v3-chips::-webkit-scrollbar { display: none; }
.v3-chip { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border: 1px solid var(--v3-line); border-radius: 999px; color: var(--v3-ink) !important; font-size: 14px; font-weight: 600; background: #fff; transition: border-color .15s, background .15s; }
.v3-chip svg { width: 20px; height: 20px; color: var(--v3-navy-2); }
.v3-chip:hover { border-color: var(--v3-navy-2); background: var(--v3-soft); }

/* ------------------------------------------------------------ sections */
.v3-section { padding: 44px 0 10px; }
.v3-section-tint { background: var(--v3-soft); padding-bottom: 36px; margin-top: 34px; }
.v3-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.v3-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--v3-navy); }
.v3-head a { font-size: 14px; font-weight: 700; white-space: nowrap; }
.v3-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.v3-rail > * { scroll-snap-align: start; }
@media (min-width: 576px) { .v3-rail { grid-auto-columns: 31%; } }
@media (min-width: 992px) { .v3-rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; } }
@media (min-width: 1280px) { .v3-rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }
.v3-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.v3-brands a { padding: 10px 20px; border: 1px solid var(--v3-line); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--v3-navy) !important; background: #fff; }
.v3-brands a:hover { border-color: var(--v3-navy-2); background: var(--v3-soft); }
.v3-band { margin-top: 56px; background: var(--v3-navy); color: #fff; }
.v3-band-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 38px; padding-bottom: 38px; }
.v3-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.v3-band p { margin: 0; color: #c7d3f5; }

/* ------------------------------------------------------------ product card */
.v3-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--v3-line); border-radius: var(--v3-radius); overflow: hidden; transition: box-shadow .18s, border-color .18s, transform .18s; }
.v3-card:hover { border-color: #c5cfe6; box-shadow: 0 14px 34px rgba(14, 22, 38, .1); transform: translateY(-2px); }
.v3-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.v3-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.v3-card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; border-top: 1px solid #f1f3f8; }
.v3-card-brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v3-muted); }
.v3-card-title { margin: 0; font-size: 14.5px; line-height: 1.38; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.v3-card-title a { color: var(--v3-ink) !important; }
.v3-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.v3-card-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: auto; padding-top: 4px; }
.v3-price { font-size: 17px; min-width: 0; font-weight: 800; color: var(--v3-navy); letter-spacing: -.02em; }
.v3-price small { font-size: 11.5px; font-weight: 700; color: var(--v3-muted); margin-right: 3px; }
.v3-card-wa { position: relative; z-index: 2; flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #e8f6ee; color: var(--v3-green) !important; transition: background .15s, color .15s; }
.v3-card-wa:hover { background: var(--v3-green); color: #fff !important; }
.v3-card-wa svg { width: 19px; height: 19px; }
.v3-card-meta { font-size: 12px; color: var(--v3-muted); display: flex; align-items: center; gap: 6px; }
.v3-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v3-green); display: inline-block; }
.v3-dot.is-out { background: #c0392b; }
.v3-dot.is-limited, .v3-dot.is-pre { background: #d98a00; }

/* spec tile: typographic, shown when no verified photograph exists */
.v3-spec { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 16px 18px; background: linear-gradient(155deg, #f8faff 0%, #e9effb 100%); color: var(--v3-navy); }
.v3-spec-brand { position: absolute; top: 14px; left: 18px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--v3-navy-2); }
.v3-spec-main { font-size: clamp(34px, 5.4vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--v3-navy); }
.v3-spec-sub { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v3-navy-2); opacity: .85; }
.v3-spec-note { position: absolute; bottom: 12px; left: 18px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6c7aa3; font-weight: 600; }
.v3-spec .av-ph { position: static; background: none; width: 56%; height: auto; flex: none; margin: 0 auto; opacity: .8; }
.v3-spec .av-ph svg { width: 100%; height: auto; opacity: 1; }

/* ------------------------------------------------------------ re-skin shared v2 pages */
.v3-body .av-page-head { background: #fff; }
.v3-body .av-page-head h1 { color: var(--v3-navy); }
.v3-body .av-filters, .v3-body .av-buybox, .v3-body .av-tabs, .v3-body .av-stage { border-radius: 12px; border-color: var(--v3-line); }
.v3-body .av-btn-navy { background: var(--v3-navy); }
.v3-body .av-price, .v3-body .av-pdp-price { color: var(--v3-navy); }
.v3-body .av-section-head h2 { color: var(--v3-navy); }
.v3-body .av-card { border-radius: var(--v3-radius); }

/* ------------------------------------------------------------ footer */
.v3-footer { background: #fff; border-top: 1px solid var(--v3-line); margin-top: 0; color: var(--v3-muted); }
.v3-band + .v3-footer { margin-top: 0; }
.v3-footer-grid { display: grid; gap: 32px; padding: 48px 0 28px; }
@media (min-width: 768px) { .v3-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.v3-footer-brand { font-size: 20px; font-weight: 800; letter-spacing: .1em; color: var(--v3-navy); }
.v3-footer-brand small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--v3-muted); font-weight: 500; margin-left: 6px; }
.v3-footer h2.v3-footer-title { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--v3-ink); margin: 0 0 14px; font-weight: 700; }
.v3-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; }
.v3-footer p { font-size: 14.5px; line-height: 1.6; margin: 10px 0 0; }
.v3-footer a { color: var(--v3-ink); }
.v3-footer a.v3-wa { color: #fff !important; }
.v3-footer a:hover { color: var(--v3-navy-2); }
.v3-footer .av-pay span { border-color: var(--v3-line); color: var(--v3-ink); }
.v3-share { font-weight: 700; font-size: 14px; }
.v3-muted { font-size: 13.5px !important; }
.v3-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0 28px; border-top: 1px solid var(--v3-line); font-size: 13px; }
.v3-footer .footer-notification-button { border: 1px solid var(--v3-line); background: #fff; color: var(--v3-ink); border-radius: 999px; padding: 8px 16px; margin-top: 12px; }
.v3-footer .footer-notification-button[hidden] { display: none; }
@media (max-width: 767px) { body.av-has-sticky .v3-footer { padding-bottom: 76px; } }

/* a11y + consistency overrides */
.v3-body .av-btn-wa, .v3-body .av-order, .v3-body .av-wa-btn { background: var(--v3-green); }
.v3-body .av-btn-wa:hover { background: #0b6a33; }
.v3-body .av-pill { background: #e6f4ec; color: #0b5a2b; }
.v3-card-meta, .v3-card-brand, .v3-muted, .v3-head a { color: #566074; }

@media (hover: none) { .av-stage-hint { display: none; } }

/* stock states */
.v3-card.is-out .v3-card-media > img, .v3-card.is-out .v3-spec { opacity: .45; filter: grayscale(.6); }
.v3-card.is-out .v3-price { color: #667085; }
.v3-flag { position: absolute; left: 10px; top: 10px; z-index: 2; background: #fff; color: #9b1c1c; border: 1px solid #f0c4c4; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.v3-card-restock { position: relative; z-index: 2; font-size: 12.5px; font-weight: 700; color: var(--v3-navy-2) !important; border: 1px solid var(--v3-line); border-radius: 999px; padding: 6px 12px; background: #fff; }
.v3-card-wa.is-check { background: #fff4e0; color: #8a5200 !important; }
.v3-card-wa.is-check:hover { background: #d98a00; color: #fff !important; }
.v3-body .av-pill.is-limited { background: #fff4e0; color: #7a4600; }
.v3-body .av-pill.is-out { background: #fdecec; color: #8f1d1d; }
