/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/

/* Use this to test style sheet is rendering correctly */
/* body {
  border: 10px solid red;
} */


/* --- Global Styles --- */
.cky-revisit-bottom-left, p.stock, .cb-add-basket .quantity { /* Hides */
  display: none !important;
}
a:active, a:hover, a:focus {
  border: none !important;
  box-shadow: none !important;
  outline-style: none !important;
}

/* Header Styles */
header img.custom-logo {
  width: 25vw !important;
}
header .cb-nav-top {
  position: absolute;
  right: 2em;
  top: 2.9em;
}
header .cb-nav-top svg {
  width: 50px;
  height: 50px;
}
.cb-cart-icon {
  position: absolute;
  top: 1em;
  right: 3em;
  z-index: 999;
}

/*Home Page Styles */
.home .cb-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
}
.home .cb-hero-block {
  margin: 0;
}
.home .wp-block-cover.cb-hero-block img {
  object-position: 50% 100% !important;
}
.home .cb-intro-copy {
  padding-top: 1em !important;
  padding-left: 10em !important;
  padding-right: 10em !important;
  padding-bottom: 1em !important;
}
.home .cb-intro-copy h2 {
  font-size: 2.2em !important;
  margin-top: 0.6em;
}
.home .cb-intro-copy p {
  font-size: 1.4em;
  margin-bottom: 2em;
}
/* Home page tiles */
.cb-home-tiles .cb-tile {
  aspect-ratio: 1 / 1;
  min-height: auto !important;   /* cancels Cover min-height if set */
  padding: 0;
}
.cb-home-tiles .cb-tile .wp-block-cover__image-background,
.cb-home-tiles .cb-tile video.wp-block-cover__video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-home-tiles .cb-tile .wp-block-cover__inner-container {
  padding: 0 0 0 1em;
}
.cb-home-tiles .cb-tile {
  position: relative;
}
.cb-home-tiles .cb-tile .wp-block-cover__inner-container {
  height: 100%;
}
.cb-home-tiles .cb-tile .wp-block-buttons,
.cb-home-tiles .cb-tile .wp-block-button {
  width: 100%;
  height: 100%;
  margin: 0;
}
.cb-home-tiles .cb-tile .wp-block-button__link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: left;
  padding: 0 0 0.2em 0.6em;
  z-index: 5;
  border-radius: 0 !important;
  max-width: none !important;
  background-color: transparent !important;
  font-size: 3em !important;
  font-weight: 200;
}
.cb-home-tiles .cb-tile .wp-block-button__link:hover {
  background-color: transparent !important;
}

/* Content Pages */
.cb-contact-form {
  margin-bottom: 3em !important;
}
.cb-contact-form input, .cb-contact-form textarea {
  outline-style: none;
  border: none;
  padding: 10px 0;
  font-size: 1.2em;
  max-width: 100%;
  text-indent: 10px;
}
.cb-contact-form input[type='submit'] {
  background: #6e282d;
  color: #ffffff;
  padding: 10px 10px;
  text-indent: 0;
}

/* Product Pages */
header + main.wp-block-group {
  padding: 0 8em;
  margin-top: 0 !important;
  margin-bottom: 2em !important;
}

header + main.wp-block-group .wp-block-group {
  padding: 0 !important;
  margin: 0;
}

header + main.wp-block-group li.wc-block-product {
  background: #ffffff;
  padding: 10px;
}
h1.wp-block-post-title, .wp-block-group .wp-block-woocommerce-product-collection {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Make product tiles all the same height */
.cb-product-template .wp-block-woocommerce-product-image {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  display: block;
  background: #f4f2ee;
}

/* Blurred image backdrop */
.cb-product-template .wp-block-woocommerce-product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cb-img);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.25);
  opacity: 0.4;
}

