/* =========================================================
   HOME PRODUCTS / MENU CATEGORIES
   ========================================================= */

.homeProducts {
  width: 100%;
  padding: 75px 0;
  background: #ffffff;
}

.homeProductsInner {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* =========================================================
   HEADER
   ========================================================= */

.homeProductsHeader {
  width: 100%;
  margin-bottom: 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.homeProductsHeading {
  min-width: 0;
}

.homeProductsTitle {
  margin: 0;

  color: var(--colorText, #28221c);

  font-family: var(--fontTitle);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}

/* =========================================================
   HEADER BUTTON
   ========================================================= */

.homeProductsButton {
  min-height: 43px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  flex: 0 0 auto;

  border: 1px solid #818777;
  border-radius: 6px;

  background: transparent;
  color: #505a46;

  font-family: var(--fontText);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;

  text-decoration: none;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.homeProductsButton svg {
  width: 16px;
  height: 16px;

  flex: 0 0 auto;

  transition: transform 0.3s ease;
}

/* =========================================================
   GRID
   ========================================================= */

.homeProductsGrid {
  width: 100%;
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* =========================================================
   CATEGORY CARD
   ========================================================= */

.homeProductsCard {
  min-width: 0;
  height: 100%;
}

.homeProductsCardLink {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-radius: 10px;
  background: #f7f2e8;

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    background-color 0.35s ease;
}

/* =========================================================
   CARD IMAGE
   ========================================================= */

.homeProductsCardImage {
  position: relative;

  width: 100%;
  aspect-ratio: 1.14 / 1;

  overflow: hidden;

  border-radius: 10px 10px 5px 5px;

  background: #ded3c1;
}

.homeProductsCardImageFile {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;

  object-fit: cover;

  transform: scale(1);

  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.6s ease;
}

.homeProductsCardImagePlaceholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: #e8dfd0;
  color: #8b725f;

  font-family: var(--fontTitle);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.homeProductsCardContent {
  width: 100%;
  min-height: 84px;

  padding: 16px 16px 17px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  flex: 1 1 auto;
}

.homeProductsCardText {
  min-width: 0;
  flex: 1 1 auto;
}

.homeProductsCardTitle {
  margin: 0 0 8px;

  color: #68452f;

  font-family: var(--fontText);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;

  text-transform: uppercase;

  transition: color 0.3s ease;
}

.homeProductsCardDescription {
  margin: 0;

  color: #8d8579;

  font-family: var(--fontText);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* =========================================================
   CARD ARROW
   ========================================================= */

.homeProductsCardArrow {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 36px;

  border: 1px solid #ae8c72;
  border-radius: 6px;

  background: transparent;
  color: #8d6246;

  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.homeProductsCardArrow svg {
  width: 17px;
  height: 17px;

  transition: transform 0.35s ease;
}

/* =========================================================
   HOVER EFFECTS
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  .homeProductsButton:hover {
    transform: translateY(-2px);

    background: #505a46;
    color: #ffffff;
    border-color: #505a46;
  }

  .homeProductsButton:hover svg {
    transform: translateX(3px);
  }

  .homeProductsCardLink:hover {
    transform: translateY(-6px);

    background: #f5ede0;

    box-shadow: 0 18px 38px rgba(52, 37, 25, 0.12);
  }

  .homeProductsCardLink:hover .homeProductsCardImageFile {
    transform: scale(1.085);

    filter: saturate(1.1) contrast(1.035);
  }

  .homeProductsCardLink:hover .homeProductsCardTitle {
    color: #9b6340;
  }

  .homeProductsCardLink:hover .homeProductsCardArrow {
    transform: translateX(2px);

    background: #8d6246;
    border-color: #8d6246;
    color: #ffffff;
  }

  .homeProductsCardLink:hover .homeProductsCardArrow svg {
    transform: translateX(2px);
  }
}

/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.homeProductsCardLink:focus-visible,
.homeProductsButton:focus-visible {
  outline: 2px solid #8d6246;
  outline-offset: 4px;
}

/* =========================================================
   LAPTOP - 1100px
   ========================================================= */

@media (max-width: 1100px) {
  .homeProducts {
    padding: 60px 0;
  }

  .homeProductsTitle {
    font-size: 42px;
  }

  .homeProductsGrid {
    gap: 14px;
  }

  .homeProductsCardContent {
    padding: 13px 12px 15px;
    gap: 8px;
  }

  .homeProductsCardTitle {
    font-size: 13px;
  }

  .homeProductsCardArrow {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

/* =========================================================
   TABLET - 820px
   ========================================================= */

@media (max-width: 820px) {
  .homeProducts {
    padding: 50px 0;
  }

  .homeProductsTitle {
    font-size: 38px;
  }

  .homeProductsHeader {
    margin-bottom: 26px;
  }

  .homeProductsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .homeProductsCardImage {
    aspect-ratio: 1.3 / 1;
  }

  .homeProductsCardContent {
    min-height: 85px;
    padding: 16px;
  }

  .homeProductsCardTitle {
    font-size: 15px;
  }

  .homeProductsCardDescription {
    font-size: 12px;
  }

  .homeProductsCardArrow {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

/* =========================================================
   MOBILE - 560px
   ========================================================= */

@media (max-width: 560px) {
  .homeProducts {
    padding: 40px 0;
  }

  .homeProductsHeader {
    margin-bottom: 22px;

    align-items: center;
    gap: 12px;
  }

  .homeProductsTitle {
    font-size: 32px;
  }

  .homeProductsButton {
    min-height: 38px;
    padding: 0 10px;

    gap: 4px;

    font-size: 10px;
  }

  .homeProductsButton svg {
    width: 14px;
    height: 14px;
  }

  .homeProductsGrid {
    gap: 10px;
  }

  .homeProductsCardLink {
    border-radius: 8px;
  }

  .homeProductsCardImage {
    aspect-ratio: 1 / 0.93;
    border-radius: 8px 8px 4px 4px;
  }

  .homeProductsCardContent {
    min-height: 88px;
    padding: 12px 10px;

    gap: 5px;
  }

  .homeProductsCardTitle {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.15;
  }

  .homeProductsCardDescription {
    font-size: 10px;
    line-height: 1.35;
  }

  .homeProductsCardArrow {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 5px;
  }

  .homeProductsCardArrow svg {
    width: 14px;
    height: 14px;
  }
}

/* =========================================================
   SMALL MOBILE - 390px
   ========================================================= */

@media (max-width: 390px) {
  .homeProductsTitle {
    font-size: 28px;
  }

  .homeProductsButton {
    font-size: 9px;
  }

  .homeProductsCardContent {
    padding: 10px 8px;
  }

  .homeProductsCardTitle {
    font-size: 11px;
  }

  .homeProductsCardDescription {
    font-size: 9px;
  }

  .homeProductsCardArrow {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .homeProductsButton,
  .homeProductsButton svg,
  .homeProductsCardLink,
  .homeProductsCardImageFile,
  .homeProductsCardTitle,
  .homeProductsCardArrow,
  .homeProductsCardArrow svg {
    transition: none !important;
  }
}
