/* Stage 2 Main Wholesale CSS boundary.
   Main-only rules will be migrated from Wholesale.html in Stage 3.
   Keep selectors below the module wrapper to avoid global leakage. */
.freshfruit-wholesale-shell .wholesale-main-content {
  min-width: 0;
}

/* Keep the desktop navigation from covering images while the page is scrolled. */
@media (min-width: 1001px) {
  .freshfruit-wholesale-shell > #nav {
    position: absolute;
  }
}

.freshfruit-wholesale-main .wholesale-hero-fruit-image {
  animation: wholesale-hero-fruit-float 5s ease-in-out infinite;
  will-change: translate;
}

@keyframes wholesale-hero-fruit-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

.freshfruit-wholesale-main .rect {
  clip-path: polygon(100% 2.8355%, 99.9363% 2.2848%, 99.7545% 1.7774%, 99.4686% 1.3248%, 99.0928% 0.9389%, 98.6411% 0.6316%, 98.1276% 0.4145%, 97.5663% 0.2996%, 96.9712% 0.2985%, 2.4507% 9.6161%, 1.9454% 9.7111%, 1.48% 9.8871%, 1.063% 10.1353%, 0.7029% 10.4469%, 0.4081% 10.8132%, 0.187% 11.2255%, 0.0482% 11.6751%, 0% 12.1531%, 0% 87.6543%, 0.048% 88.1315%, 0.1865% 88.5804%, 0.4071% 88.9923%, 0.7012% 89.3584%, 1.0605% 89.67%, 1.4766% 89.9183%, 1.9409% 90.0946%, 2.4452% 90.1901%, 96.9658% 99.6952%, 97.5614% 99.6953%, 98.1235% 99.5811%, 98.638% 99.3644%, 99.0906% 99.0571%, 99.4672% 98.671%, 99.7538% 98.2179%, 99.9361% 97.7097%, 100% 97.1582%);
}

.freshfruit-wholesale-main .from-italy-copy__green,
.freshfruit-wholesale-main .from-italy-copy__red {
  font-family: "Helvetica Now Var", Helvetica, Arial, sans-serif;
  text-align: center;
}

.freshfruit-wholesale-main .floating-cta {
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.freshfruit-wholesale-main .floating-cta.is-near-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
}

.freshfruit-wholesale-shell .floating-cta.is-near-footer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) !important;
}

.freshfruit-wholesale-shell #contact.floating-cta {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease, visibility 0s linear 0s, transform .8s ease;
  will-change: opacity, transform;
}

.freshfruit-wholesale-shell #contact.floating-cta.is-near-footer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) !important;
  transition: opacity .8s ease, visibility 0s linear .8s, transform .8s ease;
}

.freshfruit-wholesale-shell .wholesale-footer-hide-target {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease, visibility 0s linear 0s;
  will-change: opacity;
}

.freshfruit-wholesale-shell .wholesale-footer-hide-target.is-near-footer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .8s ease, visibility 0s linear .8s;
}

.freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card .freshfruit-wholesale-phone-circle {
  position: absolute;
  right: -3px;
  bottom: -6px;
  z-index: 50;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50.68px;
  background: var(--phone-circle-color, #FF485B);
  opacity: 1;
}

.freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card a.inline-flex {
  color: #FF485B !important;
}

.freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card a.inline-flex svg path {
  fill: currentColor;
}

.freshfruit-wholesale-shell #contact .relative.z-20 {
  padding: 12px !important;
}

/* Form fields become active when their label contains the focused control. */
.freshfruit-wholesale-shell form label {
  transition: border-color 160ms ease, color 160ms ease;
}

.freshfruit-wholesale-shell form label:focus-within {
  border-bottom-color: #000 !important;
}

.freshfruit-wholesale-shell form label:focus-within > span:first-child {
  color: #000 !important;
}

.freshfruit-wholesale-shell form label:focus-within > span:first-child .text-\[\#FF2C2C\] {
  color: #FF2C2C !important;
}

