/*
 * Product single page (fw-portfolio)
 * Loaded only on single portfolio posts. --luxa-accent is printed inline by
 * luxa_product_single_styles() from the Redux accent colour.
 */

:root {
  --luxa-accent: #c6a15b;
}

.product-single-page {
  overflow: hidden;
}

.header-space-true .product-single-page {
  padding-top: 0;
}

/* ---------------------------------------------------------------- hero -- */

.product-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  height: 88vh;
  max-height: 900px;
  margin-bottom: 70px;
  overflow: hidden;
}

.product-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-hero.type-original {
  height: auto;
  max-height: none;
  min-height: 0;
  display: block;
}

.product-hero.type-original img {
  display: block;
  width: 100%;
  height: auto;
}

.product-hero.type-original .container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.product-hero-veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(1, 1, 1, .95) 4%, rgba(1, 1, 1, .5) 46%, rgba(1, 1, 1, .25) 100%);
}

.product-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.product-hero-content {
  padding-bottom: 60px;
}

.product-cat {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--luxa-accent);
  margin-bottom: 16px;
}

.product-title {
  font-size: 46px;
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.product-date {
  font-size: 13px;
  opacity: .7;
  margin-bottom: 18px;
}

/* --------------------------------------------------------- stock badge -- */

.product-stock {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 7px 17px;
  font-size: 13.5px;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
}

.product-stock i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-inline-end: 9px;
}

.product-stock.is-in {
  color: #7fb377;
  border-color: rgba(127, 179, 119, .42);
  background: rgba(127, 179, 119, .1);
}

.product-stock.is-order {
  color: var(--luxa-accent);
  border-color: rgba(198, 161, 91, .42);
  background: rgba(198, 161, 91, .1);
}

.product-stock.is-out {
  color: #b98080;
  border-color: rgba(185, 128, 128, .42);
  background: rgba(185, 128, 128, .1);
}

.heading-block .product-stock {
  margin-top: 18px;
}

/* -------------------------------------------------------------- layout -- */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  margin-bottom: 70px;
}

.product-aside-inner {
  position: sticky;
  top: 110px;
}

.product-block-title,
.product-section-title {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 14px;
}

.product-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.product-section-title:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin-inline-start: 16px;
}

.product-block-title + .product-cta,
.product-specs + .product-block-title,
.product-cta + .product-block-title {
  margin-top: 26px;
}

/* --------------------------------------------------------------- specs -- */

.product-specs {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.product-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.product-spec .k {
  font-size: 13.5px;
  opacity: .55;
  flex-shrink: 0;
}

.product-spec .v {
  font-size: 14.5px;
  font-weight: 500;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- buttons -- */

.product-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  color: inherit;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

.product-btn:hover,
.product-btn:focus {
  border-color: var(--luxa-accent);
  color: inherit;
  text-decoration: none;
}

.product-btn.is-primary {
  background: var(--luxa-accent);
  border-color: var(--luxa-accent);
  color: #141210;
}

.product-btn.is-primary:hover,
.product-btn.is-primary:focus {
  color: #141210;
  opacity: .88;
}

.product-btn span {
  opacity: .7;
  font-weight: 400;
  font-size: 13px;
  direction: ltr;
}

.product-btn:focus-visible {
  outline: 2px solid var(--luxa-accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- tags -- */

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tag {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  padding: 4px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  text-decoration: none;
  color: inherit;
  opacity: .75;
  transition: border-color .3s ease, opacity .3s ease;
}

.product-tag:hover,
.product-tag:focus {
  border-color: var(--luxa-accent);
  color: inherit;
  opacity: 1;
  text-decoration: none;
}

/* ---------------------------------------------------------------- body -- */

.product-lead {
  font-size: 19px;
  line-height: 1.85;
  font-weight: 400;
  margin: 0 0 26px;
  max-width: 60ch;
}

.product-main .post-content {
  max-width: 68ch;
}

.product-gallery-block {
  margin-bottom: 40px;
}

/* ---------------------------------------------------------- navigation -- */

.product-navigation {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 70px;
}

.product-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 30px;
  background-position: 50% 50%;
  background-size: cover;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.product-nav-item + .product-nav-item {
  border-inline-start: 1px solid rgba(255, 255, 255, .1);
}

.product-nav-item .veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 1, 1, .74);
  transition: background-color .4s ease;
}

.product-nav-item:hover .veil,
.product-nav-item:focus .veil {
  background: rgba(1, 1, 1, .46);
}

.product-nav-item:hover,
.product-nav-item:focus {
  color: inherit;
  text-decoration: none;
}

.product-nav-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.product-nav-content .k {
  display: block;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--luxa-accent);
  margin-bottom: 9px;
}

.product-nav-content .t {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.product-nav-all {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #010101;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  padding: 11px 24px;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s ease;
}

.product-nav-all:hover,
.product-nav-all:focus {
  border-color: var(--luxa-accent);
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------- related -- */

.product-related {
  padding: 70px 0 20px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 30px;
}

.product-card:hover,
.product-card:focus {
  color: inherit;
  text-decoration: none;
}

.product-card-image {
  display: block;
  height: 240px;
  border-radius: 3px;
  background-position: 50% 50%;
  background-size: cover;
  background-color: rgba(255, 255, 255, .05);
  margin-bottom: 15px;
  transition: opacity .4s ease;
}

.product-card:hover .product-card-image {
  opacity: .78;
}

.product-card-cat {
  display: block;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--luxa-accent);
  margin-bottom: 6px;
}

.product-card-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------------------------------------------------------- mobile bar -- */

.product-mobile-bar {
  display: none;
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(6, 6, 6, .96);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.product-mobile-bar .product-btn {
  flex: 1;
  padding: 12px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 45px;
  }
}

@media (max-width: 991px) {
  .product-hero {
    min-height: 420px;
    height: 62vh;
    margin-bottom: 45px;
  }

  .product-title {
    font-size: 34px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 50px;
  }

  .product-aside-inner {
    position: static;
  }

  .product-lead {
    font-size: 17px;
  }

  .product-navigation {
    margin-top: 50px;
  }

  .product-nav-item {
    min-height: 160px;
  }

  .product-nav-content .t {
    font-size: 17px;
  }

  .product-related {
    padding: 50px 0 10px;
  }

  .product-card-image {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .product-hero-content {
    padding-bottom: 40px;
  }

  .product-title {
    font-size: 28px;
    max-width: none;
  }

  .product-aside .product-cta {
    display: none;
  }

  .product-mobile-bar {
    display: flex;
  }

  .product-single-page {
    padding-bottom: 70px;
  }

  .product-nav-all {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-nav-item .veil,
  .product-card-image,
  .product-btn,
  .product-tag {
    transition: none;
  }
}
