:root {
  --paper: #f2efea;
  --ink: #30383f;
  --line: rgba(48, 56, 63, 0.25);
}

/* Restore checkout sections hidden by the older theme code. */
.wc-block-components-shipping-rates-control,
.wc-block-checkout__shipping-option,
.wc-block-checkout__payment-method,
.wc-block-components-checkout-step--with-step-number:has(.wc-block-components-shipping-rates-control),
.wc-block-components-checkout-step:has(.wc-block-components-radio-control__option),
#payment,
.woocommerce-shipping-fields {
  display: block !important;
}

.woocommerce-checkout-review-order-table .shipping {
  display: table-row !important;
}

.studio-purchase-info {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--ink);
  margin: 28px 0;
  padding: 20px 0;
}

.studio-purchase-info h2 {
  font-family: Montserrat, sans-serif !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.studio-purchase-info ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.studio-purchase-info li,
.studio-shipping-rate-description {
  font-size: 14px;
  line-height: 1.55;
}

.studio-purchase-info strong {
  font-weight: 600;
}

.studio-shipping-rate-description {
  margin: 5px 0 4px 26px;
  max-width: 560px;
  opacity: 0.78;
}

.wc-block-components-radio-control__option:has(input[value*="studio_delivery_agreement"]) .wc-block-components-radio-control__secondary-label {
  display: none;
}

.wc-block-components-radio-control__description,
.wc-block-components-radio-control-accordion-content {
  line-height: 1.55;
}

.single-product .up-sells.upsells.products {
  clear: both;
  margin: 44px 0 0 !important;
  max-width: none;
  padding: 0;
  width: 100%;
}

.single-product .up-sells.upsells.products > h2 {
  font-family: Montserrat, sans-serif !important;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 20px;
  text-transform: none;
}

.single-product .up-sells.upsells.products ul.products {
  display: grid !important;
  gap: 42px !important;
  grid-template-columns: repeat(3, minmax(0, 220px)) !important;
  justify-content: start !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.single-product .up-sells.upsells.products ul.products::before,
.single-product .up-sells.upsells.products ul.products::after {
  display: none !important;
}

.single-product .up-sells.upsells.products ul.products li.product {
  clear: none !important;
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
}

.single-product .related.products {
  display: none !important;
}

@media (max-width: 1024px) {
  .single-product .up-sells.upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 220px)) !important;
  }
}

@media (max-width: 760px) {
  .studio-purchase-info {
    margin: 22px 0;
    padding: 17px 0;
  }

  .studio-purchase-info li,
  .studio-shipping-rate-description {
    font-size: 13px;
  }

  .single-product .up-sells.upsells.products ul.products {
    gap: 30px !important;
    grid-template-columns: 1fr !important;
  }
}

.prole-shop {
  margin: 72px calc(-1 * 38px) 0;
}

.prole-shop-header {
  padding: 0 38px;
}

.catalogue-tools {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(150px, 0.8fr)) auto;
  margin-top: 30px;
  padding: 18px 38px;
}

.catalogue-tools label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.catalogue-tools label > span {
  font-size: 11px;
  text-transform: uppercase;
}

.catalogue-tools input,
.catalogue-tools select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  min-height: 38px;
  padding: 7px 1px;
  width: 100%;
}

.catalogue-tools button {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  min-height: 38px;
  padding: 7px 16px;
}

.catalogue-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 38px 34px;
}

.catalogue-categories a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.catalogue-categories a:hover,
.catalogue-categories a.is-active {
  border-color: currentColor;
}

