/*! Artomall compiled stylesheet. Base reset + design system. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;line-height:1.15}
body{margin:0}
button,input,select,textarea,optgroup{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0}
img,svg,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}

/* =========================================================================
   Artomall design system — authored in plain CSS on top of Tailwind's reset.
   Palette: deep teal (#0E7C86) + warm amber (#F5A524). Original branding.
   ========================================================================= */

:root {
	--am-primary: #0E7C86;
	--am-primary-dark: #0A5C64;
	--am-primary-light: #E6F4F5;
	--am-accent: #F5A524;
	--am-accent-dark: #D98A0B;
	--am-ink: #0f172a;
	--am-muted: #64748b;
	--am-line: #e6eaf0;
	--am-bg: #f6f8fb;
	--am-card: #ffffff;
	--am-radius: 14px;
	--am-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
	--am-shadow-sm: 0 1px 2px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }
body.am-body {
	margin: 0; background: var(--am-bg); color: var(--am-ink);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 15px; line-height: 1.55;
	width: 100%; overflow-x: clip; /* prevent sideways scroll on mobile */
}
h1,h2,h3,h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--am-ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.am-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; width: 100%; }
.am-main { min-height: 50vh; }
.am-muted { color: var(--am-muted); }
.am-pad { padding: 18px; }
.am-link { color: var(--am-primary); font-weight: 600; cursor: pointer; background: none; border: none; padding: 0; }
.am-link--danger { color: #dc2626; }
.am-icon { vertical-align: middle; }

/* ---- Buttons ---- */
.am-btn {
	display: inline-flex; align-items: center; gap: 7px; justify-content: center;
	font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer;
	padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
	transition: all .15s ease; white-space: nowrap;
}
.am-btn--primary { background: var(--am-primary); color: #fff; }
.am-btn--primary:hover { background: var(--am-primary-dark); }
.am-btn--accent { background: var(--am-accent); color: #3a2a06; }
.am-btn--accent:hover { background: var(--am-accent-dark); }
.am-btn--ghost { background: #fff; border-color: var(--am-line); color: var(--am-ink); }
.am-btn--ghost:hover { border-color: var(--am-primary); color: var(--am-primary); }
.am-btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.am-btn--lg { padding: 14px 24px; font-size: 15px; }
.am-btn--block { width: 100%; }

/* ---- Header ---- */
.am-header { background: #fff; border-bottom: 1px solid var(--am-line); position: sticky; top: 0; z-index: 50; }
.am-utilbar { background: var(--am-ink); color: #cbd5e1; font-size: 12.5px; }
.am-utilbar__inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.am-utilbar__links { display: flex; gap: 18px; }
.am-utilbar__links a:hover, .am-utilbar__tag { color: #fff; }
.am-mainbar__inner { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.am-brand { display: flex; align-items: center; gap: 9px; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 22px; }
.am-brand__text span, .am-brand--footer span { color: var(--am-accent); }
.am-search { flex: 1; display: flex; align-items: stretch; border: 2px solid var(--am-primary); border-radius: 12px; overflow: visible; position: relative; background: #fff; max-width: 720px; }
.am-search__cat { border-right: 1px solid var(--am-line); }
.am-search__cat select { border: none; background: transparent; padding: 0 14px; height: 100%; font-size: 13px; color: var(--am-muted); max-width: 150px; }
.am-search__input { flex: 1; border: none; padding: 12px 14px; font-size: 14px; outline: none; min-width: 0; }
.am-search__btn { background: var(--am-primary); color: #fff; border: none; padding: 0 20px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.am-search__suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--am-line); border-radius: 12px; box-shadow: var(--am-shadow); z-index: 60; max-height: 70vh; overflow: auto; }
.am-suggest__group { padding: 8px 0; border-bottom: 1px solid var(--am-line); }
.am-suggest__title { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--am-muted); padding: 4px 14px; }
.am-suggest__item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.am-suggest__item:hover { background: var(--am-primary-light); }
.am-suggest__item img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.am-suggest__label { flex: 1; font-size: 14px; }
.am-suggest__meta { font-size: 12px; color: var(--am-muted); }
.am-actions { display: flex; align-items: center; gap: 16px; }
.am-account { position: relative; display: flex; gap: 8px; align-items: center; }
.am-account__btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font-weight: 600; }
.am-avatar { border-radius: 50%; }
.am-account__menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--am-line); border-radius: 12px; box-shadow: var(--am-shadow); min-width: 200px; padding: 8px; z-index: 60; }
.am-account__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.am-account__menu a:hover { background: var(--am-primary-light); }
.am-account__role { display: block; margin: 4px 8px 8px; }
.am-role-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--am-primary-light); color: var(--am-primary-dark); font-weight: 700; text-transform: capitalize; }
.am-role-pill--affiliate { background: #fef3c7; color: #92400e; }
.am-role-pill--supplier { background: #dbeafe; color: #1e40af; }
.am-cart { position: relative; color: var(--am-ink); }
.am-cart__count { position: absolute; top: -8px; right: -10px; background: var(--am-accent); color: #3a2a06; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.am-catbar { border-top: 1px solid var(--am-line); }
.am-catbar__inner { display: flex; align-items: center; gap: 4px; height: 46px; }
.am-catbar__all { background: var(--am-primary); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.am-catbar__menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; overflow: hidden; }
.am-catbar__menu a { padding: 8px 12px; font-size: 13.5px; color: var(--am-ink); border-radius: 8px; }
.am-catbar__menu a:hover { background: var(--am-primary-light); color: var(--am-primary); }
.am-catbar__rfq { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--am-primary); }

/* ---- Hamburger + mobile slide-in menu ---- */
.am-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; flex: 0 0 auto; }
.am-burger span { display: block; width: 22px; height: 2px; background: var(--am-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.am-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.am-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.am-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.am-mobilemenu { position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 340px; background: #fff; z-index: 200; box-shadow: -10px 0 40px rgba(15,23,42,.25); padding: 20px; overflow-y: auto; transform: translateX(110%); transition: transform .25s ease; }
.am-mobilemenu.is-open { transform: translateX(0); }
.am-mobilemenu__overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 199; display: none; }
.am-mobilemenu__overlay.is-open { display: block; }
.am-mobilemenu__close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--am-muted); }
.am-mobilemenu__account { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.am-mobilemenu h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--am-muted); margin: 18px 0 6px; }
.am-mobilemenu__cats a, .am-mobilemenu__links a { display: block; padding: 11px 6px; border-bottom: 1px solid var(--am-line); font-weight: 500; font-size: 15px; color: var(--am-ink); }
.am-mobilemenu__cats a:active, .am-mobilemenu__links a:active { color: var(--am-primary); }

/* ---- Sections ---- */
.am-section { padding: 36px 0; }
.am-section--tight { padding: 16px 0; }
.am-section--alt { background: #fff; border-top: 1px solid var(--am-line); border-bottom: 1px solid var(--am-line); }
.am-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.am-section__head h2 { font-size: 22px; margin: 0; }
.am-section__more { color: var(--am-primary); font-weight: 600; }
.am-subhead { margin: 28px 0 14px; font-size: 18px; }
.am-chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }

/* ---- Hero ---- */
.am-hero { background: linear-gradient(120deg, #0A5C64 0%, #0E7C86 55%, #14919c 100%); color: #fff; }
.am-hero__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding: 48px 0 56px; align-items: center; }
.am-hero__title { font-size: 38px; line-height: 1.12; margin: 0 0 14px; color: #fff; }
.am-hero__sub { font-size: 16px; color: #d8f0f2; margin: 0 0 22px; max-width: 560px; }
.am-hero__search { display: flex; gap: 8px; background: #fff; padding: 7px; border-radius: 14px; max-width: 560px; box-shadow: var(--am-shadow); }
.am-hero__search input { flex: 1; border: none; padding: 12px 14px; font-size: 15px; outline: none; border-radius: 10px; }
.am-hero__chips { margin-top: 16px; font-size: 13.5px; color: #cdeaec; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.am-hero__chips a { background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; color: #fff; }
.am-hero__chips a:hover { background: rgba(255,255,255,.26); }
.am-hero__panel { background: #fff; border-radius: var(--am-radius); padding: 20px; color: var(--am-ink); box-shadow: var(--am-shadow); }
.am-hero__panel-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--am-line); }
.am-hero__panel-head img { border-radius: 50%; }
.am-hero__panel-head strong { display: block; }
.am-hero__panel-head span { font-size: 12.5px; color: var(--am-muted); }
.am-hero__panel-btn { width: 100%; margin-bottom: 8px; justify-content: flex-start; }

/* ---- Category grid ---- */
.am-catgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.am-catcard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 16px; text-align: center; transition: all .15s; }
.am-catcard:hover { border-color: var(--am-primary); box-shadow: var(--am-shadow); transform: translateY(-2px); }
.am-catcard__img { display: flex; align-items: center; justify-content: center; height: 84px; border-radius: 10px; background: var(--am-primary-light) center/cover; color: var(--am-primary); margin-bottom: 10px; }
.am-catcard__name { display: block; font-weight: 600; font-size: 14px; }
.am-catcard__count { display: block; font-size: 12px; color: var(--am-muted); }

/* ---- Promo banners ---- */
.am-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-promo { border-radius: var(--am-radius); padding: 28px; color: #fff; min-height: 150px; display: flex; align-items: center; }
.am-promo--a { background: linear-gradient(120deg, #1e293b, #334155); }
.am-promo--b { background: linear-gradient(120deg, var(--am-accent-dark), var(--am-accent)); color: #3a2a06; }
.am-promo__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.am-promo h3 { color: inherit; font-size: 22px; margin: 6px 0 12px; }

/* ---- Product grid + card ---- */
.am-productgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.am-pcard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; display: flex; flex-direction: column; transition: all .15s; }
.am-pcard:hover { box-shadow: var(--am-shadow); border-color: #d4dde6; transform: translateY(-2px); }
.am-pcard__media { position: relative; aspect-ratio: 1/1; background: #f1f5f9; display: block; }
.am-pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.am-pcard__verified { position: absolute; top: 8px; left: 8px; background: var(--am-primary); color: #fff; border-radius: 6px; padding: 3px; display: inline-flex; }
.am-fav { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--am-muted); }
.am-fav.is-active { color: #e11d48; }
.am-pcard__body { padding: 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.am-pcard__title { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.am-pcard__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.am-pcard__from { font-size: 12px; color: var(--am-muted); }
.am-pcard__amount { font-size: 18px; font-weight: 800; color: var(--am-primary-dark); }
.am-pcard__amount .amount { color: inherit; }
.am-pcard__tierhint { font-size: 11px; color: var(--am-accent-dark); display: inline-flex; align-items: center; gap: 3px; }
.am-pcard__meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--am-muted); }
.am-pcard__supplier { font-size: 12.5px; color: var(--am-muted); border-top: 1px solid var(--am-line); padding-top: 8px; }
.am-pcard__supplier span { color: #94a3b8; }
.am-pcard__actions { display: flex; gap: 6px; margin-top: auto; }
.am-pcard__actions .am-btn { flex: 1; }

/* ---- Stars / badges ---- */
.am-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.am-star { fill: #cbd5e1; }
.am-star--on { fill: var(--am-accent); }
.am-rating-count { font-size: 12px; color: var(--am-muted); }
.am-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.am-badge--verified { background: var(--am-primary-light); color: var(--am-primary-dark); }
.am-badge--trade { background: #ecfdf5; color: #047857; }
.am-badge--warn { background: #fef3c7; color: #92400e; }
.am-escrow { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.am-escrow--held { background: #fef9c3; color: #854d0e; }
.am-escrow--released { background: #dcfce7; color: #166534; }

/* ---- Supplier cards ---- */
.am-supplierrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.am-suppliercard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.am-suppliercard:hover { border-color: var(--am-primary); box-shadow: var(--am-shadow-sm); }
.am-suppliercard__logo { width: 48px; height: 48px; border-radius: 12px; background: var(--am-primary); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.am-suppliercard__logo--lg { width: 64px; height: 64px; font-size: 26px; }
.am-suppliercard__meta { font-size: 12px; color: var(--am-muted); }
.am-suppliercard--full { flex-direction: column; align-items: stretch; text-align: left; margin: 24px 0; }
.am-suppliercard__head { display: flex; align-items: center; gap: 14px; }
.am-suppliercard__id { flex: 1; }
.am-suppliercard__name { font-weight: 700; font-size: 17px; }
.am-suppliercard__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 0; }
.am-suppliercard__facts dt { font-size: 12px; color: var(--am-muted); }
.am-suppliercard__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }

/* ---- Affiliate CTA (home) ---- */
.am-affcta { background: linear-gradient(120deg, #11343a, #0E7C86); border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; color: #fff; }
.am-affcta h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.am-affcta p { color: #d8f0f2; margin: 0 0 18px; }
.am-affcta__steps { display: flex; flex-direction: column; gap: 12px; }
.am-affstep { background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.am-affstep span { background: var(--am-accent); color: #3a2a06; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }

/* ---- Footer ---- */
.am-footer { background: #0b1220; color: #94a3b8; margin-top: 40px; }
.am-footer__trust { border-bottom: 1px solid #1e293b; }
.am-footer__trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.am-trustcard { display: flex; gap: 12px; align-items: center; color: #cbd5e1; }
.am-trustcard svg { color: var(--am-accent); }
.am-trustcard strong { display: block; color: #fff; font-size: 14px; }
.am-trustcard span { font-size: 12.5px; }
.am-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 36px 0; }
.am-brand--footer { color: #fff; font-size: 22px; font-weight: 800; }
.am-footer__brandcol p { font-size: 13.5px; margin-top: 10px; max-width: 320px; }
.am-footer-title { color: #fff; font-size: 14px; margin: 0 0 12px; }
.am-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.am-footer__col a:hover { color: #fff; }
.am-footer__bar { border-top: 1px solid #1e293b; font-size: 12.5px; }
.am-footer__bar-inner { display: flex; justify-content: space-between; padding: 16px 0; }
.am-footer__legal { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---- Auth ---- */
.am-authwrap { padding: 40px 0; }
.am-authgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.am-authgrid--narrow { grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; }
.am-authside h1 { font-size: 30px; margin: 0 0 12px; }
.am-authside__list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.am-authside__list li { display: flex; gap: 10px; align-items: center; color: var(--am-muted); }
.am-authside__list svg { color: var(--am-primary); }
.am-authcard { background: #fff; border: 1px solid var(--am-line); border-radius: 18px; padding: 28px; box-shadow: var(--am-shadow); }
.am-demobox { background: var(--am-primary-light); border-radius: 12px; padding: 16px; margin-top: 20px; font-size: 13.5px; }
.am-demobox ul { list-style: none; padding: 0; margin: 8px 0; }
.am-demobox li { display: flex; gap: 8px; padding: 2px 0; }
.am-demobox li span { font-weight: 700; min-width: 64px; color: var(--am-primary-dark); }
.am-roletabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.am-roletab { border: 2px solid var(--am-line); border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all .15s; position: relative; }
.am-roletab.is-active { border-color: var(--am-primary); background: var(--am-primary-light); }
.am-roletab__radio { position: absolute; opacity: 0; }
.am-roletab__icon { color: var(--am-primary); display: flex; justify-content: center; margin-bottom: 6px; }
.am-roletab__name { display: block; font-weight: 700; font-size: 14px; }
.am-roletab__desc { display: block; font-size: 11.5px; color: var(--am-muted); margin-top: 2px; }

/* ---- Forms ---- */
.am-form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.am-form__row:has(.am-field:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.am-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.am-field--narrow { max-width: 240px; }
.am-field label, .am-form__label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.am-field input, .am-field select, .am-field textarea, .am-form input[type=text], .am-form input[type=email], .am-form input[type=password], .am-form input[type=number], .am-form input[type=tel], .am-form input[type=url], .am-form input[type=date], .am-form select, .am-form textarea {
	border: 1px solid var(--am-line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none; background: #fff; width: 100%;
}
.am-field input:focus, .am-field select:focus, .am-field textarea:focus { border-color: var(--am-primary); box-shadow: 0 0 0 3px var(--am-primary-light); }
.am-hint { font-size: 12px; color: var(--am-muted); margin-top: 4px; }
.am-checkline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 6px 0; cursor: pointer; }
.am-checkline--lg { font-size: 14px; }
.am-checkline input { width: auto; }
.am-form__inline { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; }
.am-form__alt { text-align: center; margin: 16px 0 0; font-size: 14px; color: var(--am-muted); }
.am-form__alt a, .am-link { color: var(--am-primary); font-weight: 600; }
.am-form__actions { display: flex; gap: 10px; margin-top: 8px; }
.am-inputgroup { display: flex; gap: 8px; }
.am-inputgroup select { max-width: 90px; }
.am-dims { display: flex; gap: 6px; }
.am-fieldset { border: 1px solid var(--am-line); border-radius: 12px; padding: 16px; margin: 8px 0 16px; }
.am-fieldset legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.am-tierrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.am-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.am-alert--error { background: #fee2e2; color: #991b1b; }
.am-alert--success { background: #dcfce7; color: #166534; }
.am-alert--info { background: #e0f2fe; color: #075985; }
.am-card { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 20px; margin-bottom: 18px; }
.am-inlineform summary { cursor: pointer; }

/* ---- Shop / filters ---- */
.am-shop { padding: 24px 0; }
.am-shop__head { margin-bottom: 18px; }
.am-shop__title { font-size: 24px; margin: 0; }
.am-shop__layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.am-filters { position: sticky; top: 150px; }
.am-filters__form { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 16px; }
.am-filters__group { padding: 14px 0; border-bottom: 1px solid var(--am-line); }
.am-filters__group:first-child { padding-top: 0; }
.am-filters__group h3 { font-size: 14px; margin: 0 0 10px; }
.am-filters__cats { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.am-filters__cats > li > a { display: flex; justify-content: space-between; padding: 4px 0; }
.am-filters__cats a:hover { color: var(--am-primary); }
.am-filters__cats span { color: var(--am-muted); }
.am-filters__subcats { list-style: none; margin: 2px 0 6px 12px; padding: 0; border-left: 2px solid var(--am-line); }
.am-filters__subcats a { padding: 3px 10px; font-size: 13px; color: var(--am-muted); }
.am-filters__price { display: flex; align-items: center; gap: 6px; }
.am-filters__price input { width: 100%; }
.am-filters__clear { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--am-muted); }
.am-shop__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.am-shop__count { font-size: 13.5px; color: var(--am-muted); }
.am-breadcrumb { font-size: 13px; color: var(--am-muted); margin-bottom: 14px; }
.am-breadcrumb a { color: var(--am-primary); }
.am-empty { text-align: center; padding: 50px 20px; color: var(--am-muted); }
.am-empty svg { color: #cbd5e1; margin-bottom: 12px; }
.am-empty h2 { margin: 0 0 6px; }
.am-pagination { margin-top: 24px; display: flex; justify-content: center; }
.am-pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--am-line); border-radius: 8px; margin: 0 3px; background: #fff; }
.am-pagination .current { background: var(--am-primary); color: #fff; border-color: var(--am-primary); }

/* ---- Product detail (PDP) ---- */
.am-pdp { padding: 20px 0 40px; }
.am-pdp__top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.am-pdp__gallery img { border-radius: var(--am-radius); }
.am-pdp__title { font-size: 26px; margin: 0 0 10px; line-height: 1.25; }
.am-pdp__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--am-muted); margin-bottom: 16px; }
.am-pdp__pricing { background: var(--am-primary-light); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.am-pdp__tierlead { font-size: 13px; color: var(--am-primary-dark); font-weight: 600; margin-bottom: 10px; }
.am-pdp__price { font-size: 26px; font-weight: 800; color: var(--am-primary-dark); }
.am-tiertable { display: flex; gap: 10px; flex-wrap: wrap; }
.am-tier { background: #fff; border: 1px solid #cfe6e8; border-radius: 10px; padding: 10px 14px; text-align: center; flex: 1; min-width: 100px; }
.am-tier__qty { display: block; font-size: 12px; color: var(--am-muted); }
.am-tier__price { display: block; font-size: 18px; font-weight: 800; color: var(--am-primary-dark); }
.am-pdp__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 18px; }
.am-pdp__facts dt { font-size: 12.5px; color: var(--am-muted); }
.am-pdp__facts dd { margin: 2px 0 0; font-weight: 700; }
.am-pdp__cart { margin-bottom: 14px; }
.am-pdp__cart .quantity input { width: 90px; padding: 10px; border: 1px solid var(--am-line); border-radius: 8px; }
.am-pdp__cart button.single_add_to_cart_button { background: var(--am-primary); color: #fff; border: none; padding: 12px 22px; border-radius: 10px; font-weight: 700; cursor: pointer; margin-left: 8px; }
.am-pdp__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.am-pdp__promote { display: flex; align-items: center; gap: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 16px; }
.am-pdp__promote svg { color: var(--am-accent-dark); }
.am-pdp__promote strong { display: block; font-size: 14px; }
.am-pdp__promote span { font-size: 12.5px; color: var(--am-muted); }
.am-pdp__promote .am-btn { margin-left: auto; }
.am-pdp__tabs { margin-top: 32px; }
.am-tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--am-line); }
.am-tabs__nav button { background: none; border: none; padding: 12px 18px; font-weight: 600; color: var(--am-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.am-tabs__nav button.is-active { color: var(--am-primary); border-color: var(--am-primary); }
.am-tabs__panel { display: none; padding: 20px 0; }
.am-tabs__panel.is-active { display: block; }
.am-contactbox { margin-top: 28px; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 22px; }
.am-contactform { margin-top: 12px; }
.am-contactform__to { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.am-contactform textarea { width: 100%; border: 1px solid var(--am-line); border-radius: 10px; padding: 12px; }
.am-contactform__row { display: flex; gap: 16px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.am-contactform__quote { display: flex; gap: 8px; }
.am-contactform__status { font-size: 13px; margin-top: 8px; }
.am-contactform__status.is-ok { color: #166534; }
.am-contactform__status.is-err { color: #991b1b; }
.am-cart__soldby { display: block; font-size: 12px; color: var(--am-muted); }

/* ---- Dashboards ---- */
.am-dash { padding: 24px 0 48px; }
.am-dash__inner { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.am-dash__side { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 16px; position: sticky; top: 150px; }
.am-dash__id { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--am-line); }
.am-dash__avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--am-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.am-dash__role { font-size: 12px; color: var(--am-muted); display: block; }
.am-dash__nav { display: flex; flex-direction: column; gap: 2px; }
.am-dash__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #334155; }
.am-dash__nav a:hover { background: var(--am-bg); }
.am-dash__nav a.is-active { background: var(--am-primary-light); color: var(--am-primary-dark); font-weight: 700; }
.am-dash__main { min-width: 0; }
.am-dash__title { font-size: 24px; margin: 0 0 18px; }
.am-dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.am-dash__head-actions { display: flex; gap: 10px; align-items: center; }
.am-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.am-stat { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 16px 18px; }
.am-stat--accent { background: var(--am-primary); color: #fff; border-color: var(--am-primary); }
.am-stat--accent .am-stat__label { color: #d8f0f2; }
.am-stat__label { display: block; font-size: 12.5px; color: var(--am-muted); margin-bottom: 6px; }
.am-stat__value { display: block; font-size: 24px; font-weight: 800; }
.am-dash__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.am-card h3 { margin: 0 0 12px; font-size: 16px; }
.am-minilist { list-style: none; margin: 0; padding: 0; }
.am-minilist li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--am-line); font-size: 14px; }
.am-minilist li:last-child { border: none; }
.am-minilist span { color: var(--am-muted); font-size: 13px; }
.am-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; }
.am-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--am-muted); padding: 12px 14px; background: var(--am-bg); }
.am-table td { padding: 12px 14px; border-top: 1px solid var(--am-line); font-size: 14px; vertical-align: middle; }
.am-table--sm td, .am-table--sm th { padding: 8px 12px; font-size: 13px; }
.am-table__product { display: flex; align-items: center; gap: 10px; }
.am-table__product img { border-radius: 6px; }
.am-table__actions { display: flex; gap: 12px; align-items: center; }
.am-inline { display: inline; }
.am-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; text-transform: capitalize; background: #eef2f7; color: #475569; }
.am-pill--publish, .am-pill--approved, .am-pill--completed, .am-pill--paid { background: #dcfce7; color: #166534; }
.am-pill--pending, .am-pill--processing, .am-pill--requested, .am-pill--on-hold, .am-pill--submitted { background: #fef9c3; color: #854d0e; }
.am-pill--suspended, .am-pill--cancelled, .am-pill--rejected, .am-pill--warn, .am-pill--void { background: #fee2e2; color: #991b1b; }
.am-barchart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding-top: 10px; }
.am-barchart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.am-barchart__bar { width: 100%; max-width: 46px; background: linear-gradient(var(--am-primary), #14919c); border-radius: 8px 8px 0 0; min-height: 4px; transition: height .4s; }
.am-barchart__label { font-size: 12px; color: var(--am-muted); margin-top: 6px; }
.am-refcode { background: var(--am-primary-light); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.am-refcode__label { display: block; font-size: 11.5px; color: var(--am-muted); }
.am-refcode code { font-weight: 800; color: var(--am-primary-dark); font-size: 15px; }
.am-orderupdate { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.am-orderupdate select, .am-orderupdate input { padding: 6px 8px; font-size: 12.5px; border: 1px solid var(--am-line); border-radius: 7px; }
.am-orderupdate input { width: 100px; }

/* ---- Order cards (buyer) ---- */
.am-ordercard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 18px; margin-bottom: 14px; }
.am-ordercard__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.am-ordercard__head span { color: var(--am-muted); font-size: 12.5px; margin-left: 8px; }
.am-steps { display: flex; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: step; }
.am-steps li { flex: 1; text-align: center; font-size: 12px; color: var(--am-muted); position: relative; padding-top: 22px; }
.am-steps li::before { counter-increment: step; content: ''; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; }
.am-steps li::after { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: #cbd5e1; }
.am-steps li:first-child::after { display: none; }
.am-steps li.is-done { color: var(--am-primary-dark); font-weight: 600; }
.am-steps li.is-done::before { background: var(--am-primary); }
.am-steps li.is-done::after { background: var(--am-primary); }
.am-ordercard__items { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.am-ordercard__item { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.am-ordercard__item img { border-radius: 6px; }
.am-ordercard__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--am-line); padding-top: 12px; flex-wrap: wrap; gap: 10px; }
.am-ordercard__total { font-weight: 700; }
.am-ordercard__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.am-rfqrow__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* ---- RFQ ---- */
.am-rfqpost__head, .am-rfqlist__head { margin-bottom: 20px; }
.am-rfqlist__head { display: flex; justify-content: space-between; align-items: flex-end; }
.am-rfqgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.am-rfqcard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 18px; }
.am-rfqcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.am-rfqcard__top h3 { font-size: 16px; margin: 0; }
.am-rfqcard__time { font-size: 12px; color: var(--am-muted); white-space: nowrap; }
.am-rfqcard__excerpt { font-size: 13.5px; color: var(--am-muted); margin: 8px 0; }
.am-rfqcard__facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--am-muted); margin-bottom: 12px; }
.am-rfqcard__facts span { display: inline-flex; align-items: center; gap: 4px; }
.am-rfqcard__quotes { margin-left: auto; font-weight: 600; color: var(--am-primary); }
.am-rfqcard__quote { margin-top: 8px; }
.am-rfqcard__quote summary { display: inline-flex; list-style: none; }
.am-rfqcard__quote summary::-webkit-details-marker { display: none; }
.am-form--compact { margin-top: 12px; }

/* ---- Affiliate dashboard ---- */
.am-promolist { display: flex; flex-direction: column; gap: 12px; }
.am-promoitem { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 14px; align-items: center; }
.am-promoitem__media img { border-radius: 8px; }
.am-promoitem__title { font-weight: 600; font-size: 14px; }
.am-promoitem__commission { display: block; font-size: 12.5px; color: var(--am-accent-dark); font-weight: 600; margin: 2px 0 6px; }
.am-promoitem__link { display: flex; gap: 6px; align-items: center; }
.am-copyfield, .am-copyfield input { font-size: 12px; border: 1px solid var(--am-line); border-radius: 7px; padding: 6px 8px; max-width: 240px; color: var(--am-muted); }
.am-share { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; }
.am-share a { color: var(--am-primary); font-weight: 600; }
.am-promoitem__stats { display: flex; gap: 16px; text-align: center; }
.am-promoitem__stats span { font-size: 11.5px; color: var(--am-muted); display: flex; flex-direction: column; }
.am-promoitem__stats strong { font-size: 16px; color: var(--am-ink); }
.am-promoitem__controls { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.am-switch { font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.am-assetgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.am-assetcard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 12px; text-align: center; }
.am-assetcard__banner { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.am-assetcard__cta { position: absolute; bottom: 6px; left: 6px; background: var(--am-accent); color: #3a2a06; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.am-assetcard__qr { margin: 8px auto; }
.am-affhelp { background: var(--am-primary-light); border-color: #bfe3e6; }

/* ---- Showcase + landing ---- */
.am-showcase__hero { display: flex; gap: 18px; align-items: center; padding: 24px 0 28px; }
.am-showcase__avatar { border-radius: 50%; }
.am-showcase__kicker { font-size: 12.5px; color: var(--am-muted); text-transform: uppercase; letter-spacing: .04em; }
.am-showcase__hero h1 { font-size: 28px; margin: 4px 0; }
.am-landing__hero { background: linear-gradient(120deg, #0A5C64, #0E7C86); color: #fff; padding: 50px 0; }
.am-landing--affiliate .am-landing__hero { background: linear-gradient(120deg, #11343a, #0E7C86); }
.am-landing__heroinner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.am-landing__kicker { text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--am-accent); font-weight: 700; }
.am-landing__hero h1 { color: #fff; font-size: 36px; margin: 10px 0 14px; line-height: 1.15; }
.am-landing__hero p { color: #d8f0f2; font-size: 16px; margin-bottom: 22px; }
.am-landing__stats { display: flex; gap: 14px; }
.am-landing__stats div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 16px; text-align: center; flex: 1; }
.am-landing__stats strong { display: block; font-size: 20px; }
.am-landing__stats span { font-size: 12px; color: #cdeaec; }
.am-landing__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 40px 0; }
.am-landing__steps .am-affstep { background: #fff; border: 1px solid var(--am-line); color: var(--am-ink); flex-direction: column; align-items: flex-start; }
.am-landing__steps h3 { font-size: 15px; margin: 8px 0 4px; }
.am-landing__steps p { font-size: 13px; color: var(--am-muted); margin: 0; }
.am-landing__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 30px 0; }
.am-feature { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 20px; }
.am-feature svg { color: var(--am-primary); margin-bottom: 8px; }
.am-feature h3 { font-size: 15px; margin: 0 0 6px; }
.am-feature p { font-size: 13px; color: var(--am-muted); margin: 0; }
.am-landing__cta { text-align: center; padding: 40px 0 50px; }
.am-landing__cta h2 { font-size: 26px; margin: 0 0 16px; }

/* ---- Storefront ---- */
.am-store__banner { background: linear-gradient(120deg, #0A5C64, #14919c) center/cover; color: #fff; }
.am-store__bannerinner { display: flex; align-items: center; gap: 18px; padding: 34px 0; flex-wrap: wrap; }
.am-store__logo { width: 72px; height: 72px; border-radius: 16px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.am-store__id { flex: 1; }
.am-store__id h1 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.am-store__sub { font-size: 13.5px; color: #d8f0f2; }
.am-store__cta { display: flex; gap: 8px; }
.am-store__nav { background: #fff; border-bottom: 1px solid var(--am-line); position: sticky; top: 132px; z-index: 10; }
.am-store__nav .am-container { display: flex; gap: 8px; }
.am-store__nav a { padding: 14px 16px; font-weight: 600; font-size: 14px; color: var(--am-muted); border-bottom: 2px solid transparent; }
.am-store__nav a.is-active { color: var(--am-primary); border-color: var(--am-primary); }
.am-store__body { padding: 28px 0; }
.am-store__body section { margin-bottom: 36px; }
.am-store__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 20px; }
.am-store__facts dt { font-size: 12.5px; color: var(--am-muted); }
.am-store__facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---- Messaging inbox ---- */
.am-inbox { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; background: #fff; min-height: 480px; }
.am-inbox__list { border-right: 1px solid var(--am-line); overflow-y: auto; max-height: 560px; }
.am-inbox__thread { display: flex; gap: 10px; padding: 12px 14px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--am-line); cursor: pointer; }
.am-inbox__thread:hover { background: var(--am-bg); }
.am-inbox__thread.is-active { background: var(--am-primary-light); }
.am-inbox__thread.is-unread { font-weight: 600; }
.am-inbox__thread.is-unread::after { content: ''; width: 8px; height: 8px; background: var(--am-accent); border-radius: 50%; margin-left: auto; align-self: center; }
.am-inbox__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--am-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.am-inbox__meta { min-width: 0; }
.am-inbox__meta strong { display: block; font-size: 13.5px; }
.am-inbox__meta small { color: var(--am-muted); font-size: 12px; }
.am-inbox__preview { display: block; font-size: 12.5px; color: var(--am-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-inbox__conv { display: flex; flex-direction: column; }
.am-inbox__empty { margin: auto; text-align: center; color: var(--am-muted); }
.am-inbox__thread-view { display: flex; flex-direction: column; height: 100%; }
.am-inbox__messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.am-msg { display: flex; }
.am-msg--mine { justify-content: flex-end; }
.am-msg__bubble { max-width: 70%; padding: 9px 13px; border-radius: 14px; font-size: 14px; background: #eef2f7; }
.am-msg--mine .am-msg__bubble { background: var(--am-primary); color: #fff; }
.am-msg__quote { font-size: 12px; font-weight: 700; margin-bottom: 4px; opacity: .9; }
.am-msg__time { display: block; font-size: 10.5px; opacity: .7; margin-top: 4px; }
.am-inbox__compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--am-line); }
.am-inbox__compose input { flex: 1; border: 1px solid var(--am-line); border-radius: 999px; padding: 10px 16px; outline: none; }
.am-loading { color: var(--am-muted); text-align: center; padding: 20px; }

/* ---- Modal + toast ---- */
.am-modal { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 999; opacity: 0; transition: opacity .2s; padding: 20px; }
.am-modal.is-on { opacity: 1; }
.am-modal__box { background: #fff; border-radius: 18px; padding: 28px; max-width: 420px; width: 100%; text-align: center; position: relative; box-shadow: var(--am-shadow); }
.am-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--am-muted); line-height: 1; }
.am-modal__box h3 { margin: 0 0 8px; }
.am-modal__link { display: flex; gap: 8px; margin: 16px 0; }
.am-modal__link input { flex: 1; border: 1px solid var(--am-line); border-radius: 8px; padding: 10px; font-size: 13px; }
.am-modal__share { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.am-modal__share a { color: var(--am-primary); font-weight: 600; }
.am-modal__qr { margin: 0 auto 14px; border-radius: 10px; }
.am-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--am-ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; z-index: 9999; opacity: 0; transition: all .25s; }
.am-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Blog fallback ---- */
.am-page { padding: 30px 0 50px; }
.am-postlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.am-postcard { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; }
.am-postcard h2 { font-size: 18px; padding: 0 16px; }
.am-postcard__excerpt { padding: 0 16px; color: var(--am-muted); font-size: 14px; }
.am-postcard .am-btn { margin: 14px 16px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
	.am-productgrid { grid-template-columns: repeat(3, 1fr); }
	.am-catgrid, .am-supplierrow { grid-template-columns: repeat(4, 1fr); }
	.am-assetgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.am-hero__inner, .am-pdp__top, .am-authgrid, .am-affcta, .am-landing__heroinner { grid-template-columns: 1fr; }
	.am-dash__inner { grid-template-columns: 1fr; }
	.am-dash__side, .am-filters, .am-store__nav { position: static; }
	.am-shop__layout { grid-template-columns: 1fr; }
	.am-filters { order: 2; }
	.am-statgrid, .am-landing__steps, .am-landing__features { grid-template-columns: repeat(2, 1fr); }
	.am-footer__cols, .am-footer__trust-grid { grid-template-columns: repeat(2, 1fr); }
	.am-hero__title, .am-landing__hero h1 { font-size: 30px; }
	.am-search__cat { display: none; }
	.am-promoitem { grid-template-columns: 60px 1fr; }
	.am-promoitem__stats, .am-promoitem__controls { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
	/* Show hamburger, hide the desktop category bar */
	.am-burger { display: flex; }
	.am-catbar { display: none; }
	/* Dashboard nav becomes a horizontal scroller */
	.am-dash__nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
	.am-dash__nav a { white-space: nowrap; flex: 0 0 auto; }
	/* Wide tables scroll inside their container instead of breaking the page */
	.am-card, .am-dash__main, .am-shop__results { overflow-x: auto; }
	.am-table { min-width: 540px; }
	.am-store__nav .am-container { overflow-x: auto; }
}
@media (max-width: 620px) {
	/* Two-up product/category/supplier cards feel right on phones */
	.am-productgrid, .am-catgrid, .am-supplierrow { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.am-rfqgrid, .am-promos, .am-postlist, .am-assetgrid, .am-statgrid, .am-form__row, .am-roletabs,
	.am-dash__cols, .am-pdp__facts, .am-suppliercard__facts, .am-store__facts, .am-footer__cols, .am-footer__trust-grid { grid-template-columns: 1fr; }
	.am-utilbar { display: none; }
	.am-mainbar__inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
	.am-brand { order: 1; font-size: 19px; }
	.am-actions { order: 2; margin-left: auto; gap: 10px; }
	.am-search { order: 3; width: 100%; max-width: none; }
	.am-account { display: none; } /* sign-in / account live in the hamburger menu */
	.am-inbox { grid-template-columns: 1fr; }
	.am-inbox__list { max-height: 200px; }
	.am-hero__inner { padding: 28px 0 34px; }
	.am-hero__title { font-size: 24px; }
	.am-hero__sub { font-size: 15px; }
	.am-section { padding: 22px 0; }
	.am-section__head h2 { font-size: 19px; }
	.am-dash, .am-shop, .am-pdp { padding: 14px 0 32px; }
	.am-pcard__title { font-size: 13px; min-height: 34px; }
	.am-pcard__amount { font-size: 16px; }
	.am-pcard__actions { flex-direction: column; }
	.am-tiertable { flex-direction: column; }
	.am-tier { min-width: 0; }
	.am-modal__box { padding: 22px; }
	/* Category chips scroll sideways instead of stacking into many rows */
	.am-chiprow { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
	.am-chiprow .am-btn { flex: 0 0 auto; }
	.am-hero__chips { gap: 6px; }
}
