/* =========================================================
   One Mac — Archive Product (Shop + Category) UI
   File: /assets/css/archive-product.css
   ========================================================= */

.om-shop{
  background:#F7F7F7;
}

/* Force Poppins inside shop */
.om-shop,
.om-shop *{
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Shared inner width */
.om-shop__inner{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px;
}

/* =========================
   HERO (UNCHANGED)
   ========================= */
.om-shop-hero{
  width:100%;
  margin-top:-133px;
  padding-top:90px;
  background-color:#fff;

  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;

  position:relative;
  overflow:hidden;
}

/* LIGHT */
.om-shop-hero.om-theme-light{
  background-position:center;
}

/* DARK BASE */
.om-shop-hero.om-theme-dark{
  background-color:#000;
  background-position:bottom right;
}

/* Category image is now a background layer at bottom-right */
.om-shop-hero.has-cat-image{
  background-repeat:no-repeat;
  background-position:bottom right;
}

/* Dark header */
body.om-dark-header .om-header__nav a,
body.om-dark-header .om-nav a{
  color:#979797;
}
body.om-dark-header .om-nav a:hover,
body.om-dark-header .om-nav .current-menu-item > a{
  color:#ffffff;
}

/* Light header */
body.om-light-header .om-nav a{
  color:#575656;
}
body.om-light-header .om-nav a:hover,
body.om-light-header .om-nav .current-menu-item > a{
  color:#000000;
}

/* ✅ HERO BACKGROUND LAYERS (UNCHANGED) */
.om-shop-hero.om-theme-light.has-cat-image{
  background-repeat:no-repeat, no-repeat;
  background-position:center, bottom right;
  background-size:cover, clamp(320px, 60vw, 880px) auto;
}
.om-shop-hero.om-theme-dark.has-cat-image{
  background-repeat:no-repeat, no-repeat;
  background-position:center, bottom right;
  background-size:cover, clamp(320px, 60vw, 880px) auto;
}

/* Layout */
.om-shop-hero__inner{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px;
  height:580px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:24px;
  position:relative;
  z-index:2;
}

.om-shop-hero__left{ text-align:left; }

.om-hero-pill{
  display:inline-flex;
  align-items:center;
  padding:12px 24px;
  gap:10px;
  border-radius:100px;
  border:1px solid transparent;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10), rgba(105,178,255,0.20)) padding-box,
    linear-gradient(90deg, rgba(255,255,255,0.10), rgba(105,178,255,0.60)) border-box;
  box-shadow:0 0 10px rgba(105,178,255,0.40);
  font-weight:400;
  font-size:18px;
  line-height:24px;
  color:#6B7280;
  backdrop-filter: blur(6px);
}

