/* ============================================================
   EZShop – ezshop.biz  v2.0
   Affiliate Product Store Styles
   ============================================================ */

/* ── Variables ── */
:root {
  --ez-bg:          #f8fafc;
  --ez-card-bg:     #ffffff;
  --ez-border:      #e2e8f0;
  --ez-radius:      12px;
  --ez-shadow:      0 2px 8px rgba(15,23,42,.07);
  --ez-shadow-hover:0 8px 28px rgba(15,23,42,.13);
  --ez-primary:     #0ea5e9;
  --ez-primary-dk:  #0284c7;
  --ez-green:       #059669;
  --ez-red:         #dc2626;
  --ez-text:        #0f172a;
  --ez-muted:       #64748b;
  --ez-badge-hot:   #ef4444;
  --ez-badge-new:   #8b5cf6;
  --ez-badge-sale:  #f59e0b;
  --ez-badge-best:  #0ea5e9;
  --ez-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ez-transition:  all .2s ease;
}

/* ── Product Card ── */
.ez-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  overflow: hidden;
  transition: var(--ez-transition);
  font-family: var(--ez-font);
}
.ez-card:hover {
  box-shadow: var(--ez-shadow-hover);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* ── Card Image (framed like a marketplace listing photo) ── */
.ez-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafbfc;
  border-bottom: 1px solid var(--ez-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.ez-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.ez-card:hover .ez-card__img img {
  transform: scale(1.05);
}
.ez-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* ── Card Body ── */
.ez-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.ez-ship-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--ez-green);
  font-weight: 600;
}
.ez-title {

  font-size: .95rem;
  font-weight: 600;
  color: var(--ez-text);
  line-height: 1.4;
}
.ez-desc {
  font-size: .82rem;
  color: var(--ez-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Price ── */
.ez-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.ez-price__current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ez-green);
}
.ez-price__sale {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ez-red);
}
.ez-price__original {
  font-size: .88rem;
  color: var(--ez-muted);
  text-decoration: line-through;
}
.ez-price__savings {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ez-red);
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 20px;
}

/* ── CTA Button ── */
.ez-cta {
  display: block;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--ez-primary);
  color: #fff !important;
  font-size: .89rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: var(--ez-transition);
  box-shadow: 0 1px 2px rgba(15,23,42,.12);
}
.ez-cta:hover {
  filter: brightness(.93);
  text-decoration: none !important;
}
.ez-cta:active { transform: translateY(1px); }

/* ── Badges ── */
.ez-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
  line-height: 1;
}
.ez-badge--hot        { background: var(--ez-badge-hot); }
.ez-badge--new        { background: var(--ez-badge-new); }
.ez-badge--sale       { background: var(--ez-badge-sale); }
.ez-badge--bestseller { background: var(--ez-badge-best); }

/* ── Grid ── */
.ez-grid {
  display: grid;
  gap: 20px;
  padding: 8px 0;
}
.ez-grid--cols-1 { grid-template-columns: 1fr; }
.ez-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ez-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ez-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .ez-grid--cols-4,
  .ez-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ez-grid--cols-4,
  .ez-grid--cols-3,
  .ez-grid--cols-2 { grid-template-columns: 1fr; }
}
.ez-empty {
  color: var(--ez-muted);
  font-style: italic;
  text-align: center;
  padding: 24px;
}

