.product_page {
  font-family: "Noto Sans JP", sans-serif;

  .favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #d4cec7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
  }

  .favorite-btn.added {
    background-color: #f5f5f5;
    color: #e74c3c;
    border-color: #e74c3c;
  }

  .favorite-btn img {
    width: 18px;
  }
  .ec-topicpath {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 7px;
    flex-wrap: wrap;
    border-bottom: 1px solid #1A1311;
    border-top: none;
  }
  .ec-topicpath__item {
    color: #1a1311;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
  }
  .ec-topicpath__item a {
    font-size: 16px;
    font-weight: 400;
  }
  .ec-topicpath__item--active a {
    font-size: 16px;
    font-weight: 700;
    color: #926314;
  }
  .ec-searchnavRole .ec-searchnavRole__infos {
    padding-top: 22px;
    padding-bottom: 27px;
    margin-bottom: 0;
    color: #252424;
    border-top: none;
  }
  .ec-searchnavRole .ec-searchnavRole__infos .ec-select {
    margin-bottom: 0;
  }

  .disp-number,
  .order-by {
    align-items: center;
    gap: 8px !important;
    padding: 6px 14px;
    border: 1px solid rgba(146, 99, 20, 0.5);
    border-radius: 5px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  /* Product Cart */
  .product-grid {
    max-width: 1366px;
    margin: 0 auto;
    padding: 92px 163px 0;
    display: grid;
    grid-template-columns: repeat(3, 253px);
    gap: 50px 50px;
    justify-content: center;
  }

  .product-card {
    width: 253px;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
  }

  .product-image {
    position: relative;
    width: 253px;
    height: 200px;
    margin: 0;
    overflow: hidden;
    border-radius: 5px;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-tags {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .tag {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
  }

  .tag-frozen {
    background-color: #007b9c;
  }

  .tag-gift {
    background-color: #bf9430;
    margin-left: 0;
  }

  .tags-container {
    display: flex;
    gap: 5px;
  }

  /* .favorite-btn {
    position: static;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .favorite-btn:hover {
    transform: scale(1.1);
  } */

  .product-info {
    padding: 15px 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .product-title {
    color: #1a1311;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
  }

  .product-price {
    color: #926314;
    font-family: "Noto Serif JP", serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .product-options {
    width: 218px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
  }
  .ec-numberInput input[type=number] {
    text-align: left;
  }
  .option-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(146, 99, 20, 0.5);
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .option-selector:hover {
    background-color: rgba(146, 99, 20, 0.05);
  }
  .option-selector {
    width: 391px;
    padding-left: 18px;
    border-radius: 4px;
    outline: 1px rgba(146, 99, 20, 0.50) solid;
    outline-offset: -1px;
    justify-content: flex-start;
    align-items: center;
    gap: 181px;
    display: inline-flex;
  }
  .product-info .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('/html/template/default/assets/icon/Polygon 8.png');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
  }
  .ec-searchnavRole__infos .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url('/html/template/default/assets/icon/Polygon 8.png');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
  }
  .ec-searchnavRole__infos .disp-number {
    width: 80px;
  }
  .ec-searchnavRole__infos .order-by {
    width: 146px;
  }
  select.option-selector option {
    color: #1a1311;
    font-size: 14px;
    font-weight: 500;
  }

  .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: 134px;
    height: 39px;
    position: relative;
  }

  .quantity-label {
    color: #1a1311;
    font-size: 16px;
    font-weight: 600;
    width: 42px;
  }

  .quantity-controls {
    position: absolute;
    right: 0;
    top: 0;
    width: 96px;
    height: 39px;
    background-color: rgba(146, 99, 20, 0.06);
    border: 1px solid rgba(146, 99, 20, 0.5);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .quantity-btn {
    position: absolute;
    width: 10px;
    height: 9px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #926314;
    opacity: 0.5;
    transition: opacity 0.2s;
  }

  .quantity-btn:hover {
    opacity: 1;
  }

  .quantity-btn-up {
    right: 12px;
    top: 9px;
  }

  .quantity-btn-down {
    right: 12px;
    top: 22px;
  }

  .quantity-value {
    color: #1a1311;
    font-size: 16px;
    font-weight: 400;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #1a1311;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s;
    width: 218px;
  }

  .add-to-cart-btn:hover {
    background-color: #2a1f1c;
  }
  .ec-shelfGrid .ec-shelfGrid__item {
    width: 33.33333333%;
  }

  .ec-shelfGrid .ec-shelfGrid__item-image {
    height: 247px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ec-shelfGrid .ec-shelfGrid__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

}
@media (max-width: 768px) {
  .product_page {
    .ec-topicpath__item a, .ec-topicpath__item--active a {
      font-size: 20px;
    }
    .ec-shelfGrid .ec-shelfGrid__item {
      width: 50%;
    }
  }
}
@media (max-width: 576px) {
  .product_page {
    .ec-shelfGrid .ec-shelfGrid__item {
      width: 100%;
      padding-left: 0;
      padding-right: 0;
    }
  }
}
