/* =========================================
   CANTINA ESCOLAR — ESTILOS
========================================= */

:root {
  --green: #477653;
  --green-dark: #31583a;
  --green-light: #eaf2e5;
  --yellow: #f6c957;
  --cream: #fffdf6;
  --background: #faf8f0;
  --white: #ffffff;
  --text: #34382f;
  --muted: #777b70;
  --border: #eae8de;
  --shadow: 0 12px 35px rgba(51, 67, 44, 0.08);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* CABEÇALHO */

.header {
  width: 100%;
  min-height: 82px;
  padding: 16px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  white-space: nowrap;
}

.logo-icon {
  font-size: 1.7rem;
}

.logo-highlight {
  color: var(--green);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 27px;
}

.navigation a {
  color: #5d6258;
  font-size: 0.91rem;
  font-weight: 800;
  transition: color 0.2s;
}

.navigation a:hover {
  color: var(--green);
}

.cart-header {
  border: 0;
  border-radius: 50px;
  padding: 12px 18px;
  background: var(--green);
  color: white;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: 0.2s;
}

.cart-header:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

#cartCount {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.8rem;
}

/* BANNER PRINCIPAL */

.hero {
  padding: 75px 9% 85px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 65px;
  background: #f3f3e6;
  overflow: hidden;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 18px 0;
  font-weight: 900;
}

.hero h1 span,
.section-heading h2 span {
  color: var(--green);
}

.hero-content > p {
  max-width: 460px;
  color: #6e7267;
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 15px 25px;
  background: var(--green);
  color: white;
  border-radius: 50px;
  font-weight: 900;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-primary span {
  font-size: 1.3rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #666b5d;
}

.hero-image {
  position: relative;
}

.hero-image > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 45% 45% 25px 25px;
  box-shadow: var(--shadow);
}

.floating-badge {
  position: absolute;
  bottom: 25px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 15px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.floating-badge > span {
  font-size: 1.8rem;
}

.floating-badge strong,
.floating-badge small {
  display: block;
}

.floating-badge strong {
  font-size: 0.9rem;
}

.floating-badge small {
  color: var(--muted);
  font-size: 0.76rem;
}

/* SEÇÕES */

.section {
  padding: 80px 9%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 8px 0;
  font-weight: 900;
}

.section-heading p {
  color: var(--muted);
}

.centered {
  text-align: center;
  display: block;
  margin-bottom: 48px;
}

.today-badge {
  background: #fff0c7;
  color: #795c15;
  padding: 10px 17px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

/* LANCHE DO DIA */

.daily-section {
  background: var(--white);
}

.daily-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--green-light);
  border-radius: 28px;
  overflow: hidden;
  min-height: 310px;
}

