/** Shopify CDN: Minification failed

Line 91:14 Expected identifier but found whitespace
Line 91:16 Unexpected "{"
Line 91:25 Expected ":"
Line 91:59 Expected ":"

**/
/* SHOPIFY_STYLESHEETS_VERSION: 1.0 */


/* CSS from section stylesheet tags */
/* START_SECTION:sheblooms-shopbycategroy (INDEX:111) */
.sheblooms-category-section {
  width: 100%;
  padding: 40px 81px;
}

.sheblooms-category-container {
  max-width: 1400px;
  margin: 0 auto;
}

.sheblooms-category-heading {
  margin-bottom: 35px;
}

.sheblooms-category-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.sheblooms-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.sheblooms-category-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sheblooms-category-image-wrap {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.sheblooms-category-image {
  width: 100%;
  aspect-ratio: 1/1;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sheblooms-category-card:hover .sheblooms-category-image {
  transform: scale(1.08);
}

.sheblooms-category-title {
  margin-top: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

@media screen and (max-width: 989px) {
  .sheblooms-category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media screen and (max-width: 749px) {
  .sheblooms-category-section {
    padding: 30px 15px;
  }

  .sheblooms-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .sheblooms-category-heading h2 {
    font-size: {{ section.settings.mobile_heading_size }}px;
  }

  .sheblooms-category-title {
    font-size: 16px;
  }
}

/* Fix for when blocks are less than 4 - center them properly */
.sheblooms-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-content: center;
}

/* When only 1 or 2 items - center them */
.sheblooms-category-grid:has(.sheblooms-category-card:nth-last-child(-n+2):first-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 650px;
  margin: 0 auto;
}

/* When only 1 item */
.sheblooms-category-grid:has(.sheblooms-category-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 300px;
  margin: 0 auto;
}

/* When 3 items */
.sheblooms-category-grid:has(.sheblooms-category-card:nth-last-child(-n+3):first-child) {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 989px) {
  .sheblooms-category-grid:has(.sheblooms-category-card:nth-last-child(-n+2):first-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto;
  }
  
  .sheblooms-category-grid:has(.sheblooms-category-card:nth-last-child(-n+3):first-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 749px) {
  .sheblooms-category-grid:has(.sheblooms-category-card:nth-last-child(-n+2):first-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin: 0;
  }
  
  .sheblooms-category-grid:has(.sheblooms-category-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 250px;
    margin: 0 auto;
  }
}
/* END_SECTION:sheblooms-shopbycategroy */