/* Collections Component Styles */
.collections {
  position: relative;
  /* padding: var(--spacing-xxl) 0; */
  overflow: hidden;
}

.collections__container {
  margin: 0 auto;
  position: relative;
  z-index: 10;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.collections__background-container {
  height: 368px;
  width: 100%;
  position: relative;
  padding: 0;
  margin: 0;
  box-sizing: none;

  display: flex;
}

.collections__background-img {
  position: absolute;
  right: -15px;
  z-index: 1;
  height: 368px;
}

.collections__background-img-mobile {
  display: none;
}

/* Title Section */
.collections__title {
  position: relative;
  left: 0;
  z-index: 3;
  margin-bottom: var(--spacing-xl);
  width: 50%; 
  height: 368px; 
  background: #CF4E3F;
  border-top-right-radius: 188px; 
  border-bottom-right-radius: 188px;
}

.collections__year-badge {
  background: #63BEA8;
  border-radius: 15px;
  width: 198px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 120px; /* Movido mais para a esquerda (era 90px) */
  top: 68px;
}

.collections__year-text {
  color: white;
  font-family: Inter;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  word-wrap: break-word;
  /* width: 195px;
  height: 33px; */
  transform-origin: center;
}

.collections__title-text {
  font-family: Afacad;
  font-size: 36px;
  line-height: 1.2;
  color: white;
  width: 281px;
  height: 99px;
  position: absolute;
  right: 30px; /* Movido mais para a esquerda (era 0px) */
  top: 113px;
  transform-origin: center;
  word-wrap: break-word;
}

.collections__title-normal {
  font-weight: 400;
  color: white;
  font-size: 36px;
  font-family: Afacad;
  word-wrap: break-word;
  transform-origin: center;
}

.collections__title-bold {
  font-weight: 700;
  color: white;
  font-size: 36px;
  font-family: Afacad;
  word-wrap: break-word;
  transform-origin: center;
}

/* Image Section */
.collections__image {
  position: relative;
  width: 300px !important; /* Aumentado de 264px para 300px */
  max-width: 300px;
  height: 300px !important; /* Ajustado para ser quadrado (circular perfeito) */
  /* margin: 0 auto var(--spacing-xl); */
  left: 72px; /* Movido mais para a direita (era 42px) */
  top: 34px; /* Ajustado para centralizar verticalmente */
  z-index: 5;

  display: flex;
  justify-content: center;
  align-items: center;
}

.collections__image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: var(--color-light-3); */
  border-radius: 50%; /* Garantindo círculo perfeito */
  z-index: 1;
  width: 100%; /* Garantindo que ocupe todo o container */
  height: 100%; /* Garantindo que ocupe todo o container */
}

.collections__image-img {
  position: absolute;
  border-radius: 50%; /* Garantindo círculo perfeito */
  z-index: 2;
  width: 100%; /* Aumentado para 75% do container */
  height: 100%; /* Aumentado para 75% do container */
  max-width: 350px; /* Aumentado limite máximo */
  max-height: 350px; /* Aumentado limite máximo */
  object-fit: cover; /* Garante que a imagem mantenha proporção */
}

/* Categories Grid - 4 columns x 2 rows layout */
.collections__categories {
  margin-top: var(--spacing-xxl);
  position: relative;
  z-index: 1;
  max-width: 900px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 23px;
  justify-items: center;
  align-items: center;
}

.collections__category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  position: relative;
  justify-content: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-normal);
}

.collections__category-item:hover {
  transform: scale(1.05);
}

.collections__category-item:visited {
  color: inherit;
}

.collections__category-icon {
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--color-light-blue-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px;
}

/* Remove background from 6th item */
.collections__category-item:nth-child(6) .collections__category-icon {
  background: transparent;
  border-radius: none;
}

.collections__category-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  transition: transform var(--transition-normal);
}

/* ===== OLD ROTATIONS - COMMENTED OUT ===== */
/* Rotations específicas para cada imagem */
/*
.collections__category-item:nth-child(1) .collections__category-img {
  transform: rotate(-120deg);
}

.collections__category-item:nth-child(2) .collections__category-img {
  transform: rotate(0deg);
}

.collections__category-item:nth-child(3) .collections__category-img {
  transform: rotate(120deg);
}

.collections__category-item:nth-child(4) .collections__category-img {
  transform: rotate(-120deg);
}

.collections__category-item:nth-child(5) .collections__category-img {
  transform: rotate(0deg);
}

/* Hover mantendo as rotações específicas */
.collections__category-item:nth-child(1) .collections__category-icon:hover .collections__category-img {
  transform: rotate(-60deg) scale(1);
}

.collections__category-item:nth-child(2) .collections__category-icon:hover .collections__category-img {
  transform: rotate(60deg) scale(1);
}

