html {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

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

button,
input,
select,
textarea,
a {
  max-width: 100%;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1800;
  min-height: 76px;
  gap: 1rem;
}

.navbar .logo,
.navbar .logo a {
  min-width: 0;
  display: flex;
  align-items: center;
}

.imagelogo {
  width: clamp(150px, 24vw, 240px);
  max-width: 100%;
}

.navbar nav {
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 0;
}

.navbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero {
  min-height: calc(100svh - 76px);
  height: auto;
  padding: 4rem 1rem;
}

.hero-text {
  width: min(760px, 100%);
}

.hero-text h1 {
  display: block;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.08;
}

.hero-text p {
  font-size: clamp(1rem, 3vw, 1.2rem);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1;
}

.section {
  width: min(1100px, 100%);
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.contact iframe {
  width: 100%;
  height: min(60vh, 360px);
}

.menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.menu-item {
  min-width: 0;
  align-items: flex-start;
}

.menu-info {
  min-width: 0;
  width: 100%;
}

.menu-info h3,
.menu-info p,
.admin-order h3,
.admin-address,
.admin-note,
.admin-items li,
.form-message {
  overflow-wrap: anywhere;
}

.menu-item span,
.cijena-sl {
  float: none;
  display: block;
  text-align: right;
}

.order-actions {
  justify-content: flex-end;
}

.button,
.allergen-btn {
  min-height: 42px;
  text-align: center;
}

.order-page,
.admin-page {
  width: min(1120px, calc(100% - 2rem));
}

.cart-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.cart-option-label select {
  width: 100%;
}

.admin-orders {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.admin-order,
.checkout-panel,
.admin-toolbar,
.customer-status {
  min-width: 0;
}

.admin-card-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-card-actions select {
  min-width: min(150px, 100%);
}

.status-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.status-step strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0.85rem 1rem;
  }

  .navbar nav a {
    font-size: 0.95rem;
    padding-inline: 0.42rem;
  }

  .order-page {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 68px;
    padding: 0.65rem 1rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-radius: 0;
    background: #111;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar nav a {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.7rem 0.8rem;
    white-space: normal;
  }

  .category-tabs {
    top: 68px;
  }

  .hero {
    min-height: calc(100svh - 68px);
    padding: 3rem 1rem 2.5rem;
  }

  .scroll-down {
    margin-top: 2rem;
    font-size: 2.2rem;
  }

  .section {
    padding: 2.25rem 1rem;
    scroll-margin-top: 132px;
  }

  .obavjest {
    margin: 1.25rem 0;
    font-size: 0.95rem;
  }

  .menu-grid {
    gap: 1rem;
  }

  .menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .menu-item:hover {
    transform: none;
  }

  .menu-item img {
    width: 88px;
    height: 88px;
  }

  .order-actions {
    justify-content: flex-end;
  }

  .order-actions .button,
  .allergen-btn {
    flex: 0 0 auto;
    width: auto;
  }

  .order-page,
  .admin-page,
  .admin-login-panel,
  .status-page {
    width: min(100% - 1rem, 1120px);
    margin-top: 1rem;
  }

  .checkout-panel {
    padding: 1rem;
  }

  .checkout-panel h1,
  .admin-toolbar h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .cart-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .qty-controls {
    width: 104px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    display: grid;
    padding: 1rem;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions > * {
    width: 100%;
  }

  .admin-order-head,
  .admin-order-bottom {
    display: grid;
    gap: 0.75rem;
  }

  .status-pill {
    justify-self: start;
  }

  .admin-card-actions {
    justify-content: stretch;
  }

  .admin-card-actions > * {
    width: 100%;
  }

  .status-steps {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .status-step {
    grid-template-columns: 22px 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }

  .back-to-top {
    right: 12px;
    bottom: 76px;
    width: 48px;
    height: 48px;
  }

  .checkout-shortcut {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cart-toast {
    left: 12px;
    right: 12px;
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  .imagelogo {
    width: 150px;
  }

  .navbar {
    padding-inline: 0.75rem;
  }

  .section {
    padding-inline: 0.75rem;
  }

  .menu-item {
    gap: 0.75rem;
  }

  .menu-item img {
    width: 72px;
    height: 72px;
    border-width: 2px;
  }

  .menu-info h3 {
    font-size: 1.02rem;
  }

  .menu-info p,
  .menu-item span,
  .cijena-sl {
    font-size: 0.92rem;
  }

  .button,
  .allergen-btn {
    width: auto;
    flex-basis: auto;
    padding-inline: 0.8rem;
  }

  .checkout-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal {
    border-radius: 12px;
  }
}

@media (max-width: 360px) {
  .imagelogo {
    width: 128px;
  }

  .menu-item {
    gap: 0.65rem;
  }

  .menu-item img {
    width: 68px;
    height: 68px;
  }
}
