/*
Theme Name: TENPONESS
Theme URI: https://tenponess.com/
Author: TENPONESS
Author URI: https://tenponess.com/
Description: TENPONESS Gallery Shop - WordPress + WooCommerce テーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenponess
Tags: e-commerce, gallery, woocommerce
*/
/* ===== SCALE FACTOR =====
   全要素のサイズ倍率。1 に戻せば元のサイズ。 */
:root {
  --scale: 1.1;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== SR-ONLY (SEO: h1 visually hidden) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  overflow-x: clip;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  background-color: #C48265;
}

a, a:visited, a:link {
  color: inherit;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C48265;
  transition: opacity 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loading-logo {
  width: 6.2vw;
  max-width: 84px;
  opacity: 0;
  transform: scale(0.85);
  animation: loadingLogoIn 1.2s ease forwards 0.3s;
}

#loading-logo svg path {
  fill: url(#logo-gradient);
}

@keyframes loadingLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== MAIN CONTENT ===== */
#main-content {
  width: 100%;
  height: 100vh;
  display: flex;
  opacity: 0;
  position: relative;
}

#main-content.visible {
  opacity: 1;
}

/* ===== LEFT SECTION ===== */
.left-section {
  width: 45%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4vw;
  position: relative;
}

.photo-container {
  width: calc(20vw * 1.2);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #000;
  position: relative;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform;
}

