:root {
  --shop-bg: #f8fafc;
  --shop-surface: #ffffff;
  --shop-border: #e5e7eb;
  --shop-text: #0f172a;
  --shop-text-muted: #475569;
  --shop-primary: #2563eb;
  --shop-primary-soft: #dbeafe;
  --shop-header-height: 68px;
  --shop-radius-md: 12px;
  --shop-radius-sm: 10px;
  --shop-cart-background: #ed3535;
}

/* ── PC / Mobile visibility utilities ── */
.shop-only-mobile { display: none; }
.shop-only-pc    { display: block; }

@media (max-width: 767px) {
  .shop-only-mobile { display: block; }
  .shop-only-pc    { display: none; }
}

.shop-layout {
  min-height: 100vh;
  background: var(--shop-bg);
  color: var(--shop-text);
}

.shop-header-layout {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--shop-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
}

.shop-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--shop-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.shop-logo-link img {
  max-height: 36px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.shop-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--shop-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.shop-header-utilities {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.shop-header-inline-search {
  position: relative;
  height: 44px;
  min-width: 240px;
  max-width: 360px;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px 4px 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-header-inline-search:focus-within {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shop-header-inline-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--shop-text);
  line-height: 1.2;
  padding: 0;
}

.shop-header-inline-search-input::placeholder {
  color: #94a3b8;
}

.shop-header-inline-search-input:focus {
  outline: none;
}

.shop-header-inline-search-submit {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-header-inline-search-submit:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--shop-primary);
}

.shop-header-inline-search-submit:focus-visible {
  outline: 2px solid var(--shop-primary);
  outline-offset: 2px;
}

.shop-header-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 70;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: saturate(140%) blur(10px);
  overflow: hidden;
}

