/* ==========================================================
   HERO SLIDER
   ========================================================== */
.ab-hero {
  position: relative;
  background: var(--ab-ink);
  overflow: hidden;
}

.ab-hero__track { display: grid; }

.ab-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 44px 0 70px;
  background-image:
    linear-gradient(90deg, rgba(11, 31, 25, 0.94) 0%, rgba(11, 31, 25, 0.5) 100%),
    var(--ab-slide-img, radial-gradient(circle at 80% 40%, #25584a 0, #0f2a22 55%, #0b1f19 100%));
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ab-ease), visibility 0.8s;
}

.ab-slide.is-active { opacity: 1; visibility: visible; }

/* decorative gold rings */
.ab-slide::after {
  content: "";
  position: absolute;
  right: -110px;
  top: 50%;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(201, 162, 75, 0.07), 0 0 0 58px rgba(201, 162, 75, 0.035);
  pointer-events: none;
}

.ab-slide .ab-container { position: relative; z-index: 2; }
.ab-slide__inner { max-width: 560px; }

.ab-slide__off {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid var(--ab-gold);
  color: var(--ab-gold-light);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.ab-slide__title {
  margin: 10px 0 12px;
  font-size: 40px;
  line-height: 1.05;
  color: var(--ab-ivory);
}

.ab-slide__title em { color: var(--ab-gold-light); font-style: italic; }
.ab-slide__text { max-width: 420px; margin-bottom: 24px; font-size: 14px; color: #b9c8c0; }
.ab-slide__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ab-dots {
  position: absolute;
  left: var(--ab-gutter);
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.ab-dots button {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #52786a;
  transition: width 0.3s var(--ab-ease), background 0.3s;
}

.ab-dots button.is-active { width: 24px; background: var(--ab-gold); }

@media (min-width: 992px) {
  .ab-slide { min-height: 540px; padding: 60px 0 80px; }
  .ab-slide::after { right: 6%; width: 380px; height: 380px; box-shadow: 0 0 0 40px rgba(201, 162, 75, 0.07), 0 0 0 86px rgba(201, 162, 75, 0.035); }
  .ab-slide__title { font-size: 66px; }
  .ab-slide__text { font-size: 16px; }
  .ab-dots { left: calc(50% - 600px + var(--ab-gutter)); bottom: 28px; }
}

@media (max-width: 1240px) and (min-width: 992px) {
  .ab-dots { left: var(--ab-gutter); }
}

/* ==========================================================
   USP STRIP
   ========================================================== */
.ab-usp { background: #fff; border-bottom: 1px solid var(--ab-line); }

.ab-usp__grid { display: grid; grid-template-columns: 1fr 1fr; }

.ab-usp__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ab-muted);
}

.ab-usp__item svg { flex: none; color: var(--ab-gold-dark); width: 24px; height: 24px; }
.ab-usp__item b { display: block; font-size: 12px; font-weight: 600; color: var(--ab-green); }

@media (min-width: 992px) {
  .ab-usp__grid { grid-template-columns: repeat(4, 1fr); }
  .ab-usp__item { padding: 22px 24px; font-size: 13px; border-right: 1px solid var(--ab-line); }
  .ab-usp__item:first-child { border-left: 1px solid var(--ab-line); }
  .ab-usp__item svg { width: 30px; height: 30px; }
  .ab-usp__item b { font-size: 14px; }
}

/* ==========================================================
   CATEGORY CIRCLES
   ========================================================== */
.ab-cats { gap: 16px; }

.ab-cat { display: block; text-align: center; width: 76px; }

.ab-cat__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 1px solid var(--ab-gold);
  background: radial-gradient(circle at 35% 30%, #fff, var(--ab-cream));
  overflow: hidden;
  transition: transform 0.3s var(--ab-ease), box-shadow 0.3s;
}

.ab-cat__circle img { width: 100%; height: 100%; object-fit: cover; }
.ab-cat__circle em { font-family: var(--ab-font-head); font-size: 30px; font-style: normal; font-weight: 600; color: var(--ab-gold-dark); }
.ab-cat__name { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }
.ab-cat:hover .ab-cat__circle { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(11, 31, 25, 0.12); }

@media (min-width: 992px) {
  .ab-cats.ab-hscroll {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
  }
  .ab-cat { width: 130px; }
  .ab-cat__circle { width: 112px; height: 112px; margin-bottom: 12px; }
  .ab-cat__circle em { font-size: 44px; }
  .ab-cat__name { font-size: 13px; }
}

/* ==========================================================
   PROMO BANNERS
   ========================================================== */
.ab-promos { display: grid; grid-template-columns: 1fr; gap: 12px; }

.ab-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 190px;
  padding: 26px 24px;
  color: var(--ab-ivory);
  overflow: hidden;
}

.ab-promo--a { background: linear-gradient(120deg, var(--ab-ink), #2b5c4b); }
.ab-promo--b { background: linear-gradient(120deg, #3b1a1a, #7a3a2a); }

.ab-promo::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.4);
  box-shadow: 0 0 0 20px rgba(201, 162, 75, 0.08);
}

.ab-promo h3 { color: var(--ab-ivory); font-size: 30px; margin-bottom: 8px; }
.ab-promo .ab-btn { min-height: 40px; padding: 10px 22px; }

@media (min-width: 992px) {
  .ab-promos { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ab-promo { min-height: 250px; padding: 40px; }
  .ab-promo h3 { font-size: 38px; }
}

/* ==========================================================
   FRAGRANCE FAMILIES
   ========================================================== */
.ab-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ab-fam__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110px;
  border: 1px solid var(--ab-gold);
  color: var(--ab-ivory);
  text-align: center;
  transition: transform 0.3s var(--ab-ease);
}

.ab-fam__tile strong { font-family: var(--ab-font-head); font-size: 24px; font-weight: 600; letter-spacing: 0.04em; }
.ab-fam__tile span { margin-top: 3px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ab-gold-light); }
.ab-fam__tile:hover { transform: translateY(-4px); }

@media (min-width: 992px) {
  .ab-fam { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .ab-fam__tile { height: 160px; }
  .ab-fam__tile strong { font-size: 30px; }
  .ab-fam__tile span { font-size: 11px; }
}

/* ==========================================================
   STORY
   ========================================================== */
.ab-story {
  margin-top: 44px;
  background: radial-gradient(circle at 85% 20%, #25584a 0, var(--ab-green) 55%, var(--ab-ink) 100%);
  color: var(--ab-ivory);
  text-align: center;
}

.ab-story__inner { max-width: 760px; padding-top: 52px; padding-bottom: 56px; }
.ab-story h2 { margin: 10px 0 14px; color: var(--ab-ivory); font-size: 32px; }
.ab-story p { margin-bottom: 24px; color: #b9c8c0; }

@media (min-width: 992px) {
  .ab-story { margin-top: 72px; }
  .ab-story__inner { padding-top: 88px; padding-bottom: 92px; }
  .ab-story h2 { font-size: 52px; }
  .ab-story p { font-size: 17px; }
}

/* ==========================================================
   REVIEWS
   ========================================================== */
.ab-reviews { gap: 12px; }

.ab-review {
  width: 270px;
  margin: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ab-line);
  font-size: 14px;
}

.ab-review blockquote { margin: 6px 0 12px; line-height: 1.6; }
.ab-review figcaption { font-size: 12px; color: var(--ab-muted); }
.ab-stars { color: var(--ab-gold); letter-spacing: 3px; }

.ab-review--score {
  width: 200px;
  background: var(--ab-green);
  border-color: var(--ab-green);
  color: var(--ab-ivory);
  text-align: center;
}

.ab-review--score b { display: block; font-family: var(--ab-font-head); font-size: 54px; line-height: 1; color: var(--ab-gold-light); }
.ab-review--score small { display: block; margin-top: 8px; color: #b9c8c0; }

@media (min-width: 992px) {
  .ab-reviews.ab-hscroll {
    display: grid;
    grid-template-columns: 230px repeat(3, 1fr);
    gap: 18px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .ab-review, .ab-review--score { width: auto; }
}

.ab-empty { color: var(--ab-muted); }

/* ==========================================================
   GENERIC PAGES (page.php / index.php)
   ========================================================== */
.ab-page { padding-top: 32px; padding-bottom: 40px; min-height: 50vh; }
.ab-page__title { margin-bottom: 20px; font-size: 34px; }
.ab-page__content { max-width: 900px; }
.ab-post { padding: 18px 0; border-bottom: 1px solid var(--ab-line); }
.ab-post h2 { font-size: 24px; }

@media (min-width: 992px) {
  .ab-page { padding-top: 56px; padding-bottom: 72px; }
  .ab-page__title { font-size: 46px; }
}


/* ==========================================================
   CJIO HOMEPAGE REDESIGN — OVERRIDES
   Add at the END of home.css
========================================================== */

/* HOME SECTION SPACING */

.ab-section {
    padding: 48px 0 12px;
}

.ab-home-products {
    padding-top: 62px;
}

.ab-section-head {
    margin-bottom: 28px;
}

.ab-title {
    font-size: clamp(29px, 3vw, 40px);
    letter-spacing: -.5px;
}

.ab-link-more {
    font-size: 11px;
    letter-spacing: .12em;
    transition: color .25s ease;
}

.ab-link-more:hover {
    color: var(--ab-gold-dark);
}

/* HERO REDESIGN */

.ab-hero {
    background: #0b1f19;
}

.ab-slide {
    min-height: 570px;
    padding: 65px 0 90px;
    background-image:
        linear-gradient(
            90deg,
            rgba(11,31,25,.96) 0%,
            rgba(11,31,25,.76) 40%,
            rgba(11,31,25,.12) 100%
        ),
        var(--ab-slide-img, radial-gradient(circle at 80% 40%, #25584a, #0b1f19 75%));
    background-position: center;
    background-size: cover;
}

.ab-slide__inner {
    max-width: 650px;
}

.ab-slide__title {
    max-width: 640px;
    font-size: clamp(44px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -.8px;
    font-weight: 600;
}

.ab-slide__title em {
    color: var(--ab-gold-light);
}

.ab-slide__text {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(251,247,238,.78);
}

.ab-slide__off {
    margin-bottom: 20px;
}

.ab-slide::after {
    right: 7%;
    width: 370px;
    height: 370px;
    border-color: rgba(201,162,75,.25);
}

.ab-dots {
    bottom: 30px;
}

.ab-dots button {
    width: 26px;
    height: 3px;
    border-radius: 0;
}

.ab-dots button.is-active {
    width: 46px;
}

/* STORE HIGHLIGHTS */

.ab-usp {
    background: #fff;
    border-bottom: 1px solid var(--ab-line);
}

.ab-usp__grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.ab-usp__item {
    min-height: 78px;
    padding: 17px 15px;
    gap: 13px;
    border-right: 1px solid var(--ab-line);
    font-size: 12px;
}

.ab-usp__item:last-child {
    border-right: 0;
}

.ab-usp__item b {
    font-size: 13px;
    margin-bottom: 4px;
}

.ab-usp__item svg {
    width: 27px;
    height: 27px;
    color: var(--ab-gold-dark);
}

/* CATEGORY CARDS */

.ab-home-categories {
    padding-top: 64px;
    padding-bottom: 12px;
}

.ab-cats.ab-hscroll {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.ab-cat {
    width: auto;
    min-width: 0;
    text-align: center;
}

.ab-cat__circle {
    width: 142px;
    height: 142px;
    margin-bottom: 14px;
    border: 1px solid var(--ab-line);
    background: #f3eee3;
    transition: transform .35s var(--ab-ease),
                box-shadow .35s var(--ab-ease);
}

.ab-cat:hover .ab-cat__circle {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(11,31,25,.1);
}

.ab-cat__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-cat__name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* PRODUCT GRID — IMPORTANT */

.ab-home-products .ab-products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    list-style: none;
}

.ab-home-products .ab-products > li.product {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 0 17px !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e3d7;
    border-radius: 2px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ab-home-products .ab-products > li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(11,31,25,.09);
}

.ab-home-products .ab-products > li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.08;
    margin: 0 0 15px !important;
    object-fit: contain;
    background: #f8f6f1;
}

.ab-home-products .ab-products .woocommerce-loop-product__title {
    padding: 0 14px !important;
    margin: 0 0 7px !important;
    min-height: 42px;
    color: var(--ab-green);
    font-family: var(--ab-font-body);
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

.ab-home-products .ab-products .price {
    display: block;
    padding: 0 14px;
    margin: 0 0 12px !important;
    color: var(--ab-ink) !important;
    font-size: 14px !important;
    font-weight: 700;
}

.ab-home-products .ab-products .price del {
    color: #999 !important;
    font-size: 12px;
    font-weight: 400;
}

.ab-home-products .ab-products .price ins {
    color: var(--ab-gold-dark) !important;
    text-decoration: none;
}

.ab-home-products .ab-products .star-rating {
    margin: 0 14px 10px !important;
    font-size: 11px;
}

.ab-home-products .ab-products .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 39px;
    margin: auto 14px 0 !important;
    padding: 0 15px !important;
    color: var(--ab-gold-light) !important;
    background: var(--ab-green) !important;
    border: 1px solid var(--ab-green) !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: all .25s ease;
}

.ab-home-products .ab-products .button:hover {
    color: var(--ab-ink) !important;
    background: var(--ab-gold-light) !important;
    border-color: var(--ab-gold-light) !important;
}

.ab-home-products .ab-products .onsale {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    min-height: auto;
    padding: 7px 10px;
    color: #fff;
    background: var(--ab-red);
    border-radius: 0;
    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* MEN / WOMEN COLLECTION BANNERS */

.ab-home-collections {
    padding-top: 68px;
}

.ab-home-collections .ab-promos {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.ab-home-collections .ab-promo {
    position: relative;
    min-height: 315px;
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(201,162,75,.35);
    transition: transform .3s ease;
}

.ab-home-collections .ab-promo:hover {
    transform: translateY(-4px);
}

.ab-home-collections .ab-promo--a {
    background:
        radial-gradient(circle at 85% 15%, rgba(201,162,75,.25), transparent 42%),
        linear-gradient(125deg,#0b1f19,#1d4938);
}

.ab-home-collections .ab-promo--b {
    background:
        radial-gradient(circle at 85% 15%, rgba(227,200,127,.2), transparent 42%),
        linear-gradient(125deg,#40242a,#75434a);
}

.ab-home-collections .ab-promo h3 {
    position: relative;
    z-index: 1;
    max-width: 380px;
    color: var(--ab-ivory);
    font-size: clamp(30px,3vw,42px);
    line-height: 1.15;
}

.ab-home-collections .ab-promo .ab-btn {
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

/* BRAND STORY */

.ab-story {
    margin-top: 65px;
    background:
        radial-gradient(circle at 85% 20%, #25584a 0, var(--ab-green) 55%, var(--ab-ink) 100%);
}

.ab-story__inner {
    max-width: 820px;
    padding-top: 88px;
    padding-bottom: 88px;
}

.ab-story h2 {
    font-size: clamp(36px,4vw,54px);
    line-height: 1.12;
}

.ab-story p {
    max-width: 650px;
    margin: 0 auto 28px;
    font-size: 15px;
    line-height: 1.9;
    color: #c7d0c9;
}

/* EMPTY PRODUCT MESSAGE */

.ab-empty {
    padding: 24px;
    color: var(--ab-muted);
    background: #fff;
    border: 1px solid var(--ab-line);
    text-align: center;
}

/* TABLET */

@media (max-width: 991px) {

    .ab-cats.ab-hscroll {
        grid-template-columns: repeat(3,minmax(0,1fr));
        row-gap: 25px;
    }

    .ab-cat__circle {
        width: 125px;
        height: 125px;
    }

    .ab-home-products .ab-products {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 16px !important;
    }

    .ab-home-collections .ab-promo {
        min-height: 260px;
        padding: 28px;
    }

    .ab-slide {
        min-height: 490px;
    }

    .ab-slide__title {
        font-size: 54px;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .ab-section {
        padding: 42px 0 8px;
    }

    .ab-home-products {
        padding-top: 48px;
    }

    .ab-section-head {
        margin-bottom: 20px;
        gap: 10px;
    }

    .ab-title {
        font-size: 27px;
    }

    .ab-eyebrow {
        font-size: 9px;
        letter-spacing: .2em;
    }

    .ab-link-more {
        font-size: 9px;
    }

    .ab-hero {
        min-height: 470px;
    }

    .ab-slide {
        min-height: 470px;
        padding: 50px 0 70px;
        background-position: 65% center;
    }

    .ab-slide__inner {
        max-width: 100%;
    }

    .ab-slide__title {
        max-width: 370px;
        font-size: clamp(39px,10vw,50px);
        line-height: 1.07;
    }

    .ab-slide__text {
        max-width: 330px;
        font-size: 13px;
        line-height: 1.75;
    }

    .ab-slide::after {
        right: -160px;
        width: 260px;
        height: 260px;
    }

    .ab-dots {
        left: 16px;
        bottom: 22px;
    }

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

    .ab-usp__item {
        min-height: 65px;
        padding: 10px 5px;
        gap: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--ab-line);
        font-size: 10px;
    }

    .ab-usp__item b {
        font-size: 11px;
    }

    .ab-usp__item svg {
        width: 22px;
        height: 22px;
    }

    .ab-cats.ab-hscroll {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        margin: 0 calc(var(--ab-gutter) * -1);
        padding: 4px var(--ab-gutter) 15px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ab-cats.ab-hscroll::-webkit-scrollbar {
        display: none;
    }

    .ab-cat {
        flex: 0 0 105px;
        scroll-snap-align: start;
    }

    .ab-cat__circle {
        width: 94px;
        height: 94px;
        margin-bottom: 10px;
    }

    .ab-cat__name {
        font-size: 11px;
    }

    .ab-home-products .ab-products {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 11px !important;
    }

    .ab-home-products .ab-products > li.product {
        padding-bottom: 13px !important;
    }

    .ab-home-products .ab-products > li.product a img {
        aspect-ratio: 1 / 1.08;
        margin-bottom: 10px !important;
    }

    .ab-home-products .ab-products .woocommerce-loop-product__title {
        min-height: 38px;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    .ab-home-products .ab-products .price {
        padding: 0 9px;
        font-size: 12px !important;
    }

    .ab-home-products .ab-products .star-rating {
        margin-left: 9px !important;
    }

    .ab-home-products .ab-products .button {
        min-height: 34px;
        margin: auto 9px 0 !important;
        padding: 0 9px !important;
        font-size: 9px !important;
        letter-spacing: .06em;
    }

    .ab-home-collections .ab-promos {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .ab-home-collections .ab-promo {
        min-height: 245px;
        padding: 26px;
    }

    .ab-home-collections .ab-promo h3 {
        font-size: 33px;
    }

    .ab-story {
        margin-top: 45px;
    }

    .ab-story__inner {
        padding-top: 62px;
        padding-bottom: 65px;
    }

    .ab-story h2 {
        font-size: 35px;
    }

    .ab-story p {
        font-size: 13px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .ab-home-products .ab-products {
        gap: 8px !important;
    }

    .ab-home-products .ab-products .woocommerce-loop-product__title {
        font-size: 10px !important;
    }

    .ab-slide__title {
        font-size: 37px;
    }

    .ab-cat {
        flex-basis: 95px;
    }

    .ab-cat__circle {
        width: 85px;
        height: 85px;
    }
}
/* ==========================================================
   CJIO HOMEPAGE PRODUCT VISIBILITY + GRID PATCH
   Add this at the END of assets/css/home.css.
   ========================================================== */

/* Product sections: stable grid, including WooCommerce defaults */
.ab-home-products {
  position: relative;
}

.ab-home-product-grid,
.ab-home-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
}

.ab-home-product-grid::before,
.ab-home-product-grid::after,
.ab-home-products ul.products::before,
.ab-home-products ul.products::after {
  display: none !important;
  content: none !important;
}

.ab-home-product-grid li.product,
.ab-home-products ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
}

.ab-home-products .woocommerce-loop-product__title,
.ab-home-products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  line-height: 1.35;
}

.ab-home-products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.ab-home-products li.product .price {
  display: block;
  margin-top: 6px;
}

.ab-home-products li.product .button {
  margin-top: 10px;
}

@media (min-width: 600px) {
  .ab-home-product-grid,
  .ab-home-products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px !important;
  }
}

@media (min-width: 992px) {
  .ab-home-product-grid,
  .ab-home-products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px !important;
  }

  .ab-home-products .woocommerce-loop-product__title,
  .ab-home-products li.product .woocommerce-loop-product__title {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .ab-home-product-grid,
  .ab-home-products ul.products {
    gap: 10px !important;
  }
}
