/* =========================================================================
   Vehicle detail page (single-vehicle) — matches toyota.com.vn structure.
   Blocks:
     .sticky-cta          - fixed-width CTA bar under hero
     .tdt-overview        - product overview (image + title/specs)
   ========================================================================= */

/* ============ STICKY CTA BAR (under hero) ============ */
.sticky-cta {
  background: #EEEEEE;
  border-bottom: 1px solid #E5E5E5;
}
.sticky-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
}
.sticky-cta__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #1A1A1A;
  font-family: 'Toyota Type', Inter, system-ui, sans-serif;
}
.sticky-cta__item:hover { color: #EB0A1E; }
.sticky-cta__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.sticky-cta__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .sticky-cta__inner { padding: 20px 12px; gap: 8px; }
  .sticky-cta__item { flex-direction: column; gap: 6px; text-align: center; }
  .sticky-cta__icon { width: 32px; height: 32px; }
  .sticky-cta__label { font-size: 13px; }
}

/* ============ OVERVIEW ============ */
.tdt-overview { background: #fff; }

/* Left: image wrapper with red offset accent — full size red block shifted
   to bottom-left behind the image, so the red peeks out on the left and
   bottom edges. */
.tdt-overview__img-inner::before {
  content: '';
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 100%;
  height: 100%;
  background: #EB0A1E;
  z-index: 0;
}

/* Right: title */
.tdt-overview__title {
  font-family: 'Toyota Type', 'Toyota Type Book', Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #101010;
  text-transform: uppercase;
  margin: 0 0 16px;
}
@media (min-width: 768px) {
  .tdt-overview__title { font-size: 36px; }
}

.tdt-overview__tagline {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #1A1A1A;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Quick actions: XEM THÔNG SỐ | SO SÁNH XE */
.tdt-overview__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.tdt-overview__action {
  font-size: 14px;
  font-weight: 600;
  color: #EB0A1E;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.tdt-overview__action:hover { text-decoration: underline; }
.tdt-overview__divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #CCCCCC;
}

/* Specs grid — 3 equal cols with dividers */
.tdt-overview__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #E5E5E5;
}
.tdt-overview__specs--secondary {
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 0;
}
.tdt-overview__spec {
  padding: 18px 16px;
  text-align: center;
}
.tdt-overview__spec--bordered {
  border-right: 1px solid #E5E5E5;
}
.tdt-overview__spec-label {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin: 0 0 8px;
  line-height: 1.3;
}
.tdt-overview__spec-value {
  font-size: 22px;
  font-weight: 400;
  color: #000;
  letter-spacing: 1px;
  line-height: 1.25;
  margin: 0;
}
.tdt-overview__spec-sup {
  font-size: 11px;
  color: #808080;
  margin-left: 2px;
  vertical-align: super;
}

/* Responsive collapse */
@media (max-width: 767px) {
  .tdt-overview__specs { grid-template-columns: repeat(3, 1fr); }
  .tdt-overview__spec-value { font-size: 18px; }
  .tdt-overview__spec-label { font-size: 13px; }
}

/* ============ DISCOVERY ("Khám phá các mẫu") ============ */
.tdt-discovery { background: #fff; }
.tdt-discovery__container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 80px 15px;
}
.tdt-discovery__title {
  font-family: 'Toyota Type', 'Toyota Type Book', Inter, system-ui, sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: #1A1A1A;
  margin: 0 0 50px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: left;
}
.tdt-discovery__title a { color: inherit; text-decoration: none; }

.tdt-discovery__card {
  margin-bottom: 60px;
}
.tdt-discovery__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  margin-bottom: 36px;
  border-bottom: 1px solid #101010;
}
.tdt-discovery__name {
  font-size: 22px;
  font-weight: 400;
  color: #212529;
  margin: 0;
}
.tdt-discovery__price {
  font-size: 16px;
  font-weight: 400;
  color: #212529;
  margin: 0;
}
.tdt-discovery__price span + span { font-size: 11px; vertical-align: super; margin-left: 2px; }

