/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* ======================================================================
   PRODUCT LOOPS AND CARDS
   ====================================================================== */

.wa-loop-card {
	border: 1px solid #DCDDDE;
	border-radius: 24px;
}

.wa-loop-data .wa-loop-title-link:hover,
.wa-loop-data .wa-loop-title-link:focus {
  color: #f37731;
  text-decoration: underline;
}

.woocommerce ul.products li.product .wa-loop-actions a.button.wa-more-info,
.woocommerce ul.products li.product .wa-loop-actions a.button.info_button.wa-more-info {
  margin: 0 16px 16px;
  border-radius: 8px;
  padding: 20px 14px!important;
  background-color: #ffffff00;
  color: #D3D3D3;
  text-align: center;
  font-weight: 700;
  transition: transform 150ms ease, opacity 150ms ease;
  font-family: "Albert Sans";
  font-size: 20px;
  background: #44949C !important;
  border-color: #44949C !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px); 
  text-decoration: none;
}

.woocommerce ul.products li.product .wa-loop-actions a.button.wa-more-info:hover {
  transform: translateY(-1px);
  opacity: 0.95;
	background-color: #F37C3B!important;
}

.tax-product_cat .wa-loop-media {
  border-radius: 24px;
}

/* The image frame */
body.archive.tax-product_cat .wa-loop-image{
  width: 231px;
  height: 278px;
  display: flex;
  align-items: flex-end;   /* bottom */
  justify-content: center; /* center horizontally */
  margin: 0 auto;          /* center the frame in the card */
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 18px;     /* optional */
  margin: 35px auto;
}

.tax-product_cat .wa-loop-data {
  background-color: #fff;
  border-radius: 24px;
}

/* CATEGORY ARCHIVE — title + price styling (Albert Sans) */
body.archive.tax-product_cat .wa-loop-data .wa-loop-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  align-self: stretch;
}

/* Title */
body.archive.tax-product_cat .wa-loop-data .wa-loop-meta .woocommerce-loop-product__title{
  margin: 0;
  color: var(--Neutral-neutral, #161616);
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

/* PRICE base (current price) */
body.archive.tax-product_cat .wa-loop-meta .price{
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  color: #44959D; /* current price */
}

/* OLD price (sale "was" price) */
body.archive.tax-product_cat .wa-loop-meta .price del,
body.archive.tax-product_cat .wa-loop-meta .price del .amount,
body.archive.tax-product_cat .wa-loop-meta .price del .amount bdi,
body.archive.tax-product_cat .wa-loop-meta .price del .woocommerce-Price-currencySymbol{
  color: rgba(22, 22, 22, 0.40) !important;
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 24px;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 150%;
  text-decoration-line: line-through;
}

/* Make sure the line-through isn't canceled by Woo styles */
body.archive.tax-product_cat .wa-loop-meta .price del{
  opacity: 1 !important;
}

/* NEW sale price (inside <ins>) stays teal and no underline */
body.archive.tax-product_cat .wa-loop-meta .price ins,
body.archive.tax-product_cat .wa-loop-meta .price ins *{
  color: #44959D !important;
  text-decoration: none !important;
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
}

/* If you truly want the OLD price text-align center (only affects inline elements if displayed as block) */
body.archive.tax-product_cat .wa-loop-meta .price del{
  text-align: center;
  display: inline-block; /* makes text-align apply meaningfully */
}

body.archive.tax-product_cat .wa-loop-media{
  position: relative;
}

.tax-product_cat .wa-loop-actions {
  display: flex;
  flex-direction: column;
}

/* all product loops (shop/category/shortcodes) */
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.ajax_add_to_cart {
  background: #44949C !important;
  border-color: #44949C !important;
  color: #fff !important;
}

.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.ajax_add_to_cart:hover {
  background: #F37C3B !important;
  border-color: #F37C3B !important;
  color: #fff !important;
}

/* "more information" button */
.woocommerce ul.products li.product a.button.info_button {
  background-color: #ffffff00;
  color: #D3D3D3 !important;
  padding: 5px !important;
}

.woocommerce ul.products li.product a.button.info_button:hover {
  background-color: #ffffff00;
  color: #F37C3B !important;
}

/* all product loops (shop/category/shortcodes) */
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.ajax_add_to_cart {
  background: #44949C !important;
  border-color: #44949C !important;
  color: #fff !important;
}

.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.ajax_add_to_cart:hover {
  background: #F37C3B !important;
  border-color: #F37C3B !important;
  color: #fff !important;
}

/* "more information" button */
.woocommerce ul.products li.product a.button.info_button {
  background-color: #ffffff00;
  color: #D3D3D3 !important;
}

.woocommerce ul.products li.product a.button.info_button:hover {
  background-color: #ffffff00;
  color: #F37C3B !important;
}

.wa-loop-meta .price del bdi{
  color: #6E7480 !important;
}



.woocommerce .products li.product > a.button.info_button{
  display: none !important;
}


/* ======================================================================
   SHOP PAGE AND SEARCH
   ====================================================================== */

.hp-category-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, min(400px, 100%)));
  justify-content: center;
}

