/* Product Card Styles */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card,
.catalog-category-card {
  display: flex;
  flex-direction: row;
  background-color: #f4f4f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  height: 220px;
}

.product-card:hover,
.catalog-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.ont-cat-card-content {
  flex: 1;
  padding: 20px 0 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f9f9f9;
}

.ont-cat-card-content h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #002f50;
  line-height: 1.3;
}

.ont-cat-card-content svg {
  width: 40px;
  height: 40px;
  margin: 10px 0;
  color: #0052a3;
  flex-shrink: 0;
}

.ont-cat-svg {
  width: 40px;
  height: 40px;
  margin: 10px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ont-cat-svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ont-cat-card-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.ont-cat-image {
  flex: 1;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  min-width: 200px;
}

.ont-cat-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .product-card,
  .catalog-category-card {
    flex-direction: column;
    height: auto;
  }

  .ont-cat-card-content {
    padding: 15px;
  }

  .ont-cat-card-content h2 {
    font-size: 16px;
  }

  .ont-cat-image {
    min-width: auto;
    height: 180px;
  }
}

/* custom css */

section.product-card.catalog-category-card.brands .ont-cat-card-content {
  display: none;
}


.custom-patches .ont-cat-image {
  flex: 1;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  min-width: 200px;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: -22%;
  margin-right: 10px;
  padding-left: 10px;
}

.custom-patches {
  background-color: #f9f9f9;
}
.custom-patches .ont-cat-card-content {
  flex-basis: 46%;
  flex-shrink: 0;
  z-index: 44;
  background-color: transparent;
}
.womens .ont-cat-card-content {
  background-color: #f3f3f5;
}
.custom-patches .ont-cat-card-content p {
  max-width: 117px;
}
.start-designing-now.catalog-category-card {
  flex-direction: column;
}

.start-designing-now .ont-cat-card-content {
  display: grid;
  grid-template-areas:
    "icon head head head"
    "text text text text" !important;
}
.start-designing-now .ont-cat-card-content h2 {
  grid-area: head;
  margin: 10px auto;
}

.start-designing-now .ont-cat-card-content div {
  grid-area: icon;
}

.start-designing-now .ont-cat-card-content p {
  grid-area: text;
}

section.product-card.catalog-category-card.start-design .ont-cat-card-content {
    display: none;
}

section.product-card.catalog-category-card.banners, section.product-card.catalog-category-card.start-design, section.product-card.catalog-category-card.brands {
       height: 100%;
}

.usa.catalog-category-card {
  flex-direction: column;

  background-color: #f5f5f5;
}
.usa .ont-cat-card-content {
  z-index: 3;
  background-color: transparent;
}
.usa .ont-cat-image {
  margin-top: -80px;
}


section.product-card.catalog-category-card.banners .ont-cat-card-content {
    /* display: none; */
    position: absolute;
    background: transparent;
    color: white;
    width: 120px;
}

section.product-card.catalog-category-card.banners .ont-cat-card-content h2{
 color: #fff;
 font-size: 28px;
}

section.product-card.catalog-category-card.banners .ont-cat-card-content p{
 color: #fff;
}

section.product-card.catalog-category-card.banners .ont-cat-card-content .ont-cat-svg{
  display: none;
}

section.product-card.catalog-category-card.banners.banners .ont-cat-image img {
    height: 100%;
    object-fit: cover;
}