:root {
      --primary: #048E4D;
      --primary-dark: #048E4D;
      --secondary: #111827;
      --muted: #6b7280;
      --light-bg: #fff7f2;
      --card-bg: rgba(255, 255, 255, 0.86);
      --border-soft: rgba(17, 24, 39, 0.08);
      --shadow-soft: 0 20px 55px rgba(17, 24, 39, 0.12);
      --radius-xl: 28px;
    }

    * {
      box-sizing: border-box;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    html,body {
      font-family: 'Inter', sans-serif;
      color: var(--secondary);
      background:
        radial-gradient(circle at top left, rgba(194, 240, 157, 0.16), transparent 35%),
        linear-gradient(180deg, #fffaf6 0%, #ffffff 42%, #fff7f2 100%);
      overflow-x: hidden;
      width: 100%;
      max-width: 100%;              
    }

    .navbar {
      background: rgba(255, 255, 255, 0.76);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border-soft);      
    }
    
    .navbar-brand {
      font-weight: 800;
      letter-spacing: -0.04em;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;      
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      box-shadow: 0 12px 24px rgba(109, 230, 53, 0.28);
    }

    .btn-primary-custom {
      background: linear-gradient(135deg, var(--primary), #11BBB2);
      border: 0;
      color: #fff;
      font-weight: 700;
      border-radius: 999px;
      padding: 0.85rem 1.25rem;
      box-shadow: 0 16px 30px rgba(4,142,77, 0.28);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .btn-primary-custom:hover {
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 22px 42px rgba(109, 230, 53, 0.28);
    }

    .btn-primary-custom:disabled,
    .btn-primary-custom.disabled {
      background: linear-gradient(135deg, #9ca3af, #6b7280);
      border: 0;
      color: #f3f4f6;
      font-weight: 700;
      border-radius: 999px;
      padding: 0.85rem 1.25rem;
      box-shadow: 0 16px 30px rgba(107, 114, 128, 0.25);
      cursor: not-allowed;
      opacity: 0.85;
      transform: none;
    }

    .btn-primary-custom:disabled:hover,
    .btn-primary-custom.disabled:hover {
      color: #f3f4f6;
      transform: none;
      box-shadow: 0 16px 30px rgba(107, 114, 128, 0.25);
      background: linear-gradient(135deg, #9ca3af, #6b7280);
    }

    .btn-ghost {
      border: 1px solid var(--border-soft);
      background: #fff;
      border-radius: 999px;
      padding: 0.85rem 1.25rem;
      font-weight: 700;
      color: var(--secondary);
    }

    .hero {
      min-height: 92vh;
      display: flex;
      align-items: center;
      padding-top: 102px;
      position: relative;
    }

    .hero-title {
      font-size: clamp(2.6rem, 6vw, 5.6rem);
      line-height: 0.95;
      font-weight: 800;
      letter-spacing: -0.075em;
    }

    .hero-title span {
      color: var(--primary);
      font-family: 'Playfair Display', serif;
      letter-spacing: -0.045em;
    }

    .hero-subtitle {
      color: var(--muted);
      font-size: 1.1rem;
      max-width: 620px;
    }

    .floating-card {
      background: var(--card-bg);
      border: 1px solid rgba(255, 255, 255, 0.85);
      box-shadow: var(--shadow-soft);
      border-radius: var(--radius-xl);
      backdrop-filter: blur(20px);
    }

    .device-preview {
      position: relative;
      padding: 1rem;
      border-radius: 38px;
      background: linear-gradient(145deg, #202938, #111827);
      box-shadow: 0 35px 85px rgba(17, 24, 39, 0.34);
      transform: rotate(1deg);
    }
    .device-screen {
      background: #fff;
      border-radius: 30px;
      min-height: 620px;
      overflow: hidden;
    }


    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      background: #ecfdf5;
      color: #047857;
      border-radius: 999px;
      padding: 0.45rem 0.8rem;
      font-size: 0.82rem;
      font-weight: 700;
    }


    .category-chip {
      border: 1px solid var(--border-soft);
      border-radius: 999px;
      padding: 0.62rem 1rem;
      background: #fff;
      color: var(--secondary);
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
      white-space: nowrap;
    }


    .category-chip.active,
    .category-chip:hover {
      background: var(--secondary);
      color: #fff;
      transform: translateY(-1px);
    }


    .product-card {
      border: 1px solid var(--border-soft);
      border-radius: 24px;
      background: #fff;
      overflow: hidden;
      height: 100%;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .product-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 24px 55px rgba(17, 24, 39, 0.12);
    }

    .product-img {
      height: 190px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;      
      object-fit: cover;
      overflow: hidden;
      position: relative;      
    }

    .badge-floating {
      position: absolute;
      top: 14px;
      left: 14px;
      border-radius: 999px;
      padding: 0.45rem 0.7rem;
      font-weight: 800;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(10px);
    }


    .price {
      color: #F30;
      font-weight: 800;
      font-size: 1.25rem;
    }

    .qty-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border-soft);
      background: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .section-title {
      font-size: clamp(2rem, 4vw, 3.4rem);
      font-weight: 800;
      letter-spacing: -0.06em;
      padding-top: 20px;
    }  

    #meupedido {
      font-weight: 800;
      letter-spacing: -0.06em;
      padding: 19px 0;
    }

    .navbar-dark .navbar-nav .nav-link {
      padding: 0 8px 10px 8px;
      text-decoration: none;
      display: inline-block;
      color: #fff;      
      font-weight: 700;
      font-size: 15px;
      text-transform: uppercase;
      outline: none;
    }

    .feature-icon {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--light-bg);
      color: var(--primary-dark);
      font-size: 1.45rem;
    }

    .cart-panel {
      position: sticky;
      top: 100px;
      border-radius: var(--radius-xl);
      border: 1px solid var(--border-soft);
      background: #fff;
      box-shadow: var(--shadow-soft);
    }

    .checkout-step {
      position: relative;
      padding-left: 3.6rem;
    }
    .checkout-step::before {
      content: attr(data-step);
      position: absolute;
      left: 0;
      top: 0;
      width: 42px;
      height: 42px;
      border-radius: 15px;
      background: var(--secondary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
    }

    .footer {
      background: #111827;
      color: #fff;
      border-radius: 42px 42px 0 0;
    }

    .footer a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
    }

    .footer a:hover {
      color: #fff;
    }

    @media (max-width: 991.98px) {
      .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
      }

      .device-preview {
        transform: none;
        margin-top: 2.5rem;
      }


      .device-screen {
        min-height: auto;
      }

      .cart-panel {
        position: static;
      }
    }

.qty-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    color: #111;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.qty-btn:hover {
    background: #111;
    color: #fff;
}

