.product__title::before {
    content: "⭑⭑ ";
}

.product__title::after {
    content: " ⭑⭑";
}

@media screen and (min-width: 750px) {#window-content {
  width: 200px;
  height: 600px;
     PADDING:15PX;
  line-height: 10px
    overflow: auto;
    text-align: center;
  }}

#window-container{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0);
}
       
#window-pop{
    background: rgba(232,240,255,1);
    width:160PX;
    z-index: 1;
  border:1px #333 solid;
  margin: 10% auto;
    overflow: auto;
     PADDING:30PX AUTO;
    border-radius: 65px;
}

        

  /* Add Animation */
  .window-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
  }

.window-content {
  width: 150px;
  height: 600px;
     PADDING:5PX;
  line-height: 10px
    overflow: auto;
    text-align: center;
}

H7 {
  COLOR:#333;
   font-size: 12PX;
    display: block;
    TEXT-align: CENTER;
   position: absolute; /* ★ */
  margin: 0PX 60PX 10PX 20PX; /* ★ */
}

 
@media  only screen and (min-width: 750px) {
.window-container{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0);
}
       

  
        


H7 {
  COLOR:#333;
   font-size: 12PX;
    display: block;
    TEXT-align: CENTER;
   position: absolute; /* ★ */
  margin: 0PX 0PX 10PX 20PX; /* ★ */
}
}

/* 1. 確保外層 Slider 容器也有圓弧角 (防止圖片滑動時漏出直角) */
.modal-slider {
    border-radius: 30px; /* 這裡設定你要的圓弧角 */
    overflow: hidden;    /* 關鍵！這能裁切掉滑動中漏出的直角 */
    
    /* 保持之前的 Slider 佈局設定 */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 90vw;
  max-height: 90vh;
    max-width: 800px;
    height: 70vh;
    gap: 10px;
  
}



/* 2. 確保每一張滑動的圖片也有圓弧角 */
.modal-slide-img {
    border-radius: 30px; /* 這裡也設定你要的圓弧角 */
    width: 100%;
    height: 100%;
    object-fit: contain; /* 依照比例完整呈現 */
}

@media screen and (max-width: 749px) {
    .slider.slider--mobile {
        /* 強制將捲動區域的起點設為 0 */
        scroll-padding-left: 0px !important;
        scroll-padding-right: 0px !important;
        
        /* 確保內容物在捲動區域內維持對齊 */
        -webkit-overflow-scrolling: touch;
    }

    .slider__slide {
        /* 關鍵：強制元素對齊到容器的「開始」位置 */
        scroll-snap-align: start !important;
        
        /* 確保不留任何外距，這通常是導致「偏右」的原因 */
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 749px) {
    .slider.slider--mobile {
        /* 強制捲動時，吸附點位於容器的最左側，不留任何間隙 */
        scroll-padding-left: 0 !important;
        scroll-padding-right: 0 !important;
    }
}

  
/*輪播照片的設定*/
#main-image-wrapper {
  min-height: 350px; /* 這裡的 350px 請改成你實際手機螢幕看到的圖片高度 */
  height: auto;      /* 讓高度自動，但確保有最小高度 */
  display: flex;     /* 保持原本的 flex 佈局，Slider 才不會跑版 */
}

.product {
  margin: 0;
}

.product--no-media {
  max-width: 57rem;
  margin: 0 auto;
}

.product__media-wrapper {
  padding-left: 30PX;
      padding-right: 30px;

}

.product__info-wrapper {
  padding-left: 0;
  padding-bottom: 0;
}