/* Wholesale product cards: mobile layout matches the compact reference card. */
@media (max-width: 767.98px) {
  .freshfruit-wholesale-shell section[data-figma-section="hero"] {
    margin-bottom: 50% !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card {
    width: 342px !important;
    height: 248px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:first-of-type {
    top: -101px !important;
    width: 202px !important;
    height: 204.434px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:nth-of-type(2) {
    position: relative !important;
    width: 342px !important;
    height: 248px !important;
    padding: 0 20px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:nth-of-type(2) > div.relative.z-40 {
    position: absolute !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 14px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card .freshfruit-wholesale-phone-circle {
    right: 5px !important;
    bottom: 10px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:nth-of-type(2) > img:first-child {
    object-fit: contain !important;
    left: 38px !important;
    top: -2px !important;
    right: auto !important;
    bottom: auto !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card ul li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card ul li span {
    order: 2;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card ul li svg {
    order: 1;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-first,
  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-rest {
    display: block;
    font-family: "Helvetica Now Var", Helvetica, Arial, sans-serif;
    font-style: normal;
    letter-spacing: 0;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-first {
    font-size: 24px;
    font-weight: 400;
    line-height: 100%;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-rest {
    font-size: 30px;
    font-weight: 800;
    line-height: 124%;
  }
}

@media (min-width: 768px) {
  .freshfruit-wholesale-shell #contact [class~="md:w-[292px]"] {
    box-sizing: border-box;
    width: 292px !important;
    height: 200px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .freshfruit-wholesale-shell #contact [class~="md:w-[276px]"] {
    width: 276px !important;
    height: 184px !important;
  }

  .freshfruit-wholesale-shell #contact .relative.z-20 {
    padding: 12px !important;
  }

  .freshfruit-wholesale-shell [data-wholesale-contact-grid="true"] {
    margin-top: 400px !important;
  }

  .freshfruit-wholesale-shell [data-wholesale-contact-grid="true"] #contact-form {
    height: 625px !important;
  }

  .freshfruit-wholesale-shell section[data-figma-section="hero"] {
    margin-bottom: 0 !important;
  }

  .freshfruit-wholesale-shell #wholesale-products {
    margin-top: 249px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card ul li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Helvetica Now Var", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-first,
  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-rest {
    display: block;
    font-family: "Helvetica Now Var", Helvetica, Arial, sans-serif;
    font-style: normal;
    letter-spacing: 0;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-first {
    font-size: 40px;
    font-weight: 400;
    line-height: 132%;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card h3 .freshfruit-wholesale-title-rest {
    font-size: 64px;
    font-weight: 800;
    line-height: 116%;
    text-transform: capitalize;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card {
    width: 560px !important;
    height: 596px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:first-of-type {
    top: 2px !important;
    width: 332px !important;
    height: 336px !important;
    min-width: 332px !important;
    max-width: 332px !important;
    min-height: 336px !important;
    max-height: 336px !important;
    flex: 0 0 332px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:nth-of-type(2) {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 560px !important;
    height: 416px !important;
    padding: 156px 33px 0 !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:nth-of-type(2) > div.relative.z-40 {
    position: absolute !important;
    left: 33px !important;
    right: 33px !important;
    bottom: 30px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card .freshfruit-wholesale-phone-circle {
    right: -3px !important;
    bottom: -6px !important;
  }

  .freshfruit-wholesale-shell #wholesale-products .freshfruit-wholesale-product-card > div:nth-of-type(2) > img:first-child {
    object-fit: none !important;
    left: 113px !important;
    top: 53px !important;
    right: auto !important;
    bottom: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .freshfruit-wholesale-main .wholesale-hero-fruit-image {
    animation: none;
    translate: 0 0;
  }
}

/* Source breakpoints retained for the upcoming faithful migration. */
@media (max-width: 499px) { }
@media (min-width: 500px) and (max-width: 767px) { }
@media (min-width: 768px) and (max-width: 1023.98px) { }
@media (min-width: 1024px) { }