.collections__category-item:nth-child(3) .collections__category-icon:hover .collections__category-img {
  transform: rotate(180deg) scale(1);
}

.collections__category-item:nth-child(4) .collections__category-icon:hover .collections__category-img {
  transform: rotate(-180deg) scale(1);
}

.collections__category-item:nth-child(5) .collections__category-icon:hover .collections__category-img {
  transform: rotate(-60deg) scale(1);
}
*/

/* ===== NEW SVG ICONS STYLES ===== */
/* SVG Icon Container - Fixed wrapper for 4 columns x 2 rows layout */
.collections__category-svg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: var(--color-light-blue-alpha);
  border-radius: var(--radius-full);
  width: 90px;
  height: 90px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  order: 1;
  flex-shrink: 0;
}

/* SVG Icon Image - Fixed sizing without effects */
.collections__category-svg-img {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  pointer-events: none;
  /* Removed transition and filter effects */
}

/* Hover effects removed as requested */

/* Remove background from 6th item (extra category) */
.collections__category-item:nth-child(6) .collections__category-svg-icon {
  background: transparent;
  border-radius: none;
}

.collections__category-title {
  font-family: var(--font-tertiary);
  font-size: 10.8px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-dark-blue-3);
  margin: 12px 0 0 0;
  padding: 0 4px;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 100%;
  word-wrap: break-word;
  width: 100%;
  order: 2;
}
/* .collections__category-title:nth-child(2) {
  top: -10px;
} */
/* .collections__category-title:nth-child(3) {
  top: -10px;
}
.collections__category-title:nth-child(4) {
  top: -10px;
} 
.collections__category-title:nth-child(5) {
  top: -10px;
} */

