/*
Theme Name: Usedbuyers Market
Theme URI: https://linen-koala-809157.hostingersite.com/
Author: Site owner
Description: A lightweight, local-first storefront theme inspired by the Usedbuyers catalog layout.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: usedbuyers-clone
*/

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --paper: #ffffff;
  --accent: #0071e3;
  --accent-dark: #005bb5;
  --success: #188038;
  --radius: 18px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.ub-wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.ub-screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.ub-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(210,210,215,.8); backdrop-filter: saturate(180%) blur(18px); }
.ub-nav { min-height: 48px; display: flex; align-items: center; gap: 20px; }
.ub-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.ub-brand img { width: 24px; height: 24px; object-fit: contain; }
.ub-nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; color: #424245; font-size: 12px; }
.ub-nav-links a { padding: 18px 0; }
.ub-nav-links a:hover { color: var(--accent); }
.ub-category-menu { position: relative; display: inline-flex; align-items: center; height: 54px; }
.ub-category-dropdown { position: absolute; top: 48px; left: -12px; display: none; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 4px 18px; width: 400px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 15px 32px rgba(0,0,0,.12); }
.ub-category-menu:hover .ub-category-dropdown, .ub-category-menu:focus-within .ub-category-dropdown { display: grid; }
.ub-category-dropdown a { padding: 7px 0; font-size: 13px; }
.ub-nav-actions { display: flex; align-items: center; gap: 10px; }
.ub-icon-btn { width: 36px; height: 36px; padding: 0; border: 0; color: var(--ink); background: transparent; display: inline-grid; place-items: center; border-radius: 50%; }
.ub-icon-btn:hover { background: var(--soft); }
.ub-bag-btn { position: relative; }
.ub-bag-count { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.ub-menu-btn { display: none; }

.ub-hero { overflow: hidden; background: #fff; }
.ub-hero-inner { min-height: 352px; padding: 80px 22px 100px; text-align: center; }
.ub-hero h1 { max-width: 1190px; margin: 0 auto 16px; font-size: clamp(40px, 5vw, 80px); line-height: 1.05; letter-spacing: -.045em; font-weight: 600; }
.ub-hero h1 { background: linear-gradient(90deg, #1d1d1f 0%, #86868b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ub-hero p.ub-hero-subheadline { max-width: 1190px; margin: 0 auto 20px; color: var(--ink); font-size: 28px; line-height: 1.47; }
.ub-hero-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ub-hero-link { color: var(--accent); font-weight: 600; }
.ub-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 19px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.ub-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.ub-hero-art { display: none; }

.ub-section { padding: 60px 0; }
.ub-home-categories { padding: 60px 0 0; }
.ub-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.ub-section h2 { margin: 0; font-size: clamp(28px, 3.25vw, 40px); letter-spacing: -.045em; line-height: 1.04; }
.ub-section-intro { max-width: 540px; color: var(--muted); margin: 8px 0 0; }
.ub-kicker-link { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }

.ub-categories { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.ub-category-scroll { position: relative; display: flex; align-items: center; width: calc(100% + 44px); margin-left: -22px; }
.ub-category-grid { display: flex; flex: 1; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; scroll-behavior: smooth; }
.ub-category-grid::-webkit-scrollbar { display: none; }
.ub-category { position: relative; flex: 0 0 280px; min-height: 104px; display: flex; align-items: center; gap: 16px; padding: 24px; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); text-align: left; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ub-category:hover, .ub-category.is-active { border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-2px); }
.ub-category strong { display: block; flex: 1; margin: 0; font-size: 16px; }
.ub-category-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: #f5f5f7; color: #c9864a; font-size: 22px; }
.ub-category-arrow { color: var(--muted); font-size: 18px; }
.ub-scroll-btn { position: relative; z-index: 2; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); color: #111; font-size: 30px; line-height: 1; transition: opacity .2s, box-shadow .2s; }
.ub-scroll-btn:disabled { opacity: .28; box-shadow: none; cursor: default; }

.ub-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ub-product-scroll { display: flex; align-items: center; gap: 10px; }
.ub-product-scroll > [data-scroll-row] { flex: 1; min-width: 0; }
.ub-product-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e4e4e7; border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.ub-product-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.ub-product-media { position: relative; height: 280px; display: grid; place-items: center; overflow: hidden; background: #f7f7f8; }
.ub-product-card-link { display: block; }
.ub-product-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ub-discount { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 6px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; }
.ub-condition { position: absolute; top: 12px; right: 12px; padding: 6px 8px; border-radius: 4px; background: #8b8b91; color: #fff; font-size: 11px; font-weight: 700; }
.ub-product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ub-product-category { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.ub-product-title { min-height: 2.7em; margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; line-height: 1.35; }
.ub-product-desc { display: -webkit-box; overflow: hidden; margin: 0 0 14px; color: var(--muted); font-size: 13px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ub-product-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.ub-price { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ub-price del { color: var(--muted); font-size: 12px; font-weight: 400; }
.ub-price em { color: #ff3b30; font-size: 12px; font-style: normal; font-weight: 400; }
.ub-add { width: 100%; min-height: 44px; padding: 8px 13px; border: 0; border-radius: 12px; background: #06c; color: #fff; font-size: 14px; font-weight: 600; }
.ub-add:hover { background: #005bb5; }

.ub-band { background: #f5f5f7; }
.ub-shipping { width: min(var(--max), calc(100% - 44px)); padding: 40px 22px; margin: 60px auto; background: #f5f5f7; border-radius: var(--radius); }
.ub-shipping-inner > p { margin: 0 0 32px; color: #8b8b91; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.ub-shipping-logos { display: flex; justify-content: center; align-items: start; gap: 42px; flex-wrap: wrap; }
.ub-shipping-logos > div { display: grid; justify-items: center; gap: 10px; color: #a1a1a6; font-size: 13px; }
.ub-shipping-logo { width: 100px; height: 60px; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ub-shipping-logos img, .ub-carrier-mark { max-width: 100%; max-height: 100%; display: grid; place-items: center; object-fit: contain; filter: grayscale(1); opacity: .78; }
.ub-carrier-mark { border-radius: 4px; background: #3977a7; color: #fff; font-size: 22px; filter: none; }
.ub-category-row { padding-top: 48px; padding-bottom: 48px; }
.ub-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ub-home-row { display: flex; grid-template-columns: none; overflow-x: auto; scrollbar-width: none; gap: 20px; padding: 4px 0 10px; scroll-behavior: smooth; }
.ub-home-row::-webkit-scrollbar, .ub-collection-products::-webkit-scrollbar { display: none; }
.ub-home-row .ub-product-card { flex: 0 0 300px; }
.ub-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; max-width: 1024px; margin: 0 auto; }
.ub-benefit { display: grid; justify-items: center; gap: 12px; text-align: center; }
.ub-benefit-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); }
.ub-benefit h3 { margin: 0 0 4px; font-size: 16px; }
.ub-benefit p { margin: 0; color: var(--muted); font-size: 14px; }

.ub-faq { max-width: 820px; margin: 0 auto; }
.ub-faq details { border-top: 1px solid var(--line); }
.ub-faq details:last-child { border-bottom: 1px solid var(--line); }
.ub-faq summary { padding: 20px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; }
.ub-faq summary::-webkit-details-marker { display: none; }
.ub-faq summary::after { float: right; content: "+"; color: var(--muted); font-weight: 400; }
.ub-faq details[open] summary::after { content: "−"; }
.ub-faq p { max-width: 720px; margin: -6px 0 20px; color: var(--muted); }

.ub-newsletter { padding: 40px 0; margin-top: 20px; border-top: 1px solid var(--line); background: #f5f5f7; color: var(--ink); }
.ub-newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.ub-newsletter h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.ub-newsletter h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.ub-newsletter p { margin: 0; color: var(--muted); }
.ub-subscribe { display: flex; min-width: min(100%, 430px); }
.ub-subscribe input { min-width: 0; flex: 1; padding: 13px 16px; border: 0; border-radius: 9px 0 0 9px; outline: 0; }
.ub-subscribe button { padding: 0 18px; border: 0; border-radius: 0 9px 9px 0; background: var(--accent); color: #fff; font-weight: 600; }

.ub-footer { padding: 40px 0 20px; background: #f5f5f7; color: var(--ink); font-size: 13px; }
.ub-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); max-width: 1200px; margin: 0 auto; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ub-footer h3 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.ub-footer p { max-width: 310px; margin: 0; }
.footer-logo-icon { display: inline-grid; width: 40px; height: 40px; margin-bottom: 8px; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-weight: 700; }
.footer-logo-text { display: block; margin-bottom: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.footer-contact li { color: var(--muted); }
.ub-footer ul { padding: 0; margin: 0; list-style: none; }
.ub-footer li + li { margin-top: 8px; }
.ub-footer a:hover { color: var(--accent); }
.ub-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 22px; }
.ub-page-head { padding: 80px 0 60px; background: #fff; text-align: center; }
.ub-page-head h1 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 56px); letter-spacing: -.05em; background: linear-gradient(90deg, #1d1d1f 0%, #86868b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ub-page-head p { color: var(--muted); }
.ub-collection-toolbar { display: flex; align-items: end; gap: 18px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ub-collection-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.ub-collection-toolbar select, .ub-form-panel input, .ub-form-panel textarea, .ub-form-panel select { min-width: 170px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.ub-collection-toolbar strong { margin-left: auto; font-size: 14px; }
.ub-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: start; }
.ub-gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 30px; border-radius: var(--radius); background: var(--soft); }
.ub-gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ub-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.ub-gallery-thumbs button { width: 65px; height: 65px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ub-gallery-thumbs button.is-active { border-color: var(--accent); }
.ub-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ub-detail-copy h1 { margin: 10px 0 15px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.ub-detail-price { font-size: 23px; font-weight: 700; }
.ub-detail-price del { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 400; }
.ub-quantity { display: inline-flex; align-items: center; margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ub-quantity button, .ub-quantity input { width: 38px; height: 38px; border: 0; background: #fff; text-align: center; }
.ub-quantity input { width: 48px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.ub-detail-actions { display: flex; gap: 10px; align-items: center; }
.ub-secondary-btn { padding: 11px 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); font-weight: 600; }
.ub-safe-note { color: var(--muted); font-size: 13px; }
.ub-cart-page, .ub-safe-checkout, .ub-form-panel, .ub-policy { max-width: 820px; }
.ub-bag-shipping { display: flex; justify-content: space-between; padding: 12px 0; color: var(--muted); font-size: 14px; }
.ub-drawer-cart { display: block; margin-top: 13px; color: var(--accent); text-align: center; font-size: 14px; font-weight: 600; }
.ub-safe-checkout { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ub-copy-grid, .ub-help-grid, .ub-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.ub-value-list { padding: 0; list-style: none; }
.ub-value-list li { display: grid; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ub-value-list span { color: var(--muted); }
.ub-policy h2 { margin-top: 34px; }
.ub-policy h3 { margin-top: 25px; }
.ub-policy p { color: var(--muted); }
.ub-form-panel form { display: grid; gap: 14px; margin: 20px 0 40px; }
.ub-form-panel label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.ub-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ub-form-panel input, .ub-form-panel textarea, .ub-form-panel select { width: 100%; min-width: 0; }
.ub-status-panel { padding: 20px; margin-bottom: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }

.support-page { min-height: calc(100vh - 48px); padding: 80px 22px; background: linear-gradient(180deg, #f5f7fa 0%, #e8eef5 100%); }
.support-page-inner { width: min(1000px, 100%); margin: 0 auto; }
.support-intro { margin-bottom: 54px; text-align: center; }
.support-intro h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 48px); line-height: 1.1; letter-spacing: -.04em; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.support-intro p { margin: 0; color: var(--muted); font-size: 18px; }
.support-contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 60px; }
.support-contact-cards article, .support-faq-card, .support-form-card { padding: 36px; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(29,29,31,.08); }
.support-contact-cards article { text-align: center; }
.support-card-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 16px; place-items: center; border-radius: 14px; background: #f0f2ff; color: #667eea; font-size: 24px; }
.support-contact-cards h2 { margin: 0 0 8px; font-size: 19px; }
.support-contact-cards p { min-height: 42px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.support-contact-cards a { color: var(--accent); font-size: 14px; font-weight: 600; }
.support-contact-cards .ub-cta { padding: 10px 18px; }
.support-faq-card { margin-bottom: 32px; }
.support-faq-card h2, .support-form-card h2, .support-hours-card h2 { margin: 0 0 24px; font-size: 28px; letter-spacing: -.03em; }
.support-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.support-faq-grid details { padding: 20px 22px; border-radius: 12px; background: #f5f5f7; }
.support-faq-grid summary { cursor: pointer; font-weight: 600; }
.support-faq-grid details p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.support-form-card { margin-bottom: 32px; }
.support-form-card form { max-width: none; margin: 0; }
.support-form-card .ub-cta { justify-self: start; }
.support-hours-card { padding: 36px; border-radius: 18px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; box-shadow: 0 8px 30px rgba(102,126,234,.22); }
.support-hours-card h2 { color: #fff; }
.support-hours-card > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.support-hours-card p { margin: 0; color: rgba(255,255,255,.9); }
.support-hours-card a { color: #fff; font-weight: 700; }

.ub-drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.34); opacity: 0; pointer-events: none; transition: opacity .25s; }
.ub-drawer { position: fixed; top: 0; right: 0; z-index: 51; width: min(430px, 100%); height: 100%; padding: 24px; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .28s ease; }
body.ub-bag-open .ub-drawer-backdrop { opacity: 1; pointer-events: auto; }
body.ub-bag-open .ub-drawer { transform: translateX(0); }
.ub-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.ub-drawer h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.ub-empty { padding: 38px 0; color: var(--muted); text-align: center; }
.ub-bag-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ub-bag-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--soft); }
.ub-bag-item strong { display: block; font-size: 14px; }
.ub-bag-item small { color: var(--muted); }
.ub-bag-remove { border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.ub-bag-total { display: flex; justify-content: space-between; padding: 22px 0; font-weight: 700; }
.ub-notice { position: fixed; right: 22px; bottom: 22px; z-index: 70; max-width: min(360px, calc(100% - 44px)); padding: 13px 16px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.ub-notice.is-visible { opacity: 1; transform: translateY(0); }
.ub-no-results { grid-column: 1/-1; padding: 50px 0; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .ub-nav-links { display: none; }
  .ub-menu-btn { display: inline-grid; }
  .ub-nav.is-open .ub-nav-links { position: absolute; top: 54px; left: 0; right: 0; display: grid; gap: 0; padding: 8px 20px 14px; background: #fff; border-bottom: 1px solid var(--line); }
  .ub-nav.is-open .ub-nav-links a { padding: 12px 0; }
  .ub-category-menu { display: block; height: auto; }
  .ub-category-dropdown { position: static; display: grid; grid-template-columns: 1fr; width: auto; padding: 3px 0 8px 14px; border: 0; box-shadow: none; }
  .ub-hero-inner { grid-template-columns: 1fr .8fr; }
  .ub-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ub-collection-products { display: flex; grid-template-columns: none; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .ub-collection-products .ub-product-card { flex: 0 0 min(340px, calc(100vw - 92px)); }
  .ub-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ub-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ub-product-detail, .ub-copy-grid, .ub-help-grid, .ub-support-grid { grid-template-columns: 1fr; gap: 30px; }
  .ub-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 734px) {
  .ub-hero-inner { padding: 60px 16px 80px; }
  .ub-hero h1 { font-size: 40px; }
  .ub-hero p.ub-hero-subheadline { font-size: 21px; }
  .ub-section { padding: 60px 0; }
  .ub-section h2 { font-size: 28px; }
  .ub-home-row .ub-product-card { flex-basis: calc(100vw - 48px); }
  .ub-shipping { width: calc(100% - 32px); margin: 40px auto; padding: 32px 16px; }
}
@media (max-width: 620px) {
  .ub-wrap { width: min(var(--max), calc(100% - 28px)); }
  .ub-hero-inner { display: block; padding-top: 62px; }
  .ub-hero-art { min-height: 240px; }
  .ub-hero-art img { height: 220px; }
  .ub-hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .ub-section { padding: 54px 0; }
  .ub-section-head, .ub-newsletter-inner, .ub-footer-bottom { display: block; }
  .ub-kicker-link { display: inline-block; margin-top: 14px; }
  .ub-product-grid { gap: 12px; }
  .ub-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ub-category { min-height: 96px; padding: 13px; }
  .ub-product-body { padding: 13px; }
  .ub-product-title { font-size: 15px; }
  .ub-product-desc { font-size: 12px; }
  .ub-add { padding: 7px 10px; }
  .ub-benefits { grid-template-columns: 1fr; }
  .ub-subscribe { min-width: 0; margin-top: 24px; }
  .ub-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .ub-footer-bottom > * + * { margin-top: 8px; }
  .ub-collection-toolbar { align-items: stretch; flex-wrap: wrap; }
  .ub-collection-toolbar strong { width: 100%; margin-left: 0; }
  .ub-form-two { grid-template-columns: 1fr; }
  .support-page { padding: 58px 16px; }
  .support-contact-cards article, .support-faq-card, .support-form-card, .support-hours-card { padding: 24px; }
  .support-faq-grid, .support-hours-card > div { grid-template-columns: 1fr; }
}

/* Original storefront page structures and responsive states. */
.globalnav { z-index: 9999; height: 48px; }
.globalnav-content { height: 100%; padding: 0 22px; max-width: 1440px; }
.globalnav-logo { font-size: 16px; font-weight: 600; gap: 8px; }
.globalnav-list-wrapper { flex: 1; overflow: hidden; position: relative; }
.globalnav-list { list-style: none; }
.globalnav-actions { gap: 16px; }
.globalnav-actions .icon-search, .globalnav-actions .icon-bag { width: 20px; height: 20px; border-radius: 0; padding: 0; }
.search-container { position: relative; }
.search-box { position: absolute; top: 50%; right: 0; width: 280px; padding: 0; transform: translateY(-50%); background: transparent; border: 0; opacity: 0; overflow: visible; transition: opacity .25s ease; }
.search-box.active { opacity: 1; }
.search-box .search-input { width: 280px !important; height: 36px; padding: 0 36px 0 12px !important; border: 1px solid var(--line) !important; border-radius: 18px !important; background: var(--soft) !important; font-size: 14px !important; }
.search-close { position: absolute; right: 8px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); border: 0; border-radius: 10px; background: var(--line); cursor: pointer; }
.globalnav-drawer { position: fixed; top: 48px; left: 0; right: 0; z-index: 9998; max-height: 0; overflow: hidden; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(20px); transition: max-height .3s ease; }
.globalnav-drawer.open { max-height: 80vh; overflow-y: auto; }
.globalnav-drawer-list { list-style: none; padding: 20px 22px; margin: 0; }
.globalnav-drawer-list li { border-bottom: 1px solid var(--line); }
.globalnav-drawer-list a { display: block; padding: 13px 0; }
.category-drawer-section { padding: 20px 22px; border-top: 1px solid var(--line); }
.category-drawer-title { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.category-drawer-section a { display: block; padding: 8px 0; }
.collection-results { min-height: 600px; }
.collection-results .ub-collection-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; overflow: visible; }
.collection-results .ub-product-card { min-width: 0; height: 520px; padding-bottom: 20px; }
.collection-results .ub-product-media { height: 280px; }
.collection-results .ub-product-body { padding: 20px; }
.load-more-trigger { min-height: 100px; padding: 40px 0; color: var(--muted); text-align: center; }
.product-section { padding-top: 60px; }
.breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--accent); }
.main-image-wrapper { position: relative; aspect-ratio: 1 / 1; padding: 30px; }
.main-image-wrapper .product-badge { z-index: 2; }
.main-image-wrapper .gallery-nav { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(0,0,0,.12); font-size: 26px; }
.gallery-prev { left: 12px; }.gallery-next { right: 12px; }
.main-image-wrapper img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-meta { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.brand-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
.product-meta div { display: grid; gap: 3px; }.product-meta span { color: var(--muted); font-size: 13px; }
.product-specifications { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.product-specifications h2 { margin: 0 0 10px; font-size: 17px; }
.product-specifications ul { margin: 0; padding-left: 20px; color: var(--muted); }
.product-specifications li + li { margin-top: 5px; }
.product-pricing { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }.product-price { font-size: 36px; font-weight: 700; }.product-price-original { color: var(--muted); }.save-amount { color: #ff3b30; font-size: 14px; }
.condition-section { display: flex; gap: 12px; align-items: center; margin: 20px 0; }.condition-section span { color: var(--muted); }.short-desc-section { color: var(--muted); }
.message-seller-wrap { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.product-trust { background: var(--soft); }.trust-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }.trust-grid article { padding: 18px; border-radius: 12px; background: #fff; }.trust-grid strong { display: block; margin-bottom: 6px; }.trust-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.product-description { max-width: 860px; }.product-description h3 { margin-top: 28px; }.product-description p { color: var(--muted); }
.recommended-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }.recommended-grid .ub-product-card { min-width: 0; }
.ub-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }.ub-stats-grid div { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }.ub-stats-grid strong { font-size: 28px; }.ub-stats-grid span { color: var(--muted); }
.ub-policy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.ub-policy-cards div { padding: 20px; border-radius: 12px; background: var(--soft); }
.checkout-layout, .tracking-layout, .order-success-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 50px; align-items: start; }.checkout-form, .checkout-summary, .tracking-support, .order-details, .order-summary { display: grid; gap: 16px; }.checkout-form h2, .checkout-summary h2, .order-details h2, .order-summary h2 { margin: 22px 0 0; }.checkout-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }.checkout-form input, .checkout-form select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; }.checkout-option { display: flex !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }.checkout-option span { margin-left: auto; }.disabled-payment { padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--soft); }.checkout-summary, .order-summary { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.summary-row, .summary-total { display: flex; justify-content: space-between; gap: 12px; }.summary-total { padding-top: 16px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }.cart-continue { display: inline-flex; justify-content: center; }
.cart-content { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }.cart-empty { padding: 70px 20px; text-align: center; }.cart-empty-icon { font-size: 44px; }.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }.cart-item-image { width: 120px; height: 120px; object-fit: contain; border-radius: 10px; background: var(--soft); }.cart-item-info { display: grid; gap: 7px; }.item-condition { color: var(--muted); font-size: 13px; }.item-controls { display: flex; align-items: center; gap: 10px; }.item-controls button { border: 1px solid var(--line); border-radius: 50%; background: #fff; }.item-controls button[data-remove] { border: 0; color: #d60000; border-radius: 0; }.cart-summary { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.cart-summary > * + * { margin-top: 16px; }
.footer-content { max-width: 1024px; }.footer-logo { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 15px 0 35px; }.footer-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }.footer-section-title { margin: 0 0 14px; color: var(--ink); font-size: 12px; }.footer-contact li { display: flex; align-items: flex-start; gap: 8px; }.footer-subscribe { padding: 40px 0; margin-top: 20px; border-top: 1px solid var(--line); background: transparent; color: var(--ink); }.footer-subscribe h3 { color: var(--ink); font-size: 18px; }.footer-subscribe p { max-width: 600px; color: var(--muted); font-size: 14px; }.footer-subscribe .ub-subscribe { margin-top: 20px; gap: 12px; }.footer-subscribe .ub-subscribe input { min-width: 250px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }.footer-subscribe .ub-subscribe button { border-radius: 8px; padding: 12px 24px; }.footer-mini { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; }.footer-links { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .trust-grid, .recommended-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cart-content, .checkout-layout, .tracking-layout, .order-success-layout { grid-template-columns: 1fr; }.ub-stats-grid { grid-template-columns: repeat(2, 1fr); }.footer-directory { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .collection-results .ub-collection-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.collection-results .ub-product-card { height: 440px; }.collection-results .ub-product-media { height: 200px; }.trust-grid, .recommended-grid, .ub-policy-cards, .ub-stats-grid { grid-template-columns: 1fr; }.cart-item { grid-template-columns: 80px 1fr; }.cart-item-image { width: 80px; height: 80px; }.cart-item-total { grid-column: 2; }.footer-directory { grid-template-columns: 1fr 1fr; }.footer-mini { display: block; }.footer-links { margin-top: 10px; flex-wrap: wrap; }.search-box, .search-box .search-input { width: min(280px, calc(100vw - 70px)) !important; } }
