        <style>
    /* ============================================================
   Product Detail - Hiragino Kaku Gothic ProN for ALL text
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:   #2e2e2e;
  --color-secondary: #666666;
  --color-tertiary:  #999999;
  --color-card:      #f0f0ee;
  --color-mint:      #d8f1ed;
  --color-gray-ui:   #e8e8e8;
  --font-main: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --header-h-pc: 60px;
  --banner-h:    36px;
}


body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--color-primary);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}


.ec-breadcrumb,
.pd-brand,
.pd-name,
.pd-name-en,
.pd-short-desc,
.pd-tag,
.pd-price,
.pd-price-tax,
.pd-stock-status,
.pd-option-heading,
.pd-option-select,
.pd-qty-input,
.pd-qty-btn,
.pd-btn-cart,
.pd-detail-side-nav a,
.pd-section-label,
.pd-detail-copy,
.pd-story-heading,
.pd-story-caption,
.pd-rec-name,
.pd-rec-price,
.pd-rec-price span,
.pd-rec-viewmore,
.pd-mobile-rec-heading,
.pd-accordion-trigger,
.pd-accordion-icon {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif !important;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
input[type=number] { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }

/* ── Breadcrumb ── */
.ec-breadcrumb {
  max-width: 1366px;
  margin: 0 auto;
  padding: 18px 220px 28px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 100px;  /* Height of your fixed header */
    padding-top: 20px;
}
.ec-breadcrumb a:hover { opacity: 0.68; }

/* ── Hero ── */
.pd-hero {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 320px 72px;
  display: grid;
  grid-template-columns: 506px 430px;
  column-gap: 100px;
  align-items: start;
}

/* ── Gallery ── */
.pd-gallery {
  display: grid;
  grid-template-columns: 60px 430px;
  column-gap: 16px;
  align-items: start;
   /* margin-left: 50px; */
}

.pd-thumbs-wrap {
  position: relative;
  max-height: 434px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.pd-thumbs-wrap::-webkit-scrollbar { display: none; }
.pd-thumbs-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  pointer-events: none;
 
  transition: opacity 0.2s ease;
}
.pd-thumbs-wrap.is-scroll-end::after { opacity: 0; }

.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.pd-thumb {
  width: 60px;
  height: 60px;
  border: 1px solid transparent;
  background: var(--color-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.is-active { border-color: var(--color-primary); }
.pd-thumb:hover { opacity: 0.8; }

.pd-main-visual { min-width: 0; }

.pd-main-img-wrap {
  width: 430px;
  height: 430px;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.pd-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* ← Changed from 'contain' */
}

.pd-main-img-wrap.is-fading img { opacity: 0.22; }

.pd-main-caption {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-tertiary);
}

.pd-main-nav {
  position: absolute;
  bottom: 16px;
  width: 40px;          /* Match your circular button size */
  height: 40px;         /* Match your circular button size */
  border-radius: 999px;
  background: #ffffff;  /* Solid white background */
  color: #333333;       /* Dark gray arrow color */
  display: inline-flex; /* Centers the SVG perfectly */
  align-items: center;
  justify-content: center;
  font-size: 0;         /* Hides the old text char */
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Optional: subtle shadow */
}

.pd-main-nav--prev { left: 16px; }
.pd-main-nav--next { right: 16px; }
/* ── Product Info ── */
.pd-info { padding-top: 2px; }

.pd-brand {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pd-name {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-primary);
}
.pd-name-en {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-secondary);
}
.pd-short-desc {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-primary);
}
.pd-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
}
.pd-tag {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-tertiary);
  white-space: nowrap;
}

/* ── Purchase block ── */
.pd-purchase { margin-top: 18px; }

.pd-purchase-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-primary);
}
.pd-price {
  font-size: 24px;
  line-height: 1;
  color: var(--color-primary);
}
.pd-price-tax { font-size: 11px; line-height: 1.6; color: var(--color-primary); }

