/* YOREN Store: readable compact cards and landscape images, 2026-10-21.
   Scope: product grids only. Backout: remove this stylesheet reference. */
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list):not(.list-view):not(.view-list)
:is(#product-grid[data-view="grid"],#featured-product-grid-r1[data-view="grid"],#bestseller-product-grid-r3[data-view="grid"]) > .store-card-v10.product-card {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 44px;
  grid-template-rows: auto 42px minmax(49px,auto) 44px;
  align-items: start;
  gap: 5px 6px !important;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 8px !important;
  border-radius: 13px;
  overflow: hidden;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list):not(.list-view):not(.view-list)
:is(#product-grid[data-view="grid"],#featured-product-grid-r1[data-view="grid"],#bestseller-product-grid-r3[data-view="grid"]) > .product-card .product-media-r1 {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f5f7;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-media-r1 > img.thumb {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  border-radius: inherit;
  background: #f4f5f7;
  cursor: zoom-in;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .name {
  grid-column: 1 / -1;
  grid-row: 2;
  display: -webkit-box !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  color: #22262c;
  font-size: 15px !important;
  font-weight: 750;
  letter-spacing: 0 !important;
  line-height: 21px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-price-row-r7 {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  min-width: 0;
  width: 100%;
  min-height: 49px;
  max-height: none !important;
  gap: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-price-row-r7 :is(.price-sale,.price-origin) {
  display: block !important;
  flex: none !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .price-sale {
  color: #c62828 !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .price-origin {
  color: #697586 !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-meta-row-r7 {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-sold-r7 {
  display: inline-block !important;
  width: auto;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #586271 !important;
  font-size: 12.5px !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .actions {
  grid-column: 2;
  grid-row: 4;
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
  justify-self: end;
  align-self: center;
  width: 44px !important;
  min-width: 44px;
  min-height: 44px !important;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .actions .btn.add-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 11px !important;
  border: 0 !important;
  background: #cf2929 !important;
  color: #fff !important;
  font-size: 0 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .actions .btn.add-btn i {
  font-size: 19px !important;
  color: #fff !important;
}
/* The featured/bestseller buttons use the bag icon in legacy markup.
   Present the same plus affordance on every card without changing cart logic. */
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .actions .btn.add-btn i.fa-bag-shopping::before {
  content: "\2b" !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .actions .selected-count {
  position: absolute;
  top: -7px;
  right: -5px;
  z-index: 2;
  border-radius: 999px;
  font-size: 11px !important;
  line-height: 1.25;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .actions:has(.qty-inline) {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: flex-end !important;
  width: 100% !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card:has(.qty-inline) .product-meta-row-r7 {
  visibility: hidden;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .qty-inline {
  width: min(100%,132px) !important;
  height: 44px;
  min-height: 44px;
  margin: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .qty-inline :is(.plus-btn,.minus-btn) {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 9px;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-media-r1 > .product-detail-trigger-r7 {
  position: absolute !important;
  z-index: 6;
  right: 6px;
  bottom: 6px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  color: #344054;
  font-size: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  text-decoration: none;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-media-r1 > .product-detail-trigger-r7 i {
  font-size: 17px !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-media-r1 > .product-detail-trigger-r7--empty {
  display: none !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-media-r1 > :is(.product-badge--condition,.product-badge--warranty) {
  position: absolute !important;
  z-index: 5;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  max-width: calc(100% - 55px) !important;
  margin: 0 !important;
  padding: 3px 5px !important;
  border-radius: 6px;
  background: rgba(255,255,255,.96);
  color: #5b2630;
  font-size: 11px !important;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .product-media-r1:has(> .product-badge--condition) > .product-badge--warranty {
  bottom: 31px;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .extras:empty { display: none !important; }
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .extras:not(:empty) { grid-column: 1 / -1; }
:is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card.is-skeleton .sk-thumb {
  aspect-ratio: 4 / 3 !important;
}
@media (min-width: 760px) and (max-width: 1139px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list) #product-grid[data-view="grid"] {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}
@media (min-width: 1140px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list) #product-grid[data-view="grid"] {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }
}
@media (max-width: 759px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list) #product-grid[data-view="grid"] {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
  }
}
@media (max-width: 360px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
  :is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .name { font-size: 14px !important; }
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
  :is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .price-sale { font-size: 15px !important; }
}
@media (min-width: 760px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
  :is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .name { font-size: 16px !important; }
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
  :is(#product-grid,#featured-product-grid-r1,#bestseller-product-grid-r3) .product-card .price-sale { font-size: 18px !important; }
}
.yoren-card-image-viewer[hidden] { display: none !important; }
.yoren-card-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  background: rgba(8,12,19,.97);
  color: #fff;
  overscroll-behavior: contain;
}
.yoren-card-image-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 12px;
  gap: 10px;
}
.yoren-card-image-viewer__title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
}
.yoren-card-image-viewer__controls { display: flex; gap: 8px; flex: none; }
.yoren-card-image-viewer button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.yoren-card-image-viewer__stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.yoren-card-image-viewer__stage.is-panning { cursor: grabbing; }
.yoren-card-image-viewer__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}
.yoren-card-image-viewer__hint {
  padding: 8px 12px 12px;
  color: #c9d2dd;
  font-size: 13px;
  text-align: center;
}
@media (max-width: 380px) {
  .yoren-card-image-viewer__toolbar { padding: 5px 6px; gap: 4px; }
  .yoren-card-image-viewer__controls { gap: 4px; }
  .yoren-card-image-viewer button { width: 40px; min-width: 40px; height: 44px; }
  .yoren-card-image-viewer__title { font-size: 13px; }
}
/* Post-QA correction: beat the legacy one-line adaptive-name rules.
   Exact product placement selectors intentionally match/highly outrank R4 selectors. */
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#product-grid[data-view="grid"] > .store-card-v10.product-card[data-product-section-r1="regular"] .name,
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3[data-view="grid"] > .store-card-v10.product-card[data-product-section-r1="bestseller"] .name,
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#featured-product-grid-r1[data-view="grid"] > .store-card-v10.product-card[data-product-section-r1="featured"] .name {
  display: -webkit-box !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  color: #22262c;
  font-size: 15px !important;
  line-height: 21px !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
@media (max-width: 360px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
  :is(#product-grid,#bestseller-product-grid-r3,#featured-product-grid-r1) > .store-card-v10.product-card[data-product-section-r1] .name { font-size: 14px !important; }
}
@media (min-width: 760px) {
  body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
  :is(#product-grid,#bestseller-product-grid-r3,#featured-product-grid-r1) > .store-card-v10.product-card[data-product-section-r1] .name { font-size: 16px !important; }
}

/* YOREN Top 4 bestseller: center the + optically and geometrically.
   Legacy FA bag glyph was replaced with Unicode "+" whose font metrics
   can place the sign off-center. Two centered strokes avoid font offsets.
   Scope: bestseller BUY button only; no event-handler or cart changes. */
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3 .product-card .actions .btn.add-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  column-gap: 0 !important;
  line-height: 0 !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3 .product-card .actions .btn.add-btn i.fa-bag-shopping {
  position: relative !important;
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: #fff !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3 .product-card .actions .btn.add-btn i.fa-bag-shopping::before,
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3 .product-card .actions .btn.add-btn i.fa-bag-shopping::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: currentColor !important;
  border: 0 !important;
  border-radius: 2px !important;
  transform: translate(-50%, -50%) !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3 .product-card .actions .btn.add-btn i.fa-bag-shopping::before {
  width: 18px !important;
  height: 3px !important;
}
body[data-store-commerce-ui-release="YOREN_STORE_PREMIUM_UI_R4"]:not(.list-view):not(.view-list)
#bestseller-product-grid-r3 .product-card .actions .btn.add-btn i.fa-bag-shopping::after {
  width: 3px !important;
  height: 18px !important;
}