.photo-container.animate-in {
  opacity: 1;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RIGHT SECTION ===== */
.right-section {
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3vh 4vw 3vh 2vw;
  position: relative;
}

/* --- Menu (Top Right, Fixed) --- */
.menu-nav {
  position: fixed;
  top: 3vh;
  right: 4vw;
  z-index: 100;
  display: flex;
  gap: 2vw;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.menu-nav.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* ITEMS サブ内の a.menu-nav__sub-link は除外（黒文字のまま当たると背景黒で消える） */
.menu-nav a:not(.menu-nav__sub-link) {
  font-size: calc(9pt * var(--scale));
  color: #000;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 400;
  position: relative;
  transition: opacity 0.3s ease;
}

.menu-nav a:not(.menu-nav__sub-link)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.menu-nav a:not(.menu-nav__sub-link):hover::after {
  width: 100%;
}

.menu-nav a:not(.menu-nav__sub-link):hover {
  opacity: 0.8;
}

/* --- Top menu: ITEMS ホバーでサブメニュー（中身は inc/shop-navigation-config.php と同期） --- */
.menu-nav__item--dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-nav__dropdown-trigger {
  font-size: calc(9pt * var(--scale));
  color: #000;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 400;
  position: relative;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.menu-nav__dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.menu-nav__item--dropdown:hover .menu-nav__dropdown-trigger::after,
.menu-nav__item--dropdown:focus-within .menu-nav__dropdown-trigger::after {
  width: 100%;
}

.menu-nav__item--dropdown:hover .menu-nav__dropdown-trigger,
.menu-nav__item--dropdown:focus-within .menu-nav__dropdown-trigger {
  opacity: 0.8;
}

/* ITEMS サブ：左メニュー（.products-menu-inline）と同系の見た目 */
.menu-nav__sub {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 11em;
  padding: 2.8vh 1.75vw;
  background: #000;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.2vh;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.menu-nav__item--dropdown:hover .menu-nav__sub,
.menu-nav__item--dropdown:focus-within .menu-nav__sub,
.menu-nav__item--dropdown.is-open .menu-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-nav .menu-nav__sub a.menu-nav__sub-link {
  display: block;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.14em;
  position: relative;
  transition: opacity 0.3s ease;
  padding: 0;
}

.menu-nav .menu-nav__sub a.menu-nav__sub-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.menu-nav .menu-nav__sub a.menu-nav__sub-link:hover {
  opacity: 0.6;
  color: #fff;
}

.menu-nav .menu-nav__sub a.menu-nav__sub-link:hover::after {
  width: 100%;
}

.menu-nav .menu-nav__sub a.menu-nav__sub-link.is-current {
  font-weight: 500;
  opacity: 1;
  color: #fff;
}

/* --- Logo (Center Right) --- */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.logo-container.animate-in {
  opacity: 1;
}

.logo-container img {
  width: calc(5vw * var(--scale));
  max-width: calc(80px * var(--scale));
}

/* --- Bottom Right (Fixed) --- */
.bottom-info {
  position: fixed;
  bottom: 3vh;
  right: 4vw;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6vh;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.bottom-info.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.bottom-info a {
  display: block;
  transition: opacity 0.3s ease;
}

.bottom-info a:hover {
  opacity: 0.7;
}

.bottom-info .icon {
  width: calc(1.25vw * 1.2);
  max-width: calc(13px * 1.2);
}

.bottom-info .icon svg,
.bottom-info .icon img {
  width: 100%;
  height: auto;
  display: block;
}

.copyright {
  font-size: 9pt;
  color: #000;
  letter-spacing: 0.08em;
  font-weight: 300;
  margin-top: 0.4vh;
}

/* ===== SLIDESHOW ===== */
.slider-section {
  width: 100%;
  padding: 8vh 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.slider-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 22%;
  display: block;
  position: relative;
  text-decoration: none;
}

.slider-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}

.slider-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.4s ease;
  pointer-events: none;
}

.slider-slide.is-active::after {
  background: rgba(0, 0, 0, 0);
}

/* --- Slider Arrows (mouse-following) --- */
.slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  background: none;
  border: none;
  cursor: none;
  z-index: 10;
}

.slider-arrow--left {
  left: 0;
}

.slider-arrow--right {
  right: 0;
}

.slider-arrow-icon {
  position: fixed;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  transform: translate(-50%, -50%);
  z-index: 10001;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.slider-arrow-icon.is-visible {
  opacity: 1;
}

/* ===== PRODUCTS ===== */
.products-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28vh 0 8vh;
}

.products-side {
  flex: 0 0 auto;
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  align-self: flex-start;
}

.products-side--left {
  padding-left: 4vw;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.products-side--left.animate-in {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}

.products-side--right {
  padding-right: 4vw;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.products-side--right.animate-in {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}

/* --- 左カラム: 常時表示メニュー（旧「MENU」ボタンと同系：黒字・背景なし） --- */
.products-menu-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2vh;
  background: none;
  padding: 0;
  max-width: min(24vw, 15rem);
  box-sizing: border-box;
}

.products-menu-inline a,
.products-menu-inline a.products-menu-inline__account {
  display: block;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: calc(8.55pt * var(--scale)); /* 8.1pt〜9pt の中間 */
  line-height: 1.15;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  position: relative;
  transition: opacity 0.3s ease;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  align-self: flex-start;
}

/* 英字: 行頭のみ大文字。日本語ラベルは text-transform の影響を受けない */
.products-menu-inline a::first-letter {
  text-transform: uppercase;
}

.products-menu-inline a:hover {
  opacity: 0.6;
}

.products-menu-inline a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.products-menu-inline a:hover::after {
  width: 100%;
}

.products-menu-inline a.is-current {
  font-weight: 500;
  opacity: 1;
}

.products-menu-inline__account {
  margin-top: 0.32vh;
}

.products-menu-divider {
  display: block;
  width: 100%;
  height: 0;
  margin: 0.28vh 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0;
}

/* トップ以外: セクションを最低画面高にし、列全体を縦方向に中央揃え（左カラムは flex 内に留める） */
body:not(.home) .products-section {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  box-sizing: border-box;
  padding: 8vh 0 10vh;
}

/* --- Cart Icon --- */
.products-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(0.85em * var(--scale));
  margin-top: 1.6vh;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.products-cart svg {
  width: 100%;
  height: auto;
  display: block;
}

.products-cart:hover {
  opacity: 0.6;
}

.products-logo {
  width: calc(5vw * var(--scale) * 0.8);
  max-width: calc(80px * var(--scale) * 0.8);
  display: block;
}

.products-grid {
  flex: 0 0 65%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.products-item {
  display: block;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.products-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.products-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.products-item:hover img {
  transform: scale(1.03);
}

.products-spec {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(196, 130, 101, 0.75);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.products-item:hover .products-spec {
  opacity: 1;
}

.products-spec-name {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #000;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.products-spec-price {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #000;
  text-align: left;
  margin-top: 0.6em;
  letter-spacing: 0.03em;
}

/* ===== MOBILE LAYOUT ===== */
@media screen and (max-width: 768px) {
  html, body {
    overflow-y: auto;
    overflow-x: clip;
  }

  #loading-logo {
    width: 16.5vw;
    max-width: 100px;
  }

  #main-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 4vh 5vw;
  }

  .left-section,
  .right-section {
    display: contents;
  }

  /* --- ロゴ：画面上部 --- */
  .logo-container {
    order: 1;
    justify-content: center;
    flex: none;
  }

  .logo-container img {
    width: 15vw;
    max-width: 80px;
  }

  /* --- 写真：中央グループの先頭、上の余白を自動で取って中央寄せ --- */
  .photo-container {
    order: 2;
    width: 70vw;
    margin-top: auto;
    margin-bottom: 3vh;
  }

  /* --- メニュー：中央グループ --- */
  .menu-nav {
    position: static;
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4vw 5vw;
    margin-bottom: 2vh;
    transform: translateY(20px);
    z-index: auto;
  }

  .menu-nav.animate-in {
    transform: translateY(0);
  }

  .menu-nav a:not(.menu-nav__sub-link) {
    font-size: 9pt;
  }

  .menu-nav__item--dropdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-nav__sub {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    max-width: min(92vw, 20em);
  }

  .menu-nav__item--dropdown:hover .menu-nav__sub,
  .menu-nav__item--dropdown:focus-within .menu-nav__sub,
  .menu-nav__item--dropdown.is-open .menu-nav__sub {
    transform: translateX(-50%) translateY(0);
  }

  .menu-nav .menu-nav__sub a.menu-nav__sub-link {
    white-space: normal;
    text-align: left;
    color: #fff;
  }

  /* --- アイコン：中央グループ末尾 --- */
  .bottom-info {
    position: static;
    order: 4;
    display: contents;
    z-index: auto;
  }

  .bottom-info .icon {
    order: 4;
    width: 3.5vw;
    max-width: 16px;
    margin-bottom: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }

  .bottom-info.animate-in .icon {
    opacity: 1;
    transform: translateY(0);
  }

  /* --- コピーライト：最下部 --- */
  .copyright {
    order: 5;
    align-self: center;
    text-align: center;
    margin-top: auto;
  }

  /* --- SP: スライダー --- */
  .slider-slide {
    flex: 0 0 40%;
  }

  .slider-slide img {
    max-height: 50vh;
  }

  .slider-arrow {
    display: none;
  }

  /* --- SP: プロダクト --- */
  .products-section {
    flex-direction: column;
    align-items: center;
    padding: 6vh 5vw;
    gap: 3vh;
  }

  /* SP: 高さ制限の min-height は外し、不自然な余白を防ぐ */
  body:not(.home) .products-section {
    min-height: 0;
  }

  .products-side {
    position: static;
    transform: none;
    width: auto;
    opacity: 0;
  }

  .products-side.animate-in {
    opacity: 1;
    transform: none;
  }

  .products-grid {
    flex: none;
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw 3vw;
  }

  .products-item {
    overflow: visible;
  }

  .products-spec {
    position: static;
    background: none;
    opacity: 1;
    padding: 0.6em 0 0;
    align-items: flex-start;
  }

  .products-spec-name {
    text-align: left;
    font-size: 0.7rem;
  }

  .products-spec-price {
    text-align: left;
    font-size: 0.55rem;
  }

  .products-item:hover img {
    transform: none;
  }

  .products-item:hover .products-spec {
    opacity: 1;
  }

  .products-logo {
    width: 15vw;
    max-width: 60px;
  }

  /* --- SP: 左メニュー（常時表示・幅を制限） --- */
  .products-menu-inline {
    max-width: 100%;
    width: 100%;
    padding: 0;
    gap: 1.6vh;
  }

  .products-menu-inline a,
  .products-menu-inline a.products-menu-inline__account {
    font-size: 0.78rem; /* 0.74rem〜0.82rem の中間 */
    line-height: 1.15;
  }

  /* --- SP: カートポップアップ --- */
  .cart-popup {
    padding: 3vh 6vw 3vh;
    max-width: 100%;
    width: 92%;
  }

  .cart-popup-close {
    right: 3vw;
    cursor: auto;
  }

  .cart-popup-btn {
    cursor: auto;
    font-size: 0.68rem;
  }

  /* スマホではカスタムカーソルを無効化 */
  html, body, a, button {
    cursor: auto;
  }

  #custom-cursor,
  .cursor-ripple {
    display: none !important;
  }
}

/* ===== CUSTOM CURSOR ===== */
html, body, a, button {
  cursor: none;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #2d2d2d;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

#custom-cursor.on-link {
  width: 14px;
  height: 14px;
  background: rgba(60, 60, 60, 0.55);
}

.cursor-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border: 1px solid #2d2d2d;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(1);
  animation: cursorRipple 0.6s ease-out forwards;
}

@keyframes cursorRipple {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4);
  }
}

/* ===== CART COUNT BADGE ===== */
.products-cart {
  position: relative;
}

.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 50%;
  background: #000;
  color: #C48265;
  font-family: 'Roboto', sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1;
  margin-top: 0.4vh;
}