.hp-category-grid > .brxe-div {
  width: 100%;
  max-width: 400px;
  height: 446px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.hp-category-grid img.brxe-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hp-category-grid > .brxe-div > .brxe-div:last-child {
  margin-top: 12px;
}

/* new blog */
.abg-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.abg-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 32px;
  margin: 0 auto;
  max-width: 1600px;
}

.abg-featured-card{
  background: #f8fafc;
  border: 1px solid #E4E7EC;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  max-width: 730px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 55px;
}

.abg-featured-link{
  display: block;                 /* no longer column flex needed */
  text-decoration: none;
  color: inherit;
}

/* Top area (date + title) */
.abg-featured-head{
  padding: 1.8rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Keep your date style (fix typo if needed) */
.abg-date{
  display: block;
  color: #344054;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
}

.abg-featured-title{
  margin: 0;
  color: #101828;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
}

/* Image hero section */
.abg-featured-hero{
  position: relative;
  padding: 0 2rem 2rem;           /* gives the image a nice inset */
}

/* Image frame (border + radius only around image) */
/* frame */
.abg-featured-image{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 600px;              /* the visible window height */
}

/* image: centered horizontally, aligned to bottom */
.abg-featured-image img{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 500px !important;     /* keep natural proportions */
  height: 100% !important;    /* fill the frame height */
  max-width: none;            /* prevents shrinking */
  object-fit: contain;        /* prevents cropping */
  display: block;
}

.abg-featured-image img{
  width: 500px;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Excerpt overlay panel */
.abg-featured-excerpt-overlay{
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 10rem;

  background: rgba(255,255,255,0.96);
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  padding: 32px;

  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.abg-featured-excerpt-overlay p{
  margin: 0 !important;
  color: #1D2939;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;               /* adjust if you want */
  font-weight: 500;
  line-height: 36px;
}

/* Hover */
.abg-featured-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

/* Responsive tweaks */
@media (max-width: 640px){
  .abg-featured-head{ padding: 1.4rem 1.25rem 1rem; }
  .abg-featured-hero{ padding: 0 1.25rem 1.25rem; }
  .abg-featured-image img{ height: 260px; }
  .abg-featured-excerpt-overlay{
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }
  .abg-featured-card{ 
    padding: 12px;
  }
  .abg-featured-title {
    font-size: 30px;
    line-height: 100%;
  }
}

.abg-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* CARD: no border/radius framing the whole thing */
.abg-side-card{
  background: transparent;   /* or keep #f8fafc if you want */
  border-radius: 0;
  overflow: visible;
  box-shadow: none;          /* optional: keep/remove */
}

/* IMAGE FRAME: border + radius ONLY around image area */
.abg-side-image{
  border: 1px solid #98A2B3;
  border-radius: 20px;
  overflow: hidden;          /* clips the image to the radius */
}

.abg-side-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.abg-side-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.abg-side-text {
  padding: 1.5rem 1rem 1.2rem;
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.abg-side-title {
  font-family: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--900, #101828);
  font-feature-settings: 'liga' off, 'clig' off;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px;
  margin: 0.25rem 0 0;
}

.abg-side-card {
  border-radius: 25px;
}

@media (max-width: 960px) {
  .abg-grid {
    grid-template-columns: 1fr;
  }

  .abg-side-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .abg-side-grid {
    grid-template-columns: 1fr;
  }
}

/* 
search results
*/
#product-search.brxe-posts.product-search .bricks-layout-wrapper{
  list-style: none;
  padding: 0;
  margin: 0;
}

#product-search.brxe-posts.product-search .bricks-layout-wrapper[data-layout="grid"]{
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* responsive columns */
@media (max-width: 1100px){
  #product-search.brxe-posts.product-search .bricks-layout-wrapper[data-layout="grid"]{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px){
  #product-search.brxe-posts.product-search .bricks-layout-wrapper[data-layout="grid"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px){
  #product-search.brxe-posts.product-search .bricks-layout-wrapper[data-layout="grid"]{
    grid-template-columns: 1fr;
  }
}

/* card shell */
#product-search.brxe-posts.product-search .bricks-layout-item .bricks-layout-inner{
  background: var(--wa-surface, #fff);
  border: 1px solid var(--wa-border, rgba(15,23,42,.12));
  border-radius: var(--wa-radius, 16px);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* hover */
#product-search.brxe-posts.product-search .bricks-layout-item .bricks-layout-inner:hover{
  transform: translateY(-2px);
  box-shadow: var(--wa-shadow-hover, 0 18px 45px rgba(15, 23, 42, 0.12));
  border-color: rgba(15, 23, 42, 0.18);
}

/* image area like figure */
#product-search.brxe-posts.product-search figure.image-wrapper{
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5; 
  background: var(--wa-surface-2, #f7f8fb);
  overflow: hidden;
}

#product-search.brxe-posts.product-search figure.image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* content area */
#product-search.brxe-posts.product-search .content-wrapper{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

#product-search.brxe-posts.product-search .content-wrapper h3{
  margin: 0;
  line-height: 1.35;
}

/* product title */
#product-search.brxe-posts.product-search .content-wrapper h3.dynamic[data-field-id="077089"] a{
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* SKU  */
#product-search.brxe-posts.product-search .content-wrapper h3.dynamic[data-field-id="osfkvh"]{
  font-size: 13px;
  opacity: .9;
}