.shop-header-search-panel-scroll {
  max-height: min(420px, calc(100vh - 140px));
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.shop-header-search-section {
  display: grid;
  gap: 8px;
}

.shop-header-search-section[hidden],
.shop-header-search-empty[hidden],
.shop-header-search-panel[hidden] {
  display: none !important;
}

.shop-header-search-section-title {
  margin: 0;
  padding: 2px 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.shop-header-search-recent-list,
.shop-header-search-product-list {
  display: grid;
  gap: 6px;
}

.shop-header-search-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--shop-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shop-header-search-item:hover,
.shop-header-search-item:focus-visible,
.shop-header-search-item.is-active {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.shop-header-search-item:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.26);
  outline-offset: 2px;
}

.shop-header-search-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-header-search-recent-submit {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.shop-header-search-recent-delete {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.shop-header-search-recent-delete:hover,
.shop-header-search-recent-delete:focus-visible {
  background: #fff1f2;
  color: #e11d48;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.12);
}

.shop-header-search-recent-delete:focus-visible {
  outline: 2px solid rgba(225, 29, 72, 0.2);
  outline-offset: 2px;
}

.shop-header-search-recent-delete i {
  font-size: 12px;
  line-height: 1;
}

.shop-header-search-recent-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-header-search-recent-text {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-header-search-product-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 8px;
}

.shop-header-search-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.shop-header-search-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-header-search-product-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.shop-header-search-product-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-header-search-product-caption {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.shop-header-search-product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-header-search-product-discount-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.shop-header-search-product-discount {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.shop-header-search-product-discount i {
  font-size: 10px;
  line-height: 1;
}

.shop-header-search-product-price {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.shop-header-search-product-price-origin {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #94a3b8;
  text-decoration: line-through;
}

@media (max-width: 767px) {
  .shop-header-search-product-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    min-height: 64px;
    padding: 7px;
  }

  .shop-header-search-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .shop-header-search-product-body {
    gap: 4px;
  }

  .shop-header-search-product-price-row {
    gap: 5px;
  }

  .shop-header-search-product-price {
    font-size: 12px;
  }

  .shop-header-search-product-price-origin,
  .shop-header-search-product-caption,
  .shop-header-search-product-discount-rate {
    font-size: 10px;
  }

  .shop-header-search-product-discount {
    width: 16px;
    height: 16px;
  }

  .shop-header-search-product-discount i {
    font-size: 9px;
  }
}

.shop-header-search-panel mark {
  padding: 0;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.18) 100%);
  color: #0f172a;
}

.shop-header-search-empty {
  margin: 0;
  padding: 16px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.shop-header-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.shop-header-manager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px 0 2px;
  text-decoration: none;
}

.shop-header-manager-link:focus-visible {
  outline: 2px solid var(--shop-primary);
  outline-offset: 2px;
  border-radius: 999px;
}

.shop-header-manager-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  box-sizing: border-box;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-header-manager-link:hover .shop-header-manager-badge,
.shop-header-manager-link:focus-visible .shop-header-manager-badge {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.shop-header-actions .shop-header-cart-btn,
.shop-header-actions .shop-mypage-link {
  width: 32px;
  min-width: 32px;
}

.shop-header-tooltip::before,
.shop-header-tooltip::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.shop-header-tooltip::before {
  content: "";
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(-4px);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.92) transparent;
  z-index: 51;
}

.shop-header-tooltip::after {
  content: attr(data-tooltip);
  top: calc(100% + 7px);
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
  z-index: 50;
}

.shop-header-tooltip:hover::before,
.shop-header-tooltip:hover::after,
.shop-header-tooltip:focus-visible::before,
.shop-header-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shop-header-search-btn,
.shop-header-cart-btn,
.shop-mypage-link {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.shop-header-search-btn {
  cursor: pointer;
  font: inherit;
  padding: 0;
  appearance: none;
  display: none;
}

.shop-header-search-btn:hover,
.shop-header-cart-btn:hover,
.shop-mypage-link:hover {
  background: transparent;
  color: var(--shop-primary);
  transform: translateY(-1px);
}

.shop-header-actions .shop-header-cart-btn:hover {
  background: none;
}

.shop-header-search-btn:focus-visible,
.shop-header-cart-btn:focus-visible,
.shop-mypage-link:focus-visible,
.shop-logo-link:focus-visible {
  outline: 2px solid var(--shop-primary);
  outline-offset: 2px;
}

.shop-header-icon-svg,
.shop-login-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
}

.shop-header-icon-svg {
  overflow: visible;
}

.shop-header-cart-btn .shop-header-icon-svg {
  transform: scale(1.08);
  transform-origin: center;
}

.shop-mypage-link .shop-login-icon {
  transform-origin: center;
}

.shop-header-cart-badge {
  position: absolute;
  top: -1px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--shop-cart-background);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.shop-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  box-sizing: border-box;
}

/* ==============================
   Footer (_footer.html)
   ============================== */
.shop-footer {
  margin-top: 28px;
  border-top: 1px solid var(--shop-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, #f8fafc 100%);
}

.shop-footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 32px;
  box-sizing: border-box;
}

.shop-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 18px;
  align-items: start;
}

.shop-footer-brand,
.shop-footer-info-card {
  border-radius: 16px;
}

.shop-footer-brand {
  padding: 20px 22px;
}

.shop-footer-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--shop-text);
}

.shop-footer-desc {
  margin: 10px 0 0;
  color: var(--shop-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.shop-footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shop-footer-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.shop-footer-shortcut:hover,
.shop-footer-shortcut:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--shop-primary);
}

.shop-footer-shortcut:focus-visible {
  outline: 2px solid var(--shop-primary);
  outline-offset: 2px;
}

.shop-footer-info-card {
  padding: 20px 22px;
}

.shop-footer-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--shop-text);
}

.shop-footer-info {
  display: grid;
  gap: 8px;
}

.shop-footer-info p {
  margin: 0;
  color: var(--shop-text);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.shop-footer-inline-link {
  color: var(--shop-primary);
  text-decoration: none;
  font-weight: 700;
}

.shop-footer-inline-link:hover,
.shop-footer-inline-link:focus-visible {
  text-decoration: underline;
}

.shop-footer-inline-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

.shop-footer-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.shop-footer-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.shop-footer-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.shop-footer-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(78vh, 820px);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shop-footer-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
}

.shop-footer-modal-head-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.shop-footer-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--shop-text);
  min-width: 0;
}

.shop-footer-modal-full-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--shop-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.shop-footer-modal-full-link:hover,
.shop-footer-modal-full-link:focus-visible {
  text-decoration: underline;
}

