/* Shared GiftCORP WooCommerce product layout. */
body.giftcorp-single-product {
  --gcsp-ink: #26211e;
  --gcsp-muted: #5e554e;
  --gcsp-line: #e8ddd3;
  --gcsp-paper: #fcfaf7;
  --gcsp-tint: #f7f0e8;
  --gcsp-accent: #a3341c;
}
.gcsp-page {
  color: var(--gcsp-ink);
  background: var(--gcsp-paper);
}
.gcsp-page :is(.gcsp-breadcrumb, .gcsp-hero, .gcsp-content) {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin-inline: auto;
}
.gcsp-page :is(.gcsp-breadcrumb, .gcsp-hero, .gcsp-content) > .col {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.gcsp-breadcrumb {
  padding: 16px 0 14px;
}
.gcsp-breadcrumb .breadcrumbs {
  margin: 0;
  color: var(--gcsp-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  overflow-wrap: anywhere;
}
.gcsp-breadcrumb .breadcrumbs a {
  color: inherit;
}
.gcsp-page .gcsp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "gallery title" "gallery summary";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 14px clamp(24px, 3.2vw, 48px);
  padding-bottom: clamp(24px, 3.4vw, 48px);
}
.gcsp-title { grid-area: title; }
.gcsp-gallery { grid-area: gallery; }
.gcsp-summary { grid-area: summary; }
.gcsp-title h1.product-title {
  margin: 7px 0 0;
  color: var(--gcsp-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 740;
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.gcsp-title .is-divider { display: none; }
.gcsp-gallery .product-images {
  width: 100%;
  max-width: none;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: #f2e8dc;
  isolation: isolate;
}
.gcsp-gallery .product-gallery-slider {
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--gcsp-line);
  border-radius: inherit;
}
@supports (aspect-ratio: 1) {
  .gcsp-gallery .product-gallery-slider > .flickity-viewport {
    /* Flickity writes a pixel height. Keep the square frame when the viewport changes. */
    height: auto !important;
    aspect-ratio: 1;
  }
}
.gcsp-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.gcsp-gallery .product-gallery-slider .flickity-prev-next-button {
  width: 44px;
  height: 44px;
  top: 50%;
  padding: 0;
  border: 1px solid var(--gcsp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--gcsp-ink);
  box-shadow: 0 2px 8px #26211e1a;
  opacity: 1;
  transform: translateY(-50%);
  transition: color .18s ease, box-shadow .18s ease;
}
.gcsp-gallery .product-gallery-slider .flickity-prev-next-button.previous { left: 10px; }
.gcsp-gallery .product-gallery-slider .flickity-prev-next-button.next { right: 10px; }
.gcsp-gallery .product-gallery-slider .flickity-prev-next-button .flickity-button-icon {
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  padding: 0;
  fill: currentColor;
  transform: translate(-50%, -50%);
}
.gcsp-gallery .product-gallery-slider .flickity-prev-next-button:hover {
  color: var(--gcsp-accent);
}
.gcsp-gallery .product-gallery-slider .flickity-prev-next-button:focus-visible {
  outline: 2px solid var(--gcsp-accent);
  outline-offset: 2px;
}
.gcsp-gallery .image-tools {
  opacity: 1;
}
.gcsp-gallery .image-tools .zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px !important;
  border-color: var(--gcsp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--gcsp-ink);
  box-shadow: 0 2px 8px #26211e1a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
.gcsp-gallery .image-tools .zoom-button::after {
  content: "Phóng to";
}
.giftcorp-single-product .custom-product-page .gcsp-gallery .product-thumbnails.row {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
.giftcorp-single-product .custom-product-page .gcsp-gallery .product-thumbnails .col {
  padding: 0 3px;
}
.giftcorp-single-product .custom-product-page .gcsp-gallery .product-thumbnails:has(.col:nth-child(5)) .col {
  flex-basis: 20%;
  max-width: 20%;
}
.gcsp-gallery .product-thumbnails:not(:has(.col:nth-child(4))) {
  justify-content: center;
}
.gcsp-gallery .product-thumbnails a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid var(--gcsp-line);
  border-radius: 12px;
  background: #fff;
}
.gcsp-gallery .product-thumbnails .col img {
  display: block;
  width: clamp(54px, 7vw, 86px);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0;
  object-fit: cover;
  opacity: .86;
}
.gcsp-gallery .product-thumbnails .col a img { transform: none; }
.gcsp-gallery .product-thumbnails .is-nav-selected a {
  border-color: var(--gcsp-accent);
  box-shadow: inset 0 0 0 1px var(--gcsp-accent);
}
.gcsp-gallery .product-thumbnails .is-nav-selected img { opacity: 1; }

.giftcorp-single-product .custom-product-page .gcsp-summary .gcsp-excerpt {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gcsp-muted);
  font-size: 16px;
  line-height: 1.63;
}
.gcsp-summary .gcsp-excerpt p { margin: 0 0 10px; }
.gcsp-summary .gcsp-excerpt p:last-child { margin: 0; }
.gcsp-summary .gcsp-excerpt img { max-width: 100%; height: auto; }
.gcsp-price {
  margin-bottom: 14px;
  color: var(--gcsp-accent);
  font-size: clamp(19px, 2.25vw, 27px);
  font-weight: 720;
}
.gcsp-price .amount { color: inherit; white-space: normal; }
.gcsp-overview {
  margin: 0 0 16px;
  padding: 14px 18px 6px;
  border: 1px solid var(--gcsp-line);
  border-radius: 16px;
  background: #fff;
}
.gcsp-overview h2 {
  margin: 0 0 9px;
  color: var(--gcsp-ink);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.3;
}
.gcsp-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  margin: 0;
}
.gcsp-highlights > div {
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--gcsp-line);
  overflow-wrap: anywhere;
}
.gcsp-highlights > .gcsp-highlight-wide {
  grid-column: 1 / -1;
}
.giftcorp-single-product .custom-product-page .gcsp-page .gcsp-highlight-wide dd {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
}
.gcsp-overview-intro {
  padding: 0 0 8px;
  color: var(--gcsp-muted);
  font-size: 15px;
  line-height: 1.6;
}
.gcsp-overview-intro :last-child { margin-bottom: 0; }
.giftcorp-single-product .custom-product-page .gcsp-page dt {
  display: block;
  margin: 0;
  color: var(--gcsp-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.giftcorp-single-product .custom-product-page .gcsp-page dd {
  display: block;
  text-transform: none;
  margin: 4px 0 0;
  color: var(--gcsp-ink);
  font-size: 16px;
  font-weight: 690;
  line-height: 1.42;
}
.gcsp-quote {
  padding: clamp(14px, 1.65vw, 23px);
  border: 1px solid var(--gcsp-line);
  border-radius: 20px;
  background: var(--gcsp-tint);
}
.gcsp-quote p {
  margin: 0 0 15px;
  color: var(--gcsp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.gcsp-quote p.gcsp-quote-label {
  margin-bottom: 6px;
  color: var(--gcsp-ink);
  font-size: 19px;
  font-weight: 720;
}
.gcsp-order-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 11px;
  border-top: 1px solid var(--gcsp-line);
}
.gcsp-order-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--gcsp-muted);
  font-size: 13px;
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gcsp-order-links a:hover { color: var(--gcsp-accent); }
.gcsp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gcsp-actions p { display: contents; }
.gcsp-actions br { display: none; }
.gcsp-actions .gcsp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px clamp(12px, 2vw, 24px);
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 690;
  line-height: 1.3;
  text-align: center;
}
.gcsp-actions .gcsp-action-main {
  color: #fff;
  background: var(--gcsp-accent);
}
.gcsp-actions .gcsp-action-main:hover { background: #842913; }
.gcsp-actions .gcsp-action-alt {
  border-color: #cfbeb0;
  color: var(--gcsp-ink);
  background: #fff;
}
.gcsp-actions .gcsp-action-alt:hover { background: #fdf8f3; }
@media (min-width: 850px) {
  .gcsp-actions .gcsp-action { min-height: 50px; }
  .gcsp-actions .gcsp-action-main { min-width: 176px; }
}
.gcsp-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 9px;
}
.gcsp-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gcsp-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gcsp-page a:focus-visible {
  outline: 2px solid var(--gcsp-accent);
  outline-offset: 3px;
}

.gcsp-details {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: 0 0 clamp(36px, 6vw, 76px);
  min-width: 0;
}
.gcsp-details :is(#gcsp-specifications, #gcsp-description) {
  scroll-margin-top: 148px;
}
.gcsp-anchor { display: block; }
.gcsp-details h2 {
  margin: 0 0 16px;
  color: var(--gcsp-ink);
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: 1.18;
  letter-spacing: -.022em;
}
.gcsp-specs, .gcsp-description:not(:has(.gc4988-story)) {
  min-width: 0;
  padding: clamp(16px, 3.4vw, 38px);
  border: 1px solid var(--gcsp-line);
  border-radius: 22px;
  background: #fff;
}
.gcsp-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 48px);
  margin: 0;
}
.gcsp-spec-list > div {
  display: grid;
  grid-template-columns: minmax(116px, .95fr) minmax(0, 1.55fr);
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--gcsp-line);
  overflow-wrap: anywhere;
}
.giftcorp-single-product .custom-product-page .gcsp-spec-list dd {
  margin: 0;
  font-size: 14px;
}
.gcsp-description .woocommerce-tabs {
  max-width: none;
  padding: 0;
}
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) {
  overflow-wrap: anywhere;
  color: var(--gcsp-ink);
  font-size: 16px;
  line-height: 1.65;
}
.gcsp-description .woocommerce-Tabs-panel { padding: 20px 0 0; }
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) :is(img, iframe, video) { max-width: 100%; }
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) img { height: auto; }
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) > p { max-width: 76ch; }
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) p a {
  color: var(--gcsp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) table {
  margin: 18px 0;
  background: var(--gcsp-paper);
  border: 1px solid var(--gcsp-line);
  border-collapse: collapse;
  table-layout: auto;
  overflow-wrap: anywhere;
}
.gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) :is(td, th) {
  padding: 10px;
  border-color: var(--gcsp-line);
  text-transform: none;
}
.gcsp-description figure {
  max-width: 100%;
  margin-inline: auto;
}
.gcsp-description figure figcaption {
  color: var(--gcsp-muted);
  font-size: 13px;
  line-height: 1.45;
}
.gcsp-description .gc4988-story { padding-bottom: 0; }
.gcsp-related { min-width: 0; }
.gcsp-related .related-products-wrapper { border: 0; }
.gcsp-related .product-section-title-related {
  margin: 0 0 12px;
  padding: 0;
  color: var(--gcsp-ink);
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: 1.18;
  letter-spacing: -.022em;
  text-transform: none;
}
body.giftcorp-single-product #wpwidget .widget-preview-new-wrapper { display: none !important; }