/* ── Price Comparison Table ── */
.ez-compare {
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 20px;
  margin: 20px 0;
  font-family: var(--ez-font);
}
.ez-compare__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ez-text);
  margin: 0 0 14px;
}
.ez-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.ez-compare__table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--ez-bg);
  color: var(--ez-muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ez-compare__table td {
  padding: 10px 12px;
  border-top: 1px solid var(--ez-border);
}
.ez-compare__btn {
  display: inline-block;
  padding: 5px 12px;
  background: var(--ez-primary);
  color: #fff !important;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--ez-transition);
}
.ez-compare__btn:hover { opacity: .85; }

/* ── Affiliate Disclosure Bar ── */
.ez-disclosure-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #e2e8f0;
  font-family: var(--ez-font);
  font-size: .82rem;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  line-height: 1.4;
}
.ez-disclosure-bar a {
  color: #38bdf8;
  text-decoration: underline;
}
.ez-disclosure-bar button {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.ez-disclosure-bar button:hover { color: #e2e8f0; }

/* ── Network Color Dots (for cards) ── */
.ez-card[data-network="amazon"]     .ez-cta { background: #FF9900; color: #111 !important; }
.ez-card[data-network="walmart"]    .ez-cta { background: #0071CE; }
.ez-card[data-network="bestbuy"]    .ez-cta { background: #003B64; }
.ez-card[data-network="etsy"]       .ez-cta { background: #F1641E; }
.ez-card[data-network="shareasale"] .ez-cta { background: #00A651; }
.ez-card[data-network="cj"]         .ez-cta { background: #EF3E42; }
.ez-card[data-network="giddyup"]    .ez-cta { background: #6C35DE; }
.ez-card[data-network="ebay"]       .ez-cta { background: #E53238; }

.ez-ebay-link {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: #E53238;
  color: #fff !important;
  font-weight: 700;
  font-size: .89rem;
  text-decoration: none !important;
}
.ez-ebay-link:hover { filter: brightness(.93); }

/* ============================================================
   EZShop – Page Layout Sections (Home / Shop / Category / About)
   ============================================================ */

.ez-hero {
  background: linear-gradient(135deg, var(--ez-primary) 0%, var(--ez-primary-dk) 100%);
  border-radius: var(--ez-radius);
  padding: 72px 32px;
  text-align: center;
  color: #fff;
  margin-bottom: 48px;
}
.ez-hero__inner { max-width: 640px; margin: 0 auto; }
.ez-hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.15;
}
.ez-hero__subtitle {
  font-size: 1.1rem;
  opacity: .92;
  margin: 0 0 28px;
}

.ez-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--ez-transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.ez-btn--primary {
  background: #fff;
  color: var(--ez-primary-dk);
}
.ez-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--ez-shadow-hover); }
.ez-btn--outline {
  background: transparent;
  border-color: var(--ez-primary);
  color: var(--ez-primary);
}
.ez-btn--outline:hover { background: var(--ez-primary); color: #fff; }

.ez-section { padding: 40px 0; }
.ez-section--muted { background: var(--ez-bg); border-radius: var(--ez-radius); padding: 40px 24px; }
.ez-section--narrow { max-width: 760px; margin: 0 auto; }
.ez-section__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ez-text);
  margin: 0 0 8px;
  text-align: center;
}
.ez-section__intro {
  text-align: center;
  color: var(--ez-muted);
  margin: 0 0 28px;
}

.ez-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.ez-why-item {
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 24px;
  text-align: center;
}
.ez-why-item h3 { margin: 0 0 8px; color: var(--ez-text); font-size: 1.05rem; }
.ez-why-item p { margin: 0; color: var(--ez-muted); font-size: .95rem; }

.ez-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.ez-cat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: var(--ez-radius);
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  color: var(--ez-text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--ez-shadow);
  transition: var(--ez-transition);
}
.ez-cat-card:hover { box-shadow: var(--ez-shadow-hover); transform: translateY(-3px); color: var(--ez-primary-dk); }

.ez-newsletter {
  text-align: center;
  background: var(--ez-text);
  color: #fff;
  border-radius: var(--ez-radius);
  padding: 44px 24px;
  margin: 48px 0;
}
.ez-newsletter h2 { color: #fff; margin: 0 0 8px; }
.ez-newsletter p { color: #cbd5e1; margin: 0 0 6px; }
.ez-newsletter__note { font-size: .85rem; opacity: .7; }

.ez-page-header { text-align: center; padding: 32px 0 24px; }
.ez-page-header h1 { font-size: 2rem; margin: 0 0 10px; color: var(--ez-text); }
.ez-page-header p { color: var(--ez-muted); max-width: 640px; margin: 0 auto; }

.ez-cat-cta { text-align: center; margin: 32px 0 8px; }

.ez-disclosure-note {
  text-align: center;
  color: var(--ez-muted);
  font-size: .85rem;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .ez-why-grid { grid-template-columns: 1fr; }
  .ez-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ez-hero { padding: 48px 20px; }
  .ez-hero__title { font-size: 1.7rem; }
  .ez-cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   EZShop – Legal Document Pages (Privacy Policy / Terms)
   ============================================================ */

.ez-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.ez-legal__updated {
  display: inline-block;
  background: var(--ez-bg);
  border: 1px solid var(--ez-border);
  color: var(--ez-muted);
  font-size: .82rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.ez-legal__notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--ez-badge-sale);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 32px;
  font-size: .9rem;
  color: #78350f;
  line-height: 1.55;
}
.ez-legal__notice strong { color: #78350f; }

.ez-toc {
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.ez-toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ez-muted);
  margin: 0 0 12px;
}
.ez-toc ol {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}
.ez-toc li { margin-bottom: 6px; }
.ez-toc a { color: var(--ez-primary-dk); text-decoration: none; font-size: .93rem; }
.ez-toc a:hover { text-decoration: underline; }

.ez-legal-section { margin-bottom: 32px; scroll-margin-top: 24px; }
.ez-legal-section h2 {
  font-size: 1.25rem;
  color: var(--ez-text);
  border-bottom: 2px solid var(--ez-border);
  padding-bottom: 8px;
  margin: 0 0 14px;
}
.ez-legal-section p, .ez-legal-section li {
  color: #334155;
  line-height: 1.7;
  font-size: .97rem;
}
.ez-legal-section ul { padding-left: 22px; margin: 10px 0; }
.ez-legal-section li { margin-bottom: 6px; }
.ez-legal-section .ez-fill {
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 4px;
  font-style: normal;
  color: #92400e;
  font-weight: 600;
}

@media (max-width: 600px) {
  .ez-toc ol { columns: 1; }
}

/* ============================================================
   EZShop – Marketplace Polish (trust bar, category nav, mega footer)
   ============================================================ */

/* ── Trust / service bar ── */
.ez-trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 22px 12px;
  margin-bottom: 40px;
}
.ez-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.ez-trust-item__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-primary);
}
.ez-trust-item__icon svg { width: 100%; height: 100%; }
.ez-trust-item__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ez-text);
}
.ez-trust-item__sub {
  font-size: .74rem;
  color: var(--ez-muted);
}

/* ── Category quick-nav pills ── */
.ez-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 4px 0 36px;
}
.ez-cat-nav a {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  color: var(--ez-text);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: var(--ez-transition);
}
.ez-cat-nav a:hover,
.ez-cat-nav a.is-active {
  background: var(--ez-primary);
  border-color: var(--ez-primary);
  color: #fff;
}

/* ── Mega footer ── */
.ez-megafooter {
  background: var(--ez-text);
  color: #cbd5e1;
  margin-top: 56px;
  padding: 48px 24px 0;
}
.ez-megafooter__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ez-megafooter h3 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 16px;
}
.ez-megafooter p { font-size: .87rem; line-height: 1.6; color: #94a3b8; margin: 0; }
.ez-megafooter ul { list-style: none; margin: 0; padding: 0; }
.ez-megafooter li { margin-bottom: 10px; }
.ez-megafooter a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .87rem;
}
.ez-megafooter a:hover { color: #fff; text-decoration: underline; }
.ez-megafooter__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .8rem;
  color: #94a3b8;
}
.ez-megafooter__bottom a { color: #94a3b8; }
.ez-megafooter__bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .ez-trustbar { grid-template-columns: repeat(2, 1fr); }
  .ez-megafooter__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ez-trustbar { grid-template-columns: 1fr; }
  .ez-megafooter__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   AMAZON-STYLE SHOP PAGE
   Scoped to .ez-shop / .ez-shopbar so only the shop page changes —
   home, category, and legal pages keep the original ezshop look.
   ============================================================ */
:root {
  --ez-amz-navy:      #131921;
  --ez-amz-navy-2:    #232f3e;
  --ez-amz-orange:    #FF9900;
  --ez-amz-orange-dk: #E88A00;
  --ez-amz-gold:      #FFD814;
  --ez-amz-gold-dk:   #F7CA00;
  --ez-amz-gold-bd:   #FCD200;
  --ez-amz-link:      #007185;
  --ez-amz-link-dk:   #C7511F;
  --ez-amz-bg:        #EAEDED;
  --ez-amz-red:       #B12704;
  --ez-amz-text:      #0F1111;
  --ez-amz-muted:     #565959;
  --ez-amz-border:    #D5D9D9;
}

/* ── Sticky search + sort bar ── */
.ez-shopbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ez-amz-navy);
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  font-family: var(--ez-font);
  flex-wrap: wrap;
}
.ez-shopbar__logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ez-shopbar__logo span { color: var(--ez-amz-orange); }
.ez-shopbar__search {
  flex: 1;
  min-width: 220px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}