.qty-btn:active {
    transform: scale(.94);
}

.product-modal-image {
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f8f9fa;
}

.price-box {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1.25rem;
    padding: 1rem;
}

@media (max-width: 576px) {
    .product-modal-image {
        height: auto;
    }

    .price-box h4 {
        font-size: 1.15rem;
    }
}

.modal-qty-control {
    min-width: 118px;
    height: 52px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    padding: 0 .35rem;
    flex-shrink: 0;
}

.modal-qty-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: all .2s ease;
}

.modal-qty-btn:hover {
    background: #111;
    color: #fff;
}

.modal-qty-btn.active {
    background: #111;
    color: #fff;
}

.modal-qty-number {
    min-width: 24px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
}

.product-modal-footer{
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
    z-index: 5;
}


@media (max-width: 575.98px) {
    .product-modal-footer {
        padding: .85rem !important;
        padding-bottom: calc(.85rem + env(safe-area-inset-bottom)) !important;
    }

    .modal-qty-control {
        min-width: 106px;
        height: 48px;
    }

    .modal-qty-btn {
        width: 30px;
        height: 30px;
        font-size: .8rem;
    }

    .modal-qty-number {
        font-size: .95rem;
    }

    #btnAdicionarPedido {
        font-size: .9rem;
        padding-top: .85rem !important;
        padding-bottom: .85rem !important;
    }
}

.product-modal-header-image {
    position: relative;
    flex-shrink: 0;
}