.om-shop-hero__heading{
  margin:22px 0 0;
  font-weight:275;
  font-size:48px;
  line-height:58px;
  background:linear-gradient(90deg, #575656, #69B2FF);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

.om-shop-hero.om-theme-dark .om-hero-pill{
  background:
    linear-gradient(90deg, #FFFFFF1A, #69B2FF33) padding-box,
    linear-gradient(90deg, #FFFFFF1A, #69B2FF99) border-box;
  box-shadow:0 0 10px rgba(105, 178, 255, 0.40);
}

.om-shop-hero.om-theme-dark .om-shop-hero__heading{
  background:linear-gradient(90deg, #ffffff, #cfe7ff);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

.om-shop-hero__right{ display:none; }

/* =========================
   CATEGORY TILES
   ========================= */
.om-shop-cats{ padding:50px 0; }

.om-shop-cats__inner{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px;
}

.om-shop-cats__track{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:0 2px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.om-shop-cats__track::-webkit-scrollbar{ height:0; }

.om-cat-tile{
  flex:0 0 auto;
  width:170px;
  height:160px;
  padding:15px;
  background:#fff;
  border-radius:12px;
  border:1px solid transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  scroll-snap-align:start;
  cursor:pointer;
}

.om-cat-tile:hover,
.om-cat-tile.is-active{
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #69B2FF1A, #69B2FFCC) border-box;
  box-shadow:
    0 0 10px rgba(105, 178, 255, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.04);
}

.om-shop .om-cat-tile__img{
  width:129px !important;
  height:76.9px !important;
  object-fit:contain;
  max-width:none !important;
  display:block;
}

.om-cat-tile__name{
  font-weight:500;
  font-size:14px;
  line-height:24px;
  color:#575656;
}

/* =========================
   TOOLBAR
   ========================= */
.om-shop-toolbar-wrap{ padding:0 0 20px; }

.om-shop-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.om-shop-search{
  width:400px;
  height:48px;
  border-radius:100px;
  background:#0000000D;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 18px;
  position:relative;
}

.om-shop-search__icon{
  width:16px;
  height:16px;
  margin-top:4px;
  display:block;
}

#omShopSearch{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  font-weight:400;
  font-size:16px;
  line-height:26px;
  color:#575656;
}
#omShopSearch::placeholder{ color:#979797; }

.om-shop-tools{
  display:flex;
  align-items:center;
  gap:12px;
}

.om-tool-btn{
  width:48px;
  height:48px;
  padding:11px 14px;
  border-radius:12px;
  background:#0000000D;
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   POPUPS
   ========================= */
.om-pop-wrap{ position:relative; }

.om-pop{
  position:absolute;
  top:58px;
  right:0;
  width:341px;
  min-height:261px;
  padding:25px;
  border-radius:8px;
  background:#fff;
  box-shadow:2px 20px 4px 0 #97979733;
  z-index:50;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity 400ms ease-out, transform 400ms ease-out;
}

.om-pop.is-open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.om-pop-label{
  font-weight:400;
  font-size:14px;
  line-height:24px;
  color:#979797;
  margin-bottom:12px;
}

.om-pop-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.om-check-row{
  display:flex;
  align-items:center;
  gap:12px;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  text-align:left;
}

.om-checkbox{
  width:20px;
  height:20px;
  border-radius:2px;
  border:1px solid #69B2FF80;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.om-check-text{
  font-weight:400;
  font-size:16px;
  line-height:26px;
  color:#575656;
}

.om-check-row.is-checked .om-checkbox{
  background:#69B2FF;
  border-color:#69B2FF;
  background-image:url("../images/sorting_tick.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:18.86px 18.86px;
}

/* SEARCH suggestions */
.om-suggest-pop{
  top:58px;
  left:0;
  right:auto;
  width:100%;
  min-height:auto;
  padding:18px;
  border-radius:12px;
  z-index:60;
}
.om-suggest-pop .om-check-row{
  padding:8px 6px;
  border-radius:10px;
}
.om-suggest-pop .om-check-row:hover{ background:#0000000D; }

.om-filter-group{ margin-top:14px; }
.om-filter-group__label{
  font-weight:400;
  font-size:14px;
  line-height:24px;
  color:#979797;
  margin-bottom:10px;
}
.om-filter-empty{
  color:#979797;
  font-size:14px;
  line-height:24px;
}

/* price */
.om-price-row{ margin-top:10px; }
.om-price-minmax{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  line-height:24px;
  color:#575656;
  margin-bottom:10px;
}
.om-range{ position:relative; padding-top:18px; }
#omPriceRange{
  width:100%;
  appearance:none;
  height:6px;
  border-radius:100px;
  background:#69B2FF33;
  outline:none;
}
#omPriceRange::-webkit-slider-thumb{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#69B2FF;
  cursor:pointer;
}
.om-range-tip{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:114px;
  padding:8px 12px;
  border-radius:8px;
  background:#000;
  color:#fff;
  font-weight:400;
  font-size:14px;
  line-height:24px;
  text-align:center;
  opacity:0;
  transition:opacity 200ms ease-out;
}
.om-range.is-dragging .om-range-tip{ opacity:1; }

.om-apply{
  margin-top:18px;
  width:100%;
  height:44px;
  border:0;
  border-radius:10px;
  background:#69B2FF;
  color:#fff;
  font-weight:500;
  cursor:pointer;
}

/* =========================
   PRODUCTS GRID
   ========================= */
.om-shop-products{ padding:20px 0 60px; }

.om-shop-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  transition:transform 400ms ease-out;
}

/* =========================
   PRODUCT CARD
   ========================= */
.om-card{
  background:#fff;
  border-radius:16px;
  padding:22px;
  position:relative;
  overflow:hidden;
}

.om-card__chip{
  position:absolute;
  top:18px;
  right:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.om-card__chip img{
  max-width:60px;
  max-height:60px;
  display:block;
}

.om-card__media{
  display:flex;
  align-items:center;
  justify-content:center;
  height:200px;
  text-decoration:none;
  position:relative;
}

.om-card__media img{
  max-width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  transition:opacity 220ms ease-out;
}

.om-card__media img.is-fading{
  opacity:0.15;
}

.om-card__body{ padding-top:10px; }

/* ✅ Title row: Title + inline meta (one line) */
.om-card__titleRow{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:nowrap;
  overflow:hidden;
}

.om-card__title{
  text-decoration:none;
  font-weight:600;
  font-size:20px;
  line-height:28px;
  color:#000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:70%;
}

.om-card__inlineMeta{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
  color:#6e6e73;
  font-weight:400;
  font-size:14px;
  line-height:24px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.om-card__inlineSep{
  opacity:.65;
}

/* storage pills */
.om-card__storage{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.om-pill{
  padding:6px 14px;
  border-radius:100px;
  background:#0000000D;
  font-weight:400;
  font-size:14px;
  line-height:24px;
  color:#575656;
}

/* swatches */
.om-card__swatches{
  margin-top:10px;
  display:flex;
  gap:10px;
  align-items:center;
}

.om-swatch{
  width:18px;
  height:18px;
  border-radius:50%;
  outline:1px solid #0000001A;
  cursor:pointer;
  position:relative;
}

.om-swatch.is-active{
  outline:2px solid #69B2FF;
}

.om-card__price{
  margin-top:18px;
  font-weight:500;
  font-size:21px;
  line-height:31px;
  color:#000;
}

/* empty */
.om-empty{
  padding:40px 0;
  color:#979797;
  font-size:16px;
}

/* PAGINATION */
.om-pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  padding:26px 0 0;
}

.om-page-btn{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid #00000014;
  background:#fff;
  cursor:pointer;
}

.om-page-btn.is-active{
  background:#69B2FF;
  border-color:#69B2FF;
  color:#fff;
}

/* RESPONSIVE */
@media (max-width: 1024px){
  .om-shop-grid{ grid-template-columns:repeat(2, 1fr); }
  .om-shop-hero__inner{ grid-template-columns:1fr; height:auto; padding-bottom:40px; }
  .om-shop-search{ width:100%; max-width:420px; }
}

@media (max-width: 640px){
  .om-shop-grid{ gap:14px; }
  .om-card{ padding:16px; border-radius:14px; }
  .om-card__price{ font-size:22px; line-height:30px; }
  .om-pop{ right:-10px; width:min(341px, calc(100vw - 32px)); }
  .om-suggest-pop{ width:min(341px, calc(100vw - 32px)); }

  .om-card__title{ max-width:60%; }
}