.ez-shopbar__search input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: .95rem;
  outline: none;
  font-family: var(--ez-font);
}
.ez-shopbar__search button {
  background: var(--ez-amz-orange);
  border: none;
  padding: 0 16px;
  color: var(--ez-amz-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--ez-transition);
}
.ez-shopbar__search button:hover { background: var(--ez-amz-orange-dk); }
.ez-shopbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .85rem;
  white-space: nowrap;
}
.ez-shopbar__sort select {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--ez-amz-border);
  font-family: var(--ez-font);
  font-size: .85rem;
  background: #fff;
}

/* ── Shop body: sidebar + main ── */
.ez-shop {
  background: var(--ez-amz-bg);
  border-radius: 0 0 8px 8px;
  padding: 20px;
  font-family: var(--ez-font);
}
.ez-shop__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ── */
.ez-sidebar {
  background: #fff;
  border: 1px solid var(--ez-amz-border);
  border-radius: 8px;
  padding: 16px;
  position: sticky;
  top: 16px;
}
.ez-sidebar__section { margin-bottom: 20px; }
.ez-sidebar__section:last-of-type { margin-bottom: 12px; }
.ez-sidebar__section h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ez-amz-text);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ez-amz-border);
}
.ez-sidebar__list { list-style: none; margin: 0; padding: 0; }
.ez-sidebar__cat {
  padding: 6px 4px;
  font-size: .87rem;
  color: var(--ez-amz-link);
  cursor: pointer;
  border-radius: 4px;
}
.ez-sidebar__cat:hover { text-decoration: underline; color: var(--ez-amz-link-dk); }
.ez-sidebar__cat.is-active {
  font-weight: 700;
  color: var(--ez-amz-text);
  background: var(--ez-amz-bg);
}
.ez-sidebar__retailers,
.ez-sidebar__prices { display: flex; flex-direction: column; gap: 8px; }
.ez-sidebar__checkbox,
.ez-sidebar__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--ez-amz-text);
  cursor: pointer;
}
.ez-sidebar__checkbox input,
.ez-sidebar__radio input { accent-color: var(--ez-amz-link-dk); }
.ez-sidebar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ez-sidebar__clear {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--ez-amz-border);
  background: #fff;
  color: var(--ez-amz-link);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ez-transition);
}
.ez-sidebar__clear:hover { background: var(--ez-amz-bg); }

