/* Table of contents: 1. Component 2. Responsive 3. Accessibility */
.food26-product-shelf { --f26-gap: 28px; }
.food26-product-shelf__row { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--f26-gap, 28px); list-style: none; }
/* The line the tags hang from */
.food26-product-shelf__row::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px; background: color-mix(in srgb, var(--inoforest-color-heading, #2b1a12) 22%, transparent); border-radius: 999px; }
.food26-product-shelf__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.food26-product-shelf__stage { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 300px; margin-block-end: 20px; padding-block-start: 80px; }
.food26-product-shelf__stage::after {
  content: ""; position: absolute; inset-block-end: -20px; inset-inline: calc(var(--f26-gap, 28px) / -2 - 1px);
  height: 20px;
  background: linear-gradient(var(--inoforest-custom-warm, #f3e9dc), color-mix(in srgb, var(--inoforest-custom-warm, #f3e9dc) 72%, var(--inoforest-color-heading, #2b1a12)));
  box-shadow: 0 22px 26px -16px color-mix(in srgb, #2b1a12 40%, transparent);
}
.food26-product-shelf__item:first-child .food26-product-shelf__stage::after { inset-inline-start: 0; border-start-start-radius: 6px; border-end-start-radius: 6px; }
.food26-product-shelf__item:last-child .food26-product-shelf__stage::after { inset-inline-end: 0; border-start-end-radius: 6px; border-end-end-radius: 6px; }
.food26-product-shelf__box {
  position: relative; z-index: 1;
  display: block; width: 78%; aspect-ratio: 1; overflow: hidden;
  background: #fff;
  border-radius: 18px 18px 4px 4px;
  box-shadow: 0 12px 24px -12px color-mix(in srgb, #2b1a12 35%, transparent);
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0ms);
}
.food26-product-shelf__item:nth-child(2) .food26-product-shelf__box { width: 88%; }
.food26-product-shelf__item:nth-child(3) .food26-product-shelf__box { width: 62%; }
.food26-product-shelf__item:nth-child(4) .food26-product-shelf__box { width: 74%; }
.food26-product-shelf__item:nth-child(5) .food26-product-shelf__box { width: 56%; }
.food26-product-shelf__box img { width: 100%; height: 100%; object-fit: cover; }
.food26-product-shelf__item:is(:hover, :focus-within) .food26-product-shelf__box { transform: translateY(-10px); }
.food26-product-shelf__tag {
  position: absolute; inset-block-start: 0; inset-inline-end: 8%; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  rotate: -5deg;
  transform-origin: 50% 0;
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--d, 0ms);
}
.food26-product-shelf__item:nth-child(even) .food26-product-shelf__tag { inset-inline-end: auto; inset-inline-start: 8%; rotate: 4deg; }
.food26-product-shelf__tag::before { content: ""; width: 1.5px; height: 44px; background: color-mix(in srgb, var(--inoforest-color-heading, #2b1a12) 40%, transparent); }
.food26-product-shelf__tag .price {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 14px 9px;
  font-weight: 700; line-height: 1.15;
  color: #fff;
  background: var(--inoforest-color-primary, #b23a1e);
  border-radius: 8px 8px 12px 12px;
  box-shadow: 0 8px 16px -8px color-mix(in srgb, #2b1a12 45%, transparent);
}
.food26-product-shelf__tag .price::before { content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: 50%; width: 6px; height: 6px; margin-inline-start: -3px; background: #fff; border-radius: 50%; }
.food26-product-shelf__tag :is(del, ins, .amount) { color: inherit; }
.food26-product-shelf__tag del { font-size: 0.75em; font-weight: 500; opacity: 0.8; }
.food26-product-shelf__tag ins { text-decoration: none; }
.food26-product-shelf[data-f26-tag-swing="true"] .food26-product-shelf__item:is(:hover, :focus-within) .food26-product-shelf__tag { animation: food26-shelf-tag-swing 1.6s ease-out; }
.food26-product-shelf__item:nth-child(even):is(:hover, :focus-within) .food26-product-shelf__tag { animation-name: food26-shelf-tag-swing-even; }
@keyframes food26-shelf-tag-swing { 15% { rotate: 14deg; } 35% { rotate: -12deg; } 55% { rotate: 7deg; } 75% { rotate: -6deg; } }
@keyframes food26-shelf-tag-swing-even { 15% { rotate: -13deg; } 35% { rotate: 12deg; } 55% { rotate: -6deg; } 75% { rotate: 6deg; } }
.food26-product-shelf__title { margin: 22px 0 12px; font-size: 1.05rem; line-height: 1.3; }
.food26-product-shelf__title a:hover { color: var(--inoforest-color-primary, #b23a1e); }
.food26-product-shelf[data-f26-show-cart="false"] .button { display: none; }
.food26-product-shelf.is-pending :is(.food26-product-shelf__box, .food26-product-shelf__tag) { opacity: 0; transform: translateY(-90px); }






/* Component reset and buttons. */
.food26-product-shelf :is(ul,ol) { list-style:none; margin:0; padding:0; }
.elementor .food26-product-shelf img { height:100%; width:100%; object-fit:cover; }
.food26-product-shelf .button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:54px; padding:14px 30px; border:2px solid var(--inoforest-color-primary,#b23a1e); border-radius:999px; background:var(--inoforest-color-primary,#b23a1e); color:#fff; font:700 .975rem/1.2 var(--inoforest-font-body-family,sans-serif); text-decoration:none; }
.food26-product-shelf .button:is(:hover,:focus-visible) { color:#fff; background:var(--inoforest-custom-primary-dark,#8e2c15); border-color:var(--inoforest-custom-primary-dark,#8e2c15); }
.food26-product-shelf :is(a,button,input):focus-visible { outline:3px solid var(--inoforest-color-primary,#b23a1e); outline-offset:4px; }


.food26-product-shelf__title a { color:var(--inoforest-color-heading,#2b1a12); }
.food26-product-shelf__row:focus-visible { outline:3px solid var(--inoforest-color-primary,#b23a1e); outline-offset:6px; }


/* Preserve intrinsic sizing inside native flex containers; Advanced width still takes precedence. */
.elementor-widget-food26-product-shelf:not([class*="elementor-widget__width-"]) { width:100%; }
.elementor .food26-product-shelf img { display:block; }
/* WooCommerce loop actions match the approved shelf's outline buttons. */
.food26-product-shelf .button { min-height:48px; padding:12px 24px; font-size:.925rem; color:var(--inoforest-color-heading,#2b1a12); background:#fff; border-color:var(--inoforest-color-border,#ece2d6); }
.food26-product-shelf .button:is(:hover,:focus-visible) { color:var(--inoforest-color-primary,#b23a1e); background:#fff; border-color:var(--inoforest-color-primary,#b23a1e); }

/* Responsive and reduced-motion alternatives. */



/* WooCommerce's visually hidden sale-price labels stay inside their rotated tag in RTL too. */
.food26-product-shelf .price .screen-reader-text { inset:0; }

/* Responsive and reduced-motion alternatives. */
@media (max-width: 1199px) {
  .food26-product-shelf__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; padding-block-end: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .food26-product-shelf__item { scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .food26-product-shelf { --f26-gap: 18px; }
  .food26-product-shelf__row { grid-auto-columns: 62%; }
  .food26-product-shelf__stage { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
.food26-product-shelf *, .food26-product-shelf *::before, .food26-product-shelf *::after { animation: none; transition: none; }
}
@media(max-width:1199px) { .food26-product-shelf .food26-product-shelf__row { padding-block-end:12px; } }