.pd-stock-status { margin-left: auto; font-size: 11px; }
.pd-stock-status.in-stock     { color: #4d8f5c; }
.pd-stock-status.low-stock    { color: #b76a34; }
.pd-stock-status.out-of-stock { color: #b54f4f; }

.pd-purchase-stack { margin-top: 22px; display: grid; gap: 24px; }

.pd-purchase-row {
  display: grid;
  grid-template-columns: 1fr 282px;
  column-gap: 20px;
  align-items: end;
}
.pd-option-heading {
  display: block;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-primary);
}
.pd-purchase-action {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: stretch;
}

.pd-option-select,
.pd-qty-input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 0;
  background-color: #fff;
  color: var(--color-primary);
  font-size: 16px;
}
.pd-option-select {
  padding: 0 42px 0 16px;
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,#2e2e2e 50%),
                    linear-gradient(135deg,#2e2e2e 50%,transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px),
                       calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.pd-qty-input {
  width: 100%;
  height: 100%;
  border-top: none;
  border-bottom: none;

  text-align: center;
  font-size: 14px;
  color: var(--color-primary);
  background: #fff;
  appearance: textfield;
  -moz-appearance: textfield;
  padding: 0;
  margin: 0;
  outline: none;
  display: block;
}
.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-qty-stepper {
  display: inline-grid;
  grid-template-columns: 36px 44px 36px;
  height: 46px;
  border: 1px solid #c8c8c8;
  background: #fff;
  width: 116px;
  gap: 0;
  overflow: hidden;
}

.pd-qty-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-secondary);
  background: #fff;
  border: none !important;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: none !important;
}
.pd-btn-cart {
  position: relative;
  min-height: 48px;
  padding: 0 48px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-primary);
  background: var(--color-gray-ui);
  box-shadow: 4px 4px 3px rgba(0,0,0,0.16);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 100%;
}
.pd-btn-cart::after {
    content: "" !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12H20' stroke='%231a1a1a' stroke-width='0.8' stroke-linecap='round'/%3E%3Cpath d='M13 5L21 12L13 19' stroke='%231a1a1a' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
}
.pd-btn-cart:disabled { opacity: 0.45; cursor: not-allowed; }
.pd-btn-cart:not(:disabled):hover { opacity: 0.82; transform: translateY(-1px); }

/* ── Detail wrap ── */
.pd-detail-wrap {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 193px 90px;
}
.pd-detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 300px 650px;
  column-gap: 53px;
  align-items: start;
}
.pd-detail-layout::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 300px; height: 1px;
  background: var(--color-primary);
}

/* ── Side nav ── */
.pd-detail-side {
  position: static;  /* Changed from sticky to static - no scrolling */
  /* top: calc(var(--header-h-pc) + var(--banner-h) + 54px); */  /* Comment out or remove */
  align-self: start;
}
.pd-detail-side-nav {
  display: grid;
  gap: 8px;
  padding-top: 50px;
  padding-left: 170px;
}
.pd-detail-side-nav a {
  font-size: 18px;
  line-height: 2;
  color: var(--color-tertiary);
  transition: color 0.2s ease;
}
.pd-detail-side-nav a.is-active,
.pd-detail-side-nav a:hover { color: var(--color-primary); }

/* ── Detail main ── */
.pd-detail-main {
  min-width: 0;
  position: relative;
}
.pd-detail-main::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 700px; height: 1px;
  background: var(--color-primary);
}

/* ── Accordion ── */
.pd-detail-section { border-top: 0; }

/* Remove the gray border from accordion sections */
.pd-detail-section {
    border-bottom: none;
}

/* Accordion trigger - add gap on right side */
/* Accordion trigger - add gap on right side */
.pd-accordion-trigger {
    width: 90%;
    margin-left: 60px;;  /* Center it */
    padding: 0 50px 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    color: var(--color-primary);
  
}

/* Accordion inner content - need to limit width of the panel content */
.pd-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
    border-bottom: 1px solid var(--color-primary);
    width: 90%;  /* Match trigger width */
    margin-left: 60px;;  /* Center it */
}

/* Ensure inner content respects the width */
.pd-accordion-inner {
    overflow: hidden;
    width: 100%;
}

