html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: MyFont;
        background: rgb(233,141,118) url('../img/bg.png') repeat;
}



.shapka {
    width: 100%;
    background: rgb(250, 228, 185);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    height: 100px;
    width: 150px;
    position: absolute;
    left: 20px;
}

.menu-center {
    width: 100%;
    text-align: center;
}

.shapka_a {
    color: rgb(233, 141, 118);
    text-decoration: none;
    font-size: 25px;
    margin: 0 50px;
    font-family: MyFont;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    transition: 0.5s;
    border: 2px solid rgb(233, 141, 118);
}

.shapka_a:hover {
    transform: scale(1.2);
    background: rgb(233,141,118);
    color:rgb(250, 228, 185);
}

.cart {
    width: 25px;
    height: 25px;
    padding: 20px;
    border: 2px solid rgb(233,141,118);
    border-radius: 30px;
    color:rgb(233,141,118);
    transition: 1s ease-in-out;
}

.cart:hover {
    transform: scale(1.2);
    background: rgb(233,141,118);
    color:rgb(250, 228, 185);
}


.cart-title {
    text-align: center;
    color: rgb(233, 141, 118);
    margin-bottom: 30px;
    font-size: 2.5em;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid rgb(233, 141, 118);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    color: rgb(233, 141, 118);
    margin-top: 0;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgb(233, 141, 118);
    background: white;
    color: rgb(233, 141, 118);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: rgb(233, 141, 118);
    color: white;
}

.quantity {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-weight: bold;
    color: rgb(233, 141, 118);
    font-size: 18px;
}

.remove-item {
    padding: 8px 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.remove-item:hover {
    background: #ff5252;
}

.cart-summary {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid rgb(233, 141, 118);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-sum {
    font-size: 20px;
    font-weight: bold;
}

.grand-total {
    color: rgb(233, 141, 118);
    font-size: 24px;
    margin-left: 10px;
}

.checkout-btn {
    padding: 12px 30px;
    background: rgb(233, 141, 118);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: rgb(210, 120, 100);
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.back-to-shop {
    display: inline-block;
    padding: 12px 25px;
    background: rgb(233, 141, 118);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
}


.cart-container {
    width: 80%;
    margin: 50px auto;
  margin-top: 130px; /* отступ от фиксированной шапки */
    padding: 20px;
    border-radius: 20px;
        max-width: 1200px;


    background: rgb(250, 228, 185);

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;

}

.cart-table th, .cart-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #d8b16f;
}

.qty-btn, .remove-btn, .checkout-btn {
    padding: 6px 10px;
    background: #f5c661;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.qty-btn:hover, .remove-btn:hover, .checkout-btn:hover {
    background: #e0a900;
}
.sauce-info {
    font-size: 16px;
    font-family: MyFont;
    color: rgb(233, 141, 118);
    text-align: center;
}

.cart-total {
    margin-top: 20px;
    font-size: 1.2em;
}
.sauce-info {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}
.checkout-btn {
    margin-top: 10px;
}
      .delivery-options {
            margin-top: 30px;
        }

        .delivery-options label {
            margin-right: 20px;
            font-size: 18px;
        }
    @font-face {
        font-family: 'MyFont';
        src: url('../fonts/Montserrat-Black.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
        .form-group {
            margin-top: 15px;
        }

        .form-group input {
            padding: 10px;
            width: 100%;
            max-width: 400px;
            border: 1px solid #ccc;
            border-radius: 10px;
        }

        .map-box {
            margin-top: 15px;
background: rgb(250, 228, 185);
            padding: 10px;
            border: 2px solid rgb(233, 141, 118);
            border-radius: 10px;
            max-width: 500px;
        }

.send-order-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: rgb(233, 141, 118);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.send-order-btn:hover {
    background: rgb(210, 120, 100);
}


.cart-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}
.maincont {

  background-color: rgb(250, 228, 185); /* фон */
  color: rgb(233, 141, 118);            /* цвет текста */
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  margin: 50px auto;
  font-family: MyFont   ;
  font-size: 18px;
  line-height: 1.7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 140px;
}

.maincont span {
  display: block;
  margin-bottom: 25px;
}
.cart-container {
    background-color: rgb(250, 228, 185);
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 0;
    margin: 0;
    
  }

  .shapka {
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
  }

  .logo {
    display: none;
  }

  .shapka_a {
    font-size: 20px;
    margin: 8px 0;
    padding: 8px 12px;
  }

  .cart {
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-top: 8px;
  }

  .cart-container {
          background: rgb(250, 228, 185);
    width: 95%;
    padding: 20px;
    margin: 140px auto 40px;
    border-radius: 15px;
  }

  .cart-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .cart-img,
  .cart-item-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .cart-item-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .quantity-controls {
    gap: 6px;
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .quantity {
    font-size: 16px;
  }

  .remove-item {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
  }

  .sauce-info {
    font-size: 14px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .checkout-btn,
  .send-order-btn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    border-radius: 10px;
  }

  .form-group input {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }

  .map-box {
    width: 100%;
    padding: 10px;
  }

  .delivery-options label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .maincont {
    padding: 20px;
    font-size: 16px;
    margin-top: 180px;
  }

  .maincont span {
    margin-bottom: 15px;
  }

  .empty-cart img {
    width: 150px;
  }

  .back-to-shop {
    font-size: 14px;
    padding: 10px 20px;
  }
}