/* ===== CART POPUP ===== */
.cart-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-popup {
  background: #C48265;
  padding: 4vh 3vw 3vh;
  max-width: 460px;
  width: 88%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.cart-popup-overlay.is-open .cart-popup {
  transform: translateY(0);
}

.cart-popup-close {
  position: absolute;
  top: 1.5vh;
  right: 1.5vw;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #000;
  cursor: none;
  transition: opacity 0.3s ease;
  padding: 4px;
  line-height: 1;
}

.cart-popup-close:hover {
  opacity: 0.5;
}

.cart-popup-title {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #000;
  margin-bottom: 2.5vh;
}

.cart-popup-items {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.cart-popup-item {
  display: flex;
  gap: 1.2em;
  padding: 1.8vh 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  align-items: center;
}

.cart-popup-item-img {
  width: 52px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.cart-popup-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.cart-popup-item-name {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.04em;
}

.cart-popup-item-variation {
  font-size: 0.62rem;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 300;
}

.cart-popup-item-meta {
  font-size: 0.62rem;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

.cart-popup-item-price {
  font-size: 0.68rem;
  color: #000;
  font-weight: 400;
}

.cart-popup-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 0 1vh;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
}

.cart-popup-total-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.08em;
}

.cart-popup-total-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: #000;
}

.cart-popup-actions {
  display: flex;
  gap: 0.8em;
  margin-top: 2vh;
}

.cart-popup-btn {
  flex: 1;
  padding: 1em 0;
  text-align: center;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: none;
  transition: background 0.3s ease, color 0.3s ease;
  display: block;
}

.cart-popup-continue {
  background: transparent;
  color: #000;
  border: 1.5px solid #000;
}

.cart-popup-continue:hover {
  background: #000;
  color: #C48265;
}

a.cart-popup-checkout,
a.cart-popup-checkout:visited,
a.cart-popup-checkout:link,
.cart-popup-checkout {
  background: #000;
  color: #C48265 !important;
  border: 1.5px solid #000;
}

a.cart-popup-checkout:hover,
.cart-popup-checkout:hover {
  background: transparent;
  color: #000 !important;
}

/* ===== BLANK ICON FOR TARGET _BLANK ===== */
a[target="_blank"] {
  display: inline-flex;
  align-items: center;
}

a[target="_blank"] .blank-icon {
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