@media (min-width: 850px) and (max-width: 1100px) {
  .gcsp-page :is(.gcsp-breadcrumb, .gcsp-hero, .gcsp-content) {
    width: calc(100% - 48px);
  }
}

@media (max-width: 849px) {
  .gcsp-page { --gcsp-gutter: 14px; }
  .gcsp-page :is(.gcsp-breadcrumb, .gcsp-hero, .gcsp-content) {
    width: calc(100% - 2 * var(--gcsp-gutter));
  }
  .gcsp-breadcrumb { padding: 7px 0 7px; }
  .gcsp-breadcrumb .breadcrumbs {
    overflow: hidden;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .gcsp-page .gcsp-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "gallery" "summary";
    grid-template-rows: auto;
    gap: 13px;
  }
  .gcsp-title h1.product-title {
    margin-top: 0;
    font-size: clamp(23px, 5.8vw, 32px);
    text-wrap: pretty;
  }
  .gcsp-gallery .product-images,
  .giftcorp-single-product .custom-product-page .gcsp-gallery .product-thumbnails.row {
    width: min(100%, 560px);
    max-width: none;
  }
  .gcsp-gallery .product-images {
    margin-bottom: 9px;
    border-radius: 16px;
  }
  .gcsp-gallery .product-images > .image-tools.bottom.left {
    top: 10px;
    bottom: auto;
    left: 10px;
    padding: 0;
  }
  .gcsp-gallery .image-tools .zoom-button { margin: 0; }
  .gcsp-gallery .product-thumbnails .col { padding-inline: 2px; }
  .gcsp-gallery .product-thumbnails .col img { width: clamp(49px, 16.3vw, 68px); }
  .gcsp-quote { display: flex; flex-direction: column; }
  .gcsp-quote-label { order: 1; }
  .gcsp-actions { order: 2; }
  .gcsp-quote .gcsp-quote-copy { order: 3; margin: 9px 0 0; }
  .gcsp-order-links { order: 4; margin-top: 8px; }
  .giftcorp-single-product .custom-product-page .gcsp-summary .gcsp-excerpt {
    margin: 0 0 13px;
    font-size: 15px;
    line-height: 1.55;
  }
  .gcsp-overview { margin: 0 0 13px; padding-inline: 13px; }
  .gcsp-highlights { column-gap: 12px; }
  .gcsp-order-links a { min-height: 44px; }
  .giftcorp-single-product .custom-product-page .gcsp-page dt { font-size: 12px; }
  .giftcorp-single-product .custom-product-page .gcsp-page dd { font-size: 14px; }
  .gcsp-details :is(#gcsp-specifications, #gcsp-description) { scroll-margin-top: 119px; }
  .gcsp-spec-list { grid-template-columns: minmax(0, 1fr); }
  .gcsp-spec-list > div { grid-template-columns: minmax(100px, .9fr) minmax(0, 1.55fr); }
  .gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) { font-size: 15px; }
  .gcsp-description :is(.gcsp-copy, .woocommerce-Tabs-panel) :is(td, th) { padding: 8px 6px; }
  .gcsp-actions .gcsp-action { flex: 1 1 0; min-width: 0; }
  .gcsp-actions .gcsp-action-main { flex-grow: 1.23; }
  .gcsp-gallery .product-thumbnails,
  .gcsp-actions .gcsp-action {
    scroll-margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body.giftcorp-single-product:has(#wpwidget .chat-button) .gcmc-inner {
    grid-template-columns: .9fr 1fr 1.25fr;
    padding-right: 62px;
  }
  body.giftcorp-single-product #wpwidget .widget-layout {
    right: max(21px, calc((100% - 560px) / 2 + 11px)) !important;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.giftcorp-single-product:is(.gcmc-overlay, .gcmc-keyboard) #wpwidget .widget-layout,
  body.giftcorp-single-product:has(.pswp--open) :is(.gcmc, #wpwidget .widget-layout) {
    visibility: hidden;
    pointer-events: none;
  }
  body.giftcorp-single-product #wpwidget .widget-layout .chat-button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
  }
}
@media (max-width: 599px) {
  .gcsp-page .gcsp-hero { gap: 9px; }
  .gcsp-gallery .product-images {
    width: calc(100% + 2 * var(--gcsp-gutter));
    margin: 0 calc(-1 * var(--gcsp-gutter)) 8px;
    border-radius: 0;
  }
  .gcsp-gallery .product-gallery-slider { border-inline: 0; }
}
@media (max-width: 549px) {
  .gcsp-gallery .image-tools .zoom-button.hide-for-small { display: inline-flex !important; }
}
@media (max-width: 359px) {
  .gcsp-actions .gcsp-action {
    gap: 6px;
    padding-inline: 8px;
    font-size: 14px;
  }
}