/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .collections__background-container {
    height: 413px;
  }
  
  .collections__title {
    height: 368px;
  }
  
  .collections__year-badge {
    width: 225px;
    height: 49px;
    right: 125px;
    top: 75px;
  }
  
  .collections__year-text {
    font-size: 24px;
  }
  
  .collections__title-text {
    font-size: 41px;
    width: 315px;
    height: 113px;
    top: 128px;
  }
  
  .collections__title-normal,
  .collections__title-bold {
    font-size: 41px;
  }
  
  .collections__image {
    width: 360px; /* Aumentado para 80% de 450px */
    height: 360px; /* Ajustado para ser quadrado (circular perfeito) */
    left: 90px; /* Movido mais para a direita */
    top: 34px; /* Ajustado para centralizar */
  }
  
  .collections__categories {
    gap: 15px;
    margin-top: calc(var(--spacing-xxl) + 15px);
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  
  .collections__category-icon {
    padding: 26px;
  }
  
  .collections__category-svg-icon {
    padding: 4px;
  }
  
  .collections__category-title {
    font-size: 12.6px;
  }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .collections__background-container {
    height: 338px;
  }
  
  .collections__title {
    height: 368px;
  }
  
  .collections__year-badge {
    width: 180px;
    height: 38px;
    right: 75px;
    top: 60px;
  }
  
  .collections__year-text {
    font-size: 20px;
  }
  
  .collections__title-text {
    font-size: 33px;
    width: 263px;
    height: 90px;
    top: 98px;
  }
  
  .collections__title-normal,
  .collections__title-bold {
    font-size: 33px;
  }
  
  .collections__image {
    width: 270px; /* Aumentado para 80% de 338px */
    height: 270px; /* Ajustado para ser quadrado (circular perfeito) */
    left: 75px; /* Movido mais para a direita */
    top: 34px; /* Ajustado para centralizar */
  }
  
  .collections__categories {
    gap: 26px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  
  .collections__category-icon {
    padding: 21px;
  }
  
  .collections__category-svg-icon {
    padding: 17px;
  }
  
  .collections__category-title {
    font-size: 10.2px;
  }
}

/* Mobile Common Styles (up to 767px) */
@media (max-width: 767px) {
  .collections__background-img {
    display: none !important;
  }
  
  .collections__background-img-mobile {
    display: block !important;
    position: absolute;
    transform: scale(0.75);
    /* top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; */
    z-index: 1;
  }
  
  .collections__title {
    display: none;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .collections__background-container {
    height: auto;
    overflow: visible;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, #CF4E3F 0%, #CF4E3F 50%, var(--color-light-4) 50%, var(--color-light-4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
  }
  
  .collections__background-img {
    display: none !important;
  }
  
  .collections__background-img-mobile {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .collections__title {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 600px;
    padding: var(--spacing-lg) var(--spacing-md);
    margin: 0;
    background: transparent;
    border-radius: 0;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .collections__year-badge {
    position: relative;
    width: 200px;
    height: 45px;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 auto var(--spacing-md);
  }
  
  .collections__year-text {
    font-size: 22px;
  }
  
  .collections__title-text {
    position: relative;
    font-size: 36px;
    width: auto;
    height: auto;
    left: auto;
    right: auto;
    top: auto;
    text-align: center;
    margin: 0 auto;
    max-width: 500px;
    padding: 0 var(--spacing-lg);
  }
  
  .collections__title-normal,
  .collections__title-bold {
    font-size: 36px;
  }
  
  .collections__image {
    position: relative;
    width: 280px; /* Aumentado para manter proporção circular */
    height: 280px; /* Ajustado para ser quadrado (circular perfeito) */
    left: auto;
    right: auto;
    top: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .collections__image-img {
    width: 75%; /* Aumentado de 60% para 75% */
    height: 75%; /* Aumentado de 60% para 75% */
    max-width: 225px; /* Aumentado de 180px para 225px */
    max-height: 225px; /* Aumentado de 180px para 225px */
    object-fit: cover; /* Garante proporção */
  }
  
  .collections__categories {
    gap: 30px;
    margin-top: var(--spacing-xl);
    padding: 0 var(--spacing-md);
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  
  .collections__category-icon {
    padding: 25px;
  }
  
  .collections__category-svg-icon {
    padding: 5px;
  }
  
  .collections__category-title {
    font-size: 12px;
  }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .collections__background-container {
    height: auto;
    overflow: visible;
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    background: #CF4E3F;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .collections__background-img {
    display: none !important;
  }
  
  .collections__background-img-mobile {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .collections__title {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 500px;
    padding: var(--spacing-md) var(--spacing-sm);
    margin: 0;
    background: transparent;
    border-radius: 0;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .collections__year-badge {
    position: relative;
    width: 180px;
    height: 40px;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 auto var(--spacing-sm);
  }
  
  .collections__year-text {
    font-size: 20px;
  }
  
  .collections__title-text {
    position: relative;
    font-size: 30px;
    width: auto;
    height: auto;
    left: auto;
    right: auto;
    top: auto;
    text-align: center;
    margin: 0 auto;
    max-width: 400px;
    padding: 0 var(--spacing-sm);
  }
  
  .collections__title-normal,
  .collections__title-bold {
    font-size: 30px;
  }
  
  .collections__image {
    position: relative;
    width: 240px; /* Aumentado para manter proporção circular */
    height: 240px; /* Ajustado para ser quadrado (circular perfeito) */
    left: auto;
    right: auto;
    top: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .collections__image-img {
    width: 70%; /* Aumentado de 55% para 70% */
    height: 70%; /* Aumentado de 55% para 70% */
    max-width: 190px; /* Aumentado de 150px para 190px */
    max-height: 190px; /* Aumentado de 150px para 190px */
    object-fit: cover; /* Garante proporção */
  }
  
  .collections__categories {
    gap: 25px;
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .collections__category-icon {
    padding: 20px;
  }
  
  .collections__category-svg-icon {
    padding: 18px;
    max-width: 80%;
    min-width: 80px;
  }
  
  .collections__category-title {
    font-size: 10.8px;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .collections__background-container {
    height: auto;
    overflow: visible;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 60vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  
  .collections__image {
    position: relative;
    width: 280px !important;
    height: 280px !important;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .collections__image-img {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 280px;
    object-fit: cover;
  }
  
  .collections__categories {
    gap: 20px;
    margin-top: var(--spacing-md);
    padding: 0 var(--spacing-xs);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .collections__category-item {
    margin-bottom: var(--spacing-sm);
  }
  
  .collections__category-icon {
    padding: 18px;
  }
  
  .collections__category-svg-icon {
    padding: 15px;
    max-width: 80%;
    min-width: 70px;
  }
}

/* Mobile 480px - Larger category icons */
@media (max-width: 480px) {
  .collections__category-svg-icon {
    width: 150px;
    height: 150px;
    min-width: 150px;
    padding: 6px;
  }
  
  .collections__category-svg-img {
    width: 95%;
    height: 95%;
    max-width: 95%;
    max-height: 95%;
  }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
  .collections__background-container {
    height: auto;
    overflow: visible;
    position: relative;
    padding: 0;
    margin: 0;
    min-height: 60vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  
  .collections__image {
    position: relative;
    width: 240px !important;
    height: 240px !important;
    left: auto;
    right: auto;
    top: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .collections__image-img {
    width: 100%;
    height: 100%;
    max-width: 240px;
    max-height: 240px;
    object-fit: cover;
  }
  
  .collections__categories {
    gap: 15px;
    padding: 0 var(--spacing-xs);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .collections__category-icon {
    padding: 15px;
  }
  
  .collections__category-svg-icon {
    width: 135px;
    height: 135px;
    min-width: 135px;
    padding: 5px;
  }
  
  .collections__category-svg-img {
    width: 95%;
    height: 95%;
    max-width: 95%;
    max-height: 95%;
  }
  
  .collections__category-title {
    font-size: 8.4px;
  }
}