/*
 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
*/


/* ======================================================================
   HOMEPAGE
   ====================================================================== */

/* Logo strip: desktop-only text alignment */
@media (min-width: 992px) {
  .logo-strip h3.brxe-heading {
    text-align: center;          /* change to left/right if you want */
    margin: 0;                   /* optional: helps vertical alignment */
  }
}

/* product featured */
.discounted-grid--4-1 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  grid-template-areas: none;
}

.discounted-grid--4-1 .discounted-card:nth-child(1),
.discounted-grid--4-1 .discounted-card:nth-child(2),
.discounted-grid--4-1 .discounted-card:nth-child(3),
.discounted-grid--4-1 .discounted-card:nth-child(4) {
  grid-area: auto;
}
@media (max-width: 767px) {
  .discounted-grid--4-1 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .discounted-grid--4-1 .discounted-card,
  .discounted-grid--4-1 .discounted-card:nth-child(1),
  .discounted-grid--4-1 .discounted-card:nth-child(2),
  .discounted-grid--4-1 .discounted-card:nth-child(3),
  .discounted-grid--4-1 .discounted-card:nth-child(4) {
    grid-area: auto !important;
  }

  .discounted-card {
    border-radius: 18px;
  }

  .discounted-card__image-link img {
    width: 100%;
    height: auto;
    display: block;
  }

  .discounted-card__body {
    padding: 16px;
  }

  .discounted-card__title {
    font-size: 18px;
    line-height: 1.3;
  }

  .discounted-card__labels {
    gap: 8px;
    flex-wrap: wrap;
  }
}

.discounted-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: visible;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
}

.discounted-card__status-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-20%, -20%);
  z-index: 0;
}

.badge--circle {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}

.badge--pill {
  padding: 4px 10px;
  border-radius: 999px;
}

.badge--sold {
  background: #f04438;
}

.badge--sale {
  background: #F37C3B;
  color: #ffffff;
}

.badge--old-price {
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: line-through;
}

.discounted-card__image-link {
  display: block;
  background: linear-gradient(180deg, #fbfbfb 0%, #fbfbfb 100%);

}

.discounted-card__image-link img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  border-radius:24px 24px 0 0;
}

.discounted-card--large .discounted-card__image-link img {
  height: 100%;
  object-fit: cover;
}

.discounted-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: 'Albert Sans';
  background-color: #EFEFEF;
  height: 100%;
  border-radius: 0px 0px 24px 24px;
}

.discounted-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.badge--old-price {
  display: none;
}

.discounted-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
}

.discounted-card__price ins {
  text-decoration: none;
}

.discounted-card__price ins .amount,
.discounted-card__price ins bdi {
  text-decoration: none;
}

.discounted-card__price ins .amount {
  color: var(--800, #1D2939);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Albert Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration: none !important;
}

.discounted-card__price del .amount {
  color: var(--600, #475467);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Albert Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration-line: line-through;
  text-decoration: none !important;
}

.discounted-card__title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.discounted-card__title a {
  color: inherit;
  text-decoration: none;
}

.discounted-card__title a:hover {
  text-decoration: underline;
}

.discounted-card--large {
  justify-content: center;
}

.discounted-grid--4-1 .discounted-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #98A2B3;
  border-radius: 24px;
}

.discounted-grid--4-1 .discounted-card:hover,
.discounted-grid--4-1 .discounted-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

.discounted-grid--4-1 .discounted-card:active {
  transform: translateY(-2px);
}


/* hover easing overrides (kept as-is) */
.discounted-grid--4-1 .discounted-card {
  transition: transform 320ms cubic-bezier(.2,.8,.2,1),
              box-shadow 320ms cubic-bezier(.2,.8,.2,1);
}

.discounted-grid--4-1 .discounted-card:hover,
.discounted-grid--4-1 .discounted-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
}

.discounted-grid--4-1 .discounted-card:active {
  transform: translateY(-1px);
}

/* logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  width: 100%;
}

.logo-grid > .brxe-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-grid img {
  max-height: 60px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* bestsellers hp */
.sf-bestsellers {
  width: 100%;
}

.sf-bestsellers-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.sf-bestsellers-grid {
  display: grid !important;
  gap: 24px !important;
  row-gap: 24px !important;
  column-gap: 24px !important;
  align-items: start;
}

/* bestsellers hp - force 3 columns (with responsive fallbacks) */
.sf-bestsellers > .sf-bestsellers-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: start;
}

/* 2 cols on tablet */
@media (max-width: 1024px){
  .sf-bestsellers > .sf-bestsellers-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 1 col on mobile */
@media (max-width: 640px){
  .sf-bestsellers > .sf-bestsellers-grid{
    grid-template-columns: 1fr !important;
  }
}

/* CARD */
.sf-bestseller-card {
  width: 100% !important;
  max-width: 100%;
  justify-self: center;

  border-radius: 24px;

  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* IMAGE FRAME (border + radius lives here) */
.sf-bestseller-media {
  /* spacing around the framed image */
  padding: 18px;
  background: transparent;

  /* remove old fixed height so meta can sit below naturally */
  height: auto;

  /* center the frame */
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* the framed box */
.sf-bestseller-media img {
  width: 100% !important;
  height: 350px !important;        /* adjust if you want taller/shorter */
  object-fit: contain;
  display: block;

  border-radius: 18px;
  border: 1px solid #98A2B3;       /* image border */
  background: #fff;                /* helps if image has transparency */
}

/* META BELOW THE IMAGE FRAME */
.sf-bestseller-meta {
  padding: 0 18px 18px;            /* sits right below the image frame */
  text-align: center;
}

/* remove default p margins */
.sf-bestseller-meta p {
  margin: 0 !important;
}

/* Title: Albert Sans, 20px, medium-bold */
.sf-bestseller-card .sf-bestseller-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;                /* “medium-bold” feel; use 500 if you want lighter */
  margin: 0 0 8px !important;      /* 8px gap to price */
}

/* Price: 24px, bold, same font */
.sf-bestseller-price {
  font-family: "Albert Sans", sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 !important;
}

/* responsive columns (keep yours) */
@media (max-width: 1100px) {
  .sf-bestsellers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .sf-bestsellers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-bestseller-card { width: 100%; max-width: 100%; }
  .sf-bestseller-media img { height: 260px !important; } /* optional: smaller image on mobile */
}

/* hover */
.sf-bestsellers-grid .sf-bestseller-card {
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.sf-bestsellers-grid .sf-bestseller-card:hover,
.sf-bestsellers-grid .sf-bestseller-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
}

.sf-bestsellers-grid .sf-bestseller-card:active {
  transform: translateY(-1px);
}

/* keep your existing badge styles */
.badge--sale { background:#F37C3B; color:#fff; }

.badge--sold { background:#f04438; color:#fff; }



.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ======================================================================
   HOMEPAGE FEATURED BLOG GRID
   ====================================================================== */

/* 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;
  text-decoration: none;
  color: inherit;
}

.abg-featured-head{
  padding: 1.8rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.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;
}

.abg-featured-hero{
  position: relative;
  padding: 0 2rem 2rem;
}

.abg-featured-image{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 600px;
}

.abg-featured-image img{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 500px !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  display: block;
}

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

.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;
  font-weight: 500;
  line-height: 36px;
}

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

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

.abg-side-card{
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.abg-side-image{
  border: 1px solid #98A2B3;
  border-radius: 20px;
  overflow: hidden;
}

.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-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 {
    grid-template-columns: 1fr;
  }
}