/* ── Main results area ── */
.ez-shop__main { min-width: 0; }
.ez-shop__resultsbar {
  padding: 4px 4px 14px;
  font-size: .85rem;
  color: var(--ez-amz-muted);
}
.ez-shop__count { font-weight: 600; color: var(--ez-amz-text); }
.ez-shop__empty {
  background: #fff;
  border: 1px solid var(--ez-amz-border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: var(--ez-amz-muted);
  font-size: .95rem;
}
.ez-shop__empty button {
  margin-left: 6px;
  background: none;
  border: none;
  color: var(--ez-amz-link);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: .95rem;
}

/* ── Amazon-style product cards (scoped to the shop page only) ── */
.ez-shop .ez-grid { gap: 16px; }
.ez-shop .ez-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .ez-shop .ez-grid--cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .ez-shop .ez-grid--cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ez-shop .ez-grid--cols-4 { grid-template-columns: 1fr; } }

.ez-shop .ez-card {
  border-radius: 4px;
  border-color: var(--ez-amz-border);
}
.ez-shop .ez-card:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(15,17,17,.1);
  border-color: #a6a6a6;
}
.ez-shop .ez-card__img { aspect-ratio: 1 / 1; padding: 18px; background: #fff; }
.ez-shop .ez-title {
  font-size: .88rem;
  font-weight: 400;
  color: var(--ez-amz-link);
  min-height: 2.5em;
}
.ez-shop .ez-card:hover .ez-title { color: var(--ez-amz-link-dk); text-decoration: underline; }
.ez-shop .ez-desc { display: none; }
.ez-shop .ez-ship-line {
  color: var(--ez-amz-muted);
  font-weight: 400;
  font-size: .75rem;
}

.ez-shop .ez-price__current,
.ez-shop .ez-price__sale {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ez-amz-text);
}
.ez-shop .ez-price__current::before,
.ez-shop .ez-price__sale::before { content: ""; }
.ez-shop .ez-price__original {
  font-size: .82rem;
  color: var(--ez-amz-muted);
}
.ez-shop .ez-price__savings {
  background: none;
  color: var(--ez-amz-red);
  padding: 0;
  font-size: .82rem;
}