/* The detail copy inside should also respect the width */
.pd-detail-copy {
    font-size: 16px;
    line-height: 1.72;
    color: var(--color-primary);
    padding: 0 30px 0 20px;
    width: 100%;
}
.pd-accordion-label-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.pd-section-label {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.pd-accordion-icon {
  position: relative;
  width: 16px; height: 16px;
  flex: 0 0 auto;
}
.pd-accordion-icon::before,
.pd-accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}
.pd-accordion-icon::before { width: 16px; height: 1px; }
.pd-accordion-icon::after  { width: 1px; height: 16px; }
.pd-accordion-trigger.is-open .pd-accordion-icon::after { opacity: 0; }
.pd-accordion-trigger.is-open .pd-accordion-icon::before { opacity: 1; }

.pd-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
   border-bottom: 1px solid var(--color-primary);
}
.pd-accordion-panel.is-open { grid-template-rows: 1fr; }
.pd-accordion-inner { overflow: hidden; }
.pd-accordion-panel.is-open .pd-accordion-inner { padding-bottom: 26px; }

/* ── Detail copy ── */

.pd-detail-copy > * + * { margin-top: 18px; }
.pd-detail-copy h2,
.pd-detail-copy h3,
.pd-detail-copy h4 { margin-top: 34px; font-size: 16px; font-weight: 400; line-height: 2.1; }
.pd-detail-copy img { display: block; width: 100%; height: auto; margin-top: 32px; background: var(--color-card); }
.pd-detail-copy figure { margin-top: 32px; }
.pd-detail-copy figcaption { margin-top: 8px; font-size: 10px; line-height: 1.6; color: var(--color-tertiary); }
.pd-detail-copy--note { margin-bottom: 24px; font-size: 11px; line-height: 1.7; color: var(--color-secondary); }

/* Editorial flow */
.pd-editorial-flow { margin-top: 34px; }
.pd-editorial-flow > * + * { margin-top: 28px; }
.pd-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.pd-editorial-figure { margin: 0; }
.pd-editorial-figure img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 700/420; object-fit: cover;
  background: var(--color-card);
}
.pd-editorial-grid .pd-editorial-figure img { aspect-ratio: 350/483; }
.pd-editorial-figure figcaption { margin-top: 8px; font-size: 10px; line-height: 1.6; color: var(--color-tertiary); }

/* ── Recommend ── */
.pd-detail-section--recommend { margin-top: 0; padding-top: 54px;  }
.pd-recommend-head { padding: 18px 0 24px; }
.pd-rec-label-col {
  padding-top: 54px;
  padding-left: 170px;
  border-top: 1px solid var(--color-primary);
}
.pd-detail-side-nav-label {
  font-size: 18px;
  line-height: 2.125;
  color: var(--color-primary);
}

/* ── Free space ── */
.pd-free-space {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 193px 56px;
}

/* ── Story section ── */
.pd-story-section-border {
  border-top: 1px solid rgba(46,46,46,0.4);
  margin-bottom: 0;
}
.pd-story-block { display: flex; flex-direction: column; gap: 28px; padding: 4px 20px 0; }

.pd-story-figure--full { margin: 0; }
.pd-story-figure--full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--color-card);
}

.pd-story-text { padding: 0 !important; }

.pd-story-heading {
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pd-story-block .pd-story-text p:not(.pd-story-heading) {
    font-size: 14px !important;
    line-height: 1.9 !important;
}

.pd-story-caption {
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-tertiary);
  margin-top: 2px;
}

/* ── Mobile recommended heading ── */
.pd-mobile-rec-heading {
  display: none;
}

/* ── Recommended Products Grid ── */
.pd-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 20px;
}

.pd-rec-card {
  display: block;
  color: var(--color-primary);
  transition: opacity 0.2s;
}
.pd-rec-card:hover { opacity: 0.78; }

.pd-rec-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  background: transparent;
}

.pd-rec-name {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}

    .pd-simple-desc {
    margin-top: 15px;
    font-size: 12px;
    color: #666666;
    line-height: 1;
}

.pd-rec-price {
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-secondary);
}
.pd-rec-price span {
  font-size: 10px;
  margin-left: 3px;
  color: var(--color-tertiary);
}

.pd-recommend-more {
  margin-top: 28px;
}

