:root {
  --online-ink: #513631;
  --online-wine: #9b3f5c;
  --online-wine-dark: #7f304a;
  --online-muted: #7f6a62;
  --online-line: #eadfd8;
  --online-soft: #fbf7f3;
  --online-beige: #f4ece5;
  --online-paper: #fff;
  --online-shadow: 0 12px 32px rgba(81,54,49,.07);
}

.online-page {
  margin: 0;
  color: var(--online-ink);
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: clip;
}
.online-page * { box-sizing: border-box; }
.online-page a { color: inherit; text-decoration: none; }
.online-page img { display: block; width: 100%; }
.online-page .wrap { width: min(96%,1000px); margin-inline: auto; }

/* Compact editorial hero */
.online-page .online-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.online-page .online-hero__copy { max-width: 570px; }
.online-page .hero-filter-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  margin-top: 22px;
  padding: 9px 18px;
  color: var(--online-wine-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(20,10,8,.18), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.online-page .hero-filter-link:hover { transform: translateY(-2px); background: #fff8f5; box-shadow: 0 15px 32px rgba(20,10,8,.22); }

/* Product section */
.online-page .shop-section { padding: 62px 0 80px; }
.online-page .shop-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.online-page .shop-heading .eyebrow { margin: 0 0 6px; color: var(--online-wine); font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.online-page .shop-heading h2 { margin: 0; font-family: "Noto Serif JP", serif; font-size: 30px; font-weight: 500; line-height: 1.45; }
.online-page .shop-heading > div > p:last-child { margin: 6px 0 0; color: var(--online-muted); font-size: 13px; }
.online-page .result-count { flex: 0 0 auto; margin: 0; color: var(--online-wine); font-size: 12px; font-weight: 600; }

.online-page .filter-panel {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(145deg,#fff 0%,#fffaf7 100%);
  border: 1px solid var(--online-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(81,54,49,.055);
}
.online-page .filter-row { display: grid; gap: 8px; }
.online-page .filter-row > label,
.online-page .filter-row label span { color: var(--online-muted); font-size: 12px; font-weight: 600; }
.online-page .search-control { position: relative; }
.online-page .search-control > span {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--online-muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.online-page .search-control > span::after {
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 7px;
  height: 1.5px;
  content: "";
  background: var(--online-muted);
  transform: rotate(45deg);
}
.online-page .filter-row input,
.online-page .filter-row select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--online-ink);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--online-line);
  border-radius: 11px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.online-page .search-control input { padding-left: 43px; }
.online-page .filter-row input:focus,
.online-page .filter-row select:focus { border-color: rgba(155,63,92,.55); background: #fff; box-shadow: 0 0 0 3px rgba(155,63,92,.08); }
.online-page .filter-row--selects { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.online-page .filter-row--selects label { display: grid; gap: 7px; }
.online-page .filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; }
.online-page .filter-actions > span { color: var(--online-muted); font-size: 11px; }
.online-page .filter-actions button {
  min-height: 38px;
  padding: 8px 15px;
  color: var(--online-wine);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(155,63,92,.23);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(81,54,49,.055), inset 0 1px 0 #fff;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.online-page .filter-actions button:hover { transform: translateY(-1px); border-color: rgba(155,63,92,.46); background: #fff8f5; }

/* Desktop: editorial horizontal cards */
.online-page .product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.online-page .product-card {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--online-line);
  border-radius: 20px;
  box-shadow: 0 9px 26px rgba(81,54,49,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.online-page .product-card:hover {
    transform: none;
    border-color: rgba(155,63,92,.22);
    box-shadow: 0 10px 26px rgba(81,54,49,.06);
}
.online-page .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(145deg,#fff 0%,#fbf7f3 100%);
  border-right: 1px solid var(--online-line);
}
.online-page .product-image img { width: 100%; height: 100%; padding: 14px; object-fit: contain; }
.online-page .product-body { display: flex; min-width: 0; flex-direction: column; padding: 25px 28px; }
.online-page .product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.online-page .product-meta span { padding: 4px 9px; color: #8e5d52; font-size: 11px; background: #fff8f4; border: 1px solid #edddd5; border-radius: 999px; }
.online-page .product-title { margin: 0; font-family: "Noto Serif JP", serif; font-size: 20px; font-weight: 600; line-height: 1.65; }
.online-page .product-shop { margin: 7px 0 0; color: var(--online-muted); font-size: 12px; }
.online-page .product-description { margin: 14px 0 0; color: #6e5b54; font-size: 13px; line-height: 1.85; }
.online-page .product-recommendation { margin: 14px 0 0; padding: 12px 14px; color: var(--online-wine); font-size: 12px; line-height: 1.75; background: #fff8f4; border-left: 2px solid var(--online-wine); border-radius: 0 8px 8px 0; }
.online-page .product-stats { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--online-line); }
.online-page .product-price-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.online-page .product-price { color: var(--online-wine); font-family: "Noto Serif JP", serif; font-size: 23px; font-weight: 600; line-height: 1; }
.online-page .product-shipping { color: var(--online-wine); font-size: 12px; font-weight: 600; }
.online-page .product-review { color: #9b6a31; font-size: 12px; font-weight: 600; text-align: right; }
.online-page .loading-card { grid-column: 1/-1; padding: 70px 20px; color: var(--online-muted); text-align: center; background: var(--online-soft); border: 1px dashed var(--online-line); border-radius: 18px; }
.online-page .empty-state { padding: 70px 20px; text-align: center; }
.online-page .empty-state img { width: 78px; margin: 0 auto 18px; opacity: .65; }
.online-page .empty-state h2 { margin: 0 0 10px; font-family: "Noto Serif JP", serif; font-size: 22px; }
.online-page .empty-state p { margin: 0; color: var(--online-muted); font-size: 13px; }
.online-page .notice { margin-top: 28px; padding: 16px 18px; color: var(--online-muted); background: var(--online-soft); border: 1px solid var(--online-line); border-radius: 12px; font-size: 12px; line-height: 1.8; }
.online-page .notice p { margin: 0; }

@media (max-width: 900px) {
  .online-page .product-card { grid-template-columns: 240px minmax(0,1fr); }
  .online-page .product-body { padding: 22px; }
  .online-page .product-title { font-size: 18px; }
}

@media (max-width: 700px) {
  .online-page { font-size: 13px; }
  .online-page .wrap { width: calc(100% - 28px); }
  .online-page .hero-filter-link { min-height: 35px; margin-top: 12px; padding: 7px 13px; font-size: 10px; }
  .online-page .shop-section { padding: 42px 0 58px; }
  .online-page .shop-heading { align-items: flex-end; gap: 10px; margin-bottom: 16px; }
  .online-page .shop-heading h2 { font-size: 24px; }
  .online-page .shop-heading > div > p:last-child { display: none; }
  .online-page .result-count { font-size: 11px; }

  .online-page .filter-panel { margin-bottom: 20px; padding: 13px; border-radius: 15px; box-shadow: none; }
  .online-page .filter-row--selects { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 10px; }
  .online-page .filter-row input,
  .online-page .filter-row select { min-height: 42px; font-size: 12px; }
  .online-page .filter-row > label,
  .online-page .filter-row label span { font-size: 11px; }
  .online-page .filter-actions { margin-top: 12px; }
  .online-page .filter-actions > span { display: none; }
  .online-page .filter-actions button { min-height: 35px; padding: 7px 12px; font-size: 11px; }

  /* iPhone: fixed 2-column commerce grid */
  .online-page .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .online-page .product-card { display: flex; min-width: 0; flex-direction: column; border-radius: 15px; box-shadow: 0 8px 22px rgba(75,45,35,.065); }
  .online-page .product-card:hover { transform: none; }
  .online-page .product-image { border: 0; border-bottom: 1px solid var(--online-line); }
  .online-page .product-image img { padding: 7px; }
  .online-page .product-body { flex: 1; padding: 11px 10px 12px; }
  .online-page .product-meta { gap: 4px; margin-bottom: 7px; }
  .online-page .product-meta span { padding: 3px 6px; font-size: 9px; }
  .online-page .product-title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .online-page .product-shop { margin-top: 5px; overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
  .online-page .product-description,
  .online-page .product-recommendation { display: none; }
  .online-page .product-stats { align-items: flex-start; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 9px; }
  .online-page .product-price-wrap { display: block; }
  .online-page .product-price { font-size: 16px; }
  .online-page .product-shipping { display: block; margin-top: 3px; font-size: 10px; }
  .online-page .product-review { font-size: 10px; text-align: left; white-space: normal; }
    .online-page .notice { margin-top: 18px; padding: 13px; font-size: 11px; }

}


/* =========================================================
   PRODUCT LINK FINAL FIX
   - marketplace badge hidden
   - hover flicker removed
   - the whole product card, including its image, opens the link
   - visible button kept short and refined
========================================================= */
.online-page .market-badge {
  display: none !important;
}

.online-page .product-card {
  position: relative;
}

/* Reset the older competing hover/shine rules */
.online-page .product-link,
.online-page .product-link:hover,
.online-page .product-link:focus-visible,
.online-page .product-link:active {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: fit-content;
  min-width: 118px;
  min-height: 34px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 0 15px;
  color: var(--online-wine);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(155,63,92,.30);
  border-radius: 999px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  transform: none;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

/* Remove the old animated gloss layer that caused flickering */
.online-page .product-link::before {
  display: none !important;
}

/* Expand the existing product link over the entire card */
.online-page .product-link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.online-page .product-link:hover,
.online-page .product-link:focus-visible {
  color: var(--online-wine-dark);
  background: #fff8f5;
  border-color: rgba(155,63,92,.58);
}

.online-page .product-link:active {
  background: #f9eee9;
}

@media (max-width: 700px) {
  .online-page .product-link,
  .online-page .product-link:hover,
  .online-page .product-link:focus-visible,
  .online-page .product-link:active {
    width: fit-content;
    min-width: 100px;
    min-height: 31px;
    margin-top: 9px;
    padding: 0 11px;
    font-size: 10px;
  }
}