.ez-shop .ez-cta {
  background: var(--ez-amz-gold) !important;
  color: var(--ez-amz-text) !important;
  border: 1px solid var(--ez-amz-gold-bd);
  border-radius: 20px;
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 14px;
  box-shadow: 0 2px 4px rgba(15,17,17,.08);
}
.ez-shop .ez-cta:hover { background: var(--ez-amz-gold-dk) !important; }

.ez-shop .ez-badge {
  border-radius: 3px;
  font-size: .68rem;
  padding: 3px 8px;
}
.ez-shop .ez-badge--hot        { background: var(--ez-amz-red); }
.ez-shop .ez-badge--sale       { background: var(--ez-amz-red); }
.ez-shop .ez-badge--bestseller { background: var(--ez-amz-orange); color: #111; }
.ez-shop .ez-badge--new        { background: #7C3AED; }

/* Retailer tag with color dot, shown above the title */
.ez-shop .ez-card__body { gap: 5px; padding: 12px 12px 14px; }
.ez-retailer-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ez-amz-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ez-retailer-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ez-shop .ez-ship-line { display: none; }

@media (max-width: 900px) {
  .ez-shop__body { grid-template-columns: 1fr; }
  .ez-sidebar { position: static; }
}

/* ============================================================
   HOMEPAGE — photo hero, imaged category cards, steps,
   testimonials, blog teaser (richer content pass)
   ============================================================ */
.ez-hero--photo {
  background-size: cover;
  background-position: center;
  text-align: left;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.ez-hero--photo .ez-hero__inner { max-width: 560px; margin: 0; }
.ez-hero--photo .ez-hero__title { font-size: 2.6rem; }

.ez-cat-card {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}
.ez-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,25,33,.05) 40%, rgba(19,25,33,.75) 100%);
}
.ez-cat-card__label {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 100%;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1.05rem;
}
.ez-cat-card { align-items: stretch; justify-content: flex-end; flex-direction: column; }
.ez-cat-card:hover { color: #fff; }

.ez-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.ez-step {
  text-align: center;
  padding: 8px;
}
.ez-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ez-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.ez-step h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ez-text); }
.ez-step p { margin: 0; color: var(--ez-muted); font-size: .9rem; }

.ez-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.ez-testimonial {
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 22px;
}
.ez-testimonial__quote {
  margin: 0 0 12px;
  color: var(--ez-text);
  font-size: .95rem;
  line-height: 1.5;
}
.ez-testimonial__name { margin: 0; color: var(--ez-muted); font-size: .85rem; font-weight: 600; }