.tdt-discovery__body {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr 2fr;
  align-items: center;
  gap: 0;
}
.tdt-discovery__img img { max-width: 100%; height: auto; }

.tdt-discovery__spec {
  padding: 0 16px;
  text-align: center;
}
.tdt-discovery__spec--bordered { border-right: 1px solid #E5E5E5; }
.tdt-discovery__spec-label {
  font-size: 16px;
  font-weight: 400;
  color: #212529;
  margin: 0 0 26px;
}
.tdt-discovery__spec-value {
  font-size: 22px;
  font-weight: 400;
  color: #212529;
  margin: 0;
}

.tdt-discovery__actions {
  padding: 0 16px;
  text-align: center;
}
.tdt-discovery__btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #101010;
  background: #fff;
  color: #101010;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .2s, color .2s;
}
.tdt-discovery__btn:hover { background: #101010; color: #fff; }
.tdt-discovery__readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: #EB0A1E;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.tdt-discovery__readmore:hover { text-decoration: underline; }
.tdt-discovery__readmore i { font-size: 10px; }

@media (max-width: 767px) {
  .tdt-discovery__container { padding: 40px 15px; }
  .tdt-discovery__title { font-size: 24px; margin-bottom: 32px; }
  .tdt-discovery__body { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .tdt-discovery__spec--bordered { border-right: 0; border-bottom: 1px solid #E5E5E5; padding-bottom: 16px; }
}

/* ============ GALLERY (Thư viện ảnh) ============ */
.tdt-gallery {
  background: #000;
  color: #fff;
  padding: 80px 0;
}
.tdt-gallery__container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}
.tdt-gallery__title {
  font-family: 'Toyota Type', 'Toyota Type Book', Inter, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 40px;
  text-align: left;
  line-height: 1.2;
}

.tdt-gallery__main-wrap { position: relative; }

/* Main slider */
.tdt-gallery__main { position: relative; width: 100%; overflow: hidden; }
.tdt-gallery__main .swiper-slide { display: flex; align-items: center; justify-content: center; }
.tdt-gallery__main .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.tdt-gallery__counter {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  z-index: 5;
  pointer-events: none;
}

.tdt-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  transition: opacity .2s;
}
.tdt-gallery__nav:hover { opacity: .75; }
.tdt-gallery__nav--prev { left: 24px; }
.tdt-gallery__nav--next { right: 24px; }

/* Thumbnail strip */
.tdt-gallery__thumbs {
  margin-top: 10px;
  width: 100%;
  overflow: hidden;
}
.tdt-gallery__thumbs .swiper-slide {
  width: 120px;
  height: 72px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity .2s;
}
.tdt-gallery__thumbs .swiper-slide-thumb-active,
.tdt-gallery__thumbs .swiper-slide:hover { opacity: 1; }
.tdt-gallery__thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Action buttons under gallery */
.tdt-gallery__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.tdt-gallery__btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .2s, color .2s;
}
.tdt-gallery__btn:hover { background: #fff; color: #000; }

@media (max-width: 767px) {
  .tdt-gallery { padding: 40px 0; }
  .tdt-gallery__title { font-size: 22px; margin-bottom: 24px; }
  .tdt-gallery__thumbs .swiper-slide { width: 80px; height: 50px; }
  .tdt-gallery__nav { width: 32px; height: 32px; font-size: 22px; }
}

/* ============ COLORS (Màu sắc) ============ */
.tdt-colors {
  background: #fff;
  padding: 80px 0 60px;
}
.tdt-colors__container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}
.tdt-colors__title {
  font-family: 'Toyota Type', 'Toyota Type Book', Inter, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  color: #1A1A1A;
  margin: 0 0 32px;
  text-align: left;
}

/* Tabs */
.tdt-colors__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 32px;
}
.tdt-colors__tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  margin: 0 0 -1px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #808080;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.04em;
  transition: color .2s, border-color .2s;
}
.tdt-colors__tab.is-active {
  color: #EB0A1E;
  border-bottom-color: #EB0A1E;
}

