/* Restivo Diamonds account, archive and PDP refinements. */

.page-account:not(.logged-in) .page-shell {
  width: min(100%, 1180px);
}

.page-account:not(.logged-in) .page-entry {
  gap: 1rem;
  padding-top: clamp(1rem, 2.2vw, 1.6rem);
}

.page-account:not(.logged-in) .entry-header {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-bottom: 0;
  border-bottom: 0;
}

.page-account:not(.logged-in) .entry-title {
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.page-account:not(.logged-in) .entry-content > .woocommerce {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.page-account:not(.logged-in) .woocommerce .u-columns,
.page-account:not(.logged-in) #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.page-account:not(.logged-in) #customer_login::before,
.page-account:not(.logged-in) #customer_login::after {
  content: none !important;
  display: none !important;
}

.page-account:not(.logged-in) .woocommerce .u-column1,
.page-account:not(.logged-in) .woocommerce .u-column2 {
  display: flex;
  float: none !important;
  clear: none !important;
  flex-direction: column;
  gap: 0.95rem;
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 1.6vw, 1.22rem);
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  box-shadow: none;
}

.page-account:not(.logged-in) .woocommerce .u-column1 h2,
.page-account:not(.logged-in) .woocommerce .u-column2 h2 {
  margin: 0;
  color: #111111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.page-account:not(.logged-in) .woocommerce form.woocommerce-form-login,
.page-account:not(.logged-in) .woocommerce form.woocommerce-form-register {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.84rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-account:not(.logged-in) .woocommerce form .form-row {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
}

.page-account:not(.logged-in) .woocommerce form .form-row label,
.page-account:not(.logged-in) .woocommerce form .woocommerce-form__label {
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.28;
  text-transform: uppercase;
}

.page-account:not(.logged-in) .woocommerce form .form-row input.input-text {
  width: 100%;
  min-height: 2.86rem;
  padding: 0.78rem 0.86rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
}

.page-account:not(.logged-in) .woocommerce form .form-row input.input-text:focus-visible {
  border-color: #111111;
  outline: 1px solid #111111;
  outline-offset: 2px;
}

.page-account:not(.logged-in) .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: max-content;
  min-height: 1.5rem;
  margin: 0;
}

.page-account:not(.logged-in) .woocommerce-form-login .woocommerce-form-login__rememberme input {
  width: 0.9rem;
  min-height: 0.9rem;
  margin: 0;
}

.page-account:not(.logged-in) .woocommerce form .button,
.page-account:not(.logged-in) .woocommerce .woocommerce-button,
.page-account:not(.logged-in) .woocommerce .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.86rem;
  padding: 0.74rem 1rem;
  border: 1px solid #111111;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: none;
}

.page-account:not(.logged-in) .woocommerce-LostPassword,
.page-account:not(.logged-in) .woocommerce .lost_password {
  margin: 0;
  padding-top: 0.18rem;
}

.page-account:not(.logged-in) .woocommerce-LostPassword a,
.page-account:not(.logged-in) .woocommerce .lost_password a {
  color: #111111;
  font-size: 0.88rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-account:not(.logged-in) .account-support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(1rem, 1.6vw, 1.22rem);
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  box-shadow: none;
}

.page-account:not(.logged-in) .account-support-panel__copy {
  display: grid;
  gap: 0.38rem;
}