.product__media-wrapper .slider-component .splide__slide img{
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

.product__media-wrapper .slider-component .splide__slide{
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 749px) {
  .product-section {
    margin-top: 0;
  }
}

@media screen and (min-width: 750px) {
  .product__info-container--sticky {
    position: sticky;
    top: 3rem;
    z-index: 2;
  }

  .product__info-wrapper {
    padding-left: 0rem;
  }

  .product__media-container .slider-buttons {
    display: none;
  }
}

/* 1. 全域設定 (包含手機版) */
.product:not(.product--no-media):not(.featured-product) .product__info-wrapper {
  padding-left: 1.5rem; /* 手機版左側邊距 */
  padding-right: 1.5rem; /* 手機版右側邊距，避免太靠近邊緣 */
  width: 100%; /* 手機版寬度佔滿 */
}

/* 2. 電腦版設定 (維持原樣) */
@media screen and (min-width: 990px) {
  .product:not(.product--no-media):not(.featured-product) .product__media-wrapper {
    max-width: 55%;
    width: calc(55% - 1rem / 2);
  }

  .product:not(.product--no-media):not(.featured-product) .product__info-wrapper {
    padding-left: 4rem;
    padding-right: 0; /* 電腦版改回不需要右側邊距 */
    max-width: 45%;
    width: calc(45% - 1rem / 2);
  }

  .product:not(.product--no-media) .product__info-container .product-form {
    max-width: 450px;
  }
}



/* Product form */

.product-form {
  display: block;
}

/* Form Elements */
.product-form__input{
  flex: 0 0 100%;
  padding: 0;
  margin: 0 0 1.2rem 0;
  min-width: fit-content;
  border: none;
  position: relative;
}

.selector-wrapper.product-form__input::after{
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-caret' viewBox='0 0 10 6'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.354.646a.5.5 0 00-.708 0L5 4.293 1.354.646a.5.5 0 00-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 000-.708z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E");
  height: 0.6rem;
  width: 1rem;
  pointer-events: none;
  position: absolute;
  bottom: 1.6rem;
  right: 1.5rem;
}

variant-radios,
variant-selects {
  display: block;
}

.product-form__input--dropdown {
  margin-bottom: 1.6rem;
}

.product-form__input .form__label {
  padding-left: 0;
}

fieldset.product-form__input .form__label {
  margin-bottom: 0.2rem;
}

.product-form__input input[type='radio'] {
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  position: absolute;
  height: 1px;
  width: 1px;
}

.product-form__input input[type='radio'] + label {
  border: 0.1rem solid rgba(93,101,91, 0.3);
  border-radius: 1rem;
  color: rgb(var(--color-foreground));
  display: inline-block;
  margin: 0.7rem 0.5rem 0.2rem 0;
  padding: 1rem 2rem;
  font-size: 12pX;
  letter-spacing: 0.1rem;
  line-height: 1;
  text-align: center;
  transition: border var(--duration-short) ease;
  cursor: pointer;
}

.product-form__input input[type='radio'] + label:hover {
  border: 0.1rem solid rgb(var(--color-foreground));
}

.product-form__input input[type='radio']:checked + label {
  background-color: rgba(255,255,255,0.5);
  color: rgb(51,51,51);
  border: 0.1rem solid rgb(var(--color-foreground));
}

.product-form__input input[type='radio']:disabled + label {
  border-color: rgba(var(--color-foreground), 0.1);
  color: rgba(var(--color-foreground), 0.4);
  text-decoration: line-through;
}
.product-form__input input[type='radio']:focus-visible + label {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)),
    0 0 0 0.5rem rgba(var(--color-foreground), 0.55);
}

/* Fallback */
.product-form__input input[type='radio'].focused + label {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)),
    0 0 0 0.5rem rgba(var(--color-foreground), 0.55);
}

/* No outline when focus-visible is available in the browser */
.no-js .product-form__input input[type='radio']:focus:not(:focus-visible) + label {
  box-shadow: none;
}

.product-form__input .select {
  max-width: 25rem;
}

