/* Global layout and image fixes for Restaurante Kukutze static site */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body.csbody {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.entry-content img,
.wpb_wrapper img,
.textwidget img,
.cs-carousel-container img,
.attachment-post-thumbnail,
.attachment-featuredImageCropped,
.vc_single_image-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container.cs-row-container,
.container {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

#wrapper,
#primary,
.content-area,
.site-main,
.entry-content {
  width: 100%;
  max-width: 100%;
}

.entry-content .wpb_row,
.wpb_row.clearfix {
  margin-left: 0;
  margin-right: 0;
}

/* Prevent oversized carousel / POS images from breaking layout */
.cs-carousel-header img,
.cs-carousel-item img,
.pointofsale .entry-thumbnail img,
.blog .entry-thumbnail img {
  width: 100%;
  object-fit: cover;
}

/* Menu page food grid */
.menuFood-item img,
.attachment-featuredImageCropped {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* Hide broken empty image boxes */
img[src=""],
img:not([src]) {
  display: none;
}

/* Sidebar: hide duplicate consecutive thumbnails with same src */
.widget_recent_entries img + img[src],
.cs-popular img + img[src] {
  /* handled by JS dedupe if needed */
}

/* Page title area */
#cs-page-title-wrapper {
  padding: 40px 0;
}

.page-title-style .page-title {
  font-size: clamp(32px, 5vw, 68px) !important;
  line-height: 1.15;
  margin: 0;
}

/* Footer spacing */
#footer-top {
  padding-top: 40px;
  padding-bottom: 20px;
}

#footer-top .textwidget img {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
}

/* Forms and buttons */
.btn,
.button,
input[type="submit"] {
  white-space: normal;
}

/* Mobile nav */
@media (max-width: 992px) {
  .cshero-mmenu {
    max-height: 70vh;
    overflow-y: auto;
  }

  .kukutze-hero {
    min-height: 280px;
  }
}

/* Fix table/menu overflow on small screens */
.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Fix table-cell layout in sidebar widgets */
.cs-popular .table-cell,
.cs-meta.table-cell,
.cs-details.table-cell {
  vertical-align: top;
}

.cs-popular .image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
}

.cs-popular li {
  margin-bottom: 18px;
  overflow: hidden;
}

/* Main content + sidebar grid */
.content-wrap.col-md-9,
.right-wrap.col-md-3 {
  float: left;
}

@media (min-width: 992px) {
  .content-wrap.col-md-9 { width: 75%; }
  .right-wrap.col-md-3 { width: 25%; }
}

/* Clear floats after rows */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* POS / blog post hero image */
.entry-thumbnail img,
.entry-thumbnail {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.entry-thumbnail img {
  max-height: 520px;
  object-fit: cover;
}

/* Menu carta grid */
.menuFood-item {
  margin-bottom: 24px;
}

/* Header menu alignment */
.cs_custom_header_menu .main-menu-content {
  text-align: right;
}

.cshero-menu-dropdown > ul > li > a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Prevent horizontal scroll from wide elements */
.wpb_revslider_element,
.kukutze-hero,
.rev_slider_wrapper {
  max-width: 100vw;
  overflow: hidden;
}

/* Contact / form pages */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  max-width: 100%;
}