.product-modal-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f8f9fa;
}

.product-modal-close {
    
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    padding: 12px;
}

.product-modal-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-modal-close:focus {
    box-shadow: 0 0 0 .25rem rgba(255, 193, 7, .35);
}

.product-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;      /* altura máxima em telas maiores */
}

/* Em mobile, o modal-fullscreen já força 100% */
@media (max-width: 575.98px) {
  .product-modal-content {
    height: 100%;
    max-height: none;
  }
}

/* Transforma o <form> em um flex column para distribuir seus filhos */
.product-modal-content > form {
  display: flex;
  flex-direction: column;
  height: 100%;          /* herda a altura do container pai */
}

/* Corpo do modal: cresce, pode encolher e rola internamente */
.product-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;   
  background: #fff;      /* importante para permitir encolhimento */
}

.cart-item-card {
  max-width: 100%;
  overflow: hidden;
}
.min-w-0 {
  min-width: 0 !important;
}
/* --------------------- menu icon 3 stripes e o x ---------------*/
.hamburger__toggle{
  display:block;
  position: relative;  
  width: 32px; 
  height: 32px;     
  border:none;
  margin-right: 7px;
}
/*retira a borda em volta do botÃ£o do menu*/
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}
/* give the span element and related pseudo-elements the appearance of white lines */
.hamburger__icon,
.hamburger__icon::before,
.hamburger__icon::after {
  position: absolute;
  width: 18px; 
  height: 3px;  
  background-color: #6b7280;
  border:none;
}

/* center the span element in the middle of its containing button */
.hamburger__icon {
  top: calc(50% - 2px);
  left: calc(50% - 9px);
}

/* position the two pseudo-elements to the very left */
.hamburger__icon::before,
.hamburger__icon::after {
  content: "";
  left: 0;
}

/* this is the top dash of the hamburger */
.hamburger__icon::before {
  bottom: 8px;
}

/* this is the bottom dash of the hamburger */
.hamburger__icon::after {
  top: 8px;
}

/* TOGGLE STYLES FOR THE BUTTON */

/* rotate middle dash of hamburger */
.toggled .hamburger__icon {
  height: 5px;
  width: 28px;
  left: 2px;
  top: calc(50% - 2px);
  transform: rotate(-45deg);
  background-color: #6b7280;
}

/* rotate bottom dash of hamburger counter clockwise */
.toggled .hamburger__icon::after {
  width: 28px;
  height: 5px;
  top: -1px;
  transform: rotate(-270deg);
  background-color: #6b7280;
}

/* hide the top dash by scaling it to 0 */
.toggled .hamburger__icon::before {
  transform: scale(0);
}

/* TRANSITION */
/* adjust duration to see it happen slower */
.hamburger__icon, .hamburger__icon::after {
  transition: all 0.3s linear;
}
/* -----------fim menu -----------------*/

.offcanvas-footer {
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.accordion-button:not(.collapsed) {
  background-color: transparent !important; 
}

.accordion-button:not(.collapsed) {
  --bs-accordion-active-bg: transparent;
  box-shadow: none !important;
  border-color: transparent !important; /* se houver borda colorida */
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Container de busca customizado */
.custom-search-wrapper {
    transition: all 0.3s ease;
}

.custom-search-wrapper:focus-within {
    border-color: #ffc107 !important; 
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}
.btn-clear-search {
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    color: #dc3545 !important; 
    transform: scale(1.1); 
}

.status-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      border-radius: 999px;
      padding: 0.5rem 1.1rem;
      font-size: 0.85rem;
      font-weight: 700;
      transition: all 0.3s ease;
    }

    /* Loja Aberta */
    .status-pill.open {
      background: #ecfdf5;
      color: #047857;
      border: 1px solid rgba(4, 120, 87, 0.18);
    }

    .status-pill.open .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #10b981;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
      animation: blinkDot 1.8s infinite ease-in-out;
    }

    /* Loja Fechada */
    .status-pill.closed {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid rgba(220, 38, 38, 0.18);
    }

    .status-pill.closed .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #ef4444;
    }

    @keyframes blinkDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.35; transform: scale(0.85); }
    }