/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  tab-size: 4; /* 3 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #c5c5c5; }
.bg-white { background-color: #FFFFFF; }
.bg-gray-200 { background-color: #E5E7EB; }
.bg-green-500 { background-color: #22C55E; }
.bg-green-600 { background-color: #16A34A; }
.bg-blue-500 { background-color: #3B82F6; }
.bg-gray-400 {background-color: #9CA3AF}
.bg-gray-600 {background-color: #4B5563}

.text-white { color: #FFFFFF; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-600 { color: #4B5563; }
.text-gray-900 { color: #111827; }
.text-green-500 { color: #22C55E; }
.text-green-600 { color: #16A34A; }
.text-red-500 { color: #EF4444; }

.max-w-7xl { max-width: 80rem; }
.w-full { width: 100%; }
.h-48 { height: 12rem; }
.w-8 { width: 32px; }
.h-8 { height: 32px; }
.rounded-full { border-radius: 99999px; }
.text-sm { font-size: var(--font-size-small); }
.flex-col { flex-direction: column; }
.w-20 { width: 80px; }
.h-0_5 { height: 2px; }
.object-cover { object-fit: cover; }
.absolute { position: absolute; }
.top-2 { top: 8px; }
.right-2 { right: 8px; }
.left-2 { left: 8px; }
.top-4 { top: 16px; }
.right-4 { right: 16px; }
.w-4 { width: 16px; }
.h-4 { height: 16px; }
.w-5 { width: 20px; }
.w-130 { width: 130px; }
.h-5 { height: 20px; }
.z-1000 { z-index: 1000; }
.bg-red-500 { background-color: oklch(63.7% 0.237 25.331) }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.lh-0{
  line-height: 0;
}
@keyframes anfd_animate_spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: anfd_animate_spin 1s linear infinite;
}
.block{
  display: block;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.disable-btn { opacity: 0.2;  cursor: not-allowed !important; visibility: visible !important; }
.fixed { position: fixed; }
.relative { position: relative; }

.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-lg { font-size: 1rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; visibility: hidden; }

.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.hover\:bg-green-600:hover { background-color: #16A34A; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.step-bar{
  position: absolute;
  width: 80px;
  height: 2px;
  margin: 0 auto;
  left: 90px;
  top: 15px;
}
.product-type-an_product_kit .added_to_cart.wc-forward{
  display: none;
}
/* Grid Responsivo */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.JS__step-selection{
  font-weight: 700;
  display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2em;
}
/* Classes específicas do componente */
.ingredient-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--bg-color);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  background-color: var(--bg-color);
  border-radius: var(--bradius-ele);
    background-color: var(--bg-color);
    color: var(--text-color);
}
.iten-step-contet{
  margin-bottom: .5rem;
}
.ingredient-card p{
  margin-bottom: 0;
  font-size: .68rem;
  line-height: 1.2em;
}
.ingredient-card.selected {
  border: 1px solid var(--feed-blue-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.ingredient-card .price{
  margin-top: auto!important;
}
.ingredient-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ingredient-card:not(.disabled):hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ingredient-card img {
width: 160px;
height: 160px;
object-fit: cover;
}

.check-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--feed-blue-color);
  border-radius: 9999px;
  padding: 0.25rem;
  color: white;
}

.step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-line {
  width: 5rem;
  height: 0.125rem;
  margin: 0 0.5rem;
}

/* Ajustes para compatibilidade com temas WooCommerce */
.woocommerce div.product {
  margin: 0;
  padding: 0;
}

.woocommerce-page div.product div.summary,
.woocommerce-page div.product div.images {
  display: none;
}

.anfd-kit-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.cart-modal-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 28rem;
    background-color: white;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-footer {
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 1rem;
}

.remove-cart-item {
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
}

.remove-cart-item:hover {
    text-decoration: underline;
}

/* Animation classes */
.translate-x-full {
    transform: translateX(100%);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
@media (max-width: 655px) {
  .anfd-kit-container .mb-12{
    margin-bottom: 1rem!important;
  }
.step-bar, .text-step{
    display: none!important;
  }
  .JS__step-selection .text-step{
    display: block!important;
    position: absolute;
    left: 0;
    right: 0;
    
  }
  .compra-fixo{
    position: fixed;
    z-index: 99;
    bottom: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    width: 100vw;
    left: 0;
    background-color: var(--bg-gray);
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
  }
  .compra-fixo p.mb-2{
    margin-bottom: 0!important;
  }
}
