@charset "UTF-8";

.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }
.category-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 17px; border: 1px solid var(--line); background: transparent; font-size: 12px; line-height: 1.4; }
.category-button:hover { border-color: var(--wine); color: var(--wine); }
.category-button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.category-button span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: #2828230a; font-size: 10px; }
.category-button[aria-pressed="true"] span { background: #ffffff24; }
.product-card { display: flex; flex-direction: column; }
.product-meta { display: flex; flex: 1; flex-direction: column; align-items: stretch; }
.product-meta .button { margin-top: auto; }
.product-name { overflow-wrap: anywhere; }
.detail-description { margin: 8px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.specification { table-layout: fixed; }
.specification th, .specification td { overflow-wrap: anywhere; }

.payment-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 16px; }
.payment-logo { display: flex; align-items: center; justify-content: center; flex: 0 1 calc((100% - 32px) / 5); min-width: 0; min-height: 46px; padding: 8px; border: 1px solid var(--line); background: #fff; }
.payment-logo img { display: block; width: 100%; height: 26px; max-width: 80px; object-fit: contain; }
.payment-logo--apple img, .payment-logo--google img { height: 28px; }
.payment-logo--google img { transform: scale(1.65); }

@media screen and (max-width: 760px),
       screen and (max-width: 1023px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .category-filter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 22px; }
  .category-button { min-width: 0; min-height: 48px; justify-content: space-between; padding: 10px 12px; font-size: 12px; gap: 8px; }
  .category-button span { flex-shrink: 0; }
  .detail-description { font-size: 13px; }
}

@media screen and (max-width: 480px) {
  .payment-logo { flex-basis: calc((100% - 16px) / 3); max-width: 110px; min-height: 48px; }
}

@media screen and (min-width: 600px) and (max-width: 760px),
       screen and (max-width: 1023px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .category-filter { display: flex; }
}