.ez-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.ez-blog-card {
  display: block;
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--ez-shadow);
  transition: var(--ez-transition);
}
.ez-blog-card:hover { box-shadow: var(--ez-shadow-hover); transform: translateY(-3px); }
.ez-blog-card__img {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.ez-blog-card__body { padding: 16px; }
.ez-blog-card__cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ez-primary-dk);
  margin-bottom: 6px;
}
.ez-blog-card h3 {
  margin: 0;
  font-size: .98rem;
  color: var(--ez-text);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .ez-steps, .ez-testimonials, .ez-blog-grid { grid-template-columns: 1fr; }
  .ez-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ez-hero--photo .ez-hero__inner { max-width: 100%; }
}

/* ── Streamlined trustbar on the shop page (compact, single-line) ── */
.ez-shop-trustbar .ez-trustbar {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 20px;
  margin-bottom: 0;
  border-radius: 0;
  gap: 24px;
}
.ez-shop-trustbar .ez-trust-item__sub { display: none; }
.ez-shop-trustbar .ez-trust-item {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.ez-shop-trustbar .ez-trust-item__icon { width: 18px; height: 18px; }
.ez-shop-trustbar .ez-trust-item__label { font-size: .8rem; }

/* ============================================================
   POLISH PASS — micro-interactions, accessibility, mobile filters,
   404 page, and product-detail page styling
   ============================================================ */

html { scroll-behavior: smooth; }

/* Consistent, visible keyboard focus everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ez-amz-link, #007185);
  outline-offset: 2px;
}

/* Sticky shop search bar so filters/search stay reachable while scrolling */
.ez-shopbar { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* Subtle pulse on urgency badges */
@keyframes ez-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177,39,4,.35); }
  50%      { box-shadow: 0 0 0 4px rgba(177,39,4,0); }
}
.ez-badge--hot, .ez-shop .ez-badge--hot { animation: ez-badge-pulse 2s ease-in-out infinite; }

/* Button press feedback */
.ez-btn:active, .ez-cta:active, .ez-shopbar__search button:active { transform: scale(.97); }

/* Section reveal-on-scroll (progressive enhancement — content is visible
   by default; JS only adds the animated entrance when supported) */
.ez-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.ez-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Mobile filter toggle (shop page) ── */
.ez-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--ez-amz-border);
  background: #fff;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
}
.ez-mobile-filter-btn.is-active { background: var(--ez-amz-navy); color: #fff; border-color: var(--ez-amz-navy); }
.ez-shop__resultsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .ez-mobile-filter-btn { display: inline-flex; }
  .ez-sidebar {
    display: none;
    margin-bottom: 16px;
  }
  .ez-sidebar.is-open { display: block; }
}

/* ── 404 page ── */
.ez-404 {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  text-align: center;
}
.ez-404__eyebrow {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ez-primary);
  margin: 0 0 8px;
}
.ez-404__title { font-size: 2rem; font-weight: 800; color: var(--ez-text); margin: 0 0 10px; }
.ez-404__subtitle { color: var(--ez-muted); font-size: 1rem; margin: 0 0 28px; line-height: 1.6; }
.ez-404__search { display: flex; max-width: 420px; margin: 0 auto 28px; border-radius: 999px; overflow: hidden; border: 1px solid var(--ez-border); }
.ez-404__search input { flex: 1; border: none; padding: 12px 18px; font-size: .95rem; outline: none; }
.ez-404__search button { border: none; background: var(--ez-primary); color: #fff; padding: 0 22px; font-weight: 600; cursor: pointer; }
.ez-404__links { display: flex; gap: 14px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.ez-404__categories { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.ez-404__categories a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ez-bg);
  color: var(--ez-text);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--ez-transition);
}
.ez-404__categories a:hover { background: var(--ez-primary); color: #fff; }
.ez-404__trending { max-width: 1100px; margin: 40px auto 0; padding: 0 20px; }
.ez-404__trending h2 { text-align: center; font-size: 1.3rem; color: var(--ez-text); margin-bottom: 8px; }

/* ── Product detail page (WooCommerce single product) ── */
.ez-pdp-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: var(--ez-bg);
  border-radius: var(--ez-radius);
}
.ez-pdp-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--ez-text);
}
.ez-pdp-trust__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ez-primary); }
.ez-pdp-related { margin-top: 48px; }
.ez-pdp-related h2 { font-size: 1.4rem; color: var(--ez-text); margin-bottom: 8px; }