.shop-footer-modal-full-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

.shop-footer-modal-full-link i {
  font-size: 11px;
  line-height: 1;
}

.shop-footer-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.shop-footer-modal-close:hover,
.shop-footer-modal-close:focus-visible {
  border-color: #bfdbfe;
  color: var(--shop-primary);
}

.shop-footer-modal-close:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.shop-footer-modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  color: #334155;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-line;
  word-break: break-word;
}

.shop-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.shop-footer-copy,
.shop-footer-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.shop-footer-copy {
  color: var(--shop-text);
  font-weight: 700;
}

.shop-footer-note {
  color: #64748b;
}

.shop-recent-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 220px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.shop-recent-floating-title {
  margin: 0;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.shop-recent-floating-title-link {
  flex: 1;
  min-width: 0;
}

.shop-recent-floating-toggle {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shop-recent-floating-toggle i {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.shop-recent-floating-toggle-mobile {
  display: none;
}

.shop-recent-floating-toggle:hover,
.shop-recent-floating-toggle:focus-visible {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1d4ed8;
}

.shop-recent-floating.is-collapsed .shop-recent-floating-list {
  display: none;
}

.shop-recent-floating.is-collapsed {
  max-height: none;
}

.shop-recent-floating.is-collapsed .shop-recent-floating-title {
  border-bottom: 0;
}

.shop-recent-floating.is-collapsed .shop-recent-floating-toggle i {
  transform: rotate(-180deg);
}

.shop-recent-floating-title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.shop-recent-floating-title-link:hover,
.shop-recent-floating-title-link:focus-visible {
  color: var(--shop-primary);
}

.shop-recent-floating-title i {
  color: #475569;
  font-size: 13px;
  line-height: 1;
}

.shop-recent-floating-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  display: grid;
  gap: 6px;
}

.shop-recent-floating-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--shop-text);
  transition: background-color 0.2s ease;
}

.shop-recent-floating-link:hover,
.shop-recent-floating-link:focus-visible {
  background: #f1f5f9;
}