.pd-rec-viewmore {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 28px;
  border: 1px solid var(--color-primary);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
}
.pd-rec-viewmore:hover { background: var(--color-primary); color: #fff; }

/* ── Mobile FAQ accordions ── */
.pd-faq-mobile {
  display: none;
}

 @media (max-width: 1350px) {

    .pd-hero {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 220px 72px;
  display: grid;
  grid-template-columns: 506px 430px;
  column-gap: 60px;
  align-items: start;
}

}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .ec-breadcrumb {
    padding: 16px 27px 20px !important;  /* ← Changed from 220px to 27px */
    font-size: 10px;
    margin-top: 70px;
  }

  .pd-hero { padding: 0 27px 44px; grid-template-columns: 1fr; row-gap: 28px; }
  .pd-gallery { grid-template-columns: 1fr; row-gap: 12px; }
  .pd-thumbs-wrap { order: 2; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .pd-thumbs-wrap::after {
    left: auto; top: 0; bottom: 0;
    width: 48px; height: auto;
  
  }
  .pd-thumbs { flex-direction: row; gap: 8px; width: max-content; padding-right: 20px; padding-bottom: 0; }
  .pd-main-img-wrap { width: 100%; height: auto; aspect-ratio: 1; }
  .pd-main-img-wrap img { width: 100%; height: 100%; object-fit: cover;  }
  .pd-name { font-size: 20px;
margin-top: 0px; margin-bottom: 0px; }
  .pd-short-desc { font-size: 16px; line-height: 1.85; }
  .pd-purchase-row { grid-template-columns: 1fr; row-gap: 8px; }
  .pd-purchase-action { grid-template-columns: 130px 1fr; }

  .pd-detail-wrap { padding: 0 27px 44px; }
  .pd-detail-layout { grid-template-columns: 1fr; }
  .pd-detail-layout::before,
  .pd-detail-main::before,
  .pd-detail-side { display: none; }
  .pd-accordion-trigger { padding: 16px 0; }
  .pd-section-label { font-size: 16px; }
  .pd-accordion-panel.is-open .pd-accordion-inner { padding-bottom: 22px; }
  .pd-detail-copy { font-size: 16px; line-height: 1.9; padding: 0; }
  .pd-editorial-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .pd-free-space { padding: 0 27px 44px; }
  .pd-story-block { padding: 4px 0 0; gap: 20px; }

  /* Mobile: 2 columns for recommended products */
  .pd-rec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .pd-mobile-rec-heading {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 20px;
  }

  .pd-recommend-head { padding-left: 0; }
  .pd-recommend-more { padding-left: 0; }
  .pd-rec-label-col { display: none; }
  .pd-detail-section--recommend {
    padding-top: 28px;
    border-top: 1px solid rgba(46,46,46,0.40);
  }

  /* ── Mobile FAQ accordions ── */
  .pd-faq-mobile {
    display: block;
    margin: 0 27px 0;

  }

  .pd-faq-trigger {
    width: 100%;
    padding: 20px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(46,46,46,0.40);
    text-align: left;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
}

  .pd-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .pd-faq-icon::before,
  .pd-faq-icon::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
  }
  .pd-faq-icon::before { width: 14px; height: 1px; }
  .pd-faq-icon::after  { width: 1px; height: 14px; }
  .pd-faq-trigger.is-open .pd-faq-icon::after { opacity: 0; }

  .pd-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
    border-bottom: none;
}

  .pd-faq-trigger {
    border-bottom: 1px solid rgba(46,46,46,0.40);
}


  .pd-faq-panel.is-open {
    grid-template-rows: 1fr;
  }
  .pd-faq-inner {
    overflow: hidden;
  }
  .pd-faq-panel.is-open .pd-faq-inner {
    padding: 16px 4px 20px;
  }
  .pd-faq-body {
    font-size: 13px;
    line-height: 1.9;
    color: var(--color-secondary);
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  }

  [data-faq-target="pdFaqReturn"] {
    border-bottom: none !important;
}
}
/* Small mobile adjustments */
@media (max-width: 640px) {
  .pd-rec-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pd-purchase-action {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pd-qty-stepper {
    max-width: 130px;
  }
}

/* Make sidebar extend to left edge on desktop */
/* Make sidebar extend to left edge on desktop and add shorter border line */
@media (min-width: 1024px) {
    .pd-detail-layout {
        position: relative;
        overflow: visible !important;
    }
    
    .pd-detail-side {
        position: relative;
        overflow: visible !important;
    }
    
    /* Sidebar top border - less width from the right side */
    .pd-detail-side::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: -1000px !important;
        right: 60px !important;  /* Adjust this value - larger = shorter line */
        height: 1px !important;
        background: var(--color-primary) !important;
        width: auto !important;
        pointer-events: none !important;
    }
}