/* Center the real image */
.cb-product-template .wp-block-woocommerce-product-image > a {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.cb-product-template .wp-block-woocommerce-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

.cb-product-template h2 {
  font-size: 1em !important;
  margin-bottom: 0 !important;
}
.cb-product-template .wp-block-woocommerce-product-price {
  margin-bottom: 0 !important;
}
.cb-product-template .amount {
  font-weight: 600;
}
.cb-product-template h2.cb-archive-price + div {
  display: none;
}

.cb-pagination {
  color: #6e282d !important;
  font-size: 2em;
  gap: 0.25em !important;
  font-weight: 300;
}
.cb-pagination a {
  color: #6e282d !important;
}
.cb-pagination a span {
  margin: 0 !important;
}

.cb-add-basket form {
  padding-left: 0 !important;
}

.woocommerce-checkout input, .woocommerce-checkout textarea {
  border-radius: 0 !important;
  border: none !important;
}
.woocommerce-checkout .woocommerce-invalid {
  border: 1px solid #a00 !important;
}

.cb-journal-grid {
  gap: 4em 8em !important;
  text-align: left;
  margin: auto;
  width: 80%;
}

.cb-journal-intro {
  width: 60%;
  font-size: 1.2em;
  margin-bottom: 3em;
}

.cb-journal-grid li {
  border-bottom: 1px solid #ccc;
  padding-bottom: 3em;
}

.cb-journal-grid h2 {
  font-size: 2em;
}

.cb-journal-post h1 {
  padding: 0 10rem 0;
  font-size: 4em;
}

.cb-journal-link a {
  text-decoration: none;
}

.cb-journal-post .cb-journal-content {
  margin: 0 !important;
  padding: 2em 10rem;
}

.cb-journal-post .cb-journal-content p:first-child {
  font-size: 1.4em;
}
.cb-journal-cta {
  margin: 0 !important;
  padding: 0 10rem 2em !important;
}

/* Footer Styles */
footer {
  margin: 0;
}
.cb-footer, .cb-footer a {
  color: #6e282d;
}
.cb-footer h3 {
  font-size: 2.2em !important;
}
.cb-footer .cb-visit p {
  font-size: 1.4em;
  color: #6e282d;
}
.cb-footer .cb-follow p {
  font-size: 1.4em;
  color: #6e282d;
  margin: 0;
 }
.cb-footer .cb-follow a {
  color: #6e282d;
  text-decoration: none;
}
.cb-footer .cb-follow a:hover {
  text-decoration: underline;
}
.cb-footer .cb-follow .wp-block-media-text__content {
  padding: 0;
}
.cb-footer .cb-follow img {
  max-width: 40px;
  width: 40px;
  height: 40px;
}
.cb-footer .cb-more .wp-block-navigation__container {
  gap: 0;
  font-size: 1.25em;
  color: #6e282d;
}
.cb-footer-blocks {
  margin-bottom: 3em;
}
.cb-footer .cb-signoff {
  margin:0;
}


/* Small laptops & large tablets (≤ 1024px) */
@media (max-width: 1024px) {
  header + main.wp-block-group {
    padding: 0 6em;
    margin-top: 0 !important;
  }
  header img.custom-logo {
    width: 30vw !important;
  }
  .home .cb-hero-block {
    min-height: 75vh !important;
  }
  .home .cb-intro-copy {
    padding-left: 6em !important;
    padding-right: 6em !important;
  }

}


/* Tablets (≤ 960px) */
@media (max-width: 960px) {
  header + main.wp-block-group {
    padding: 0 4em;
    margin-top: 0 !important;
  }
  header img.custom-logo {
    width: 50vw !important;
  }
  header .cb-nav-top {
    right: 2em;
    top: 3.8em;
  }
  .cb-footer .cb-follow img {
    max-width: 30px;
    width: 30px;
    height: 30px;
  }
  .cb-footer .cb-follow .wp-block-media-text__content {
    padding: 0 0 0 8px;
  }
  .home .cb-hero-block {
    min-height: 75vh !important;
  }
  .home .cb-intro-copy {
    padding-left: 4em !important;
    padding-right: 4em !important;
  }
  .cb-journal-post h1 {
    padding: 0 4rem 0;
    font-size: 3em;
  }

  .cb-journal-post .cb-journal-content {
    margin: 0 !important;
    padding: 2em 4rem !important;
  }
  .cb-journal-cta {
    margin: 0 !important;
    padding: 0 4rem 2em !important;
  }
  .cb-journal-grid {
    gap: 4em 6em !important;
    text-align: left;
    margin: auto;
    width: 100%;
  }

  .cb-journal-intro {
    width: 80%;
    font-size: 1.2em;
    margin-bottom: 3em;
  }
}


/* Large phones / small tablets (≤ 768px) */
@media (max-width: 768px) {
  header + main.wp-block-group {
    padding: 0 2em;
    margin-top: 0 !important;
  }
  header img.custom-logo {
    width: 50vw !important;
  }
  header .cb-nav-top {
    right: 2em;
    top: 3.5em;
  }
  .cb-follow .wp-block-media-text {
    grid-template-columns: 40px auto !important;
  }
  .home .cb-hero-block {
    min-height: 75vh !important;
  }
  .home .cb-intro-copy {
    padding-left: 4em !important;
    padding-right: 4em !important;
  }
  .cb-journal-post h1 {
    padding: 0 4rem 0;
    font-size: 3em;
  }

  .cb-journal-post .cb-journal-content {
    margin: 0 !important;
    padding: 2em 4rem !important;
  }
  .cb-journal-cta {
    margin: 0 !important;
    padding: 0 4rem 2em !important;
  }

  .cb-journal-grid {
    gap: 3em 4em !important;
    text-align: left;
    margin: auto;
    width: 100%;
  }

  .cb-journal-intro {
    width: 80%;
    font-size: 1.2em;
    margin-bottom: 3em;
  }

}


/* Phones (≤ 480px) */
@media (max-width: 480px) {
  header + main.wp-block-group {
    padding: 0 2em;
    margin-top: 0 !important;
  }
  header img.custom-logo {
    width: 80vw !important;
  }
  header .cb-nav-top {
    right: 1em;
    top: 2.7em;
  }
  header .cb-nav-top svg {
    width: 36px;
    height: 36px;
  }
  .home .cb-hero-block {
    min-height: 60vh !important;
  }
  .cb-cart-icon {
    top: 1em;
    right: 1.5em;
  }
  .home .cb-intro-copy {
    padding-left: 2em !important;
    padding-right: 2em !important;
  }
  .home .cb-hero-block h1 {
    font-size: 2.2em !important;
    font-weight: 300;
    margin-bottom: 0.2em !important;
  }
  .cb-home-tiles .cb-tile .wp-block-button__link {
    font-size: 1.4em !important;
    font-weight: 300;
  }
  .has-global-padding > .alignfull {
    margin: 0 !important;
    padding: 0;
  }
  h1.wp-block-post-title {
    margin-bottom: 1em;
  }
  .cb-map iframe {
    max-width: 100%;
  }
  .cb-journal-post h1 {
    padding: 0 2rem 0;
    font-size: 2.4em;
  }

  .cb-journal-post .cb-journal-content {
    margin: 0 !important;
    padding: 2em 2rem !important;
  }
  .cb-journal-cta {
    margin: 0 !important;
    padding: 0 2rem 2em !important;
  }

  .cb-journal-intro {
    width: 100%;
    font-size: 1.2em;
    margin-bottom: 3em;
  }

}
