/** Shopify CDN: Minification failed

Line 14:0 All "@import" rules must come first

**/
@media screen and (min-width: 750px) {
  .category--list__items {
    width: 100%;
    height: 134px !important;
  }
}

/* Import Roboto Condensed font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@600;700&display=swap');

/* Added aspect ratio and object-fit to prevent image stretching on mobile */
.category-background-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 749px) {
  .category-background-image {
    aspect-ratio: 800 / 388;
  }
}

@media screen and (min-width: 750px) {
  .category-background-image {
    aspect-ratio: 400 / 120;
  }
}

/* Centered heading with dark brown color matching Figma design */
.shop-by-category__heading {
  text-align: center;
  color: #4A2D1A;
  font-size: 48px;
  line-height: 50px;
  letter-spacing: 1px;
  font-family: 'Londrina Solid', 'Regular';
  margin: 0;
  font-weight: 400 !important;
  margin-bottom: 2vh;
}

/* Added desktop grid layout for 4 cards per row */
@media screen and (min-width: 750px) {
  .category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-left: 10rem;
    margin-right: 10rem;
  }
}

/* Added View More button styles and hide/show logic */
/* Mobile: Hide after 6 items */
@media screen and (max-width: 749px) {
  .category-list .category--list__items:nth-child(n+7) {
    display: none;
  }
  .expanded .category-list .category--list__items:nth-child(n+7) {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
  }

  /* Centered heading with dark brown color matching Figma design */
  .shop-by-category__heading {
    text-align: center;
    color: #4A2D1A;
    font-size: 26px;
    line-height: 28px;
    letter-spacing: 1px;
    font-family: 'Londrina Solid', 'Regular';
    margin: 0;
    font-weight: 500 !important;
  }
}

/* Desktop: Hide after 8 items */
@media screen and (min-width: 750px) {
  .category-list .category--list__items:nth-child(n+9) {
    display: none;
  }
  .expanded .category-list .category--list__items:nth-child(n+9) {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Updated button with circular icon background - sleek Figma design */
.view-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0px 0px 0px 20px !important;
  background: transparent !important;
  border: 1px solid #4a2d1a !important;
  border-radius: 50px !important;
  color: #4a2d1a !important;
  font-size: 16px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  position: relative !important;
  overflow: hidden !important;
  transition: color 0.3s ease, border-color 0.3s ease !important;
  min-width: 160px !important;
  z-index: 1 !important;
}

/* Added pseudo-element for left-to-right fill animation */
.view-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #c22126;
  transition: width 0.4s ease;
  z-index: -1;
  border-radius: 50px;
}

/* Circular background for the icon - light gray in default state */
.view-more-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e5e5e5;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-right: -2px;
}

/* Brown chevron icon in default state */
.view-more-icon {
  width: 16px;
  height: 16px;
  color: #4a2d1a;
  transition: all 0.3s ease;
}

/* Rotate icon 180 degrees when expanded to show up arrow */
.view-more-btn.expanded .view-more-icon {
  transform: rotate(180deg);
}

/* Added container centering */
.view-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

/* Hover effect with left-to-right fill animation */
@media (hover: hover) and (pointer: fine) {
  .view-more-btn:hover::before {
    width: 100%;
  }

  .view-more-btn:hover {
    border-color: #c22126;
    color: #ffffff;
  }

  .view-more-btn:hover .view-more-text {
    color: #ffffff;
  }

  .view-more-btn:hover .view-more-icon-circle {
    background: #aa161a;
  }

  .view-more-btn:hover .view-more-icon {
    color: #ffffff;
  }

  /* Keep rotation on hover when expanded */
  .view-more-btn.expanded:hover .view-more-icon {
    transform: rotate(180deg);
  }
}

/* Added active state for mobile touch devices to show red fill animation */
.view-more-btn:active::before {
  width: 100%;
}

.view-more-btn:active {
  border-color: #c22126;
  color: #ffffff;
}

.view-more-btn:active .view-more-text {
  color: #ffffff;
}

.view-more-btn:active .view-more-icon-circle {
  background: #aa161a;
}

.view-more-btn:active .view-more-icon {
  color: #ffffff;
}

/* Keep rotation on active when expanded */
.view-more-btn.expanded:active .view-more-icon {
  transform: rotate(180deg);
}