/* ===== FINAL PURCHASE SECTION STYLES ===== */

/* Price above button */
.pd-price-above {
    text-align: right !important;
    margin-bottom: 8px !important;
}

.pd-price-amount {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--color-primary) !important;
}

/* Action row - quantity on LEFT, button on RIGHT */
.pd-action-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

/* Quantity selector - stays on left */

/* Add to Cart button - on right */
.pd-btn-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #f0f0f0 !important;
    border: none !important;
    padding: 0 24px !important;
    height: 42px !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    flex: 1 !important;
}

.pd-btn-cart:hover {
    opacity: 0.7 !important;
}

.pd-btn-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-right: 130px !important;
}

.pd-btn-arrow {
    font-size: 14px !important;
}

/* Mobile */
@media (max-width: 640px) {
    .pd-action-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .pd-btn-cart {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .pd-price-above {
        text-align: left !important;
    }
}

.pd-option-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
    margin-bottom: 1px !important;
}

.pd-price-above {
    text-align: right !important;
}

.pd-price-amount {
    white-space: nowrap !important;
}

/* Move detail main left and adjust sidebar */


.pd-detail-main {
    margin-left: -80px !important;
}
/* Move sidebar to the left */
.pd-detail-side {
    margin-left: 10px !important;
}

.pd-detail-side-nav {
    padding-left: 20px !important;
}

/* Remove the duplicate sidebar border (keep only one) */
.pd-detail-side::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -1000px !important;
    right: 100px !important;
    height: 1px !important;
    background: var(--color-primary) !important;
    width: auto !important;
    pointer-events: none !important;
}

/* Remove the layout container border (third one) */
.pd-detail-layout::before {
    display: none !important;
}

/* Keep main content border */
.pd-detail-main::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 720px !important;
    height: 1px !important;
    background: var(--color-primary) !important;
}

/* Border after product info content */
.pd-info-content {
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
}



/* Make Story section completely separate with a top border */
#pdSectionStory {
    margin-top: 80px;
    padding-top: 30px;
  
}

/* Add gap between top border and first accordion */
.pd-detail-section:first-of-type {
    margin-top: 30px;
}

/* Remove border from all sections */
.pd-detail-main::before {
    display: none !important;
}

/* Add border only to About section */
.about-section .pd-detail-main {
    position: relative;
}

.about-section .pd-detail-main::before {
    display: block !important;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
}
/* Fix anchor scrolling - smooth scroll with offset */
html {
    scroll-behavior: smooth;
}

.pd-detail-section {
    scroll-margin-top: 80px;
}

@media (max-width: 1023px) {
    .pd-detail-section {
        scroll-margin-top: 60px;
    }
}
/* Add custom SVG arrow to recommend product cards */
.pd-rec-card {
    position: relative;
    display: block;
    padding-bottom: 25px;
}

.pd-rec-card::after {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: 8px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12H20' stroke='%231a1a1a' stroke-width='0.8' stroke-linecap='round'/%3E%3Cpath d='M13 5L21 12L13 19' stroke='%231a1a1a' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    transition: transform 0.2s ease !important;
}

.pd-rec-card:hover::after {
    transform: translateX(5px) !important;
}

/* Mobile layout - keep same structure as desktop */
@media (max-width: 1023px) {
    /* Remove sidebars on mobile */
    .pd-detail-side {
        display: none !important;
    }
    
    /* Product name and price on same line like desktop */
    .pd-option-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        flex-direction: row !important;
    }
    
    /* Description stays below */
    .pd-short-desc {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    /* Quantity + Add to Cart - keep same layout as desktop */
    .pd-action-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
    }
    
    .pd-qty-stepper {
        width: 110px !important;
        flex-shrink: 0 !important;
    }
    
    .pd-btn-cart {
        flex: 1 !important;
        justify-content: center !important;
    }
    
    /* About section - heading on left, accordion on right */
    .pd-detail-section .pd-accordion-label-group {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    
    
    /* Recommended products - 2 per row */
    .pd-rec-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Hide duplicate sidebars in content */
    .pd-detail-wrap .pd-detail-side {
        display: none !important;
    }
    
    /* Story section text adjustments */
    .pd-story-block {
        padding: 4px 0 0 !important;
    }
    
    .pd-detail-copy {
        padding: 0 !important;
    }
}

