/* Original red / sage-gray / white storefront; corporate DIGIMIX logo colors. */
:root {
  --brand-red: #e90032;
  --brand-red-hover: #cf002c;
  --brand-gray: #808080;
  --brand-sage: #a8ab9e;
  --brand-white: #ffffff;
  --brand-surface: #f5f5f5;
  --brand-line: #dedede;
  --rep-accent: var(--brand-red);
  --rep-nav: var(--brand-sage);
  --theme-color: var(--brand-red);
  --theme-light-color: rgb(233 0 50 / 10%);
  --colorBtnPrimary: var(--brand-red);
  --colorBtnPrimaryBorder: var(--brand-red);
  --colorBtnPrimaryText: var(--brand-white);
  --cartDotColor: var(--brand-red);
  --saleBadgeBg: var(--brand-red);
  --colorTextSavings: var(--brand-red);
}
.replica-store { --search-icon-bg: var(--brand-red); }
.replica-store .rep-announcement { background: var(--brand-red); }
.replica-store .rep-logo { width: 205px; }
.replica-store .rep-logo img { width: 205px; height: auto; filter: none; }
.replica-store .rep-nav a.active,
.replica-store .rep-nav a:hover { background: var(--brand-red); color: #fff !important; }
.replica-store .rep-primary:hover,
.replica-store .rep-search button:hover,
.replica-store .rep-newsletter button:hover { background: var(--brand-red-hover); border-color: var(--brand-red-hover); }
.replica-store .rep-product-price > strong,
.replica-store .rep-product-card .yv-product-price,
.replica-store .rep-total strong { color: var(--brand-red); }
.replica-store .rep-specs h2 { border-bottom-color: var(--brand-red); }
.replica-store .rep-product-card .sale-badge { background: var(--brand-red); }
.rep-footer-brand { display: flex; align-items: center; gap: 25px; }
.rep-footer-brand img { display: block; width: 170px; height: auto; }
.replica-store .rep-footer-brand a { margin: 0; }
.replica-store .rep-admin-sidebar { background: #f1f2ed; color: #333; border-right: 1px solid #dedede; }
.replica-store .rep-admin-sidebar button.active { background: var(--brand-red); color: #fff; }
.replica-store .rep-admin-brand small { color: #666; }
/* Keep the category label and its icons together when navigation wraps. */
.replica-store .rep-nav { flex-wrap: wrap; }
.replica-store .rep-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 160px;
  gap: 10px;
  line-height: 1.4;
  min-height: 42px;
}
.rep-category-toggle > svg,
.rep-category-toggle > span { flex: none; }
.rep-category-chevron { display: flex; transform: rotate(90deg); }
.replica-store .rep-catalog-tools { flex-wrap: wrap; }
.replica-store .rep-catalog-tools .rep-search { min-width: 180px; }
.rep-grid-switch { flex: none; gap: 6px; }
.replica-store .rep-grid-switch button {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 42px;
  padding: 8px;
  border: 1px solid transparent;
  background: #fff;
  color: #999;
}
.replica-store .rep-grid-switch button.active { color: var(--rep-accent); border-color: var(--rep-accent); background: #fff5f7; }
.replica-store .rep-grid-switch button:hover { color: var(--rep-accent); }
.rep-grid-icon { display: grid; grid-template-rows: repeat(2, 5px); gap: 3px; color: inherit; }
.rep-grid-icon > span { display: block; width: 5px; height: 5px; background: currentColor; color: inherit; }
.rep-price-range { margin: 0; padding: 0; border: 0; min-width: 0; }
.rep-price-range legend { margin-bottom: 10px; font-size: 14px; }
.rep-price-range-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.rep-filter-fields .rep-price-bound { position: relative; min-width: 0; }
.rep-price-bound > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #777; pointer-events: none; }
.rep-filter-fields .rep-price-bound input { margin: 0; min-width: 0; padding-left: 30px; font-size: 16px; }
.rep-price-to { font-size: 14px; color: #666; }
.rep-price-range .rep-error { margin: 8px 0 0; }
.rep-filter-fields .rep-primary:disabled { cursor: not-allowed; opacity: .5; }
/* Fit product subjects to the card, including source photos with built-in margins.
   The original files stay intact; unknown/replaced photos use centered containment. */
.replica-store .yv-product-card.af-static-phone-card .yv-product-card-img .yv-product-img .image-wrapper {
  aspect-ratio: 1;
  height: auto;
  padding-bottom: 0 !important;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f0f0f0;
}
.replica-store .yv-product-card.af-static-phone-card .yv-product-card-img .yv-product-img .image-wrapper img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal;
  filter: none;
  transform: translate(var(--card-image-x, 0%), var(--card-image-y, 0%)) scale(var(--card-image-scale, .9)) !important;
  transform-origin: center;
}
/* The original six-slide campaign carousel remains the homepage hero. */
.brand-promo { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; height: 100%; background: #f6f5f2; padding: 28px 30px 100px; gap: 20px; }
.brand-promo-copy { min-width: 0; color: #333; }
.replica-store .mm-restored-hero .brand-promo-logo { display: block; width: 200px !important; max-width: 100%; height: auto !important; background: transparent !important; margin-bottom: 16px; }
.brand-promo-copy small { display: block; font-size: 12px; margin-bottom: 12px; }
.brand-promo-copy strong { display: block; font-size: clamp(26px, 3vw, 43px); color: var(--rep-accent); line-height: 1.3; font-weight: 800; letter-spacing: -1px; }
.brand-promo-products { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; min-width: 0; }
.replica-store .mm-restored-hero .brand-promo-products img { width: 100% !important; height: auto !important; max-height: 240px; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 767px) {
  .replica-store .rep-logo,
  .replica-store .rep-logo img { width: 160px; }
  .rep-footer-brand { align-items: flex-start; flex-direction: column; gap: 14px; }
  .brand-promo { grid-template-columns: 1.15fr 1fr; padding: 18px 18px 88px; gap: 8px; }
  .replica-store .mm-restored-hero .brand-promo-logo { width: 140px !important; margin-bottom: 12px; }
  .brand-promo-copy small { font-size: 9px; margin-bottom: 9px; }
  .brand-promo-copy strong { font-size: clamp(21px, 5.6vw, 30px); letter-spacing: -.6px; }
  .brand-promo-products { grid-template-columns: 1fr; gap: 0; }
  .replica-store .mm-restored-hero .brand-promo-products img { height: 80px !important; }
}
