/*
Theme Name: qrMenu
Theme URI: https://overcod.net/qrMenu
Author: Stepan Kostanevych
Author URI: https://overcod.net/
Description: Легкая и адаптивная WordPress-тема для онлайн-меню ресторанов и кафе.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qrmenu
*/



body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #fff;
  color: #333;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.header-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.logo-img {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  background-color: white;
}

.back-button svg {
  width: 30px;
  height: 30px;
  fill: #000;
  position: fixed;
  top: 20px;
  z-index: 9;
  background: #fff;
  border-radius: 20px;
  left: 20px;
  box-shadow: #6a6666 0px 3px 5px -1px;
}

.card {
  margin-top: 16px;
  padding: 16px;
  background-color: #f2f2f2;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h2 {
  margin: 0 0 8px;
}

.actions {
  margin-top: 24px;
  text-align: center;
}

.actions p {
  font-weight: bold;
  margin-bottom: 12px;
}

.btn {
  display: block;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #ff6b6b;
  color: white;
  text-align: center;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background-color: #e85555;
}

.btn-white {
  display: block;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #d4d4de;
  color: #333;
  text-align: center;
  border: 0px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-white:hover {
  background-color: #f0f0f0;
}

.dish-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid #f3f2f2;
    align-items: center;
}

.dish-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.dish-content {
  flex-grow: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-title {
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 4px;
}

.dish-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.dish-footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  align-items: center;
}

.dish-footer .price {
  font-weight: bold;
}

.dish-footer .time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dish-footer .time svg {
  width: 16px;
  height: 16px;
  fill: #555;
}

@media (min-width: 600px) {
  body {
    background-color: #eee;
  }
}

/*эффекты*/
.fade-in {
  animation: fadeIn 1s ease;
}

.fade-out {
  animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}


/* окноо товара */
.product-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 99;
  overflow-y: auto;
}

.product-modal.active {
  right: 0;
}

.modal-content {
	 position: relative; 
  padding: 20px;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    /* width: 19px; */
    padding: 0 7px;
    height: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: #6a6666 0px 3px 5px -1px;
}


.modal-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-price {
  font-weight: bold;
  font-size: 18px;
}

.modal-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #555;
}

.modal-time svg {
  width: 16px;
  height: 16px;
  fill: #555;
}


.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}