/* Very small screens */
@media (max-width: 640px) {
    .pd-action-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .pd-qty-stepper {
        width: 100px !important;
    }
    
    .pd-btn-cart {
        min-width: 160px !important;
    }
    
    .pd-rec-grid {
        gap: 15px !important;
    }
}

/* Fix for small mobile screens (under 500px) */
@media (max-width: 500px) {
    /* Make quantity selector and button full width */
    .pd-action-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .pd-qty-stepper {
        width: 100% !important;
        max-width: none !important;
    }
    
    .pd-btn-cart {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Fix border bottom issues */
    .pd-info-content {
        border-bottom: 1px solid var(--color-primary);
        padding-bottom: 15px;
        margin-bottom: 5px;
    }
    
    /* Product name and price stack on very small screens */
    .pd-option-header {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    /* Recommended products - 2 per row with smaller gap */
    .pd-rec-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .pd-rec-card img {
        margin-bottom: 8px;
    }
    
    .pd-rec-name {
        font-size: 12px;
    }
    
    .pd-rec-price {
        font-size: 12px;
    }
}

/* Extra small screens (under 400px) */
@media (max-width: 450px) {
    .pd-option-name {
        font-size: 14px !important;
    }
    
    .pd-price-amount {
        font-size: 18px !important;
    }
    
    .pd-short-desc {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    /* Accordion adjustments */
    .pd-section-label {
        font-size: 15px !important;
    }
    
    .pd-accordion-trigger {
        padding: 12px 0 !important;
        height: auto !important;
        min-height: 55px;
    }
    
    .pd-detail-copy {
        font-size: 13px !important;
    }
    
    /* Recommended products */
    .pd-rec-grid {
        gap: 10px !important;
    }
    
    .pd-rec-name {
        font-size: 12px;
    }
    
    .pd-rec-price {
        font-size: 12px;
    }
    
    .pd-rec-price span {
        font-size: 9px;
    }
    
    /* Fix any overflow issues */
    .pd-purchase-option-row {
        padding: 10px 0 !important;
    }
    
    .pd-action-row {
        gap: 10px !important;
    }
}
/* Fix border-bottom extending too far right */
@media (max-width: 630px) {
    .pd-info-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure the container doesn't overflow */
    .pd-info {
        overflow-x: hidden !important;
    }
    
    /* Fix any parent containers */
    .pd-hero,
    .pd-info,
    .container {
        overflow-x: hidden !important;
    }
}

/* Fix left spacing for detail sections */
@media (max-width: 1023px) {
    .pd-detail-wrap {
        padding: 0 27px 40px !important;
    }
    
    .pd-detail-main {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Ensure text has proper padding */
    .pd-detail-copy {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix any negative margins */
    .pd-detail-main {
        margin-left: 0 !important;
    }
}


/* Counter the negative margin for about section */

.about-section .pd-detail-main {
    margin-left: -40px !important;
}

/* Fix About section width on small mobile */
@media (max-width: 500px) {
    .about-section .pd-detail-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .about-section .pd-accordion-trigger,
    .about-section .pd-accordion-panel {
        width: 100% !important;
        margin-left: 0 !important;
   
    }
    
    .about-section .pd-detail-copy {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* For mobile, reset everything to 0 */
@media (max-width: 1023px) {
    .pd-detail-main {
        margin-left: 0 !important;
    }
    
    
}

@media (max-width: 500px) {
    .pd-action-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .pd-qty-stepper {
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .pd-btn-cart {
        width: auto !important;
        flex: 1 !important;
        min-width: 160px !important;
    }
    
    /* Add this - prevent button text wrapping */
    .pd-btn-text {
        white-space: nowrap !important;
      margin-right: 60px !important;
    }
}

@media (max-width: 1023px) {
    .pd-gallery {
        grid-template-columns: 1fr !important;  /* Single column */
        row-gap: 12px !important;        
           margin-left: 0px !important;        /* Gap between main img and thumbs */
    }
    
    .pd-thumbs-wrap {
        order: 2;                               /* Thumbnails go to bottom */
        overflow-x: auto;                       /* Horizontal scroll */
        overflow-y: hidden;
    }
    
    .pd-thumbs {
        flex-direction: row !important;         /* Horizontal layout */
        gap: 8px !important;
        width: max-content !important;
    }
    
    .pd-main-visual {
        order: 1;                               /* Main image on top */
    }

    .pd-main-nav {
  position: absolute;
  bottom: 16px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,1);
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
}


    .pd-main-nav--prev { left: 10px; }
.pd-main-nav--next { right: 10px; }

    
}

@media (max-width: 1023px) {
    .pd-accordion-trigger {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 18px 0 !important;
        height: auto !important;
        min-height: auto !important;
        border: none !important;
    }

    .pd-accordion-panel {
        width: 100% !important;
        margin-left: 0 !important;
        border: none !important;
    }

    
/* Add border to the inner wrapper */
#pdPanelAbout .pd-accordion-inner {
    border-bottom: 1px solid #d8d8d0 !important;
}
   
    

    .pd-section-label {
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    /* Reduce gap between the two accordions */
#pdPanelAbout + .pd-detail-section {
    margin-top: -10px !important;
}

/* Or remove the gap completely */
#pdPanelAbout + .pd-detail-section {
    margin-top: 0 !important;
}

/* Add space between second accordion and the bottom border */
.pd-detail-section-how-to[data-detail-section="howto"] {
    margin-bottom: 30px !important;
}

/* This adds space above the border by pushing the whole section */
.about-section {
    margin-top: 20px !important;
}

.about-section .pd-detail-main {
    border-bottom: 1px solid #7e7e7b !important;
   
}
}



@media (max-width: 1023px) {
    .pd-detail-section:first-of-type {
        margin-top: 10px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        
    }
  .pd-detail-section {
        border-bottom: 1px solid rgba(0, 0, 0, 0.40) !important;
    }
}

@media (max-width: 400px) {
    .pd-detail-copy { font-size: 13px !important; }
    
    /* Restore story heading size */
    .pd-story-heading { font-size: 16px !important; }
    
    /* Keep body text at 14px */
    .pd-story-block .pd-story-text p:not(.pd-story-heading) {
        font-size: 14px !important;
    }
}

@media (max-width: 1023px) {
    .pd-detail-wrap:has(#pdSectionStory) .pd-detail-main::before {
        content: "About" !important;
        display: block !important;
        font-size: 16px !important;
        font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif !important;
        color: var(--color-secondary) !important;
        letter-spacing: 0.04em !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        margin-bottom: 0px !important;
    }
}

@media (max-width: 1023px) {
    /* Add Story heading above pd-story-block */
      #pdSectionStory .pd-story-block::before {
    content: "Story" !important;
    display: block !important;
    font-size: 16px !important;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif !important;
    color: var(--color-secondary) !important;
    letter-spacing: 0.04em !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    margin-bottom: 10px !important;
    margin-left: -2px !important;  /* ← Pulls it to the left */
  }
    .pd-story-block{
        margin-bottom: 20px !important;
    }


}

@media (max-width: 1023px) {
    #pdSectionStory {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
}

@media (min-width: 1024px) {
    .pd-detail-wrap:not(.about-section) .pd-detail-side {
        display: none !important;  /* Hides duplicate sidebars */
    }
    
    .about-section .pd-detail-side {
        position: sticky !important;
        top: 120px !important;  /* Sticky at 120px from top */
        align-self: flex-start !important;
    }
    
    .pd-detail-layout {
        align-items: flex-start !important;
    }
}

@media (min-width: 1024px) {
    /* Hide sidebar but keep its space for Story and Recommend sections */
    .pd-detail-wrap:not(.about-section) .pd-detail-side {
        display: block !important;  /* Keep the element */
        visibility: hidden !important;  /* Hide it visually */
        pointer-events: none !important;  /* Prevent clicks */
    }
    
    /* Keep the same grid layout for all sections */
    .pd-detail-layout {
        grid-template-columns: 300px 650px !important;
    }
    
    /* Make the main content stay in the same position */
    .pd-detail-main {
        margin-left: 0 !important;
    }
    
    /* About section sidebar stays visible and sticky */
    .about-section .pd-detail-side {
        visibility: visible !important;
        pointer-events: auto !important;
        position: sticky !important;
        top: 120px !important;
        align-self: flex-start !important;
    }
}

@media (min-width: 1024px) {
    .about-section .pd-detail-layout {
        display: grid !important;
        grid-template-columns: 300px 650px !important;
        align-items: start !important;
        position: relative !important;
    }
    
    .about-section .pd-detail-side {
        position: sticky !important;
        top: 120px !important;
        align-self: start !important;
        height: fit-content !important;
    }
    
    .about-section .pd-detail-main {
        align-self: start !important;
    }
}

/* Active link states */
.pd-detail-side-nav a {
    color: var(--color-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.pd-detail-side-nav a.is-active {
    color: var(--color-primary) !important;
    font-weight: 400;
    position: relative;
}

.pd-detail-side-nav a:hover {
    color: var(--color-primary);
    opacity: 0.7;
}

/* Active link styles */
.pd-detail-side-nav a {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.pd-detail-side-nav a.is-active {
    color: #000000 !important;
    font-weight: 400;
}

.pd-detail-side-nav a:hover {
    color: #2e2e2e;
    opacity: 0.7;
}

/* Top border for product page - matching About page style */
.pd-detail-layout {
    position: relative;
}

/* BEFORE: Sidebar top border */
.pd-detail-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 1px;
    background: var(--color-primary);
    z-index: 10;
}

/* AFTER: Content top border with gap */
.pd-detail-layout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 340px;  /* 300px + 40px gap */
    right: 0;
    height: 1px;
    background: var(--color-primary);
    z-index: 10;
}

/* Remove any conflicting borders */
.pd-detail-layout {
    border-top: none !important;
}

/* Make sure the sidebar nav doesn't have extra top padding that hides the border */
.pd-detail-side-nav {
    padding-top: 50px;  /* Keep this - it pushes content below the border */
}
/* Top border for product page - FIXED (not sticky) */
.pd-detail-layout {
    position: relative;
    border-top: none !important;
}

/* Remove any existing conflicting borders */
.pd-detail-layout::before,
.pd-detail-layout::after,
.pd-detail-side::before,
.pd-detail-main::before {
    display: none !important;
}

/* BEFORE: Sidebar top border - extends to true left edge */
.pd-detail-layout::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    top: 0;
    left: -1000px;  /* Negative value to reach left edge */
    width: 1200px;  /* Wider to cover the negative offset */
    height: 1px;
    background: #1a1311;
    z-index: 10;
}

/* AFTER: Content top border with gap - starts after sidebar + gap */
.pd-detail-layout::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    top: 0;
    left: 340px;  /* 300px sidebar + 40px gap */
    right: 0;
    height: 1px;
    background: #1a1311;
    z-index: 10;
}

/* Hide borders on mobile */
@media (max-width: 1023px) {
    .pd-detail-layout::before,
    .pd-detail-layout::after {
        display: none !important;
    }
}
.pd-gallery {
    display: grid;
    grid-template-columns: 60px 430px;
    column-gap: 16px;
    align-items: start;
   /* margin-left: -50px;*/
}


/* For smaller screens */
@media (max-width: 600px) {
    .pd-detail-wrap {
        padding: 0 20px 49px !important;
    }
}

@media (max-width: 400px) {
    .pd-detail-wrap {
        padding: 0 20px 49px !important;
    }
}


 @media (max-width: 1023px) {
    .pd-detail-wrap.about-section {
        padding: 0 28px 44px !important;
    }
    .pd-free-space.pd-free-space {
        padding: 0 28px 44px !important;
    }
    .pd-simple-desc {
    margin-top: 5px;
    font-size: 11px;
    color: #666666;
    line-height: 1;
}
}



@media (max-width: 1023px) {
    .pd-thumbs-wrap {
        max-width: 100%;
        overflow-x: auto;
    }
    .pd-gallery {
        margin-left: 0;
    }
}




@media (max-width: 1023px) {
    .vs-header-main {
        transform: translateX(-16px) !important;
    }
}

</style>