/* =============================================
   DAYIN Product Detail Page
   ============================================= */
@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/metropolis/Metropolis-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap
}

/* ── Banner ── */
.page-banner{
  background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,.55) 100%),url('/dayin/images/product/banner.webp') center/cover no-repeat,#0a0a0c;
  min-height:420px;display:flex;align-items:center;padding:90px 0;border-bottom:none
}
.page-banner::before{display:none}
.page-banner .crumbs{color:#aaa}
.page-banner .crumbs a{color:#aaa}
.page-banner .crumbs .current{color:#fff}
.pb-center{width:100%;text-align:center}
.page-banner h1 {
    font-size: clamp(30px,4.5vw,40px);
    color: #fff;
    margin: 50px 0 30px 0;
    text-align: left;
}

.pb-dash {
    display: block;
    width: 35px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 20px 0px
}

.page-banner p {
    text-align: left;
    color: #eee;
    font-size: 20px;
}
@media (max-width:767px){
    .page-banner {
        padding: 0;
        min-height: 70vh;
    }
  .pb-center h1{font-size:30px}
    .page-banner h1 {
        font-size: 20px
    }

    .page-banner p {
        font-size: 16px
    }
}

/* ── Main Layout ── */
.product-detail {
  padding: 70px 0;
  background: #fff;
}

/* ── Gallery ── */
/*.pd-gallery {
  position: sticky;
  top: 100px;
}*/

.pd-gallery-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.pd-main-img {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #eee;
  border: 1px solid #eee;
  border-radius: 4px;
  /*padding: 24px;*/
  cursor: zoom-in;
  transition: opacity .2s;
}

.pd-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.pd-zoom-overlay.active {
  display: flex;
}
.pd-zoom-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}
.pd-zoom-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.pd-zoom-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.pd-thumbs-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pd-thumbs::-webkit-scrollbar {
  display: none;
}

.pd-thumb {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}

.pd-thumb.active,
.pd-thumb:hover {
  border-color: var(--accent);
}

.pd-thumb-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 12px;
  transition: all .2s;
  visibility: hidden;
}
.pd-thumb-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 767px) {
  .pd-gallery-row {
    flex-direction: column-reverse;
  }
  .pd-thumbs-wrap {
    flex-direction: row;
    width: 100%;
  }
  .pd-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .pd-thumb-nav {
    width: 24px;
    height: 32px;
  }
  .pd-thumb-nav i {
    transform: rotate(-90deg);
  }
}

/* ── Info Panel ── */
.pd-info {
  padding-left: clamp(0px, 4vw, 48px);
}

.pd-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-family: "Metropolis","Noto Sans TC";
    font-size: 12px;
    /*letter-spacing: .2em;*/
    /*text-transform: uppercase;*/
    color: var(--accent);
    margin-bottom: 10px;
}

.pd-name {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 30px;
    line-height: 1.25;
    border-bottom: 1px solid #E8E6E2;
    padding: 10px 0;

}

.pd-model {
    font-family: 'Oswald', sans-serif;
    font-family: "Metropolis","Noto Sans TC";
    font-size: 14px;
    color: var(--ink-3);
    margin-bottom: 24px;
    letter-spacing: .05em;
}

/*.pd-divider {
    border: none;
    opacity: 0;
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    margin: 24px 0;
}
*/
.pd-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-meta-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.pd-meta-list .k {
  font-weight: 600;
  color: var(--ink);
  width: 120px;
  flex-shrink: 0;
}

.pd-meta-list .v {
  color: var(--ink-3);
}

.pd-desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.85;
  margin-bottom: 32px;
}

/*.pd-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-family: "Metropolis","Noto Sans TC";
    font-size: 14px;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    text-decoration: none;
}

.pd-inquiry-btn:hover {
  opacity: .85;
  color: #fff;
}*/
.pd-inquiry-btn {
    display: inline-block;
    padding: 11px 22px;
    background: #ea6852;
    border-radius: 5px;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .15em;
    font-size: 13px;
    transition: all .3s;
    text-align: center;
    font-family: "Metropolis","Noto Sans TC";
    border:none;
    border-bottom: 2px solid #fff;
}

    .pd-inquiry-btn:hover {
        background: #e04830;
        border-bottom: 2px solid #e04830;
    }
/* ── Spec Section ── */
.pd-spec {
  padding: 60px 0;
  background: var(--bg-soft);
}

/*.pd-spec-inner {
  max-width: 820px;
}*/

    .pd-spec h3 {
        font-family: 'Oswald', sans-serif;
        font-family: "Metropolis","Noto Sans TC";
        font-size: 13px;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 16px;
    }

.pd-spec-text {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.9;
}

/* ── Related Products ── */
.pd-related {
  padding: 60px 0 100px;
  background: #fff;
}

    .pd-related .prod-card {
        display: block;
        text-decoration: none;
        color: inherit;
        border: 1px solid var(--line);
    }
        .pd-related .prod-card:hover {
            border-color: var(--accent);
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
        }
.pd-related .prod-card-img {
  background: #eee;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
    
  /*margin-bottom: 14px;*/
  overflow: hidden;
}

.pd-related .prod-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s;
}

.pd-related .prod-card:hover img {
  transform: scale(1.05);
}

.pd-related h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
    .pd-related .prod-card-body {
        padding: 20px 10px;
    }
    .pd-related .prod-card-model {
        font-size: 12px;
        color: var(--ink-4);
        margin-bottom: 4px;
        font-family: 'Oswald', sans-serif;
        font-family: "Metropolis","Noto Sans TC";
        /*letter-spacing: .05em;*/
    }

    .pd-related h2 {
        text-align: left;
        font-size: 18px;
        padding: 40px 0 0;
        font-weight: 800;
    }
@media (min-width: 992px) {
    .pd-related h2 {
        font-size: 36px;
    }
}
    /* --End content--------------- */
    .ck-content .media {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        max-width: 100%;
    }

        .ck-content .media iframe,
        .ck-content .media object,
        .ck-content .media embed {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

    /* --End content--------------- */
    .ck-content img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    @media (min-width: 992px) {
        .ck-content img {
            width: auto;
        }
    }