@media (max-width: 600px) {
  .ez-404__title { font-size: 1.5rem; }
  .ez-hero--photo { min-height: 280px; text-align: center; }
  .ez-hero--photo .ez-hero__inner { max-width: 100%; }
}

/* ── Search match highlighting ── */
.ez-title mark {
  background: #fff3b0;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* ============================================================
   HERO SLIDER + PRODUCT SLIDERS
   ============================================================ */

/* ── Hero slider ── */
.ez-hero-slider {
  position: relative;
  min-height: 380px;
  border-radius: var(--ez-radius);
  overflow: hidden;
}
.ez-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  z-index: 1;
}
.ez-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.ez-hero-slide .ez-hero__inner { max-width: 560px; margin: 0; padding: 0 48px; }
.ez-hero-slide .ez-hero__title { font-size: 2.6rem; }

.ez-hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  color: var(--ez-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ez-transition);
}
.ez-hero-slider__arrow:hover { background: #fff; }
.ez-hero-slider__arrow--prev { left: 16px; }
.ez-hero-slider__arrow--next { right: 16px; }

.ez-hero-slider__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.ez-hero-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}
.ez-hero-slider__dot.is-active { background: #fff; }

@media (max-width: 600px) {
  .ez-hero-slider { min-height: 280px; }
  .ez-hero-slide .ez-hero__inner { padding: 0 24px; max-width: 100%; }
  .ez-hero-slide .ez-hero__title { font-size: 1.7rem; }
}

/* ── Horizontal product sliders (Recently Viewed / Deals / Trending) ── */
.ez-slider {
  position: relative;
  margin-top: 20px;
}
.ez-slider__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
}
.ez-slider__track::-webkit-scrollbar { height: 8px; }
.ez-slider__track::-webkit-scrollbar-thumb { background: var(--ez-border); border-radius: 4px; }
.ez-slider__item {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.ez-slider__item .ez-card { height: 100%; }
.ez-slider__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ez-border);
  background: #fff;
  color: var(--ez-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ez-shadow);
  transition: var(--ez-transition);
}
.ez-slider__arrow:hover { box-shadow: var(--ez-shadow-hover); }
.ez-slider__arrow--prev { left: -14px; }
.ez-slider__arrow--next { right: -14px; }

@media (max-width: 600px) {
  .ez-slider__item { flex-basis: 168px; }
  .ez-slider__arrow { display: none; } /* touch scroll is the primary interaction on mobile */
}

/* ============================================================
   FACETED FILTERS — condition, brand, custom price range, rating
   ============================================================ */