/* Content panes */
.tdt-colors__content { display: none; }
.tdt-colors__content.is-active { display: block; }

/* Price line (red) */
.tdt-colors__price {
  font-size: 20px;
  font-weight: 400;
  color: #EB0A1E;
  margin: 0 0 24px;
}
.tdt-colors__price > span:first-child { font-weight: 400; }
.tdt-colors__price-sup {
  font-size: 11px;
  vertical-align: super;
  margin-left: 2px;
  color: #EB0A1E;
}

/* Grid: swatches left, preview right */
.tdt-colors__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 32px;
  align-items: flex-start;
}

/* Swatches */
.tdt-colors__swatches {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  gap: 16px;
}
.tdt-colors__swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}
.tdt-colors__swatch.is-active {
  border-color: #8d8989;
}
.tdt-colors__swatch-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05) inset;
}

/* Preview */
.tdt-colors__preview {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdt-colors__preview-img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  display: block;
}
.tdt-colors__label {
  text-align: center;
  margin: 16px 0 0;
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .tdt-colors { padding: 40px 0; }
  .tdt-colors__title { font-size: 22px; }
  .tdt-colors__grid { grid-template-columns: 1fr; }
  .tdt-colors__swatches { grid-template-columns: repeat(5, 44px); gap: 10px; }
  .tdt-colors__swatch { width: 44px; height: 44px; }
}