.product-form__submit {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.no-js .product-form__submit.button--secondary {
  --color-button: var(--color-base-accent-1);
  --color-button-text: var(--color-base-solid-button-labels);
  --alpha-button-background: 1;
}


/* Product info */

.product__info-container > * + * {
  margin: 1rem 0;
}

.product__info-container .product-form,
.product__info-container .product__description {
  margin: 2.5rem 0;
}

.product__text {
  margin-bottom: 0;
}

a.product__text {
  display: block;
  text-decoration: none;
  color: rgba(var(--color-foreground), 0.75);
}

.product__text.caption-with-letter-spacing {
  text-transform: uppercase;
}

/* 📱 手機（預設）*/
.product__title {
  word-break: break-word;
  margin-top: -5	rem;
  margin-bottom: 1rem;
}

/* 🖥 桌機（≥ 990px）*/
@media screen and (min-width: 990px) {
  .product__title {
    margin-top: -0.5rem; /* 例子：桌機通常不需要這麼負的 margin */
    margin-bottom: 1.5rem; /* 若你要保持原本，就改回 1rem */
  }
}

.product__title + .product__text.caption-with-letter-spacing {
  margin-top: -1.5rem;
}

.product__text.caption-with-letter-spacing + .product__title {
  margin-top: 0;
}

.product__accordion .accordion__content {
  padding: 0 1rem;
}

.product .price {
  align-items: flex-start;
}

.product .price--on-sale dl {
  margin-bottom: 0.5rem;
}

.product .price--sold-out .price__badge-sale {
  display: none;
}

@media screen and (min-width: 750px) {
  .product__info-container .price--on-sale .price-item--regular {
    font-size: 1rem;
  }

  .product__info-container > *:first-child {
    margin-top: 0;
  }
}

.product__description-title {
  font-weight: 600;
}

.product--no-media .product__title,
.product--no-media .product__text,
.product--no-media noscript .product-form__input {
  text-align: center;
}

.product--no-media noscript .product-form__input,
.product--no-media .share-button {
  max-width: 100%;
}

.product--no-media fieldset.product-form__input,
.product--no-media .product-form__quantity,
.product--no-media .product-form__input--dropdown,
.product--no-media .share-button,
.product--no-media .product__view-details,
.product--no-media .store-availability-container,
.product--no-media .product-form {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product--no-media .product-form > .form {
  max-width: 30rem;
  width: 100%;
}

.product--no-media .product-form__quantity,
.product--no-media .product-form__input--dropdown {
  flex-direction: column;
  max-width: 100%;
}

.product--no-media fieldset.product-form__input {
  flex-wrap: wrap;
  margin: 0 auto 1.2rem auto;
}

.product--no-media .product__info-container > modal-opener {
  display: block;
  text-align: center;
}

.product--no-media .product-popup-modal__button {
  padding-right: 0;
}

.product--no-media .price {
  justify-content: center;
}

.product--no-media .product__info-wrapper {
  padding-left: 0;
}

/* Product media */

@media screen and (max-width: 749px) {
    /* 1. 設定輪播容器為固定寬度並隱藏超出內容 */
    .slider.slider--mobile {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding: 0 !important;
    }

    /* 2. 確保每一張圖片的容器（滑塊）佔滿 100% */
    .slider__slide {
        scroll-snap-align: start;
        flex: 0 0 100%; 
        width: 100%;
        overflow: hidden; /* 防止圖片撐大容器 */
    }

    /* 3. 【最重要】強制圖片本身填滿容器並保持比例 */
    .slider__slide img {
        width: 100%;
        height: 400px; /* 設定一個你喜歡的固定高度 */
        object-fit: cover; /* 關鍵：讓圖片自動裁切填滿，不會變形 */
        object-position: center; /* 讓圖片始終保持在正中央 */
        display: block;
    }
}

@media screen and (max-width: 749px) {
  .product__media-list {
    margin-left: -2.5rem;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    width: calc(100% + 4rem);
  }

  .product__media-wrapper .slider-component {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: 2rem;
  }

  .slider.slider--mobile.product__media-list {
    padding-bottom: 0;
    margin-bottom: 0.5rem;
  }

  
  .slider.product__media-list::-webkit-scrollbar {
    height: 0.2rem;
    width: 0.2rem;
  }

  .product__media-list::-webkit-scrollbar-thumb {
    background-color: rgb(var(--color-foreground));
  }

  .product__media-list::-webkit-scrollbar-track {
    background-color: rgba(var(--color-foreground), 0.2);
  }

  .product__media-list .product__media-item {
    width: calc(100% - 3rem);
  }

  .slider.product__media-list .product__media-item:first-of-type {
    padding-left: 0rem;
  }
}

@media screen and (min-width: 750px) {
  .product__media-item:first-child {
    width: 100%;
  }

  .product-media-modal__content > .product__media-item--variant.product__media-item--variant {
    display: none;
  }

  .product-media-modal__content > .product__media-item--variant:first-child {
    display: block;
  }
}

.product__media-item--variant {
  display: none;
}

.product__media-item--variant:first-child {
  display: block;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .product__media-list .product__media-item:first-child {
    padding-left: 0;
  }

  .product__media-list .product__media-item {
    padding: 0 0 0.5rem;
    width: 100%;
  }
}

.product__media-icon .icon {
  width: 1.2rem;
  height: 1.4rem;
}

.product__media-icon {
  background-color: rgb(var(--color-background));
  border-radius: 50%;
  border: 0.1rem solid rgba(var(--color-foreground), 0.1);
  color: rgb(var(--color-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  position: absol;
}

  /* The Modal (background) */
  .modal {
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    padding-top: 70px; /* Location of the box */
    padding-bottom: 30px; 
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  }
  border-radius: 20px; /* 數值越大，圓角越明顯 */
  overflow: hidden;    /* 確保圖片超出圓角的部分被裁切 */
}



  /* Modal Content (image) */
  .modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    border-radius:13px;
    max-width: 100%;
    max-height: 1000px;
  }
  
  /* Caption of Modal Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation */
  .modal-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .product-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .product-modal-close:hover,
  .product-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: auto;
      height: auto;
      max-width: 90%;
      max-height: 700px;
    }
  
    .product-modal-close {
      right: 20px;
    }
  }
  
  .show{
    display:block;
  }
  
  .hide{
     display:none; 
  }
    
    