.ez-sidebar__price-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ez-amz-border, #D5D9D9);
}
.ez-sidebar__price-custom input[type="number"] {
  width: 64px;
  padding: 5px 7px;
  border: 1px solid var(--ez-amz-border, #D5D9D9);
  border-radius: 4px;
  font-size: .82rem;
}
.ez-sidebar__price-custom span { font-size: .78rem; color: var(--ez-amz-muted, #565959); }
.ez-sidebar__price-custom button {
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--ez-amz-border, #D5D9D9);
  background: #f0f2f2;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.ez-sidebar__price-custom button:hover { background: #e3e6e6; }

.ez-sidebar__conditions,
.ez-sidebar__brands,
.ez-sidebar__ratings { display: flex; flex-direction: column; gap: 8px; max-height: 160px; overflow-y: auto; }

/* Star rating on product cards */
.ez-rating { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.ez-rating__stars { color: #FFA41C; font-size: .85rem; letter-spacing: 1px; }
.ez-rating__num { font-size: .78rem; color: var(--ez-amz-muted, #565959); }

/* Condition tag next to product title */
.ez-condition-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
}
.ez-condition-tag--open-box  { background: #FFF3CD; color: #7A5A00; }
.ez-condition-tag--refurbished { background: #E2E3FF; color: #3730A3; }

/* ============================================================
   MARKETPLACE UI — seller dashboard, support tickets, feedback
   ============================================================ */

.ez-notice {
  padding: 12px 16px;
  border-radius: var(--ez-radius);
  margin-bottom: 16px;
  font-size: .92rem;
}
.ez-notice--success { background: #E6F4EA; color: #1E7E34; border: 1px solid #B7E1C1; }
.ez-notice--error    { background: #FDECEA; color: #B12704; border: 1px solid #F5C6C0; }

/* ── Seller dashboard ── */
.ez-seller-dash { max-width: 900px; margin: 0 auto; }
.ez-seller-dash--guest, .ez-seller-dash--onboard {
  text-align: center;
  padding: 40px 20px;
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
}
.ez-seller-dash__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ez-border);
  margin-bottom: 24px;
}
.ez-seller-dash__tabs a {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--ez-muted);
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.ez-seller-dash__tabs a.is-active { color: var(--ez-primary-dk); border-bottom-color: var(--ez-primary); }
.ez-seller-dash__empty { color: var(--ez-muted); font-style: italic; padding: 20px 0; }
.ez-seller-dash__subheading { margin-top: 32px; font-size: 1.1rem; }

.ez-seller-form, .ez-ticket-form, .ez-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 20px;
  margin-bottom: 24px;
  max-width: 560px;
}
.ez-seller-form label, .ez-ticket-form label, .ez-feedback-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ez-text);
}
.ez-seller-form input,
.ez-seller-form select,
.ez-seller-form textarea,
.ez-ticket-form input,
.ez-ticket-form select,
.ez-ticket-form textarea {
  font-weight: 400;
  padding: 9px 12px;
  border: 1px solid var(--ez-border);
  border-radius: 6px;
  font-family: var(--ez-font);
  font-size: .92rem;
}
.ez-seller-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ez-field-hint { font-size: .78rem; font-weight: 400; color: var(--ez-muted); }

.ez-seller-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: .9rem;
}
.ez-seller-table th, .ez-seller-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ez-border);
}
.ez-seller-table th { color: var(--ez-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.ez-link-btn {
  background: none;
  border: none;
  color: #B12704;
  cursor: pointer;
  font-size: .88rem;
  padding: 0;
  text-decoration: underline;
}

/* ── Support tickets ── */
.ez-tickets { max-width: 760px; margin: 0 auto; }
.ez-ticket-status {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.ez-ticket-status--open      { background: #FFF3CD; color: #7A5A00; }
.ez-ticket-status--pending   { background: #D6E9FF; color: #08417A; }
.ez-ticket-status--resolved  { background: #E6F4EA; color: #1E7E34; }

.ez-ticket-message {
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 16px;
  margin-bottom: 12px;
}
.ez-ticket-message--staff { background: #F0F6FF; border-color: #C9DEFF; }
.ez-ticket-message__author { font-weight: 700; font-size: .82rem; color: var(--ez-muted); margin-bottom: 6px; }
.ez-ticket-message__body p { margin: 0 0 8px; }

/* ── Order tracking (buyer-facing) ── */
.ez-order-tracking {
  background: var(--ez-bg, #f7f7f8);
  border-radius: var(--ez-radius);
  padding: 16px 20px;
  margin: 16px 0;
}

/* ── Seller feedback prompt ── */
.ez-feedback-prompt {
  background: var(--ez-card-bg);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 20px;
  margin: 16px 0;
}
.ez-feedback-form { max-width: 100%; padding: 0; border: none; margin-bottom: 16px; }
.ez-feedback-form__stars { display: flex; gap: 10px; margin: 8px 0; }
.ez-feedback-form__stars label {
  font-weight: 600;
  cursor: pointer;
  color: var(--ez-muted);
  flex-direction: row;
  gap: 4px;
}
.ez-feedback-form__stars input { accent-color: #FFA41C; }
.ez-feedback-form textarea {
  padding: 9px 12px;
  border: 1px solid var(--ez-border);
  border-radius: 6px;
  font-family: var(--ez-font);
}

@media (max-width: 600px) {
  .ez-seller-form__row { grid-template-columns: 1fr; }
  .ez-seller-table { font-size: .8rem; }
}