.shop-recent-floating-thumb {
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.shop-recent-floating-thumb-history {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-recent-floating-thumb-history i {
  font-size: 9px;
  line-height: 1;
}

.shop-recent-floating-thumb-history-label {
  display: none;
}

.shop-recent-floating-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-recent-floating-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 46;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: var(--shop-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.shop-scroll-top i {
  font-size: 20px;
  line-height: 1;
}

.shop-scroll-top:hover,
.shop-scroll-top:focus-visible {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
  color: #1d4ed8;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.shop-scroll-top:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.shop-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.shop-scroll-top:disabled {
  cursor: default;
}

@media (min-width: 768px) {
  .shop-header-actions .shop-header-search-btn {
    display: none !important;
  }

  .shop-recent-floating-list {
    max-height: 192px;
    overflow-y: auto;
  }
}

@media (max-width: 1024px) {
  .shop-header-inner,
  .shop-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shop-header-inline-search {
    min-width: 200px;
    max-width: 280px;
  }

  .shop-header-search-panel {
    right: -12px;
    left: -12px;
  }

  .shop-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shop-footer-top {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Mobile Header (_header_mobile.html)
   ============================== */
.shop-header-mobile .shop-header-inner {
  min-height: 46px;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.shop-header-mobile .shop-logo-link {
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
}

.shop-header-mobile .shop-header-search-row {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
}

.shop-header-mobile .shop-logo-link img {
  max-height: 30px;
}

.shop-header-mobile .shop-logo-text {
  font-size: 1rem;
}

.shop-header-actions-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  align-self: center;
}

.shop-header-actions-mobile .shop-header-cart-btn {
  width: 38px;
  height: 38px;
  left: 12px;
}

.shop-header-actions-mobile .shop-header-cart-icon-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
}

.shop-header-actions-mobile .shop-header-cart-badge {
  min-width: 20px;
  height: 20px;
  font-size: 10px;
  top: -1px;
  right: -6px;
}

.shop-header-search-row .shop-header-inline-search {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 18px;
}

@media (max-width: 767px) {
  :root {
    --shop-header-height: auto;
  }

  .shop-content {
    padding: 16px 5px 5px 5px;
  }

  .shop-footer {
    margin-top: 20px;
  }

  .shop-footer-inner {
    padding: 22px 12px calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .shop-footer-brand,
  .shop-footer-info-card {
    padding: 18px 16px;
  }

  .shop-footer-shortcuts {
    gap: 6px;
  }

  .shop-footer-shortcut {
    max-width: 100%;
  }

  .shop-footer-policy summary {
    padding: 14px 16px;
    padding-right: 40px;
    font-size: 13px;
  }

  .shop-footer-modal {
    padding: 12px;
  }

  .shop-footer-modal-dialog {
    width: 100%;
    max-height: min(82vh, 820px);
    border-radius: 16px;
  }

  .shop-footer-modal-head {
    padding: 14px 16px;
  }

  .shop-footer-modal-head-main {
    gap: 6px;
  }

  .shop-footer-modal-title {
    font-size: 14px;
  }

  .shop-footer-modal-full-link {
    font-size: 11px;
  }

  .shop-footer-modal-body {
    padding: 14px 16px 18px;
    font-size: 12px;
  }

  .shop-footer-bottom {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .shop-recent-floating {
    right: 12px;
    bottom: 72px;
    width: 116px;
  }

  .shop-scroll-top {
    right: 12px;
    bottom: 142px;
    width: 48px;
    height: 48px;
  }

  .shop-scroll-top i {
    font-size: 18px;
  }

  .shop-recent-floating.is-collapsed {
    min-height: 30px;
    height: 30px;
    width: 30px;
  }

  .shop-recent-floating-toggle-mobile {
    display: inline-flex;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 6;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border-color: rgba(15, 23, 42, 0.22);
    background: rgba(255, 255, 255, 0.9);
  }

  .shop-recent-floating-toggle-mobile i {
    font-size: 10px;
  }

  .shop-recent-floating.is-collapsed .shop-recent-floating-toggle-mobile {
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .shop-recent-floating-title {
    display: none;
  }

  .shop-recent-floating-list {
    padding: 4px;
    max-height: none;
    overflow: hidden;
  }

  .shop-recent-floating-list .shop-recent-floating-item:nth-child(n + 2) {
    display: none;
  }

  .shop-recent-floating-link {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 3px;
  }

  .shop-recent-floating-thumb {
    width: 100%;
    height: 50px;
  }

  .shop-recent-floating-thumb-history {
    width: auto;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    top: 2px;
    left: 2px;
    gap: 2px;
  }

  .shop-recent-floating-thumb-history i {
    font-size: 8px;
  }

  .shop-recent-floating-thumb-history-label {
    display: inline;
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .shop-recent-floating-name {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 420px) {
  .shop-logo-text {
    max-width: 34vw;
  }

  .shop-recent-floating {
    right: 10px;
    bottom: 70px;
    width: 98px;
  }

  .shop-scroll-top {
    right: 10px;
    bottom: 138px;
    width: 44px;
    height: 44px;
  }

  .shop-scroll-top i {
    font-size: 17px;
  }

  .shop-recent-floating.is-collapsed {
    min-height: 26px;
    height: 26px;
    width: 26px;
  }

  .shop-recent-floating-toggle-mobile {
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
  }

  .shop-recent-floating-toggle-mobile i {
    font-size: 9px;
  }

  .shop-recent-floating.is-collapsed .shop-recent-floating-toggle-mobile {
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .shop-recent-floating-thumb {
    height: 42px;
  }

  .shop-recent-floating-thumb-history {
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    gap: 1px;
  }

  .shop-recent-floating-thumb-history i {
    font-size: 7px;
  }

  .shop-recent-floating-thumb-history-label {
    font-size: 7px;
  }
}

@media (max-width: 360px) {
  .shop-recent-floating {
    right: 8px;
    bottom: 68px;
    width: 90px;
  }

  .shop-scroll-top {
    right: 8px;
    bottom: 136px;
    width: 42px;
    height: 42px;
  }

  .shop-scroll-top i {
    font-size: 16px;
  }

  .shop-recent-floating.is-collapsed {
    min-height: 24px;
    height: 24px;
    width: 24px;
  }

  .shop-recent-floating-toggle-mobile {
    width: 17px;
    height: 17px;
  }

  .shop-recent-floating-toggle-mobile i {
    font-size: 8px;
  }

  .shop-recent-floating.is-collapsed .shop-recent-floating-toggle-mobile {
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .shop-recent-floating-list {
    padding: 3px;
  }

  .shop-recent-floating-link {
    padding: 2px;
    gap: 2px;
  }

  .shop-recent-floating-thumb {
    height: 38px;
  }
}

/* ==============================
   Mobile Bottom Navigation
   ============================== */
.shop-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .shop-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 110;
    height: 56px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--shop-border);
    align-items: stretch;
    justify-content: space-around;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .shop-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 0 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
  }

  .shop-bottom-nav-item i {
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.24s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.18s ease;
    transform-origin: center;
  }

  .shop-bottom-nav-item:hover,
  .shop-bottom-nav-item:active {
    color: var(--shop-primary);
  }

  .shop-bottom-nav-item.is-active {
    color: var(--shop-primary);
  }

  .shop-bottom-nav-item.is-active i,
  .shop-bottom-nav-item.is-active span {
    color: inherit;
  }

  .shop-bottom-nav-menu.is-current {
    background: transparent;
  }

  .shop-bottom-nav-menu.is-active {
    background: transparent;
  }

  .shop-bottom-nav-menu-current-label {
    display: none;
  }

  .shop-bottom-nav-menu.is-open i {
    animation: shopBottomNavMenuIconOpen 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .shop-bottom-nav-menu.is-open .shop-bottom-nav-menu-current-label {
    opacity: 1;
  }

  .shop-bottom-nav-item:focus-visible {
    outline: 2px solid var(--shop-primary);
    outline-offset: -2px;
    border-radius: 8px;
  }

  .shop-bottom-nav-home {
    position: relative;
  }

  .shop-bottom-nav-home i {
    font-size: 26px;
    color: var(--shop-primary);
    transition: transform 0.2s ease;
  }

  .shop-bottom-nav-home span {
    color: var(--shop-primary);
    font-weight: 700;
  }

  .shop-bottom-nav-home:active i {
    transform: scale(0.92);
  }

  .shop-bottom-nav-recent {
    position: relative;
  }

  .shop-bottom-nav-recent-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    background: #f1f5f9;
    flex-shrink: 0;
  }

  .shop-bottom-nav-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (max-width: 360px) {
    .shop-bottom-nav-menu-current-label {
      max-width: 76px;
      font-size: 9px;
      padding: 4px 7px;
    }
  }

  @keyframes shopBottomNavMenuIconOpen {
    0% {
      transform: rotate(0deg) scale(1);
    }
    65% {
      transform: rotate(104deg) scale(1.12);
    }
    100% {
      transform: rotate(90deg) scale(1.08);
    }
  }
}

/* ==============================
   Category Drawer (_category_drawer.html)
   ============================== */
.shop-category-drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}

.shop-category-drawer-backdrop.is-open {
  display: block;
  opacity: 1;
}

.shop-category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  max-height: none;
  background: #fff;
  border-radius: 0;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.16);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shop-category-drawer.is-open {
  transform: translateX(0);
}

.shop-category-drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--shop-border);
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}

.shop-category-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--shop-text);
}

.shop-category-drawer-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--shop-text);
  text-decoration: none;
}