.prole-shop-grid {
  border-left: 0;
  border-right: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prole-shop-grid .shop-product-card {
  display: block;
  min-height: 0;
}

.prole-shop-grid .product-card-title {
  font-size: 16px;
  margin: 0 0 9px;
  text-align: left;
  text-transform: none;
}

.prole-shop-grid .product-image,
.prole-shop-grid .product-image img {
  margin: 0;
  max-width: none;
  width: 100%;
}

.prole-shop-grid .product-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.shop-product-commerce {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 58px;
  padding-top: 12px;
}

.shop-product-price {
  display: block;
  font-size: 15px;
}

.shop-product-stock,
.shop-product-stock .stock {
  display: block;
  font-size: 11px;
  margin: 3px 0 0;
}

.shop-product-commerce .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.shop-product-card .product-hover-info {
  background: rgba(255, 255, 255, 0.9);
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease, transform 220ms ease;
}

.shop-product-card:hover .product-hover-info,
.shop-product-card:focus-within .product-hover-info {
  height: 230px;
  max-height: 230px;
  opacity: 1;
  padding: 16px;
  transform: translateY(0);
}

.product-hover-heading {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr minmax(120px, 0.75fr);
}

.product-hover-heading h3,
.product-hover-specs p {
  margin: 0 0 12px;
}

.product-hover-description {
  color: inherit;
  display: block;
  line-height: 1.35;
  margin: 0 0 0;
  max-height: 5.4em;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.catalogue-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 34px 0 0;
  width: 100%;
}

.catalogue-pagination .page-numbers {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin: 0;
}

/* Classic WooCommerce cart. */
.woocommerce-cart .woocommerce {
  max-width: 100%;
}

.woocommerce-cart-form {
  max-width: 100%;
  overflow-x: auto;
}

.woocommerce .cart-collaterals {
  box-sizing: border-box;
  clear: both;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.woocommerce .cart-collaterals .cart_totals {
  box-sizing: border-box;
  float: none;
  max-width: 520px;
  width: 100%;
}

/* WooCommerce Cart block. */
.wc-block-components-sidebar-layout {
  align-items: start;
  display: grid !important;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
}

.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar-layout .wc-block-components-sidebar {
  box-sizing: border-box;
  margin: 0 !important;
  min-width: 0;
  width: 100% !important;
}

.footer-legal-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.footer-legal-menu a {
  border-bottom: 1px solid transparent;
  font-size: 12px;
}

.footer-legal-menu a:hover {
  border-color: currentColor;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .catalogue-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prole-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prole-shop-grid .product-card:nth-child(3n) {
    border-right: 1px solid var(--ink);
  }

  .prole-shop-grid .product-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .prole-shop {
    margin: 48px 0 0;
  }

  .prole-shop-header,
  .catalogue-tools,
  .catalogue-categories {
    padding-left: 0;
    padding-right: 0;
  }

  .catalogue-tools {
    grid-template-columns: 1fr;
  }

  .catalogue-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 16px;
  }

  .catalogue-categories a {
    flex: 0 0 auto;
  }

  .prole-shop-grid {
    border: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  .prole-shop-grid .product-card {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .shop-product-card .product-hover-info {
    display: none;
  }

  .shop-product-commerce {
    align-items: flex-start;
  }

  .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

/* Keep the complete catalogue inside the viewport. */
html,
body,
.site-shell,
.site-main {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

.woocommerce-page .site-main,
.woocommerce .site-main {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  min-width: 0;
  width: 100% !important;
}

.prole-shop {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.prole-shop-header,
.catalogue-tools,
.catalogue-categories,
.prole-shop-grid {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.catalogue-tools {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
}

.catalogue-tools > *,
.catalogue-tools label,
.catalogue-tools input,
.catalogue-tools select {
  max-width: 100%;
  min-width: 0;
}

.prole-shop-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.prole-shop-grid > *,
.prole-shop-grid .product-card,
.prole-shop-grid .product-gallery-preview,
.prole-shop-grid .product-image {
  max-width: 100%;
  min-width: 0;
}

/* Final centered Shop layout. */
.woocommerce-page .site-main,
.woocommerce .site-main {
  margin: 0 auto !important;
  max-width: 100% !important;
  width: auto !important;
}

.prole-shop {
  margin: 58px auto 0 !important;
  max-width: 1380px;
  overflow: visible;
  padding: 0 24px;
  width: 100%;
}

.prole-shop-header,
.catalogue-tools,
.catalogue-categories {
  padding-left: 0;
  padding-right: 0;
}

.prole-shop-grid {
  border: 0 !important;
  column-gap: clamp(26px, 4vw, 64px);
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 72px;
}

.prole-shop-grid .product-card,
.prole-shop-grid .product-card:nth-child(2n),
.prole-shop-grid .product-card:nth-child(3n) {
  border: 0 !important;
  min-height: 0;
  padding: 0 !important;
}

/* Sticky minimal header and fullscreen navigation on every viewport. */
.site-header {
  align-items: center !important;
  background: var(--paper) !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  margin: 0 !important;
  min-height: 76px;
  padding: 12px 0 !important;
  position: sticky !important;
  top: 0;
  width: 100%;
  z-index: 9998 !important;
}

.site-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  margin: 0 !important;
  max-width: min(70vw, 520px);
  text-align: center !important;
  transform: none !important;
}

.menu-toggle {
  align-items: center !important;
  align-self: center !important;
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: 40px;
  justify-content: center;
  justify-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 40px;
}

.menu-toggle span:not(.screen-reader-text) {
  background: var(--ink);
  display: block !important;
  height: 1px;
  width: 28px;
}

.menu-toggle span:not(.screen-reader-text):nth-child(3) {
  display: none !important;
}

.cart-link {
  align-self: center !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  margin: 0 !important;
}

.side-nav {
  align-items: center !important;
  background: var(--paper) !important;
  display: flex !important;
  flex-direction: column;
  height: 100dvh !important;
  inset: 0 !important;
  justify-content: center !important;
  max-height: none !important;
  max-width: none !important;
  opacity: 0;
  overflow-y: auto;
  padding: 82px 28px 48px !important;
  pointer-events: none;
  position: fixed !important;
  transform: translateY(-10px);
  transition: opacity 200ms ease, transform 200ms ease;
  width: 100vw !important;
  z-index: 9999 !important;
}

body.menu-open .side-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.side-nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  width: 100%;
}

.side-nav li {
  margin: 12px 0 !important;
  padding: 0 !important;
}

.side-nav li::before {
  display: none !important;
}

.side-nav a {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-size: clamp(34px, 6vw, 76px) !important;
  letter-spacing: 0;
  line-height: 1.08;
}

.home .hero {
  margin-bottom: 26px;
}

.home-category-navigation {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 0 auto 76px;
  max-width: 1110px;
  overflow-x: auto;
  padding: 17px 0;
  scrollbar-width: none;
}

.home-category-navigation::-webkit-scrollbar {
  display: none;
}

.home-category-navigation ul {
  align-items: center;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  min-width: 100%;
  padding: 0 18px;
  width: max-content;
}

.home-category-navigation li {
  align-items: center;
  display: flex;
  margin: 0;
  white-space: nowrap;
}

.home-category-navigation li::before {
  display: none !important;
}

.home-category-navigation li:not(:last-child)::after {
  content: "·";
  margin: 0 11px;
  opacity: 0.65;
}

.home-category-navigation a {
  border-bottom: 1px solid transparent;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding-bottom: 2px;
  text-decoration: none;
}

.home-category-navigation a:hover,
.home-category-navigation a:focus-visible {
  border-color: currentColor;
}

@media (max-width: 1100px) {
  .home-category-navigation {
    overflow: visible;
  }

  .home-category-navigation ul {
    display: grid;
    gap: 14px 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .home-category-navigation li {
    justify-content: center;
    min-width: 0;
    white-space: normal;
  }

  .home-category-navigation li:not(:last-child)::after {
    display: none;
  }

  .home-category-navigation a {
    overflow-wrap: anywhere;
    text-align: center;
  }
}

.menu-close {
  background: transparent !important;
  border: 0 !important;
  color: var(--ink) !important;
  display: block !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 22px !important;
  padding: 8px !important;
  position: fixed !important;
  right: 24px !important;
  text-transform: uppercase;
  top: 20px !important;
  z-index: 10000 !important;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .prole-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalogue-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .prole-shop {
    padding: 0;
  }

  .prole-shop-grid,
  .catalogue-tools {
    grid-template-columns: 1fr;
  }

  .side-nav a {
    font-size: clamp(32px, 10vw, 48px) !important;
  }

  .home .hero {
    margin-bottom: 22px;
  }

  .home-category-navigation {
    margin-bottom: 54px;
    padding: 14px 0;
  }

  .home-category-navigation ul {
    gap: 13px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
  }

  .home-category-navigation a {
    font-size: 11px;
  }
}

/* Equal Shop spacing inside the theme's existing page shell. */
body.woocommerce-page .site-main,
body.woocommerce .site-main {
  box-sizing: border-box;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  width: auto !important;
}

body.woocommerce-page .prole-shop,
body.woocommerce .prole-shop {
  box-sizing: border-box;
  margin: 58px 72px 0 !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  width: auto !important;
}

@media (min-width: 701px) and (max-width: 1100px) {
  body.woocommerce-page .prole-shop,
  body.woocommerce .prole-shop {
    margin-left: 32px !important;
    margin-right: 32px !important;
  }
}

@media (max-width: 700px) {
  body.woocommerce-page .prole-shop,
  body.woocommerce .prole-shop {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Product dividers on laptop and desktop only. */
@media (min-width: 701px) {
  .prole-shop-grid {
    border-left: 1px solid var(--line) !important;
    border-top: 1px solid var(--line) !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }

  .prole-shop-grid .product-card,
  .prole-shop-grid .product-card:nth-child(2n),
  .prole-shop-grid .product-card:nth-child(3n) {
    border-bottom: 1px solid var(--line) !important;
    border-right: 1px solid var(--line) !important;
    padding: 26px !important;
  }
}

@media (min-width: 1101px) {
  .prole-shop-grid .product-card:nth-child(3n) {
    border-right: 0 !important;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .prole-shop-grid .product-card:nth-child(2n) {
    border-right: 0 !important;
  }
}

@media (min-width: 701px) {
  .prole-shop-grid .product-card:nth-child(2n),
  .prole-shop-grid .product-card:nth-child(3n) {
    border-right: 1px solid var(--line) !important;
  }
}

/* Completed footer. */
.studio-footer {
  border-top: 1px solid var(--line);
  margin: 130px auto 0;
  max-width: 1510px;
  padding: 48px 0 18px;
}

.studio-footer-main {
  display: grid;
  gap: clamp(36px, 7vw, 110px);
  grid-template-columns: minmax(280px, 1.5fr) minmax(220px, 0.8fr) minmax(150px, 0.5fr);
}

.studio-footer-label {
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.studio-footer h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 24px;
  max-width: 430px;
  text-transform: none;
}

.studio-newsletter-form {
  display: flex;
  max-width: 470px;
}

.studio-newsletter-form input[type="email"] {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  padding: 11px 2px;
}

.studio-newsletter-form button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  padding: 7px 10px;
}

.newsletter-message {
  border-left: 1px solid var(--ink);
  font-size: 12px;
  line-height: 1.4;
  margin: 16px 0 0;
  max-width: 470px;
  padding: 6px 0 6px 12px;
}

.studio-footer-contact {
  display: flex;
  flex-direction: column;
}

.studio-footer-contact a {
  margin-bottom: 8px;
}

.studio-footer-phone {
  font-size: 18px;
}

.studio-footer-contact address {
  font-style: normal;
  line-height: 1.45;
  margin-top: 14px;
}

.studio-social-links {
  align-items: center;
  display: flex;
  gap: 12px;
}

.studio-social-links a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease;
  width: 40px;
}

.studio-social-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.studio-social-links svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  width: 19px;
}

.studio-footer-bottom {
  align-items: flex-end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 16px;
}

.studio-footer-bottom p {
  font-size: 11px;
  margin: 0;
}

.studio-footer .footer-legal-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.studio-footer .footer-legal-menu a {
  font-size: 11px;
}

@media (max-width: 900px) {
  .studio-footer {
    margin-top: 90px;
    padding-top: 34px;
  }

  .studio-footer-main {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .studio-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-footer .footer-legal-menu ul {
    justify-content: flex-start;
  }
}

/* TranslatePress switcher inside the fullscreen navigation. */
.studio-language-switcher {
  margin-top: 34px;
}

.side-nav .studio-language-switcher a {
  font-family: Montserrat, sans-serif;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.studio-language-switcher .trp-language-switcher,
.studio-language-switcher .trp-language-switcher > div {
  background: transparent !important;
  border: 0 !important;
  height: auto;
  width: auto !important;
}

.studio-language-switcher .trp-language-switcher > div > a {
  padding: 6px 10px !important;
}

.studio-language-switcher img {
  display: none !important;
}
