/* Hawa Phone design layer (2026-10).
 * Loaded after the inline page styles, so rules here start with `body` to win ties without !important.
 * Inspired by marketplace patterns (flat white cards on a cool grey page, soft pills, one strong CTA colour),
 * kept on Hawa's own brand: blue = actions, logo amber = highlights. Everything uses logical properties so it
 * works the same in Kurdish/Arabic (RTL).
 * Tokens live in includes/header.php (:root).
 */

/* ---------- Base ---------- */
body { font-size: 16px; line-height: 1.5; background: var(--bg-input); color: var(--text-main); }
body :focus-visible { outline: 3px solid rgba(0, 113, 227, 0.45); outline-offset: 2px; }
body a { -webkit-tap-highlight-color: transparent; }

/* ---------- Header ---------- */
body .navbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--border-color); }
body .topbar { background: #fff; }
body .header-search-form { position: relative; }
body .header-search-input {
    height: 44px; padding-block: 0; padding-inline: 46px 16px; border: 1px solid transparent; border-radius: 999px;
    background: var(--bg-soft); font-size: 15px; color: var(--text-main);
}
html[dir="rtl"] body .header-search-input { border-radius: 999px; }
body .header-search-input::placeholder { color: var(--text-muted); }
body .header-search-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
body .header-search-btn {
    position: absolute; inset-inline-start: 4px; top: 4px; height: 36px; width: 36px; border: 0; border-radius: 50%;
    background: transparent; color: var(--text-main);
}
html[dir="rtl"] body .header-search-btn { border-radius: 50%; }
body .header-search-btn :is(i, svg) { width: 18px; height: 18px; }
body .category-strip-item { border-bottom-width: 3px; }
body .category-strip-item:hover { color: var(--text-main); border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
body .btn { border-radius: var(--r-md); }
body .btn-primary { background: var(--primary); }
body .btn-primary:active { background: var(--primary-dark); }
body .btn-secondary { background: #fff; border: 1.5px solid var(--text-main); color: var(--text-main); }

/* ---------- Section headers ---------- */
body .section { margin-bottom: 40px; }
body .section-header { margin-bottom: 14px; }
body .section-header h2 { font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--text-main); }
body .see-all { color: var(--primary); font-weight: 700; }

/* ---------- Product card (shared by home, listing, related) ---------- */
body .product-grid { gap: 12px; }
@media (min-width: 768px) { body .product-grid { gap: 16px; } }
body .product-card {
    background: #fff; border: 1px solid transparent; border-radius: var(--r-md); overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) { body .product-card:hover { box-shadow: 0 8px 24px rgba(17, 15, 21, 0.1); transform: translateY(-2px); } }
body .product-card:active { transform: scale(0.99); }
body .pc-img { background: #fff; }
body .pc-img.empty { background: var(--bg-soft); color: #9aa0ab; }
body .product-card.oos .pc-img { opacity: 0.5; }
body .pc-info { padding: 12px 14px 16px; gap: 2px; }
body .pc-colors { order: 0; margin: 0 0 6px; gap: 5px; }
body .pc-color-dot { width: 13px; height: 13px; border: 1px solid rgba(0, 0, 0, 0.18); }
body .pc-color-more { font-size: 11px; font-weight: 700; color: var(--text-muted); }
body .pc-title { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--text-main); margin-bottom: 6px; }
body .pc-from { font-size: 12px; line-height: 1.4; color: var(--text-muted); margin-top: auto; }
body .pc-price { font-size: 19px; font-weight: 800; line-height: 1.4; color: var(--text-main); margin-top: 0; }
body .pc-from + .pc-price { margin-top: 0; }
body .pc-price-old { font-size: 13px; color: var(--text-muted); }
body .pc-price.sale { color: var(--success-ink); }
body .pc-oos-badge { background: var(--bg-soft); color: var(--text-muted); border-radius: 6px; font-weight: 700; }
body .skeleton-shimmer { background: linear-gradient(100deg, #eceff3 30%, #f6f7fa 50%, #eceff3 70%); background-size: 200% 100%; }

/* ---------- Soft cards, pills and tags ---------- */
body .hawa-card { background: #fff; border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05); }
body .hawa-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--border-color); color: var(--text-main); font-size: 14px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
body .hawa-pill.active { background: var(--text-main); border-color: var(--text-main); color: #fff; }
body .hawa-tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
    font-size: 12px; font-weight: 800; line-height: 1.6;
}
body .hawa-tag.accent { background: var(--accent); color: #3a2600; }
body .hawa-tag.save { background: var(--success-bg); color: var(--success-ink); }
body .hawa-tag.soft { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Trust strip (home + listing) ---------- */
body .home-trust, body .trust-strip {
    background: #fff; border: 0; border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05);
}
body .home-trust-item :is(i, svg), body .trust-strip-item :is(i, svg) {
    box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-ink);
}

/* ---------- Product page ---------- */
body .pd-container { padding-inline: 0; }
body .pd-title-section { margin-bottom: 14px; }
body .pd-category { color: var(--accent-ink); letter-spacing: 0.6px; font-size: 12px; }
body .pd-title { font-size: 24px; font-weight: 800; line-height: 1.4; color: var(--text-main); }
body .pd-carousel { border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05); }
body .pd-dot { background: #c9ced6; }
body .pd-dot.active { background: var(--text-main); }


/* option groups: labels, chips (the pills with price changes) */
body .attr-group { margin-bottom: 24px; }
body .attr-label { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
body .attr-btn { min-height: 60px; padding: 12px 16px; border: 1.5px solid var(--border-color); border-radius: var(--r-md); background: #fff; color: var(--text-main); font-size: 15px; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
body .attr-btn.selected { border-color: var(--primary); border-width: 1.5px; background: #eaf3ff; color: var(--text-main); font-weight: 700; box-shadow: 0 0 0 1px var(--primary) inset; }
/* every option stays clickable; a muted (dashed) one would lead to a combination that is not in stock */
body .attr-btn.unavail { opacity: 0.6; border-style: dashed; }
body .attr-btn.unavail.selected { opacity: 1; border-style: solid; }
body .attr-delta { color: var(--text-muted); font-size: 12.5px; }
body .attr-delta.oos { color: #b42318; font-weight: 600; font-size: var(--fs-caption); }
body .attr-btn.unavail .attr-delta.oos { opacity: .9; }
body .attr-delta.neg { color: var(--success-ink); }
body .attr-delta.price { color: var(--text-main); font-size: 14px; font-weight: 700; }

/* soft notices */
body .pd-wa-order { border-radius: var(--r-md); }

/* info cards under the options (delivery, cash on delivery, warranty, WhatsApp) */
body .pd-infocards { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
body .pd-infocard { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; background: var(--info-bg); border-radius: var(--r-md); color: var(--text-main); text-decoration: none; }
body a.pd-infocard:active { filter: brightness(0.97); }
body .pd-infocard-ico { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
body .pd-infocard-ico :is(i, svg) { width: 20px; height: 20px; }
body .pd-infocard-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
body .pd-infocard-txt strong { font-size: 14px; font-weight: 700; line-height: 1.5; }
body .pd-infocard-txt small { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
body .pd-infocard-chev { width: 18px; height: 18px; margin-inline-start: auto; color: var(--text-muted); flex-shrink: 0; }

/* accordions: flat rows with dividers */
body .pd-accordion { margin-top: 24px; background: #fff; border-radius: var(--r-md); border-top: 0; padding: 0 16px; box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05); }
body .pd-acc-header { font-size: 16px; font-weight: 700; padding-inline: 0; }
body .pd-acc-body { padding-inline: 0; }
body .pd-acc-body p, body .pd-acc-body ul li { color: var(--text-muted); }
body .pd-quick-action-btn { border-radius: 999px; border: 1px solid var(--border-color); background: #fff; font-weight: 700; }

/* sticky buy bar */
body .pd-fixed-bar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--border-color); box-shadow: 0 -4px 16px rgba(17, 15, 21, 0.06); gap: 14px; }
body .pd-fixed-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body .pd-fixed-summary { font-size: 12px; line-height: 1.4; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .pd-fixed-summary:empty { display: none; }
body .pd-fixed-price { font-size: 21px; font-weight: 800; color: var(--text-main); line-height: 1.3; }
body .add-to-cart-btn { background: var(--primary); border-radius: var(--r-md); min-height: 52px; min-width: 150px; font-size: 16px; font-weight: 700; }
body .add-to-cart-btn:active:not(:disabled) { background: var(--primary-dark); }
body .add-to-cart-btn:disabled { background: #b8c0cc; opacity: 1; }
body .pd-fixed-summary { direction: ltr; text-align: left; }
html[dir="rtl"] body .pd-fixed-summary { text-align: right; }

/* sticky buy bar: keep its content inside the page width on large screens */
@media (min-width: 1240px) { body .pd-fixed-bar { padding-inline: calc((100vw - 1200px) / 2 + 20px); } }

/* ---------- Home: contact cards + map ---------- */

/* ---------- FAQ ---------- */
body .faq-item { border: 0; border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05); }
body .faq-question::after { content: '+'; font-size: 20px; line-height: 1; color: var(--primary); font-weight: 700; }
body .faq-item[open] .faq-question::after { content: '\2212'; }

/* ---------- Product page, mobile-first order: breadcrumb, gallery, title, price + Add to cart ---------- */
body .pd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
body .pd-crumbs:empty { display: none; }
body .pd-crumbs a { color: var(--text-muted); font-weight: 600; text-decoration: none; min-height: auto; }
body .pd-crumbs a:hover { color: var(--text-main); text-decoration: underline; }
body .pd-crumbs .sep { opacity: 0.7; }
body .pd-info > .pd-title { margin: 16px 0 12px; }
@media (min-width: 768px) { body .pd-info > .pd-title { margin-top: 0; font-size: 28px; } }

/* gallery: swipeable cards, the next photo peeks in so people know there is more */
body .pd-carousel { border-radius: 0; box-shadow: none; gap: 10px; }
body .pd-slide { border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(17, 15, 21, 0.05); overflow: hidden; }
/* phones: the photo sits in the CENTRE of the screen with an even margin; the neighbouring photo peeks in at the edge */
body .pd-carousel.multi { padding-inline: 7%; scroll-padding-inline: 7%; }
body .pd-carousel.multi .pd-slide { flex-basis: 100%; scroll-snap-align: center; } /* 100% of the padded box = 86% of the row, centred */
@media (min-width: 768px) { body .pd-carousel.multi { padding-inline: 0; scroll-padding-inline: 0; } body .pd-carousel.multi .pd-slide { flex-basis: 100%; scroll-snap-align: start; } }

/* price + Add to cart, side by side under the title */
body .pd-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--border-color); }
body .pd-buyprice { min-width: 0; }
body .pd-price-now { font-size: 28px; font-weight: 800; line-height: 1.25; color: var(--text-main); white-space: nowrap; }
body .pd-buyrow .pd-inline-add { flex: 1 1 auto; max-width: 240px; min-width: 150px; min-height: 52px; }

/* sticky bar: hidden until the buy row above has scrolled away */
body .pd-fixed-bar { transform: translateY(110%); transition: transform 0.25s ease; }
body .pd-fixed-bar.show { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { body .pd-fixed-bar { transition: none; } }

/* ---------- AI assistant: "Ask me" pill, full-screen sheet on phones ---------- */
body .ai-chat-bubble { display: none !important; }
body .ai-chat-toggle {
    left: auto; right: auto; inset-inline-end: 16px; bottom: 16px; width: auto; height: 46px; padding: 0 18px 0 14px;
    border-radius: 999px; gap: 8px; background: var(--info-bg); color: var(--primary-dark);
    font-family: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 2px 12px rgba(17, 15, 21, 0.18);
}
body .ai-chat-toggle :is(i, svg) { width: 22px; height: 22px; }
body:has(.ai-chat-panel.show) .ai-chat-toggle { display: none; }
body:has(.ai-chat-panel.show) { overflow: hidden; }

body .ai-chat-panel {
    left: auto; right: auto; inset-inline-end: 16px; bottom: 16px; z-index: 1200; width: 400px;
    height: min(640px, calc(100dvh - 32px)); max-height: none; background: #f7f6f4; border-radius: var(--r-xl);
    box-shadow: 0 16px 48px rgba(17, 15, 21, 0.28);
}
@media (max-width: 768px) {
    body .ai-chat-panel { inset: 0; width: auto; max-width: none; height: 100dvh; border-radius: 0; box-shadow: none; }
}
body .ai-chat-header { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 8px 8px; background: transparent; color: var(--text-main); }
body .ai-chat-header button { justify-content: center; align-items: center; width: 44px; height: 44px; min-height: 44px; color: var(--text-main); }
body .ai-chat-header button :is(i, svg) { width: 22px; height: 22px; }
body .ai-chat-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--primary-dark); }
body .ai-chat-title :is(i, svg) { width: 22px; height: 22px; }
body .ai-chat-body { padding: 12px 20px 16px; gap: 14px; }
body .ai-chat-msg { max-width: 100%; padding: 0; background: none; border-radius: 0; font-size: 16px; line-height: 1.8; color: var(--text-main); margin: 0; }
body .ai-chat-msg-bot { align-self: flex-start; }
body .ai-chat-greeting { font-size: 19px; line-height: 1.7; }
body .ai-chat-msg-user { align-self: flex-end; max-width: 85%; padding: 10px 16px; background: var(--primary); color: #fff; border-radius: 18px; }
body .ai-chat-msg-typing { color: var(--text-muted); }
body .ai-chat-disclaimer { margin: -4px 0 4px; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
body .ai-chat-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
body .ai-chat-suggestion { background: #fff; border: 1px solid var(--border-color); color: var(--text-main); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 15px; font-weight: 600; text-align: start; }
body .ai-chat-suggestion:active { background: var(--bg-soft); }
body .ai-chat-cta { border-radius: 999px; }
body .ai-chat-input-row { border-top: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
body .ai-chat-input-row input { height: 52px; min-height: 52px; border: 0; border-radius: 999px; background: #ebe7e0; padding: 0 22px; font-size: 16px; }
body .ai-chat-input-row input:focus { background: #fff; box-shadow: 0 0 0 2px var(--primary); }
body .ai-chat-input-row button { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); }
body .ai-chat-input-row button :is(i, svg) { width: 20px; height: 20px; }

/* =====================================================================================================
 * SIZE SYSTEM (whole site). Type scale 12 / 14 / 16 / 20 / 24 / 28 (hero 32 -> 56), one button height (48),
 * one control radius (6), cards 12, media 16-24. Line heights stay generous (>= 1.4) because Kurdish and
 * Arabic need more room than Latin text. Tokens are in includes/header.php.
 * ===================================================================================================== */
body { font-size: var(--fs-body); line-height: 1.55; }
body h1 { font-size: var(--fs-title); line-height: 1.4; font-weight: 800; }
body .section-header h2 { font-size: var(--fs-title); line-height: 1.4; }
@media (min-width: 768px) { body .section-header h2 { font-size: var(--fs-display); } }
body .products-h1 { font-size: var(--fs-title); line-height: 1.4; }
body .home-h1 { font-size: var(--fs-small); line-height: 1.5; }
body .pd-title { font-size: var(--fs-title); line-height: 1.4; }
@media (min-width: 768px) { body .pd-info > .pd-title { font-size: var(--fs-title); } }
body .home-hero-tagline { font-size: clamp(32px, 9vw, 56px); line-height: 1.25; }

/* buttons: one height, one radius, one text style */
body :is(.btn, .hero-btn, .add-to-cart-btn, .btn-place, .btn-checkout, .btn-shop, .filter-apply-btn, .cart-pop-primary,
         .cart-pop-secondary, .cr-primary, .cr-secondary, .pd-wa-order, .wp-cta-btn, .blog-post-cta, .bpc-btn, .btn-view,
         .pp-btn, .ai-chat-cta) {
    min-height: var(--btn-h); border-radius: var(--btn-r); font-size: var(--fs-body); font-weight: 700; line-height: 1.5;
}
body .pd-wa-order, body .add-to-cart-btn { padding-block: 12px; }
body .hero-btn { padding-inline: 24px; }

/* pills (filters, categories, nav pills): one compact size */
body :is(.filter-btn, .category-chip, .filter-pill, .nav-pill-btn, .hawa-pill) { min-height: 40px; font-size: var(--fs-small); line-height: 1.5; font-weight: 700; }
body .category-chip { height: 40px; }
body .category-chip-label { font-size: var(--fs-small); }
body .filter-btn { min-height: 40px; }

/* option chips and rows */
body .attr-btn { border-radius: var(--ctl-r); font-size: var(--fs-body); line-height: 1.5; }
body .attr-label { font-size: var(--fs-title-s); line-height: 1.4; margin-bottom: 12px; }
body .attr-delta, body .attr-delta.price { font-size: var(--fs-small); line-height: 1.4; }
body .pd-infocard-txt strong { font-size: var(--fs-small); }
body .pd-infocard-txt small { font-size: var(--fs-caption); }
body .pd-acc-header { font-size: var(--fs-body); }
body .pd-price-now { font-size: var(--fs-display); }
body .pd-fixed-price { font-size: 22px; line-height: 1.45; }
body .pd-fixed-summary { font-size: var(--fs-caption); }

/* cards */
body .pc-title { font-size: var(--fs-body); line-height: 1.5; }
body .pc-price { font-size: var(--fs-title-s); line-height: 1.4; }
body .pc-from, body .pc-color-more { font-size: var(--fs-caption); }
body .pc-price-old { font-size: var(--fs-small); }
body :is(.pc-oos-badge, .oos-badge, .badge, .hero-chip) { font-size: var(--fs-caption); line-height: 1.5; font-weight: 700; }
body .hawa-tag { font-size: var(--fs-small); line-height: 1.5; border-radius: 4px; }

/* forms */
body :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], select, textarea, .form-input, .form-select, .form-textarea) {
    font-size: var(--fs-body); border-radius: var(--ctl-r); min-height: 48px;
}
body textarea, body .form-textarea { min-height: 96px; }
body label { font-size: var(--fs-small); line-height: 1.5; font-weight: 700; }

/* AI assistant */
body .ai-chat-toggle { height: var(--btn-h); font-size: var(--fs-body); }
body .ai-chat-title { font-size: var(--fs-title-s); }
body .ai-chat-greeting { font-size: var(--fs-title-s); line-height: 1.6; }
body .ai-chat-msg { font-size: var(--fs-body); }
body .ai-chat-disclaimer { font-size: var(--fs-small); line-height: 1.5; }
body .ai-chat-suggestion { font-size: var(--fs-body); }
body .ai-chat-input-row input { font-size: var(--fs-body); }

/* ---------- Quieter "Order on WhatsApp", floating items step aside while a sheet is open ---------- */
body .pd-wa-order { background: #fff; color: var(--text-main); border: 1.5px solid var(--border-color); box-shadow: none; font-weight: 700; }
body .pd-wa-order :is(i, svg) { color: #0b7d46; }
body .pd-wa-order:active { background: var(--bg-soft); }
body:has(:is(.cart-pop, .cr-pop).show) :is(.ai-chat-toggle, .pd-fixed-bar) { opacity: 0; pointer-events: none; visibility: hidden; }

/* ---------- Listing: results bar + sort pill (Back Market-style) ---------- */
body .results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
body .results-bar .results-meta { margin: 0; font-size: var(--fs-small); white-space: nowrap; }
body .sort-wrap { position: relative; flex-shrink: 0; }
body .sort-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); font: inherit; font-size: var(--fs-small); font-weight: 400; cursor: pointer; transition: background .2s, color .2s; }
body .sort-btn b { font-weight: 700; color: var(--text-main); }
body .sort-btn :is(i, svg) { width: 16px; height: 16px; color: var(--text-main); transition: transform .2s; }
body .sort-wrap.open .sort-btn { background: #eaf3ff; }
body .sort-wrap.open .sort-btn :is(i, svg) { transform: rotate(180deg); }
body .sort-menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 60; display: none; flex-direction: column; }
body .sort-wrap.open .sort-menu { display: flex; animation: sortIn .16s ease-out; }
@keyframes sortIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body .sort-wrap.open .sort-menu { animation: none; } }

/* ---------- Listing: "Price drops" row (Back Market-style deal cards, one per variant) ---------- */
body .deals { margin: 0 0 44px; }
@media (min-width: 768px) { body .deals { margin-bottom: 64px; } }
body .deals-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
body .deals-title { margin: 0; font-size: var(--fs-title); line-height: 1.4; font-weight: 800; color: var(--text-main); }
body .deals-arrows { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 768px) { body .deals-arrows { display: flex; } }
body .deals-arrow { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--text-main); color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .2s, transform .15s; }
body .deals-arrow :is(i, svg) { width: 20px; height: 20px; }
body .deals-arrow:active { transform: scale(.94); }
body .deals-arrow[disabled] { background: var(--bg-soft); color: #9aa0ab; cursor: default; }
body .deals-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 4px; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
body .deals-track::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { body .deals-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
body .deal-card { flex: 0 0 min(78vw, 288px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 0; padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .deal-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
body .deal-img { position: relative; height: 188px; margin-bottom: 12px; display: grid; place-items: center; overflow: hidden; }
body .deal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
body .deal-img :is(i, svg) { width: 40px; height: 40px; color: #b8bcc4; }
body .deal-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 8px; margin-bottom: 8px; border-radius: 4px; background: #c9f5dc; color: #0a5c33; font-size: var(--fs-small); font-weight: 700; line-height: 1.5; }
body .deal-badge :is(i, svg) { box-sizing: content-box; width: 12px; height: 12px; padding: 3px; border-radius: 50%; background: #0a5c33; color: #fff; }
body .deal-title { margin: 0 0 2px; font-size: var(--fs-body); line-height: 1.5; font-weight: 700; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .deal-sub { margin: 0 0 10px; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .deal-price { margin-top: auto; font-size: var(--fs-display); line-height: 1.3; font-weight: 800; color: #0a5c33; }
body .deal-save { font-size: var(--fs-small); line-height: 1.6; font-weight: 700; color: #0a5c33; }
body .deal-save span { font-weight: 400; }
body .deal-was { font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); margin-bottom: 14px; }
body .deal-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--btn-h, 48px); padding: 0 16px; border: 1.5px solid var(--text-main); border-radius: var(--ctl-r, 6px); background: #fff; color: var(--text-main); font: inherit; font-size: var(--fs-body); font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
body .deal-add :is(i, svg) { width: 18px; height: 18px; }
body .deal-add:active { transform: scale(.98); background: var(--bg-soft); }
body .deal-add[disabled] { opacity: .6; cursor: default; }
body .deal-add.added { background: var(--text-main); color: #fff; }
@media (prefers-reduced-motion: reduce) { body .deals-track { scroll-behavior: auto; } }

/* ---------- Listing page, Back Market layout: crumb + trust card + title + chips + filter pills ---------- */
body .pl-crumbs { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: var(--fs-small); line-height: 1.5; min-height: 32px; }
body .pl-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-main); font-weight: 700; text-decoration: none; min-height: auto; }
body .pl-back :is(i, svg) { width: 20px; height: 20px; }
body .pl-crumb-div { width: 1px; height: 20px; background: var(--border-color); }
body .pl-crumb-current { color: var(--text-muted); }
body .pl-trust { display: flex; align-items: center; justify-content: space-around; gap: 16px; margin: 0 0 20px; padding: 16px; border-radius: 16px; background: #eceef2; }
body .pl-trust-item { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: var(--fs-small); line-height: 1.5; font-weight: 700; color: var(--text-main); text-align: start; }
body .pl-trust-item :is(i, svg) { flex-shrink: 0; width: 24px; height: 24px; }
body .products-title-row { margin-bottom: 8px; }
body .products-h1 { font-size: var(--fs-title); line-height: 1.3; font-weight: 800; }
@media (min-width: 768px) { body .products-h1 { font-size: var(--fs-display); } }
body .pl-desc { margin: 0 0 16px; }
body .pl-desc-text { margin: 0; font-size: var(--fs-small); line-height: 1.7; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .pl-desc.open .pl-desc-text { -webkit-line-clamp: unset; display: block; }
body .pl-more { margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-small); font-weight: 700; color: var(--text-main); text-decoration: underline; cursor: pointer; min-height: 32px; }
body .pl-more[hidden] { display: none; }

body .pl-filterbar { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
body .pl-filterbar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { body .pl-filterbar { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
body .pl-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #e9ecf1; color: var(--text-main); font: inherit; font-size: var(--fs-small); font-weight: 400; white-space: nowrap; cursor: pointer; transition: background .2s, transform .15s; }
body .pl-pill b { font-weight: 700; }
body .pl-pill :is(i, svg) { width: 16px; height: 16px; }
body .pl-pill:active { transform: scale(.97); }
body .pl-pill.active { background: #d9e7ff; color: var(--primary-dark); }

/* filter + brand panels: a side drawer on every screen size, dimmed page behind it */
body .pl-backdrop { position: fixed; inset: 0; z-index: 955; background: rgba(17, 15, 21, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
body .pl-backdrop.show { opacity: 1; pointer-events: auto; }
html.pl-lock { overflow: hidden; }
body .filter-section { position: fixed; inset-block: 0; inset-inline-end: 0; inset-inline-start: auto; width: min(440px, 100vw); height: 100dvh; z-index: 960; margin: 0; padding: 0; border-radius: 0; background: #fff; display: flex; flex-direction: column; animation: none; visibility: hidden; transform: translateX(100%); transition: transform .28s ease, visibility .28s; box-shadow: -8px 0 32px rgba(17, 15, 21, .12); }
html[dir="rtl"] body .filter-section { transform: translateX(-100%); box-shadow: 8px 0 32px rgba(17, 15, 21, .12); }
body .filter-section.show, html[dir="rtl"] body .filter-section.show { visibility: visible; transform: none; }
body .filter-section-close { display: flex; position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-main); cursor: pointer; }
body .filter-section-title { flex: 0 0 64px; display: grid; place-items: center; padding: 0 64px; font-size: var(--fs-body); font-weight: 700; border-bottom: 1px solid var(--border-color); }
body .filter-section-body { flex: 1; overflow-y: auto; padding: 8px 16px 20px; }
body .filter-section-footer { margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-color); flex-shrink: 0; }
body .filter-apply-btn { width: 100%; background: var(--text-main); border-radius: var(--ctl-r, 6px); }
body .filter-apply-btn:active { background: #000; }
body .filter-section.single .filter-group:not(.is-target), body .filter-section.single :is(.filter-hint, .filter-header) { display: none; }
body .filter-section.single .is-target { border-top: 0; padding-top: 8px; }
body .filter-section.single .is-target .acc-body { display: block; margin-top: 4px; }
body .filter-section.single .is-target:not(.range-filter) .acc-header { display: none; }
body .filter-section.single .is-target.acc-group.range-filter .acc-header :is(.filter-label, .acc-chevron) { display: none; }
body .filter-section.single .is-target .acc-header { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body .filter-section, body .pl-backdrop { transition: none; } }

/* results grid: Back Market-style list cards on phones (photo beside the details), deals row after two rows */
body .products-wrap .product-grid > .deals { grid-column: 1 / -1; min-width: 0; margin: 8px 0 12px; }
@media (max-width: 640px) {
    body .products-wrap .product-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    body .products-wrap .product-grid > .product-card { flex-direction: row; align-items: stretch; border: 0; border-radius: 12px; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
    body .products-wrap .product-grid > .product-card .pc-img { flex: 0 0 128px; width: 128px; align-self: center; margin: 8px; border-radius: 8px; }
    body .products-wrap .product-grid > .product-card .pc-info { justify-content: center; padding: 14px 6px 14px 14px; padding-inline: 6px 14px; min-width: 0; }
    body .products-wrap .product-grid > .product-card .pc-title { margin-bottom: 8px; }
    body .products-wrap .product-grid > .product-card .pc-price, body .products-wrap .product-grid > .product-card .pc-price-row { margin-top: 0; }
    body .products-wrap .product-grid > .product-card .pc-colors { margin: 8px 0 0; }
    body .products-wrap .product-grid > .skeleton-card { min-height: 144px; }
    body .products-wrap .product-grid > .product-card .pc-oos-badge { inset-inline-start: 14px; inset-block-start: 14px; }
}

/* ---------- Shop-all hub (Back Market "Shop all deals" layout): banner, swipeable rows, brands, FAQ ---------- */
body .deals-tools { display: flex; align-items: center; gap: 16px; }
body .deals-all { font-size: var(--fs-small); font-weight: 700; color: var(--text-main); text-decoration: underline; white-space: nowrap; min-height: auto; }
body .deal-card-plain .deal-img { height: 176px; }
body .deal-dots { display: flex; align-items: center; gap: 5px; min-height: 20px; margin: 0 0 8px; }
body .deal-from { font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted); margin-top: auto; }
body .deal-card-plain .deal-price { margin-top: 0; }
body .deal-price.plain { color: var(--text-main); }
body .deal-price.plain.sale { color: #0a5c33; }
body .deal-view { text-decoration: none; }

body .hub-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0 0 44px; padding: 24px; border-radius: 16px; background: #17151c; color: #fff; }
@media (min-width: 900px) { body .hub-hero { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 48px; padding: 40px 48px; } }
body .hub-hero-kicker { display: inline-block; margin-bottom: 12px; font-size: var(--fs-small); font-weight: 700; color: var(--accent); }
body .hub-hero-title { margin: 0 0 12px; font-size: var(--fs-display); line-height: 1.3; font-weight: 800; color: #fff; }
@media (min-width: 900px) { body .hub-hero-title { font-size: 40px; } }
body .hub-hero-text { margin: 0 0 24px; font-size: var(--fs-body); line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 52ch; }
body .hub-hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h, 48px); padding: 0 28px; border-radius: var(--ctl-r, 6px); background: #fff; color: #17151c; font-size: var(--fs-body); font-weight: 700; text-decoration: none; }
body .hub-hero-cta:active { transform: scale(.98); }
body .hub-hero-card { display: block; padding: 16px; border-radius: 12px; background: #fff; color: var(--text-main); text-decoration: none; }
body .hub-hero-img { position: relative; height: 200px; margin-bottom: 12px; overflow: hidden; }
body .hub-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
body .hub-hero-name { font-size: var(--fs-body); font-weight: 700; line-height: 1.5; }
body .hub-hero-sub { font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
body .hub-hero-price { margin-top: 8px; font-size: var(--fs-small); color: var(--text-muted); }
body .hub-hero-price strong { font-size: var(--fs-title-s); font-weight: 800; color: #0a5c33; }
body .hub-hero-price s { margin-inline-start: 6px; }
body .hub-skel { border-radius: 16px; min-height: 260px; }
body .hub-skel-row .hub-skel { flex: 0 0 min(78vw, 288px); min-height: 320px; }

body .hub-brands, body .hub-faq { margin: 0 0 44px; }
@media (min-width: 768px) { body .hub-hero { margin-bottom: 64px; } body .hub-brands, body .hub-faq { margin-bottom: 64px; } }
body .hub-brands .deals-title, body .hub-faq .deals-title { margin-bottom: 16px; }
body .hub-brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { body .hub-brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
body .hub-brand-grid .brand-card { border: 0; border-radius: 12px; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .hub-brand-grid .brand-logo-wrap { padding: 16px; }
body .hub-brand-grid .brand-wordmark { font-size: var(--fs-body); }
body .hub-brand-all { display: inline-flex; align-items: center; min-height: 40px; margin-top: 14px; font-size: var(--fs-small); font-weight: 700; color: var(--text-main); text-decoration: underline; }
body .hub-faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
body .hub-faq-q { margin: 0 0 12px; font-size: var(--fs-title-s); line-height: 1.5; font-weight: 800; color: var(--text-main); }
body .hub-faq-a { margin: 0; font-size: var(--fs-body); line-height: 1.9; color: #3a3a40; }

/* ---------- Product page, Back Market structure: options line, saving, price age, sticky top bar, spec tiles ---------- */
body .pd-subtitle { margin: -6px 0 14px; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
body .pd-subtitle[hidden] { display: none; }
body .pd-buyprice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
body .pd-drop, body .pd-fixed-drop { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); }
body .pd-drop[hidden], body .pd-fixed-drop[hidden] { display: none; }
body .pd-drop s, body .pd-fixed-drop s { color: var(--text-muted); }
body .pd-save { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #c9f5dc; color: #0a5c33; font-size: var(--fs-caption); font-weight: 700; line-height: 1.6; }
body .pd-fixed-priceline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
body .pd-fixed-priceline .pd-fixed-price { flex: 0 0 auto; }
body .pd-fixed-drop { font-size: var(--fs-caption); }

body .pd-price-age { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); }
body .pd-price-age[hidden] { display: none; }
body .pd-price-age :is(i, svg) { width: 16px; height: 16px; flex-shrink: 0; }
body .pd-infocards { margin: 0 0 24px; }

body .pd-topbar { position: fixed; inset-inline: 0; top: 0; z-index: 940; height: 44px; display: flex; align-items: center; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--border-color); font-size: var(--fs-caption); font-weight: 700; color: var(--text-main); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
body .pd-topbar.show { opacity: 1; visibility: visible; }
body .pd-topbar-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
html[dir="rtl"] body .pd-topbar-text { direction: ltr; text-align: right; margin-inline-start: auto; }
body .pd-topbar-progress { position: absolute; inset-inline: 0; inset-block-end: -1px; height: 3px; background: transparent; }
body .pd-topbar-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent); }
@media (min-width: 900px) { body .pd-topbar { display: none; } }
body:has(:is(.cart-pop, .cr-pop).show) .pd-topbar { opacity: 0; pointer-events: none; visibility: hidden; }

body .pd-specs { max-width: none; margin: 40px 0 0; }
body .pd-sec-title { margin: 0 0 16px; font-size: var(--fs-title-s); line-height: 1.5; font-weight: 800; color: var(--text-main); }
body .pd-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { body .pd-spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body .pd-spec-tile { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 88px; padding: 16px 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); text-align: center; }
body .pd-spec-tile .pd-spec-value { order: 1; font-size: var(--fs-body); font-weight: 700; line-height: 1.5; color: var(--text-main); word-break: break-word; }
body .pd-spec-tile .pd-spec-name { order: 2; margin: 0; font-size: var(--fs-small); font-weight: 400; line-height: 1.5; color: var(--text-muted); }

body .pd-row { margin: 40px 0 0; }
body .post-card .post-img { height: 156px; margin-bottom: 12px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
body .post-card .post-img img { object-fit: cover; }
body .post-card .deal-sub { margin-bottom: 10px; -webkit-line-clamp: 3; }
body .post-more { margin-top: auto; padding-top: 4px; font-size: var(--fs-small); font-weight: 700; color: var(--text-main); text-decoration: underline; }

/* ---------- Warranty bottom sheet (product page) ---------- */
body button.pd-infocard-btn { width: 100%; border: 0; font: inherit; text-align: start; cursor: pointer; }
html.pd-sheet-open { overflow: hidden; }
body .pd-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(17, 15, 21, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
body .pd-sheet.show { opacity: 1; visibility: visible; }
body .pd-sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 86dvh; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .3s ease; }
body .pd-sheet.show .pd-sheet-card { transform: none; }
body .pd-sheet-grip { width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 2px; background: var(--border-color); }
body .pd-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body .pd-sheet-title { margin: 0; font-size: var(--fs-title-s); line-height: 1.5; font-weight: 800; color: var(--text-main); }
body .pd-sheet-close { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text-main); cursor: pointer; }
body .pd-sheet-close :is(i, svg) { width: 20px; height: 20px; }
body .pd-sheet-note { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #eaf3ff; color: var(--primary-dark); font-size: var(--fs-small); font-weight: 700; line-height: 1.6; }
body .pd-sheet-note :is(i, svg) { width: 20px; height: 20px; flex-shrink: 0; }
body .pd-sheet-lead { margin: 0 0 8px; font-size: var(--fs-body); font-weight: 700; color: var(--text-main); }
body .pd-sheet-list { margin: 0 0 20px; padding-inline-start: 22px; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.9; }
body .pd-sheet-link { display: flex; align-items: center; justify-content: center; min-height: var(--btn-h, 48px); border: 1.5px solid var(--text-main); border-radius: var(--ctl-r, 6px); color: var(--text-main); font-size: var(--fs-body); font-weight: 700; text-decoration: none; }
@media (min-width: 768px) { body .pd-sheet { align-items: center; } body .pd-sheet-card { border-radius: 16px; transform: translateY(16px); } body .pd-sheet.show .pd-sheet-card { transform: none; } body .pd-sheet-grip { display: none; } }
@media (prefers-reduced-motion: reduce) { body .pd-sheet, body .pd-sheet-card { transition: none; } }
body:has(.pd-sheet.show) :is(.ai-chat-toggle, .pd-fixed-bar, .pd-topbar) { opacity: 0; pointer-events: none; visibility: hidden; }

/* ---------- Footer: rich welcome text, then the link columns ---------- */
body .footer-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 20px 0; }
body .footer-welcome { max-width: 760px; margin: 0 0 40px; }
body .footer-welcome-title { margin: 0 0 16px; font-size: var(--fs-title); line-height: 1.4; font-weight: 800; color: var(--text-main); }
body .footer-welcome p { margin: 0 0 14px; font-size: var(--fs-body); line-height: 1.9; color: #3a3a40; }
html[dir="rtl"] body .site-footer .footer-inner { padding-top: 32px; }

/* out-of-stock tag on a row card */
body .deal-oos { align-self: flex-start; margin-bottom: 8px; padding: 1px 8px; border-radius: 4px; background: var(--bg-soft); color: var(--text-muted); font-size: var(--fs-caption); font-weight: 700; line-height: 1.6; }
body .deal-card.oos .deal-img { opacity: .5; }
body .home-row:first-of-type { margin-top: 8px; }

/* footer link lists stay open on phones (Back Market style) instead of collapsing */
body .site-footer .footer-col-header { pointer-events: none; padding: 0 0 12px; border-bottom: 0; cursor: default; }
body .site-footer .footer-col-chevron { display: none; }
body .site-footer .footer-col ul.footer-col-body { display: flex !important; padding: 0; }
body .site-footer .footer-col h3 { margin: 0; font-size: var(--fs-body); font-weight: 800; }
body .site-footer .footer-col ul li a, body .site-footer .footer-col ul li.footer-text { font-size: var(--fs-small); line-height: 1.6; }
body .site-footer .footer-inner { gap: 28px; }

/* ---------- Home page, Back Market structure: photo category tiles, "why us" benefit grid, scrolling brand row ---------- */
body .home-tiles { margin: 8px 0 44px; }
body .home-tiles .deals-title, body .home-promise .deals-title, body .home-brands .deals-title { margin-bottom: 16px; }
body .home-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
@media (min-width: 768px) { body .home-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
body .home-tile { display: flex; flex-direction: column; gap: 10px; color: var(--text-main); text-decoration: none; min-width: 0; }
body .home-tile-img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); transition: transform .2s; }
body .home-tile:active .home-tile-img { transform: scale(.98); }
body .home-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px; box-sizing: border-box; object-fit: contain; }
body .home-tile-img :is(i, svg) { width: 40px; height: 40px; color: #b8bcc4; }
body .home-tile-name { font-size: var(--fs-body); font-weight: 700; line-height: 1.5; }

body .home-promise { margin: 0 0 44px; }
body .home-promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { body .home-promise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
body .home-promise-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .home-promise-ico { width: 44px; height: 44px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
body .home-promise-ico :is(i, svg) { width: 22px; height: 22px; }
body .home-promise-card h3 { margin: 0; font-size: var(--fs-body); font-weight: 700; line-height: 1.5; color: var(--text-main); }
body .home-promise-card p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
body .home-promise-btn { display: flex; align-items: center; justify-content: center; min-height: var(--btn-h, 48px); margin-top: 16px; padding: 0 28px; border: 1.5px solid var(--text-main); border-radius: var(--ctl-r, 6px); background: #fff; color: var(--text-main); font-size: var(--fs-body); font-weight: 700; text-decoration: none; }
@media (min-width: 768px) { body .home-promise-btn { display: inline-flex; } }

body .home-brands { margin: 0 0 44px; }
@media (max-width: 767px) {
    body .home-brands .hub-brand-grid { display: flex; gap: 12px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none; }
    body .home-brands .hub-brand-grid::-webkit-scrollbar { display: none; }
    body .home-brands .hub-brand-grid .brand-card { flex: 0 0 132px; }
}

/* home category tiles: smaller, 3 across on phones, as many as fit on wider screens */
body .home-tile-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 12px; }
@media (min-width: 768px) { body .home-tile-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 24px 16px; } }
body .home-tile { gap: 8px; }
body .home-tile-img { border-radius: 14px; }
body .home-tile-img img { padding: 10px; }
body .home-tile-img :is(i, svg) { width: 28px; height: 28px; }
body .home-tile-name { font-size: var(--fs-small); line-height: 1.4; text-align: center; }


/* brands: Back Market "most wanted" tiles -- 2 per row on phones, logo big, name underneath, no card box */
body .hub-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; overflow: visible; margin: 0; padding: 0; }
@media (min-width: 640px) { body .hub-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { body .hub-brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) { body .home-brands .hub-brand-grid { display: grid; margin: 0; padding: 0; overflow: visible; } body .home-brands .hub-brand-grid .brand-card { flex: none; } }
body .hub-brand-grid .brand-card { flex-direction: column; align-items: center; gap: 10px; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
body .hub-brand-grid .brand-logo-wrap { aspect-ratio: auto; width: 100%; height: 112px; padding: 8px; background: transparent; }
body .hub-brand-grid .brand-logo-wrap img { max-width: 70%; max-height: 72%; }
body .hub-brand-grid .brand-wordmark { font-size: var(--fs-title-s); letter-spacing: 0; }
body .brand-tile-name { font-size: var(--fs-title-s); font-weight: 600; line-height: 1.4; text-align: center; color: var(--text-main); }
body .hub-brand-grid .brand-card.skeleton-card .pc-img { height: 112px; border-radius: 12px; }
body .hub-brand-grid .brand-logo-wrap { height: 120px; }
body .hub-brand-grid .brand-logo-wrap img { width: 78%; height: 100%; max-width: none; max-height: none; object-fit: contain; }

/* ---------- Add-to-cart bottom sheet (Back Market's "Added to cart" layout) ---------- */
body .cart-pop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; background: rgba(17, 15, 21, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
body .cart-pop.show { opacity: 1; visibility: visible; }
body .cart-pop-card { width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 16px 16px 0 0; text-align: start; transform: translateY(100%); transition: transform .3s ease; }
body .cart-pop.show .cart-pop-card { transform: none; }
body .cart-sheet-grip { width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 2px; background: var(--border-color); }
body .cart-sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
body .cart-sheet-check { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #0a7a43; color: #fff; }
body .cart-pop-title { flex: 1; margin: 0; font-size: var(--fs-title-s); line-height: 1.5; font-weight: 800; color: var(--text-main); }
body .cart-sheet-close { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text-main); cursor: pointer; }
body .cart-sheet-close :is(i, svg) { width: 20px; height: 20px; }
body .cart-sheet-item, body .cart-sheet-row { display: flex; align-items: center; gap: 14px; }
body .cart-sheet-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
body .cart-sheet-img { width: 80px; height: 80px; flex: 0 0 80px; display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; }
body .cart-sheet-img.sm { width: 64px; height: 64px; flex-basis: 64px; }
body .cart-sheet-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
body .cart-sheet-img img[hidden] { display: none; }
body .cart-sheet-info { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
body .cart-sheet-name { font-size: var(--fs-body); font-weight: 700; line-height: 1.5; color: var(--text-main); }
body .cart-sheet-opts { margin-top: 2px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted); direction: ltr; text-align: start; }
body .cart-sheet-opts[hidden], body .cart-sheet-more[hidden], body #cartPopWas[hidden] { display: none; }
body .cart-sheet-price { margin-top: 4px; }
body .cart-sheet-price strong { font-size: var(--fs-title-s); font-weight: 800; color: var(--text-main); }
body .cart-sheet-price s { margin-inline-start: 8px; font-size: var(--fs-small); color: var(--text-muted); }
body .cart-sheet-more { margin-bottom: 20px; }
body .cart-sheet-more-title { margin: 0 0 8px; font-size: var(--fs-title-s); font-weight: 800; line-height: 1.5; color: var(--text-main); }
body .cart-sheet-row { padding: 8px 0; }
body .cart-sheet-plus { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--text-main); color: #fff; cursor: pointer; text-decoration: none; }
body .cart-sheet-plus :is(i, svg) { width: 20px; height: 20px; }
body .cart-sheet-plus.done { background: #0a7a43; }
body .cart-pop-primary, body .cart-pop-secondary { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; }
body .cart-pop-primary { margin-bottom: 10px; background: var(--primary); color: #fff; }
body .cart-pop-primary:active { background: var(--primary-dark); }
body .cart-pop-secondary { background: var(--bg-soft); color: var(--text-main); }
@media (min-width: 600px) { body .cart-pop { align-items: center; } body .cart-pop-card { border-radius: 16px; transform: translateY(16px); } body .cart-pop.show .cart-pop-card { transform: none; } body .cart-sheet-grip { display: none; } }
@media (prefers-reduced-motion: reduce) { body .cart-pop, body .cart-pop-card { transition: none; } }

/* home category tiles: exactly 3 columns (6 tiles = 2 rows) */
body .home-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 768px) { body .home-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; gap: 28px 20px; } }
body .cart-sheet-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
body .cart-sheet-price s { margin-inline-start: 0; }

/* round icon buttons: the site-wide `button { min-height: 48px }` stretched them into eggs -- keep them true circles */
body :is(.deals-arrow, .filter-section-close, .pd-sheet-close, .cart-sheet-close, .cart-sheet-plus, .header-search-btn) { min-height: 0; min-width: 0; padding: 0; box-sizing: border-box; aspect-ratio: 1 / 1; }

/* AI "Ask me" pill: smaller (the global button min-height of 48px had to be lifted too) */
body .ai-chat-toggle { height: 38px; min-height: 0; padding: 0 14px 0 11px; gap: 6px; font-size: var(--fs-small); line-height: 1; box-shadow: 0 2px 10px rgba(17, 15, 21, .16); }
body .ai-chat-toggle :is(i, svg) { width: 18px; height: 18px; }

/* home category tiles: on desktop span the full width (6 across) instead of a 640px block pinned to one side */
@media (min-width: 768px) { body .home-tile-grid { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { body .home-tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 20px; } }

/* footer: "follow us" row above the welcome text, circular brand-icon buttons, two-column text on desktop */
body .footer-follow { margin: 0 0 28px; }
body .footer-follow-label { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 700; line-height: 1.5; color: var(--text-muted); }
body .site-footer .footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
body .site-footer .footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--text-main); box-shadow: 0 1px 2px rgba(17, 15, 21, .08), inset 0 0 0 1px var(--border-color); text-decoration: none; transition: background .2s, color .2s, transform .15s; }
body .site-footer .footer-social a:active { transform: scale(.94); }
@media (hover: hover) { body .site-footer .footer-social a:hover { background: var(--text-main); color: #fff; box-shadow: none; } }
body .site-footer .footer-social svg { width: 20px; height: 20px; display: block; }
body .footer-welcome { max-width: none; margin: 0 0 40px; }
body .footer-welcome-title { margin: 0 0 12px; }
@media (min-width: 900px) {
    body .footer-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; align-items: start; }
    body .footer-welcome-title { grid-column: 1; margin: 0; position: sticky; top: 90px; }
    body .footer-welcome p { grid-column: 2; margin: 0 0 16px; }
}

/* ---------- Header, Back Market layout: utility row, logo + search pill + help/account/cart, tab row, phone "shop" pill ---------- */
body .topbar { padding: 0 20px; border-bottom: 0; }
body .topbar-content { justify-content: space-between; min-height: 36px; }
body .topbar-content > * { padding-inline: 0; border-inline-start: 0; }
body .topbar-links { display: flex; align-items: center; gap: 20px; }
body .topbar-links a { display: inline-flex; align-items: center; gap: 6px; min-height: auto; font-size: var(--fs-caption); font-weight: 600; line-height: 1.5; color: var(--text-main); text-decoration: none; white-space: nowrap; }
body .topbar-links a:hover { text-decoration: underline; }
body .topbar-links :is(i, svg) { width: 14px; height: 14px; }
body .topbar-prefs { display: flex; align-items: center; gap: 14px; }
body .topbar-prefs .nav-dropdown { padding: 0; border: 0; }
body .topbar-prefs .nav-pill-btn { min-height: 32px; height: auto; padding: 0; background: none; border: 0; font-size: var(--fs-caption); font-weight: 600; text-decoration: underline; color: var(--text-main); }

body .navbar { padding: 8px 20px 12px; }
body .header-searchrow { grid-area: search; display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
body .header-searchrow .header-search-form { grid-area: auto; flex: 1; min-width: 0; width: auto; }
body .header-pill { display: none; }
body .nav-help { display: none; }
body .nav-actions { gap: 6px; }
body a.nav-icon-btn[href$="account.php"] { border-radius: 50%; background: var(--bg-soft); }
@media (min-width: 768px) {
    body .logo-img { height: 48px; }
    body .nav-help { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--fs-body); font-weight: 600; color: var(--text-main); text-decoration: none; white-space: nowrap; }
    body .nav-help:hover { text-decoration: underline; }
}
@media (max-width: 767px) {
    body .header-pill { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--text-main); border-radius: var(--ctl-r, 6px); background: #fff; color: var(--text-main); font-size: var(--fs-small); font-weight: 700; text-decoration: none; white-space: nowrap; }
    body .header-pill :is(i, svg) { width: 18px; height: 18px; }
    body .logo-img { height: 38px; }
}

body .category-strip-item { padding: 14px 12px; font-size: var(--fs-small); }
body .category-strip-hot { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); }
body .category-strip-hot :is(i, svg) { width: 16px; height: 16px; color: var(--accent-strong); }
body .category-strip-extras { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; padding-inline-start: 16px; flex-shrink: 0; }
body .category-strip-extra { display: inline-flex; align-items: center; gap: 8px; padding: 14px 10px; min-height: auto; font-size: var(--fs-small); font-weight: 600; color: var(--text-main); text-decoration: none; white-space: nowrap; }
body .category-strip-extra:hover { color: var(--primary); }
body .category-strip-extra :is(i, svg) { width: 18px; height: 18px; }
body .category-strip-extra .topbar-compare-badge { margin-inline-start: 2px; }

/* top line like Back Market's "Ship to … [flag] English | Español": delivery country + flag, currency select, language links */
body .topbar-prefs { gap: 18px; }
body .topbar-ship { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-caption); line-height: 1.5; color: var(--text-main); white-space: nowrap; }
body .topbar-ship u { font-weight: 600; }
body .topbar-flag { flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(17, 15, 21, .18); }
body .topbar-prefs .nav-pill-btn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
body .topbar-prefs .nav-pill-btn :is(i, svg) { width: 14px; height: 14px; }
body .topbar-langs { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted); }
body .topbar-langs a { min-height: auto; color: var(--text-main); font-weight: 400; text-decoration: none; }
body .topbar-langs a.on { font-weight: 600; text-decoration: underline; }
body .topbar-langs a:hover { text-decoration: underline; }

/* ---------- Phone menu, Back Market clean: plain icon rows with arrows, accent first row, small text links ---------- */
body .mm-prefs { background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
body .mm-seg { background: var(--bg-soft); box-shadow: none; }
body .mm-seg a { font-size: var(--fs-small); }
body .mobile-menu-rows { padding: 8px 16px 28px; }
body .mm-row { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 0 4px; border-radius: 8px; color: var(--text-main); font-size: var(--fs-body); font-weight: 600; line-height: 1.5; text-decoration: none; }
body .mm-row:active { background: var(--bg-soft); }
body .mm-row > i:first-child, body .mm-row > svg:first-child { width: 24px; height: 24px; flex-shrink: 0; }
body .mm-label { flex: 1; min-width: 0; }
body .mm-chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); }
html[dir="rtl"] body .mm-chev { transform: scaleX(-1); }
body .mm-row-hot { color: var(--accent-ink); }
body .mm-row-hot > i:first-child, body .mm-row-hot > svg:first-child { color: var(--accent-strong); }
body .mm-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: var(--fs-caption); font-weight: 700; text-align: center; }
body .mm-links { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; }
body .mm-links a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: var(--fs-small); font-weight: 600; color: var(--text-main); text-decoration: none; }
body .mm-links a:active { background: var(--bg-soft); border-radius: 8px; }

/* ---------- Dropdown design system: Back Market popover (desktop) / bottom sheet (phones) ---------- */
body .dd-panel { background: #fff; color: var(--text-main); border: 0; border-radius: 12px; box-shadow: 0 8px 32px rgba(17, 15, 21, .18); padding: 4px 0 12px; text-align: start; }
body .dd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 4px 20px; padding-inline: 20px 12px; }
body .dd-title { font-size: var(--fs-body); font-weight: 700; line-height: 1.5; }
body .dd-close { width: 40px; height: 40px; min-height: 0; padding: 0; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-main); cursor: pointer; }
body .dd-close:hover { background: var(--bg-soft); }
body .dd-close svg, body .dd-close :is(i) { width: 22px; height: 22px; }
body .dd-search { position: relative; margin: 8px 20px 12px; }
body .dd-search[hidden] { display: none; }
body .dd-search input { width: 100%; min-height: 48px; padding-block: 0; padding-inline: 14px 44px; border: 1px solid var(--border-color); border-radius: var(--ctl-r, 6px); background: #fff; font: inherit; font-size: 16px; color: var(--text-main); }
body .dd-search input:focus { outline: none; border-color: var(--text-main); }
body .dd-search svg { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
body .dd-list { list-style: none; margin: 4px 0 0; padding: 0 8px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
body .dd-list > li { list-style: none; }
body .dd-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 8px; font-size: 16px; font-weight: 400; line-height: 1.5; color: inherit; text-decoration: none; cursor: pointer; }
body .dd-opt > span:first-child { flex: 1; min-width: 0; }
body .dd-opt small { font-size: var(--fs-small); color: var(--text-muted); }
body .dd-opt:hover, body .dd-opt.kb { background: var(--bg-soft); }
body .dd-opt[aria-selected="true"], body .dd-opt.on { font-weight: 700; }
body .dd-opt[aria-selected="true"]::after, body .dd-opt.on::after { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23110F15' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

body .dd-select { position: relative; }
body .dd-native { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
body .dd-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--border-color); border-radius: var(--ctl-r, 6px); background: #fff; font: inherit; font-size: 16px; color: var(--text-main); text-align: start; cursor: pointer; transition: border-color .15s; }
body .dd-trigger .dd-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .dd-trigger.placeholder .dd-value { color: var(--text-muted); }
body .dd-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
body .dd-select.open .dd-trigger { border-color: var(--text-main); }
body .dd-select.open .dd-trigger svg { transform: rotate(180deg); }
body .dd-select.disabled .dd-trigger { background: var(--bg-soft); color: var(--text-muted); cursor: default; }
body .dd-select > .dd-panel { display: none; position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 80; }
body .dd-select.open > .dd-panel { display: block; animation: ddIn .16s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

body .dd-backdrop { position: fixed; inset: 0; z-index: 990; background: rgba(17, 15, 21, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
body .dd-backdrop.show { opacity: 1; pointer-events: auto; }
html.dd-lock { overflow: hidden; }

/* header currency dropdown + listing sort menu share the popover */
body .dropdown-panel.dd-panel { min-width: 300px; padding: 4px 0 12px; border: 0; inset-inline-end: 0; }
body .dropdown-panel.dd-panel .dd-list { max-height: none; }
body .sort-menu.dd-panel { width: 320px; max-width: calc(100vw - 32px); padding: 4px 0 12px; flex-direction: column; gap: 0; }
body .sort-menu .dd-list { max-height: none; }

@media (max-width: 767px) {
    body .dd-select > .dd-panel, body .sort-menu.dd-panel, body .dropdown-panel.dd-panel {
        position: fixed; inset-inline: 0; inset-block: auto 0; top: auto; width: auto; max-width: none; min-width: 0; z-index: 1000;
        border-radius: 16px 16px 0 0; max-height: 82dvh; overflow-y: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        animation: ddSheet .22s ease-out;
    }
    body .dd-list { max-height: 52dvh; }
    @keyframes ddSheet { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { body .dd-select.open > .dd-panel, body .dd-backdrop { animation: none; transition: none; } }

/* product page, desktop: the gallery stays in view next to the long option list */
@media (min-width: 900px) {
    body .pd-layout { align-items: start; }
    body .pd-image-section { position: sticky; top: var(--stick-top, 176px); transition: top .25s ease; }
}

/* position: sticky needs body NOT to be its own scroll container: html already clips horizontal overflow,
   body only needs to "clip" (no scroll container), otherwise gallery / checkout summary / header never stick. */
html body { overflow-x: clip; }
/* the header is sticky on every width and hides on scroll-down / shows on scroll-up (footer.php script, --stick-top vars in header.php) */
body .co-side, body .cmp-sticky-bar { transition: top .25s ease; }
@media (min-width: 900px) { body .co-side { top: var(--stick-top, 90px); } }
body .cmp-sticky-bar { top: var(--stick-flush, 77px); }

/* footer: link lists are plain text; the "information" lines keep ONE icon style (lucide swaps <i> for <svg>, so size the svg) */
body .site-footer .footer-col ul li a { gap: 0; }
body .site-footer .footer-col ul li.footer-text { align-items: flex-start; gap: 10px; }
body .site-footer .footer-col ul li.footer-text :is(i, svg) { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
body .site-footer .footer-col ul li.footer-cod :is(i, svg) { color: var(--text-main); }

/* product page, desktop: the sticky buy bar sits at the TOP like Back Market's (thumbnail, what you picked, price + saving,
   Add to cart, scroll progress line, green "price recently dropped" strip). It follows the site header: under it when it shows, flush at 0 when it hides. */
body .pd-fixed-thumb, body .pd-fixed-progress, body .pd-fixed-note { display: none; }
@media (min-width: 900px) {
    body .pd-fixed-bar { top: var(--stick-flush, 0px); bottom: auto; padding-block: 12px; gap: 20px; border-top: 0; border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 16px rgba(17, 15, 21, 0.06); transform: translateY(-130%); transition: transform .25s ease, top .25s ease; }
    body .pd-fixed-bar.show { transform: translateY(0); }
    body .pd-fixed-thumb { display: block; flex: 0 0 auto; width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--bg-soft, #f4f6fa); }
    body .pd-fixed-thumb[hidden] { display: none; }
    body .pd-fixed-info { display: contents; }
    body .pd-fixed-summary { flex: 1; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--text-main); }
    body .pd-fixed-priceline { flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: 2px; }
    body .pd-fixed-price { font-size: 24px; line-height: 1.3; flex: 0 0 auto; }
    body .pd-fixed-bar .add-to-cart-btn { min-height: 48px; min-width: 200px; }
    body .pd-fixed-progress { display: block; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: transparent; }
    body .pd-fixed-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent); }
    body .pd-fixed-note { display: flex; position: absolute; top: 100%; inset-inline: 0; justify-content: center; align-items: center; gap: 8px; padding: 6px 16px; background: #c9f5dc; color: #0a5c33; font-size: 14px; font-weight: 600; line-height: 1.5; }
    body .pd-fixed-note[hidden] { display: none; }
    body .pd-fixed-note :is(i, svg) { width: 16px; height: 16px; flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) { body .pd-fixed-bar { transition: none; } }

/* used devices (slug ends in -used): badge, info buttons on Parts / Battery, facts sheet; groups with a single value stay hidden */
body .pd-used-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: #fff3d1; color: #7a5200; font-size: var(--fs-caption); font-weight: 700; line-height: 1.6; }
body .pd-used-badge :is(i, svg) { width: 14px; height: 14px; }
body .attr-group-hide { display: none; }
/* read-only line for unit details that can't be chosen (e.g. battery health of the picked unit) */
body .attr-group-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--r-md); background: #fff; }
body .attr-group-info .attr-label { margin: 0; }
body .attr-group-info .attr-options { display: none; }
body .attr-info-value { font-size: var(--fs-body); font-weight: 800; color: var(--text-main); }
body .attr-info-value:empty { display: none; }
body .attr-info { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 0; margin-inline-start: 6px; padding: 0; border: 0; background: transparent; color: var(--text-muted); vertical-align: middle; cursor: pointer; }
body .attr-info :is(i, svg) { width: 18px; height: 18px; }
body .pd-sheet-facts { gap: 14px; }
body .pd-sheet-facts li { line-height: 1.6; }
body .pd-sheet-facts li strong { display: block; color: var(--text-main); font-size: var(--fs-body); }

/* "Used" tag on product cards */
body .deal-used { align-self: flex-start; margin-bottom: 8px; padding: 1px 8px; border-radius: 4px; background: #fff3d1; color: #7a5200; font-size: var(--fs-caption); font-weight: 700; line-height: 1.6; }

/* battery health slider (used devices): one stop per value, e.g. 89% --- 92% --- 99% */
body .attr-group-slider .attr-options { display: none; }
body .batt-slider { --thumb: 24px; padding: 4px 4px 0; }
body .batt-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
body .batt-val { font-size: var(--fs-display); font-weight: 800; color: var(--text-main); line-height: 1.3; }
body .batt-price { font-size: var(--fs-body); font-weight: 700; color: var(--text-muted); }
body .batt-rail { position: relative; height: 32px; margin-inline: 0; }
body .batt-rail input[type="range"] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; z-index: 2; cursor: pointer; --fill: 0%; min-height: 0; }
body .batt-rail input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--primary) var(--fill), var(--border-color) var(--fill)); }
body .batt-rail input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--border-color); }
body .batt-rail input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--primary); }
body .batt-rail input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: var(--thumb); margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 1px 4px rgba(17, 15, 21, .25); }
body .batt-rail input[type="range"]::-moz-range-thumb { width: calc(var(--thumb) - 6px); height: calc(var(--thumb) - 6px); border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 1px 4px rgba(17, 15, 21, .25); }
body .batt-rail input[type="range"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
body .batt-dot { position: absolute; top: 50%; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--i) / var(--max)); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #c3c9d4; border: 2px solid #fff; z-index: 3; pointer-events: none; }
body .batt-dot.on { display: none; }
body .batt-labels { position: relative; height: 34px; }
body .batt-tick { position: absolute; top: 0; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--i) / var(--max)); transform: translateX(-50%); min-height: 0; min-width: 44px; height: 34px; padding: 0 4px; border: 0; background: transparent; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
body .batt-tick.selected { color: var(--text-main); font-weight: 800; }
body .batt-tick.unavail { opacity: .45; }

/* "closest in stock" suggestion under the price when the picked combination can't be bought */
body .pd-nearest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -6px 0 18px; padding: 10px 14px; border-radius: var(--r-md); background: var(--bg-soft); font-size: var(--fs-small); line-height: 1.6; color: var(--text-main); }
body .pd-nearest[hidden] { display: none; }
body .pd-nearest-opts { font-weight: 700; }
body .pd-nearest-btn { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--primary); border-radius: var(--r-md); background: #fff; color: var(--primary); font-size: var(--fs-small); font-weight: 700; cursor: pointer; }

/* battery slider stops carry a price (or Out of stock) under the value */
body .batt-labels { height: 56px; }
body .batt-tick { height: 56px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
body .batt-tick .bt-v { font-size: var(--fs-small); font-weight: inherit; }
body .batt-tick .bt-p { font-size: var(--fs-caption); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
body .batt-tick.selected .bt-p { color: var(--text-main); }
body .batt-tick.unavail .bt-p { color: #b42318; }

/* "Used only" switch on category / brand pages */
body .used-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 0 6px 0 14px; border: 1.5px solid var(--border-color); border-radius: 999px; background: #fff; color: var(--text-main); font-size: var(--fs-small); font-weight: 700; text-decoration: none; }
body .used-toggle .ut-track { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: #c3c9d4; transition: background .15s; }
body .used-toggle .ut-track i { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17, 15, 21, .3); transition: inset-inline-start .15s; }
body .used-toggle.on { border-color: var(--primary); background: #eaf3ff; }
body .used-toggle.on .ut-track { background: var(--primary); }
body .used-toggle.on .ut-track i { inset-inline-start: 21px; }
@media (prefers-reduced-motion: reduce) { body .used-toggle .ut-track, body .used-toggle .ut-track i { transition: none; } }
body .results-bar { flex-wrap: wrap; }
body .results-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (max-width: 767px) {
    body .results-bar .results-meta { flex: 1 0 100%; }
    body .results-actions { margin-inline-start: 0; flex-wrap: wrap; }
}

/* used devices: what the same model costs new, struck through, under the used price */
body .deal-newprice, body .pc-newprice { display: flex; align-items: baseline; gap: 6px; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
body .deal-newprice s, body .pc-newprice s { color: var(--text-muted); text-decoration: line-through; font-weight: 600; }
body .pc-newprice { margin-top: 2px; }

/* home: the biggest price drop as a banner under the categories (placeholder keeps the banner's height while it loads) */
body .home-drop-hero { margin: 0 0 8px; }
body .home-drop-hero .hub-hero { margin-bottom: 32px; }
body .hub-hero-skel { min-height: 600px; margin: 0 0 32px; border-radius: 16px; }
@media (min-width: 900px) { body .hub-hero-skel { min-height: 410px; } }

/* option text now comes in the shopper's language (Arabic / Kurdish words next to 256GB, 1SIM, 90%): each line takes its own direction
   from its first strong letter instead of being forced left-to-right (which scrambled the word order) */
body .pd-fixed-summary, body .pd-topbar-text, body .cart-sheet-opts, body .pd-subtitle, body .attr-info-value { direction: inherit; unicode-bidi: plaintext; text-align: start; }
html[dir="rtl"] body .pd-topbar-text, html[dir="rtl"] body .pd-fixed-summary { direction: inherit; text-align: start; }


/* ================= Compare (/compare, /compare/<a>/<b>) ================= */
body .cmp2-wrap { max-width: 1100px; margin: 0 auto; padding: 8px 16px 56px; }
body .cmp2-msg { background: var(--warn-bg); color: #7a4a00; border-radius: 12px; padding: 12px 16px; margin: 8px 0 16px; font-size: 14px; }
body .cmp2 { transition: opacity .15s; }
body .cmp2.is-loading { opacity: .5; pointer-events: none; }
body .cmp2-head { padding: 12px 0 8px; text-align: center; }
body .cmp2-head h1 { font-size: 22px; line-height: 1.5; font-weight: 700; }
body .cmp2-vs { font-weight: 500; color: var(--text-muted); font-size: .8em; padding-inline: 4px; }
body .cmp2-cat { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
@media (min-width: 900px) { body .cmp2-head h1 { font-size: 30px; } }

/* model pickers */
body .cmp2-slots { display: grid; gap: 12px; margin: 12px 0; }
body .cmp2-slot { position: relative; min-width: 0; }
body .cmp2-slot .dd-select, body .cmp2-slot .dd-trigger { width: 100%; }
body .cmp2-slot .dd-trigger { min-height: 48px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--ctl-r); font-weight: 600; }
body .cmp2-slot-add .dd-trigger { border-style: dashed; color: var(--text-muted); font-weight: 500; }
body .cmp2-x { position: absolute; inset-block-start: -8px; inset-inline-end: -8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-color); background: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
body .cmp2-x i, body .cmp2-x svg { width: 14px; height: 14px; }

/* product cards */
body .cmp2-cards { display: grid; gap: 12px; margin-bottom: 8px; }
body .cmp2-card { background: #fff; border-radius: var(--r-lg); padding: 16px 12px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .cmp2-img { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; max-width: 220px; background: #fff; border-radius: var(--r-md); margin-bottom: 8px; }
body .cmp2-img img { width: 100%; height: 100%; object-fit: contain; }
body .cmp2-name { font-size: 15px; line-height: 1.7; font-weight: 700; min-height: 3.4em; display: flex; align-items: center; }
body .cmp2-name a { color: inherit; text-decoration: none; }
body .cmp2-from { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
body .cmp2-price { font-size: 22px; font-weight: 700; line-height: 1.3; }
body .cmp2-price.cmp2-oos { font-size: 15px; color: var(--text-muted); }
body .cmp2-used { font-size: 13px; color: var(--success-ink); text-decoration: none; font-weight: 600; margin: 4px 0 10px; min-height: 20px; }
body .cmp2-used-empty { visibility: hidden; }
body .cmp2-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; background: var(--primary); color: #fff; border-radius: var(--btn-r); text-decoration: none; font-weight: 600; font-size: 14px; margin-top: auto; }
body .cmp2-cta:active { background: var(--primary-dark); }

/* sticky bar: compact products (after the cards scrolled away) + section tabs */
body .cmp2-bar { position: sticky; top: var(--stick-flush, 0px); z-index: 300; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-color); margin: 14px -16px 0; padding: 0 16px; }
body .cmp2-mini { display: none; gap: 10px; padding: 8px 0 4px; }
body .cmp2-bar.is-stuck .cmp2-mini { display: grid; }
body .cmp2-mini-item { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: inherit; }
body .cmp2-mini-img { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; background: var(--bg-input); display: grid; place-items: center; overflow: hidden; }
body .cmp2-mini-img img { width: 100%; height: 100%; object-fit: contain; }
body .cmp2-mini-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
body .cmp2-mini-txt b { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .cmp2-mini-txt em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--primary); }
body .cmp2-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body .cmp2-tabs::-webkit-scrollbar { display: none; }
body .cmp2-tabs a { flex: 0 0 auto; padding: 14px 0 12px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
body .cmp2-tabs a.on { color: var(--text-main); border-bottom-color: var(--text-main); }

/* sections */
body .cmp2-sec { padding-top: 28px; scroll-margin-top: 130px; }
body .cmp2-h { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
body .cmp2-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
body .cmp2-sec-head .cmp2-h { margin: 0; }
body .cmp2-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; user-select: none; }
body .cmp2-switch input { position: absolute; opacity: 0; pointer-events: none; }
body .cmp2-switch-ui { width: 40px; height: 24px; border-radius: 999px; background: #c9ced6; position: relative; transition: background .15s; flex: 0 0 40px; }
body .cmp2-switch-ui::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
body .cmp2-switch input:checked + .cmp2-switch-ui { background: var(--primary); }
body .cmp2-switch input:checked + .cmp2-switch-ui::after { transform: translateX(16px); }
html[dir="rtl"] body .cmp2-switch input:checked + .cmp2-switch-ui::after { transform: translateX(-16px); }
body .cmp2-switch input:focus-visible + .cmp2-switch-ui { outline: 2px solid var(--primary); outline-offset: 2px; }
body .cmp2-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: 18px 0; }
body .cmp2-note { background: var(--accent-soft); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px; }
body .cmp2-note b { display: block; font-size: 14px; color: var(--accent-ink); margin-bottom: 4px; }
body .cmp2-note p { font-size: 15px; line-height: 1.9; }

/* key differences + spec rows */
body .cmp2-keys { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { body .cmp2-keys { grid-template-columns: 1fr 1fr; } }
body .cmp2-key { background: #fff; border-radius: var(--r-md); padding: 14px 12px; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .cmp2-key-label, body .cmp2-row-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-align: center; margin-bottom: 8px; }
body .cmp2-key-vals, body .cmp2-row-vals { display: grid; gap: 10px; }
body .cmp2-val { text-align: center; font-size: 16px; font-weight: 600; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; justify-content: center; gap: 6px; }
body .cmp2-val.dash { color: #b4b8c0; font-weight: 400; }
body .cmp2-val.win { color: var(--success-ink); font-weight: 700; }
body .cmp2-val.win svg, body .cmp2-val.win i { width: 16px; height: 16px; flex: 0 0 16px; stroke-width: 3; }
body .cmp2-rows { display: grid; gap: 14px; }
body .cmp2-row-vals { background: #fff; border-radius: var(--r-md); padding: 14px 12px; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .cmp2.cmp2-diff-only .cmp2-row[data-same="1"] { display: none; }

/* options (colours + storage) */
body .cmp2-opts { display: grid; gap: 12px; }
body .cmp2-opt { background: #fff; border-radius: var(--r-md); padding: 14px 12px; min-width: 0; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .cmp2-opt-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 2px 0 8px; }
body .cmp2-opt-title:not(:first-child) { margin-top: 14px; }
body .cmp2-chips { list-style: none; display: grid; gap: 6px; }
body .cmp2-chips li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; border-bottom: 1px solid var(--bg-soft); padding-bottom: 6px; }
body .cmp2-chips li:last-child { border-bottom: 0; padding-bottom: 0; }
body .cmp2-chip-name { flex: 1; min-width: 0; font-weight: 600; }
body .cmp2-chip-price { font-weight: 700; white-space: nowrap; font-size: 13px; }
body .cmp2-chips li.oos { color: #9aa0a9; }
body .cmp2-chips li.oos .cmp2-chip-price { font-weight: 500; font-size: 12px; }
body .cmp2-dot { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }

/* phones: two models side by side, the third stays for desktop */
@media (max-width: 720px) {
    body .cmp2-slots, body .cmp2-cards, body .cmp2-mini, body .cmp2-opts, body .cmp2-key-vals, body .cmp2-row-vals { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body .cmp2 [class~="cmp2-c2"] { display: none !important; }
    body .cmp2-name { font-size: 14px; min-height: 3.6em; }
    body .cmp2-price { font-size: 19px; }
    body .cmp2-val { font-size: 15px; }
    body .cmp2-x { display: none; }
    body .cmp2-chips li { flex-wrap: wrap; row-gap: 2px; }
    body .cmp2-chip-name { flex: 1 1 0; }
    body .cmp2-chip-price { flex: 0 0 100%; }
    body .cmp2-dot ~ .cmp2-chip-price { padding-inline-start: 22px; }
    body .cmp2-mini-img { width: 30px; height: 30px; flex-basis: 30px; }
    body .cmp2-mini-txt em { white-space: nowrap; font-size: 12px; }
}

/* chooser */
body .cmp2-hub { text-align: center; padding-top: 12px; }
body .cmp2-hub h1 { font-size: 26px; font-weight: 700; }
body .cmp2-hub-sub { color: var(--text-muted); font-size: 15px; margin: 8px auto 20px; max-width: 520px; line-height: 1.8; }
body .cmp2-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
body .cmp2-catbtn { border: 1px solid var(--border-color); background: #fff; border-radius: 999px; padding: 8px 18px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-main); }
body .cmp2-catbtn.on { background: var(--text-main); border-color: var(--text-main); color: #fff; }
body .cmp2-panel[hidden], body .cmp2-pair[hidden] { display: none !important; }
body .cmp2-picks { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 760px; margin: 0 auto; text-align: start; }
@media (min-width: 720px) { body .cmp2-picks { grid-template-columns: 1fr 1fr auto; } }
body .cmp2-picks .dd-trigger { min-height: 48px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--ctl-r); font-weight: 600; }
body .cmp2-go { min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--btn-r); background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
body .cmp2-go:disabled { background: #c9ced6; cursor: not-allowed; }
body .cmp2-rivals, body .cmp2-popular { margin-top: 34px; text-align: start; }
body .cmp2-rival-list, body .cmp2-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
body .cmp2-rival, body .cmp2-pair { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r-md); padding: 12px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(17, 15, 21, .05); }
body .cmp2-rival-img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; background: var(--bg-input); overflow: hidden; display: grid; place-items: center; }
body .cmp2-rival-img img { width: 100%; height: 100%; object-fit: contain; }
body .cmp2-rival-name { font-size: 14px; font-weight: 600; line-height: 1.7; }
body .cmp2-rival-name em, body .cmp2-pair-imgs em { font-style: normal; color: var(--text-muted); font-weight: 500; font-size: 12px; }
body .cmp2-pair { flex-direction: column; text-align: center; padding: 14px 12px; }
body .cmp2-pair-imgs { display: flex; align-items: center; justify-content: center; gap: 10px; }
body .cmp2-pair-imgs span { width: 84px; height: 84px; border-radius: 12px; background: var(--bg-input); overflow: hidden; display: grid; place-items: center; }
body .cmp2-pair-imgs img { width: 100%; height: 100%; object-fit: contain; }
body .cmp2-pair-title { font-size: 14px; font-weight: 600; line-height: 1.7; }