.page-account:not(.logged-in) .account-support-panel__eyebrow {
  color: rgba(17, 17, 17, 0.52);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.page-account:not(.logged-in) .account-support-panel h2 {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.04;
}

.page-account:not(.logged-in) .account-support-panel p {
  max-width: 38rem;
  color: rgba(17, 17, 17, 0.68);
}

.page-account:not(.logged-in) .account-support-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.page-account:not(.logged-in) .account-support-panel__actions .button {
  min-height: 2.42rem;
  border-color: rgba(17, 17, 17, 0.2);
  background: #ffffff;
  color: #111111;
  box-shadow: none;
}

.page-product .product-summary__title-reference {
  display: block;
  max-width: 100%;
  margin-top: 0.42rem;
  color: rgba(17, 17, 17, 0.52);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .page-account:not(.logged-in) .page-entry {
    padding-top: 0.85rem;
  }

  .page-account:not(.logged-in) .entry-title {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .page-account:not(.logged-in) .woocommerce .u-columns,
  .page-account:not(.logged-in) #customer_login {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    width: min(100%, 20rem);
    max-width: 20rem;
    margin-inline: auto;
  }

  .page-account:not(.logged-in) .woocommerce .u-column1,
  .page-account:not(.logged-in) .woocommerce .u-column2,
  .page-account:not(.logged-in) .account-support-panel {
    justify-self: stretch;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-account:not(.logged-in) .account-support-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    margin-inline: auto;
  }

  .page-account:not(.logged-in) .account-support-panel__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .page-account:not(.logged-in) .account-support-panel__actions .button {
    width: 100%;
  }

  .page-shell--collection {
    padding-top: 0.36rem;
  }

  .page-shell--collection .breadcrumbs,
  .page-product .breadcrumbs {
    position: relative;
    margin-top: 0.12rem;
    margin-bottom: 0.34rem;
    padding-bottom: 0.3rem;
    overflow: hidden;
  }

  .page-shell--collection .breadcrumbs::after,
  .page-product .breadcrumbs::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0.3rem;
    width: 2rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 78%);
    pointer-events: none;
  }

  .page-shell--collection .breadcrumbs__list,
  .page-product .breadcrumbs__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.18rem;
    overflow-x: auto;
    padding-left: 0;
    padding-right: 1.8rem;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-shell--collection .breadcrumbs__list::-webkit-scrollbar,
  .page-product .breadcrumbs__list::-webkit-scrollbar {
    display: none;
  }

  .page-shell--collection .breadcrumbs__item,
  .page-product .breadcrumbs__item {
    flex: 0 0 auto;
    font-size: 0.64rem;
    letter-spacing: 0.045em;
  }

  .page-shell--collection .breadcrumbs__item:last-child,
  .page-product .breadcrumbs__item:last-child {
    display: none;
  }

  .page-shell--collection .collection-intro--before-grid {
    gap: 0;
    margin-top: 0;
  }

  .page-shell--collection .collection-intro--before-grid .collection-intro__header {
    gap: 0.16rem;
    padding: 0.36rem 0.58rem 0.38rem;
    border-color: rgba(17, 17, 17, 0.1);
  }

  .page-shell--collection .collection-intro--before-grid .collection-intro__meta {
    gap: 0.12rem;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .page-shell--collection .collection-intro--before-grid .collection-intro__support {
    display: none;
  }

  .page-shell--collection .collection-intro--before-grid .eyebrow {
    color: rgba(17, 17, 17, 0.52);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    line-height: 1;
  }

  .page-shell--collection .collection-intro--before-grid .collection-intro__heading h1 {
    max-width: 18ch;
    font-size: clamp(1.12rem, 4.65vw, 1.36rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .page-shell--collection .rd-category-system {
    gap: 0.34rem;
    margin-top: 0.18rem;
    padding: 0.36rem 0 0.38rem;
    border-top-color: rgba(17, 17, 17, 0.08);
    border-bottom-color: rgba(17, 17, 17, 0.08);
  }

  .page-shell--collection .rd-category-system__header {
    min-height: 0;
  }

  .page-shell--collection .rd-category-system__eyebrow,
  .page-shell--collection .rd-category-system__section-heading {
    color: rgba(17, 17, 17, 0.58);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.085em;
  }

  .page-shell--collection .rd-category-system__section {
    gap: 0.3rem;
  }

  .page-shell--collection .rd-category-tabs,
  .page-shell--collection .rd-category-grid,
  .page-shell--collection .rd-brand-index {
    gap: 0.36rem;
    padding-bottom: 0.02rem;
  }

  .page-shell--collection .rd-category-tab {
    width: auto;
    min-width: 7.9rem;
    min-height: 2.12rem;
    padding: 0.38rem 0.52rem;
    border-color: rgba(17, 17, 17, 0.16);
    box-shadow: none;
  }

  .page-shell--collection .rd-category-tab.is-active {
    order: -1;
  }

  .page-shell--collection .rd-category-tab__label {
    font-size: 0.8rem;
  }

  .page-shell--collection .rd-category-tab__meta,
  .page-shell--collection .rd-category-card__meta {
    font-size: 0.62rem;
    letter-spacing: 0.045em;
    opacity: 0.58;
  }

  .page-shell--collection .rd-category-card {
    width: min(49vw, 11.25rem);
    min-height: 3.05rem;
    padding: 0.42rem 0.54rem;
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: none;
  }

  .page-shell--collection .rd-category-card__title {
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .page-shell--collection .rd-brand-index__item {
    max-width: 12rem;
    min-height: 1.92rem;
    padding: 0.34rem 0.52rem;
    border-color: rgba(17, 17, 17, 0.16);
    font-size: 0.76rem;
    box-shadow: none;
  }

  .page-shell--collection .rd-brand-index__item small {
    font-size: 0.62rem;
    opacity: 0.58;
  }

  .page-shell--collection .collection-toolbar--listing {
    margin-top: 0.34rem;
  }

  .page-shell--collection .collection-toolbar {
    gap: 0.42rem;
  }

  .page-shell--collection .collection-toolbar__left {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.34rem;
  }

  .page-shell--collection .collection-toolbar__filter-button {
    width: 100%;
    min-width: 0;
    min-height: 3.08rem;
    justify-self: stretch;
    font-size: 0.8rem;
  }

  .page-product .product-summary__header {
    gap: 0.32rem;
    padding-bottom: 0.54rem;
  }

  .page-product .product-gallery__thumbs:has(.product-gallery__thumb:only-child) {
    display: none;
  }

  .page-product .product-summary__header h1 {
    max-width: 20ch;
    font-size: clamp(1.34rem, 5.4vw, 1.56rem);
    line-height: 1.05;
  }

  .page-product .product-summary__title-reference {
    display: none;
  }

  .page-product .product-purchase-panel {
    gap: 0.54rem;
    padding: 0.78rem 0.84rem 0.88rem;
  }

  .page-product .product-price-block {
    order: 1;
  }

  .page-product .product-form {
    order: 2;
    gap: 0.52rem;
  }

  .page-product .product-meta-grid {
    order: 3;
    gap: 0.42rem 0.64rem;
  }

  .page-product .membership-pill {
    order: 4;
    padding-top: 0.56rem;
  }

  .page-product .product-shipping-note {
    order: 5;
    padding-top: 0.58rem;
  }

  .page-product .product-form .button,
  .page-product .product-form .single_add_to_cart_button,
  .page-product .product-form button[name="add-to-cart"] {
    min-height: 2.86rem;
  }
}

@media (max-width: 1023px) {
  .page-account:not(.logged-in) .entry-content > .woocommerce {
    max-width: 25rem;
  }

  .page-account:not(.logged-in) .woocommerce .u-columns,
  .page-account:not(.logged-in) #customer_login {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    width: min(100%, 25rem);
    max-width: 25rem;
    margin-inline: auto;
  }

  .page-account:not(.logged-in) .woocommerce .u-column1,
  .page-account:not(.logged-in) .woocommerce .u-column2,
  .page-account:not(.logged-in) .account-support-panel {
    justify-self: stretch;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-account:not(.logged-in) .account-support-panel {
    grid-template-columns: minmax(0, 1fr);
    max-width: 25rem;
  }
}

@media (max-width: 767px) {
  .page-account:not(.logged-in) .entry-content > .woocommerce,
  .page-account:not(.logged-in) .woocommerce .u-columns,
  .page-account:not(.logged-in) #customer_login,
  .page-account:not(.logged-in) .account-support-panel {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  .header-actions__mobile {
    gap: 0.12rem;
  }

  .header-actions__mobile .icon-button--header {
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    padding: 0.62rem;
  }

  .header-actions__mobile .icon-button--header svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    stroke-width: 1.55;
  }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .main-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.86rem;
  }

  .main-header__inner > .mobile-only {
    display: inline-grid !important;
  }

  .desktop-nav,
  .mega-menu,
  .header-actions__desktop {
    display: none !important;
  }

  .header-actions {
    padding-left: 0;
  }

  .header-actions__mobile {
    display: inline-flex !important;
  }
}

@media (min-width: 1200px) {
  .mega-panel:not(:has(.mega-panel__media)) {
    width: min(100%, 72rem);
    grid-template-columns: minmax(0, 1fr);
  }

  .mega-panel:not(:has(.mega-panel__media)) .mega-panel__columns {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(9.4rem, 1fr));
    align-items: start;
  }

  .mega-panel:has(.mega-panel__media) .mega-panel__columns {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(9.4rem, 1fr));
  }
}
