.donki-perfume-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 5px;
}

.donki-brand-products-page {
  padding: 20px;
}

.perfume-search-result-actions a {
  color: #fff !important;
  text-decoration: none !important;
}

.donki-perfume-page p,
.donki-perfume-page div {
  font-size: 14px;
}

.donki-perfume-page p a,
.donki-perfume-page div a {
  color: #c48437;
  text-decoration: underline;
}

.donki-perfume-intro {
  margin-bottom: 28px;
}

.donki-perfume-cover-image {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 16px 0 20px;
  border-radius: 10px;
  object-fit: cover;
}

.donki-survey-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
  border: 1px solid #e3d5c2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.donki-survey-summary-item {
  min-width: 0;
  padding: 16px 18px;
}

.donki-survey-summary-item:nth-child(odd) {
  border-right: 1px solid #e3d5c2;
}

.donki-survey-summary-item:nth-child(n + 3) {
  border-top: 1px solid #e3d5c2;
}

.donki-survey-summary dt {
  margin-bottom: 4px;
  color: #6c6256;
  font-size: 12px;
  font-weight: 700;
}

.donki-survey-summary dd {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.donki-perfume-page h2,
.donki-perfume-page h3,
.donki-perfume-page h4 {
  scroll-margin-top: 96px;
}

.donki-perfume-section h2 {
  margin: 40px 0 16px;
  padding: 14px 18px;
  border-left: 6px solid #e3d5c2;
  border-radius: 0 12px 12px 0;
  background: #fcfaf6;
}

.donki-perfume-section > h3,
.donki-perfume-section .faq-item h3 {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e3d5c2;
}

.donki-faq-image {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 12px auto 14px;
  border-radius: 10px;
}

.donki-perfume-toc {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid #e3d5c2;
  border-radius: 12px;
  background: #fcfaf6;
  font-size: 13px;
}

.donki-perfume-toc h2 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
}

.donki-perfume-toc-list,
.donki-perfume-toc-sublist {
  margin: 0;
  padding-left: 20px;
}

.donki-perfume-toc-sublist {
  margin-top: 8px;
}

.donki-perfume-toc li + li {
  margin-top: 8px;
}

.donki-perfume-toc-list > li > a {
  color: #4c4c4c;
  font-weight: 600;
}

.donki-perfume-toc-sublist li a {
  color: #4c4c4c;
  font-weight: 400;
}

.donki-perfume-toc a {
  text-decoration: none;
}

.donki-perfume-toc a:hover {
  text-decoration: underline;
}

.donki-recommendation-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding: 0 14px;
}

.donki-recommendation-tab {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid #000;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.donki-recommendation-tab.is-active {
  border-bottom-color: transparent;
  margin-bottom: -1px;
}

.donki-recommendation-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 3px;
  background: #fff;
  content: "";
}

.donki-recommendation-tab:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

.donki-recommendation-panel[hidden] {
  display: none;
}

.donki-recommendation-panel {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: 18px 18px 0;
  border: 1px solid #000;
  border-radius: 14px;
}

.donki-recommendation-panel > h3 {
  margin-top: 0;
}

.donki-recommendation-panel > :last-child {
  margin-bottom: 18px;
}

.donki-product-list {
  display: grid;
}

.donki-product-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #000;
}

.donki-product-card:last-child {
  border-bottom: 0;
}

.donki-product-card.is-load-more-hidden {
  display: none;
}

.donki-product-image-wrap {
  position: relative;
  align-self: start;
}

.donki-product-image-link {
  display: block;
}

.donki-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f2eadf;
}

.donki-product-image-placeholder {
  display: grid;
  place-items: center;
  color: #8a8176;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.donki-product-rank {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 1;
  color: #000;
  font-size: 28px;
  font-weight: 700;
}

.donki-product-rank span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 10px;
  border-radius: 5px;
  background-color: #738c8c;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
}

.donki-product-rank-image {
  display: block;
  width: 56px;
  height: auto;
}

.donki-product-content {
  min-width: 0;
}

.donki-product-meta {
  margin: 0 !important;
}

.donki-product-card h4 {
  margin: 10px 0 8px;
  padding: 0;
  border: 0;
  font-size: 17px;
  line-height: 1.45;
}

.donki-product-card h3 {
  margin: 10px 0 8px;
  padding: 0;
  border: 0;
  font-size: 17px;
  line-height: 1.45;
}

.donki-product-card h2 {
  margin: 10px 0 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17px;
  line-height: 1.45;
}

.donki-product-gender-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.donki-product-gender-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #dceffb;
  color: #5ca2d8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.donki-product-gender-tag.is-female {
  background: #f7e3e2;
  color: #dd6884;
}