/* ============ FEATURES (Ngoại/Nội/Vận hành/An toàn — stacked) ============ */
.tdt-features { background: #fff; }
.tdt-features__container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 60px 15px;
}
.tdt-features__section { margin-bottom: 80px; }
.tdt-features__section:last-child { margin-bottom: 0; }
.tdt-features__title {
  font-family: 'Toyota Type', Inter, system-ui, sans-serif;
  font-size: 44px;
  font-weight: 500;
  color: #212529;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}
/* Read more button — gray border, 12px fw600 uppercase centered */
.tdt-features__read-more {
  text-align: center;
  margin: 40px 0 0;
}
.tdt-features__read-more-btn {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid #535353;
  color: #1A1A1A;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  font-family: 'Toyota Type', Inter, system-ui, sans-serif;
}
.tdt-features__read-more-btn:hover {
  background: #1A1A1A;
  color: #fff;
  border-color: #1A1A1A;
}
.tdt-features__subtitle {
  font-size: 14px;
  color: #808080;
  margin: 0 0 40px;
}

/* Cards */
.tdt-features__card-img {
  width: 100%;
  overflow: hidden;
  background: #F5F5F5;
}
.tdt-features__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tdt-features__card-body { padding: 20px 0; }
.tdt-features__card-title {
  font-size: 20px;
  font-weight: 400;
  color: #1A1A1A;
  margin: 0 0 12px;
  line-height: 1.3;
}
.tdt-features__card-desc {
  font-size: 15px;
  font-weight: 400;
  color: #3A3A3A;
  line-height: 1.6;
  margin: 0;
}

/* Inline card (full width): image LEFT (~61%) + gray text panel RIGHT (~39%) */
.tdt-features__card--inline {
  display: grid;
  grid-template-columns: 733fr 467fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 8px;
  background: #fff;
}
.tdt-features__card--inline .tdt-features__card-img {
  aspect-ratio: unset;
  height: 100%;
  background-color: #F5F5F5 !important;
}
.tdt-features__card--inline .tdt-features__card-body {
  padding: 16px 30px !important;
  background-color: #F5F5F5 !important;
  color: #212529;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tdt-features__card--inline .tdt-features__card-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 12px;
}
.tdt-features__card--inline .tdt-features__card-desc {
  font-size: 16px;
  color: #212529;
  line-height: 1.5;
}

/* Hidden items (revealed by "Xem thêm") — default 3 items: inline + first row (2 blocks).
   Hide all rows after the first (general sibling combinator). */
.tdt-features__section.is-collapsed .tdt-features__row ~ .tdt-features__row {
  display: none;
}

/* Block cards in a 2-col row — tight 8px gap matching original */
.tdt-features__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.tdt-features__card--block .tdt-features__card-img {
  aspect-ratio: 16/10;
  background-color: #F5F5F5;
}
.tdt-features__card--block .tdt-features__card-body {
  padding: 16px 30px !important;
  background-color: #F5F5F5 !important;
  color: #212529;
}
.tdt-features__card--block .tdt-features__card-title {
  font-size: 21px;
  font-weight: 400;
  margin: 0 0 8px;
}
.tdt-features__card--block .tdt-features__card-desc {
  font-size: 15px;
  color: #212529;
}

@media (max-width: 767px) {
  .tdt-features__container { padding: 40px 15px; }
  .tdt-features__title { font-size: 22px; }
  .tdt-features__subtitle { margin-bottom: 24px; }
  .tdt-features__section { margin-bottom: 40px; }
  .tdt-features__card--inline { grid-template-columns: 1fr; gap: 16px; }
  .tdt-features__row { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ ACCESSORIES (Phụ kiện) ============ */
.tdt-accessories { background: #fff; }
.tdt-accessories__container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 60px 15px;
}
.tdt-accessories__title {
  font-family: 'Toyota Type', 'Toyota Type Book', Inter, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  color: #1A1A1A;
  margin: 0 0 32px;
  text-align: left;
}

/* Tabs — 4 equal columns with red underline on active */
.tdt-accessories__tabs {
  display: flex;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 48px;
}
.tdt-accessories__tab {
  flex: 1;
  padding: 14px 8px;
  margin-bottom: -1px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tdt-accessories__tab:hover { color: #EB0A1E; }
.tdt-accessories__tab.is-active {
  color: #EB0A1E;
  border-bottom-color: #EB0A1E;
}

/* Grid: 3 cards per row on desktop */
/* Swiper carousel — square nav OUTSIDE, horizontal bar pagination. */
.tdt-accessories__carousel {
  position: relative;
  padding: 0 56px;  /* tight padding so buttons stay at container edge */
}
.tdt-accessories__swiper { overflow: hidden; }
.tdt-accessories__swiper .swiper-wrapper { align-items: stretch; }

/* Nav buttons: SQUARE outside, with chevron arrow */
.tdt-accessories__nav {
  width: 40px !important;
  height: 40px !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #1A1A1A !important;
  border: 1px solid #1A1A1A !important;
  margin: 0 !important;
  top: 40% !important;
  z-index: 10;
  transition: background-color .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdt-accessories__nav:hover { background: #1A1A1A !important; color: #fff !important; }
/* Override default Swiper ::after with chevron */
.tdt-accessories__nav::after {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}
/* Suppress Swiper default ::after text ("prev"/"next"); arrow comes from inline <i> */
.swiper-button-prev.tdt-accessories__nav::after,
.swiper-button-next.tdt-accessories__nav::after,
.tdt-accessories__nav::after { content: "" !important; display: none !important; }
.tdt-accessories__nav > i { font-size: 16px; color: inherit; pointer-events: none; }
.tdt-accessories__nav--prev { left: 0 !important; }
.tdt-accessories__nav--next { right: 0 !important; }
.tdt-accessories__nav.swiper-button-disabled {
  opacity: 0.35 !important;
  pointer-events: none;
}

/* Pagination horizontal bars — short rectangles (not circles) */
.tdt-accessories__pagination {
  position: static !important;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.tdt-accessories__pagination .swiper-pagination-bullet {
  width: 32px;
  height: 4px;
  background: #D5D5D5;
  opacity: 1;
  border-radius: 0;
  transition: background .2s;
  margin: 0 !important;
}
.tdt-accessories__pagination .swiper-pagination-bullet-active {
  background: #EB0A1E;
}

.tdt-accessories__empty {
  text-align: center;
  color: #808080;
  padding: 40px 0;
}

/* Card */
.tdt-accessories__card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s;
}
.tdt-accessories__card:hover { transform: translateY(-4px); }
.tdt-accessories__card-img {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #F5F5F5 0%, #DDDDDD 100%);
  overflow: hidden;
}
.tdt-accessories__card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tdt-accessories__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #EB0A1E;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tdt-accessories__badge i { font-size: 10px; }

.tdt-accessories__name {
  font-size: 16px;
  font-weight: 400;
  color: #1A1A1A;
  margin: 16px 0 8px;
  line-height: 1.3;
}
.tdt-accessories__price {
  font-size: 15px;
  font-weight: 400;
  color: #1A1A1A;
  margin: 0 0 4px;
}
.tdt-accessories__note {
  font-size: 12px;
  font-weight: 400;
  color: #808080;
  margin: 0;
  line-height: 1.4;
}

/* "Xem tất cả phụ kiện" link */
.tdt-accessories__more {
  text-align: center;
  margin-top: 48px;
}
.tdt-accessories__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #EB0A1E;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.tdt-accessories__more-link:hover { text-decoration: underline; }
.tdt-accessories__more-link i { font-size: 10px; }

.tdt-accessories__card { cursor: pointer; }
.tdt-accessories__price b { font-weight: 400; }

@media (max-width: 767px) {
  .tdt-accessories__container { padding: 40px 15px; }
  .tdt-accessories__title { font-size: 22px; }
  .tdt-accessories__tab { padding: 10px 4px; font-size: 13px; }
  .tdt-accessories__carousel { padding: 0 48px; }
  .tdt-accessories__nav { width: 40px !important; height: 40px !important; top: 32% !important; }
  .tdt-accessories__nav::after { font-size: 14px !important; }
  .tdt-accessories__pagination .swiper-pagination-bullet { width: 24px; }
}

/* ============ MODAL (accessory detail) ============ */
.tdt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tdt-modal[hidden] { display: none; }
.tdt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.tdt-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tdt-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #E5E5E5;
}
.tdt-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: #1A1A1A;
  letter-spacing: 0.04em;
}
.tdt-modal__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #1A1A1A;
  cursor: pointer;
  padding: 0 4px;
}
.tdt-modal__close:hover { color: #EB0A1E; }

.tdt-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px;
  overflow-y: auto;
}
.tdt-modal__image {
  background: linear-gradient(180deg, #F5F5F5 0%, #DDDDDD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}
.tdt-modal__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.tdt-modal__detail { display: flex; flex-direction: column; }
.tdt-modal__name {
  font-size: 22px;
  font-weight: 400;
  color: #1A1A1A;
  margin: 0 0 12px;
}
.tdt-modal__meta {
  font-size: 14px;
  color: #3A3A3A;
  margin-bottom: 4px;
}
.tdt-modal__meta-label { color: #808080; }
.tdt-modal__meta-value { color: #1A1A1A; font-weight: 500; }

.tdt-modal__price {
  font-size: 24px;
  font-weight: 400;
  color: #EB0A1E;
  margin: 16px 0 20px;
}
.tdt-modal__price small { font-size: 12px; font-weight: 400; }

/* Modal tabs */
.tdt-modal__tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 16px;
}
.tdt-modal__tab {
  background: transparent;
  border: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #808080;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tdt-modal__tab.is-active {
  color: #EB0A1E;
  border-bottom-color: #EB0A1E;
}

.tdt-modal__content { flex: 1; }
.tdt-modal__pane { display: none; font-size: 14px; color: #3A3A3A; line-height: 1.6; }
.tdt-modal__pane.is-active { display: block; }
.tdt-modal__pane p { margin: 0 0 8px; }
.tdt-modal__pane ul, .tdt-modal__pane ol { padding-left: 20px; margin: 0 0 8px; }

.tdt-modal__note {
  margin-top: 16px;
  font-size: 12px;
  color: #808080;
  font-style: italic;
}

@media (max-width: 767px) {
  .tdt-modal { padding: 12px; }
  .tdt-modal__body { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .tdt-modal__name { font-size: 18px; }
  .tdt-modal__price { font-size: 20px; }
}
