/* Bento baseline system */

.ceb-bento-layout {
  width: 100%;
  max-width: none;
  padding-inline: clamp(14px, 2vw, 30px);
  box-sizing: border-box;
}

.ceb-bento-grid,
.bento-grid,
.ceb-bento-home__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(12px, 1.35vw, 20px);
  align-items: start;
  width: 100%;
}

.ceb-bento-grid > *,
.bento-grid > *,
.ceb-bento-home__grid > * {
  min-width: 0;
}

.ceb-bento-tile,
.bento-tile {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(650px 300px at 12% 0%, rgba(18, 179, 165, 0.08), transparent 62%),
    radial-gradient(560px 260px at 90% 8%, rgba(217, 170, 95, 0.09), transparent 66%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: clamp(14px, 1.8vw, 22px);
  overflow: clip;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.ceb-bento-tile::after,
.bento-tile::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 179, 165, 0.5), rgba(217, 170, 95, 0.4), transparent);
  opacity: 0.8;
}

.ceb-bento-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: clamp(16px, 3vw, 36px);
}

.ceb-bento-home.alignfull,
.ceb-bento-home__frame.alignwide,
.ceb-bento-home__frame {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: clamp(14px, 2vw, 30px);
  box-sizing: border-box;
}

.ceb-bento-home__kicker {
  margin: 0 0 10px;
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 244, 249, 0.72);
}

.ceb-bento-eyebrow {
  margin: 0 0 8px;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 255, 248, 0.84);
}

.ceb-bento-title {
  font-size: clamp(30px, 5.6vw, 74px);
  line-height: 0.96;
  margin: 0 0 12px;
}

.ceb-bento-home .ceb-bento-home__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 20px);
}

.ceb-bento-home .ceb-bento-home__grid > * {
  margin: 0 !important;
  min-width: 0;
}

/* desktop span rhythm */
.tile-sm,
.tile-1x1,
.ceb-bento-home .ceb-bento-tile--featured,
.ceb-bento-home .ceb-bento-tile--quickshop,
.ceb-bento-home .ceb-bento-tile--build-set,
.ceb-bento-home .ceb-bento-tile--shipping-progress,
.ceb-bento-home .ceb-bento-tile--categories,
.ceb-bento-home .ceb-bento-tile--lookbook,
.ceb-bento-home .ceb-bento-tile--story,
.ceb-bento-home .ceb-bento-tile--proof,
.ceb-bento-home .ceb-bento-tile--why-two,
.ceb-bento-home .ceb-bento-tile--newsletter {
  grid-column: span 4;
}

.tile-md,
.tile-2x1,
.ceb-bento-home .ceb-bento-tile--complete-fit,
.ceb-bento-home .ceb-bento-tile--support {
  grid-column: span 8;
}

.tile-lg,
.tile-2x2,
.ceb-bento-home .ceb-bento-tile--hero {
  grid-column: span 8;
}

.tile-xl {
  grid-column: span 12;
}

.tile-sm-tall,
.tile-1x2 {
  grid-column: span 4;
  grid-row: span 2;
}

.ceb-bento-home .ceb-bento-tile--hero {
  min-height: clamp(360px, 44vw, 560px);
  display: grid;
  align-content: end;
}

.ceb-bento-home .wp-block-buttons {
  margin-top: 8px;
}

.ceb-bento-home .wp-block-buttons .wp-block-button {
  margin: 0 10px 10px 0;
}

.ceb-bento-home .ceb-add-on {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Fit pair cards */
.ceb-bento-home .ceb-fit-pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ceb-bento-home .ceb-fit-pair {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  padding: 12px;
}

.ceb-bento-home .ceb-fit-pair h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  margin-bottom: 8px;
}

.ceb-bento-home .ceb-fit-pair p {
  margin-bottom: 10px;
}

/* Bundle builder */
.ceb-bundle-builder {
  display: grid;
  gap: 10px;
}

.ceb-bundle-builder fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.ceb-bundle-builder label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.ceb-bundle-builder label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.ceb-bundle-builder label span {
  color: rgba(200, 255, 247, 0.9);
  font-weight: 700;
}