.shop-category-drawer-hero-text {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.shop-category-drawer-hero-link i {
  font-size: 18px;
  line-height: 1;
  color: #64748b;
}

.shop-category-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.shop-category-drawer-close:active {
  background: #f1f5f9;
}

.shop-category-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}

.shop-category-drawer-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 16px 16px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.shop-category-drawer-shortcut {
  min-width: 0;
  min-height: 104px;
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #4b5563;
  text-align: center;
  position: relative;
  background: #ffffff;
}

.shop-category-drawer-shortcut-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  box-sizing: border-box;
}

.shop-category-drawer-shortcut + .shop-category-drawer-shortcut::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: #eceef3;
}

.shop-category-drawer-shortcut-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b616c;
}

.shop-category-drawer-shortcut-icon i {
  font-size: 34px;
  line-height: 1;
}

.shop-category-drawer-shortcut-icon-recent {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d9dde6;
  background: #f8fafc;
}

.shop-category-drawer-shortcut-icon-recent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-category-drawer-shortcut-label {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  word-break: keep-all;
}

.shop-category-drawer-shortcut-meta {
  display: block;
  min-width: 0;
  margin-top: -2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--shop-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-category-drawer-shortcut:active,
.shop-category-drawer-shortcut:focus-visible {
  background: #f8fafc;
  color: var(--shop-primary);
}

.shop-category-drawer-spotlight {
  display: grid;
  grid-template-columns: minmax(104px, 124px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 280px;
  border-bottom: 1px solid var(--shop-border);
  background: #fff;
}

.shop-category-drawer-primary {
  background: linear-gradient(180deg, #fff7f7 0%, #f8fafc 22%, #f8fafc 100%);
  border-right: 1px solid var(--shop-border);
}

.shop-category-drawer-primary-list,
.shop-category-drawer-recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-category-drawer-primary .shop-category-drawer-section-title {
  padding: 14px 14px 10px;
  color: #ef4444;
  letter-spacing: -0.02em;
}

.shop-category-drawer-primary-list {
  display: flex;
  flex-direction: column;
}

.shop-category-drawer-primary-list li {
  min-width: 0;
}

.shop-category-drawer-primary-link {
  width: 100%;
  border: 0;
  background: transparent;
  display: block;
  padding: 14px;
  color: var(--shop-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.shop-category-drawer-primary-list li + li .shop-category-drawer-primary-link {
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.shop-category-drawer-primary-link:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #be123c;
}

.shop-category-drawer-primary-link.is-active,
.shop-category-drawer-primary-link:active,
.shop-category-drawer-primary-link:focus-visible {
  background: linear-gradient(90deg, #ffe5e8 0%, #fff6f7 55%, #ffffff 100%);
  color: #d90429;
}

.shop-category-drawer-primary-link.is-active {
  position: relative;
  font-weight: 800;
  box-shadow: inset 4px 0 0 #ef4444, inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

.shop-category-drawer-recommend {
  min-width: 0;
  padding: 14px 14px 16px;
  background: #fffdfd;
}

.shop-category-drawer-panels {
  position: relative;
}

.shop-category-drawer-panel {
  display: none;
}

.shop-category-drawer-panel.is-visible {
  display: block;
  animation: shopDrawerPanelFadeIn 0.22s ease both;
}

.shop-category-drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.shop-category-drawer-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--shop-text);
  line-height: 1.25;
}

.shop-category-drawer-section-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-category-drawer-section-more:active,
.shop-category-drawer-section-more:focus-visible {
  color: var(--shop-primary);
}

.shop-category-drawer-recommend-list {
  display: grid;
  gap: 10px;
}

.shop-category-drawer-subcategory-grid {
  display: grid;
  gap: 10px;
}

.shop-category-drawer-subcategory-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--shop-text);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.shop-category-drawer-subcategory-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c2410c;
}

.shop-category-drawer-subcategory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-category-drawer-subcategory-thumb i {
  font-size: 16px;
}

.shop-category-drawer-subcategory-card:active,
.shop-category-drawer-subcategory-card:focus-visible {
  border-color: #fecdd3;
  box-shadow: 0 10px 20px rgba(217, 4, 41, 0.1);
  transform: translateY(-1px);
}

.shop-category-drawer-subcategory-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}

.shop-category-drawer-subcategory-card > i {
  flex: 0 0 auto;
  color: #d90429;
  font-size: 14px;
}

.shop-category-drawer-empty-group {
  display: grid;
  gap: 10px;
}

.shop-category-drawer-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  color: #d90429;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(217, 4, 41, 0.08);
}

.shop-category-drawer-empty-action:active,
.shop-category-drawer-empty-action:focus-visible {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
}

.shop-category-drawer-product {
  display: none;
}

.shop-category-drawer-product.is-visible {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--shop-text);
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.shop-category-drawer-product:active,
.shop-category-drawer-product:focus-visible {
  border-color: #bfdbfe;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.shop-category-drawer-product-thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.shop-category-drawer-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-category-drawer-product-badge {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.shop-category-drawer-product-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shop-category-drawer-product-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--shop-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-category-drawer-product-price,
.shop-category-drawer-product-price-origin {
  display: block;
  line-height: 1.3;
}

.shop-category-drawer-product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--shop-text);
}