.donki-product-gender-tag.is-volume {
  background: #f1e9de;
  color: #8a6b45;
}

.donki-product-price {
  margin: 0;
}

.donki-product-detail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 35px;
  margin-top: 18px;
  padding: 3px 18px;
  border: 1px solid #c48437 !important;
  border-radius: 9999px;
  color: #c48437 !important;
  font-size:12px;
  font-weight: 400;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.donki-product-detail-button:hover {
  opacity: 0.7;
  text-decoration: none;
}

.donki-product-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 20px 0 0;
  padding: 10px 18px;
  border: 1px solid #000;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.donki-product-load-more:hover {
  opacity: 0.75;
}

.donki-product-load-more[hidden] {
  display: none;
}

.donki-product-section-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 4px;
}

.donki-product-section-actions p {
  margin: 0;
}

.donki-product-search-action {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.donki-product-search-button {
  min-width: min(100%, 300px);
  min-height: 54px;
  padding: 13px 30px;
  border-width: 2px;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.donki-product-search-button:hover {
  opacity: 1;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.donki-product-search-button.has-sort-icon::before {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

.donki-product-filter-button,
.donki-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #000;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.donki-product-filter-button:hover,
.donki-filter-submit:hover {
  opacity: 0.8;
}

.donki-product-filter-button.has-sort-icon::before {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-color: currentColor;
  content: "";
  mask: url("/images/donki/sort.svg") center / contain no-repeat;
}

.donki-product-search-button {
  font-size: 18px;
}

.donki-filter-modal[hidden] {
  display: none;
}

.donki-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.donki-filter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.donki-filter-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  border-radius: 16px;
  background: #fff;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.donki-filter-modal-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #ddd;
}

.donki-filter-modal-head h2 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font-size: 20px;
}

.donki-filter-modal-head h2.has-sort-icon::before {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background-color: currentColor;
  content: "";
  mask: url("/images/donki/sort.svg") center / contain no-repeat;
}

.donki-filter-modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.donki-filter-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.donki-filter-modal-body {
  flex: 1;
  min-height: 0;
  padding: 18px 20px;
  overflow-y: auto;
}

.donki-filter-keyword {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.donki-filter-keyword label {
  font-size: 15px;
  font-weight: 700;
}

.donki-filter-keyword input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

.donki-filter-keyword p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.donki-filter-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.donki-filter-fieldset legend {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.donki-filter-fieldset-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: none;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.donki-filter-fieldset-toggle::after {
  width: 9px;
  height: 9px;
  margin-left: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.donki-filter-fieldset-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

[data-donki-filter-fieldset-content][hidden] {
  display: none !important;
}

.donki-filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.donki-filter-option {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.donki-filter-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.donki-filter-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.donki-filter-range-inputs label {
  display: grid;
  gap: 6px;
}

.donki-filter-range-inputs input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

.donki-filter-range-separator {
  padding-bottom: 10px;
}

.donki-filter-modal-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #ddd;
}

.donki-filter-reset {
  color: #666 !important;
  text-decoration: underline !important;
}

.donki-brand-list {
  padding-left: 20px;
}

.donki-brand-list-link {
  font-size: 1.1rem;
  text-decoration: none !important;
}

.donki-brand-list-kana {
  font-size: 0.8em;
  font-weight: 400;
}

@media (max-width: 600px) {
  .donki-recommendation-tab {
    padding: 10px 5px;
    font-size: 12px;
  }

  .donki-recommendation-tabs {
    gap: 8px;
    padding: 0 8px;
  }

  .donki-product-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 18px 0;
  }

  .donki-product-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .donki-product-search-button {
    width: 100%;
    min-width: 0;
  }

  .donki-filter-modal-panel {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .donki-filter-options,
  .donki-filter-range-inputs {
    grid-template-columns: 1fr;
  }

  .donki-filter-range-separator {
    display: none;
  }

  .donki-product-image-wrap,
  .donki-product-image-link,
  .donki-product-image {
    width: 88px;
  }

  .donki-product-rank-image {
    width: 44px;
  }

  .donki-product-rank span {
    min-width: 40px;
    padding: 2px 7px;
    font-size: 14px;
  }

  .donki-survey-summary {
    grid-template-columns: 1fr;
  }

  .donki-survey-summary-item:nth-child(odd) {
    border-right: 0;
  }

  .donki-survey-summary-item:nth-child(n + 2) {
    border-top: 1px solid #e3d5c2;
  }

  .donki-survey-summary-item {
    min-width: 0;
    padding: 10px 18px;
  }
}