.ceb-bundle-builder__status,
.ceb-bundle-builder__total,
.ceb-bundle-builder__savings {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
}

.ceb-bundle-builder__total {
  font-weight: 700;
  color: rgba(215, 255, 249, 0.96);
}

.ceb-bundle-builder__savings {
  color: rgba(237, 196, 129, 0.96);
}

.ceb-bundle-builder__cta {
  width: 100%;
}

/* Free shipping tile */
.ceb-free-ship {
  display: grid;
  gap: 10px;
}

.ceb-free-ship h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
}

.ceb-free-ship__text,
.ceb-free-ship__meta {
  margin: 0;
}

.ceb-free-ship__track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ceb-free-ship__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(18, 179, 165, 0.95), rgba(217, 170, 95, 0.92));
  transition: width 260ms ease;
}

/* Woo in tiles */
.ceb-bento-home .woocommerce,
.ceb-bento-home .wc-block-components-product-price,
.ceb-bento-home .wc-block-grid {
  min-width: 0;
}

.ceb-bento-home .woocommerce ul.products,
.ceb-bento-home .woocommerce-page ul.products {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ceb-bento-home .woocommerce ul.products li.product,
.ceb-bento-home .woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.ceb-bento-home .woocommerce ul.products li.product a img,
.ceb-bento-home .woocommerce-page ul.products li.product a img {
  width: 100%;
  height: auto;
}

.ceb-bento-home .woocommerce ul.products li.product .button,
.ceb-bento-home .woocommerce-page ul.products li.product .button {
  width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
  .ceb-bento-grid,
  .bento-grid,
  .ceb-bento-home__grid,
  .ceb-bento-home .ceb-bento-home__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .tile-sm,
  .tile-md,
  .tile-sm-tall,
  .tile-1x1,
  .tile-2x1,
  .tile-1x2,
  .ceb-bento-home .ceb-bento-tile--featured,
  .ceb-bento-home .ceb-bento-tile--quickshop,
  .ceb-bento-home .ceb-bento-tile--build-set,
  .ceb-bento-home .ceb-bento-tile--shipping-progress,
  .ceb-bento-home .ceb-bento-tile--categories,
  .ceb-bento-home .ceb-bento-tile--lookbook,
  .ceb-bento-home .ceb-bento-tile--story,
  .ceb-bento-home .ceb-bento-tile--proof,
  .ceb-bento-home .ceb-bento-tile--why-two,
  .ceb-bento-home .ceb-bento-tile--newsletter {
    grid-column: span 4;
  }

  .tile-lg,
  .tile-xl,
  .tile-2x2,
  .ceb-bento-home .ceb-bento-tile--hero,
  .ceb-bento-home .ceb-bento-tile--complete-fit,
  .ceb-bento-home .ceb-bento-tile--support {
    grid-column: span 8;
  }

  .ceb-bento-home .ceb-fit-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ceb-bento-layout,
  .ceb-bento-home,
  .ceb-bento-home__frame {
    padding-inline: 10px;
  }

  .ceb-bento-grid,
  .bento-grid,
  .ceb-bento-home__grid,
  .ceb-bento-home .ceb-bento-home__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ceb-bento-grid > *,
  .bento-grid > *,
  .ceb-bento-home__grid > *,
  .tile-sm,
  .tile-md,
  .tile-lg,
  .tile-xl,
  .tile-sm-tall,
  .tile-1x1,
  .tile-2x1,
  .tile-2x2,
  .tile-1x2,
  .ceb-bento-home .ceb-bento-home__grid > * {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ceb-bento-home .ceb-bento-tile--hero {
    min-height: 0;
  }

  .ceb-bento-home .ceb-fit-pairs,
  .ceb-bento-home .woocommerce ul.products,
  .ceb-bento-home .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }
}

/* 4k readability */
@media (min-width: 1800px) {
  .ceb-bento-layout,
  .ceb-bento-home__frame {
    padding-inline: clamp(28px, 3.6vw, 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ceb-bento-layout * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