.daily-image {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.daily-info {
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.daily-day {
  display: inline-block;
  background: white;
  color: var(--green);
  border-radius: 50px;
  padding: 6px 13px;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 13px;
}

.daily-info h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.daily-info p {
  color: #657363;
  margin-bottom: 20px;
}

.daily-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.price {
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 900;
}

.add-button {
  border: 0;
  border-radius: 50px;
  padding: 12px 19px;
  background: var(--green);
  color: white;
  font-weight: 900;
  transition: 0.2s;
}

.add-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* PRODUTOS */

.menu-section {
  background: var(--background);
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.category-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffefc8;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.category-heading h3 {
  font-size: 1.5rem;
  font-weight: 900;
}

.category-heading p {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: white;
  border: 1px solid #f0eee5;
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  background: #f0efe7;
}

.product-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 11px;
  border-radius: 50px;
  background: white;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-info {
  padding: 18px;
}

.product-info h4 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 5px;
}

.product-info p {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  min-height: 40px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--green);
  white-space: nowrap;
}

.product-add {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #3d412f;
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.product-add:hover {
  background: var(--green);
  color: white;
  transform: scale(1.08);
}

.drinks-heading {
  margin-top: 65px;
}

.drinks-heading .category-icon {
  background: #dceff6;
}

/* BANNER DO PEDIDO */

.order-banner {
  margin: 20px 9% 80px;
  padding: 50px 55px;
  border-radius: 28px;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.order-banner > div > span {
  color: #f8d982;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.order-banner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 12px 0;
}

.order-banner p {
  color: #e0ebdd;
}

.btn-light {
  border: 0;
  border-radius: 50px;
  padding: 16px 25px;
  background: white;
  color: var(--green-dark);
  font-weight: 900;
  white-space: nowrap;
  transition: 0.2s;
}

.btn-light:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

/* RODAPÉ */

.footer {
  padding: 40px 20px;
  background: white;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  justify-content: center;
  margin-bottom: 10px;
}

.footer p {
  color: var(--muted);
  margin-bottom: 15px;
}

.footer small {
  color: #96998f;
  font-size: 0.78rem;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  background: rgba(25, 31, 24, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.order-modal {
  width: 100%;
  max-width: 570px;
  max-height: 92vh;
  overflow-y: auto;
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.22s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
}

.modal-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.close-modal {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f1eb;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.close-modal:hover {
  background: #e5e5da;
}

.form-section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.form-section h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.form-section label {
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  margin: 14px 0 7px;
}

.form-section input,
.form-section select,
.form-section textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #e4e5dc;
  border-radius: 12px;
  background: #fefefc;
  color: var(--text);
  outline: none;
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(71, 118, 83, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row > div {
  min-width: 0;
}

.form-section textarea {
  resize: vertical;
}

.cart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-title h3 {
  margin: 0;
}

.cart-title > span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8f8f2;
  border-radius: 15px;
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.3;
}

.cart-item-price {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  margin-top: 4px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
}

.quantity-controls button {
  width: 25px;
  height: 25px;
  border: 1px solid #dde2d7;
  background: white;
  color: var(--green);
  border-radius: 7px;
  font-weight: 900;
}

.quantity-controls span {
  font-size: 0.85rem;
  font-weight: 900;
  min-width: 12px;
  text-align: center;
}

.remove-item {
  border: 0;
  background: transparent;
  color: #b35d53;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 0;
}

.cart-empty {
  padding: 25px 10px;
  text-align: center;
  color: var(--muted);
}

.cart-empty > span {
  font-size: 2rem;
}

.cart-empty p {
  color: var(--text);
  font-weight: 900;
  margin: 5px 0;
}

.cart-empty small {
  font-size: 0.8rem;
}

.add-more {
  display: inline-block;
  margin-top: 17px;
  color: var(--green);
  font-weight: 900;
  font-size: 0.9rem;
}

.add-more:hover {
  text-decoration: underline;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-weight: 900;
}

.cart-total strong {
  color: var(--green);
  font-size: 1.5rem;
}

.order-disclaimer {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 16px;
  background: #25d366;
  color: #103c23;
  font-size: 0.98rem;
  font-weight: 900;
  transition: 0.2s;
}

.btn-whatsapp:hover {
  background: #1fbd5a;
  transform: translateY(-2px);
}

.btn-whatsapp span {
  font-size: 1.4rem;
}

/* AVISO */

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  padding: 13px 22px;
  background: #263b2b;
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 30px);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* TABLETS */

@media (max-width: 1050px) {
  .header {
    padding: 15px 4%;
  }

  .navigation {
    gap: 15px;
  }

  .hero,
  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero {
    gap: 35px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-image {
    height: 230px;
  }

  .order-banner {
    margin-left: 6%;
    margin-right: 6%;
  }
}

/* CELULARES */

@media (max-width: 700px) {
  .header {
    min-height: 72px;
    padding: 12px 5%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .cart-header {
    padding: 10px 13px;
    font-size: 0.82rem;
  }

  .navigation {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 6px 0 3px;
    gap: 23px;
    scrollbar-width: none;
  }

  .navigation::-webkit-scrollbar {
    display: none;
  }

  .navigation a {
    white-space: nowrap;
    font-size: 0.83rem;
  }

  .hero {
    padding: 50px 6% 65px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .hero-content > p {
    font-size: 1rem;
  }

  .hero-image > img {
    height: 290px;
    border-radius: 28px;
  }

  .floating-badge {
    left: 12px;
    bottom: -22px;
    padding: 12px 15px;
  }

  .section {
    padding: 60px 5%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .centered {
    align-items: center;
    text-align: center;
  }

  .daily-card {
    grid-template-columns: 1fr;
  }

  .daily-image {
    height: 230px;
    min-height: 0;
  }

  .daily-info {
    padding: 25px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .product-image {
    height: 155px;
  }

  .product-info {
    padding: 13px;
  }

  .product-info h4 {
    font-size: 0.95rem;
  }

  .product-info p {
    font-size: 0.78rem;
    min-height: 58px;
  }

  .product-bottom {
    margin-top: 12px;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-add {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }

  .drinks-heading {
    margin-top: 45px;
  }

  .order-banner {
    margin: 10px 5% 55px;
    padding: 35px 25px;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-light {
    white-space: normal;
  }

  .order-modal {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .modal-overlay {
    padding: 10px;
    align-items: center;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .form-row {
    gap: 10px;
  }

  .cart-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px;
  }

  .cart-item img {
    width: 48px;
    height: 48px;
  }

  .cart-item-name {
    font-size: 0.82rem;
  }

  .cart-total strong {
    font-size: 1.3rem;
  }
}

/* CELULARES PEQUENOS */

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 220px;
  }

  .product-info p {
    min-height: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cart-header {
    font-size: 0.75rem;
  }
}