.shop-category-drawer-product-price.is-discounted {
  color: #e11d48;
}

.shop-category-drawer-product-price-origin {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.shop-category-drawer-empty {
  margin: 0;
  padding: 24px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--shop-text-muted);
  font-size: 13px;
  text-align: center;
}

.shop-category-drawer-empty.is-hidden {
  display: none;
}

.shop-category-drawer-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 8px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--shop-primary);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.shop-category-drawer-all:active {
  background: var(--shop-primary-soft);
}

.shop-category-drawer-all i {
  font-size: 18px;
}

.shop-category-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-category-drawer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 16px;
  min-height: 48px;
}

.shop-category-drawer-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
}

.shop-category-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-category-drawer-link {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-text);
  text-decoration: none;
  line-height: 1.35;
  padding: 12px 0;
  -webkit-tap-highlight-color: transparent;
}

.shop-category-drawer-link.is-current {
  color: #d90429;
  font-weight: 800;
}

.shop-category-drawer-link:active {
  color: var(--shop-primary);
}

.shop-category-drawer-expand {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.shop-category-drawer-expand:active {
  background: #f1f5f9;
}

.shop-category-drawer-expand[aria-expanded="true"] {
  transform: rotate(180deg);
  color: var(--shop-primary);
}

.shop-category-drawer-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 0;
  display: none;
  background: #f8fafc;
}