/* price line */
#product-search.brxe-posts.product-search .content-wrapper h3.dynamic[data-field-id="aadufg"]{
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

/* push CTA to bottom */
#product-search.brxe-posts.product-search .content-wrapper p.dynamic[data-field-id="wwfqpb"]{
  margin: auto 0 0;
}

/* button */
#product-search.brxe-posts.product-search .content-wrapper a.button{
  font-family: "Albert Sans", sans-serif !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  background-color: #44949c !important;
  border-radius: 8px !important;
  width: 100% !important;
  padding: 14px 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  line-height: 1.1;
  box-shadow: none !important;
  border: none !important;
}

#product-search.brxe-posts.product-search .bricks-pagination{
  margin-top: clamp(16px, 2.5vw, 28px);
}

#product-search.brxe-posts.product-search,
#product-search.brxe-posts.product-search *{
  box-sizing: border-box;
}

#product-search .content-wrapper {
	margin-bottom: 0;
}


/* ======================================================================
   WC BLOCK PRODUCT GRID
   ====================================================================== */

/*** inner page product grid ***/
/* wrapper spacing */
.wp-block-woocommerce-product-category.wc-block-product-category {
  margin: 2rem 0;
}

/* make the grid behave like woo's .products list */
.wc-block-product-category .wc-block-grid__products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* individual product card */
.wc-block-product-category .wc-block-grid__product {
  flex: 1 1 calc(20% - 24px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 16px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

/* product link wrapper */
.wc-block-product-category .wc-block-grid__product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* image */
.wc-block-product-category .wc-block-grid__product-image {
  margin-bottom: 12px;
}

.wc-block-product-category .wc-block-grid__product-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* title – similar to .woocommerce-loop-product__title */
.wc-block-product-category .wc-block-grid__product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111827;
  line-height: 1.3;
  min-height: 2.6em;
}

/* price */
.wc-block-product-category .wc-block-grid__product-price {
  margin: 0 0 12px;
  font-weight: 600;
}

.wc-block-product-category .wc-block-grid__product-price .amount {
  font-size: 14px;
}

/* sale badge refinement */
.wc-block-product-category .wc-block-grid__product-onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 999px;
}

/* make the card relative so the sale badge positions correctly */
.wc-block-product-category .wc-block-grid__product {
  position: relative;
}

/* add to cart button – closer to woo .button style */
.wc-block-product-category .wp-block-button {
  margin-top: auto;
}

.wc-block-product-category .wp-block-button__link {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  background: #F37C3B;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.wc-block-product-category .wp-block-button__link:hover {
  background: #000000 !important;
  color: #ffffff !important;
}

/* responsive tweaks – reduce columns on smaller screens */
@media (max-width: 1024px) {
  .wc-block-product-category .wc-block-grid__product {
    flex: 1 1 calc(33.333% - 24px);
  }
}

@media (max-width: 768px) {
  .wc-block-product-category .wc-block-grid__product {
    flex: 1 1 calc(50% - 24px);
  }
}

@media (max-width: 480px) {
  .wc-block-product-category .wc-block-grid__product {
    flex: 1 1 100%;
  }
}

.wc-block-product-category .wc-block-grid__product {
  position: relative;
}

.wc-block-product-category .wc-block-grid__product-onsale {
  position: absolute;
  top: -18px;
  left: -12px;
  z-index: 5;
  pointer-events: none;
}

.wc-block-product-category .wc-block-grid__product-onsale span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #2db153;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-family: "Albert Sans", sans-serif;
  font-weight: 900;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wc-block-product-category .wc-block-grid__product-onsale .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wc-block-product-category .wc-block-grid__product.outofstock::before {
  content: "SOLD!";
  position: absolute;
  top: -18px;
  left: -12px;
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #FEC00F;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
  font-family: "Albert Sans", sans-serif;
  font-weight: 900;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}

.wc-block-grid__product .wc-block-grid__product-add-to-cart {
  font-size: 14px;
}

.wc-block-product-category .wc-block-grid__product-price.price {
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wc-block-product-category .wc-block-grid__product-price del {
  opacity: 0.6;
  font-weight: 500;
  font-size: 14px;
}

.wc-block-product-category .wc-block-grid__product-price ins {
  text-decoration: none;
}

.wc-block-product-category .wc-block-grid__product-onsale {
  background: #ffffff00 !important;
  border: none !important;
  left: -35px !important;
  right: -35px !important;
  top: -35px !important;
}

.wc-block-grid__products > li.wc-block-grid__product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wc-block-grid__product-add-to-cart {
  margin-top: auto;
  width: 100%;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 100%;
  text-align: center;
}