.shop-category-drawer-item.is-expanded .shop-category-drawer-sub {
  display: block;
}

.shop-category-drawer-item.is-current .shop-category-drawer-row {
  background: linear-gradient(90deg, rgba(255, 229, 232, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
}

.shop-category-drawer-sub-link {
  display: block;
  padding: 10px 16px 10px 58px;
  font-size: 13px;
  font-weight: 500;
  color: var(--shop-text-muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.shop-category-drawer-sub-link.is-current {
  color: #d90429;
  font-weight: 700;
  background: rgba(255, 229, 232, 0.48);
}

.shop-category-drawer-sub-link:active {
  background: #eef2ff;
  color: var(--shop-primary);
}

@media (max-width: 420px) {
  .shop-category-drawer-header {
    min-height: 62px;
    padding: 14px 16px;
  }

  .shop-category-drawer-hero-text {
    font-size: 17px;
  }

  .shop-category-drawer-shortcuts {
    margin: 12px 12px 16px;
    border-radius: 20px;
  }

  .shop-category-drawer-shortcut {
    min-height: 94px;
    padding: 14px 6px 12px;
    gap: 8px;
  }

  .shop-category-drawer-shortcut-icon {
    width: 40px;
    height: 40px;
  }

  .shop-category-drawer-shortcut-icon i {
    font-size: 30px;
  }

  .shop-category-drawer-shortcut-label {
    font-size: 12px;
  }

  .shop-category-drawer-shortcut-badge {
    top: 8px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 16px;
  }

  .shop-category-drawer-shortcut-meta {
    font-size: 10px;
  }

  .shop-category-drawer-spotlight {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 260px;
  }

  .shop-category-drawer-primary-link {
    padding: 13px 12px;
    font-size: 13px;
  }

  .shop-category-drawer-recommend {
    padding: 12px;
  }

  .shop-category-drawer-product {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  .shop-category-drawer-product-thumb {
    width: 64px;
    height: 64px;
  }

  .shop-category-drawer-product-title {
    font-size: 12px;
  }

  .shop-category-drawer-product-price {
    font-size: 13px;
  }

  .shop-category-drawer-subcategory-card {
    padding: 11px 12px;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
  }

  .shop-category-drawer-subcategory-thumb {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 767px) {
  .shop-category-drawer-backdrop {
    bottom: 56px;
  }

  .shop-category-drawer {
    right: 0;
    bottom: 56px;
    width: 100vw;
  }

  .shop-category-drawer-header {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .shop-category-drawer-body {
    padding-bottom: 16px;
  }
}

@keyframes shopDrawerPanelFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
