html {
  scroll-behavior: smooth;
}
body {
      margin: 0;
      background: #f4f7fb;
      color: #333;
    }

html, body, button {
  font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

hr {
  border: none;         
  height: 1px;           
  background-color: #cdcdcd;
  width: 100%;
  margin: 30px 0;
}
h1, h2, h3 {
  font-weight: 600;
}
button, .nav a {
  font-weight: 500;
}
p, li, span, input, label, button {
  font-weight: 400;
}
.nav-div{
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;

   /* фон вынес сюда */
}
    nav {
      background: #0664c1;
  max-width: 900px;
  width: 100%; /* занимает всю доступную ширину внутри контейнера */
  display: flex;
  justify-content: center;
  gap: 20px;

  padding: 10px 20px;
  color: white;
  
    }
    nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      cursor: pointer;
      margin-right: 40px;
      transition: all 0.3s;
      
    }

nav a:hover {
  color: #dbdbdb;
}

        nav a:last-child {

      margin-right: 0px;
    }

.table-body{
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 20px;

}

.table-row{
  display: flex;
}
    
    .product-img {
      width: 150px;
      height: 200px;
      object-fit: contain; 
      border: 1px solid #ccc;
      border-radius: 8px;
    }
    .product-img img{
      width:  100%;
    }
    .table-text{
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 0 20px;
      width: 70%;
    }
    .table-price{
      text-align: center;
    }
    .table-price button{
      margin-top: 10px;
    }
    h3 {
      margin: 5px 0;
    }
    .price {
      font-weight: bold;
      font-size: 18px;
      color: #1976d2;
      margin: 10px 0;
    }
    button {
      width:150px;
      background: linear-gradient(#1976d2, #2e86de, #1976d2);
      color: white;
      border: 1px solid #146abf;
      padding: 8px 15px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      min-height: 50px;
    }
    button:hover {
            background: linear-gradient(#176bbe, #2c7fd2, #176bbe);
      border: 1px solid #146abf;
    }
    .buttons{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .buttons button:first-child{
      margin-right: 30px;
    }

    .colors {
      text-align: center;
      margin: 10px 0;
    }

    .color-option {
  display: inline-block;
  padding: 12px 12px;
  margin: 0 5px;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 15px;
  font-size: 14px;
  background: #f9f9f9;
  margin-bottom: 10px;
}

.color-option.selected {
  border-color: #007bff;
  background: #e6f0ff;
  font-weight: bold;
}

    .color-option.active {
  border: 2px solid #1976d2; /* синяя обводка при выборе */
}
    .modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 700px;
  max-height: 80vh;
  max-width: 80%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.35);
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.2s;
}
.close:hover {
  transform: scale(1.2);
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.cart-item-pic{
  width: 60px;
  height: 80px;
}
.cart-item-pic img {
  width: 60px;
  height: 80px;
  object-fit: contain;
  object-position: center; /* картинка по центру рамки */
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.cart-item-info {
  flex-grow: 1;
  text-align: left;
  font-size: 14px;
  max-width: 250px;
  display: flex;
  width: 100%;
}
.cart-item-info div{
  margin-left: 10px;
}
.cart-item-options {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
}


.cart-item-qty {

  text-align: center;
  padding: 5px;
  margin: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-item-qty:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.4);
}
.cart-item-options span{
  display: inline-block;
  font-size: 0.9rem;
  width: 40px;
  margin-right: 10px;
}
.remove-btn {
  width: 35px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #888;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.remove-btn:hover {
  color: #e74c3c;
  background: rgba(231,76,60,0.1);
}

.remove-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  left: 50%;
}
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-weight: bold;
}

.sizes {
  margin: 15px 0;
  font-family: "Rubik", sans-serif;
  text-align: center;
}

.sizes label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.sizes select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: "Rubik", sans-serif;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  outline: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sizes select:hover {
  border-color: #666;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.sizes select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.info-row{
  display: block;
}
.info-row ul{
  margin-top: 15px;
  padding: 0;
}
.info-row li{
  padding-left: 25px;
  list-style-type: none;
  padding-bottom: 15px;
  text-indent: -26px;
}
.info-row li::before{
  content: "✓ "; /* Добавляем свой символ */
  color: #007bff;
  padding-right: 10px;
}

.form-group{
  margin: 10px 0;
}


input[type="text"], 
input[type="tel"], 
input[type="email"], 
input[type="number"] {
  width: 100%;
  padding: 5px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  font-family: 'Rubik', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* При наведении */
input[type="text"]:hover, 
input[type="tel"]:hover, 
input[type="email"]:hover, 
input[type="number"]:hover {
  border-color: #0664c1;
}

/* При фокусе */
input[type="text"]:focus, 
input[type="tel"]:focus, 
input[type="email"]:focus, 
input[type="number"]:focus {
  border-color: #0664c1;
  box-shadow: 0 0 6px rgba(6, 100, 193, 0.3);
}

input.cart-item-qty{
  width: 50px;
  font-size: 0.9rem;
  padding: 3px;
}


@media (max-width: 550px){

    input[type="text"], 
  input[type="tel"], 
  input[type="email"], 
  input[type="number"] {
    font-size: 18px;
    padding: 8px 8px;
  }

    .product-img {
      width: 200px;
      height: 270px;
    }

  .table-row{
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .table-text{text-align: center;}
       nav a {
      font-size: 0.8rem;
      margin-right: 20px;
    }
.modal-content {
  width: 80%;

}
      .buttons button{
      width:120px;
      padding: 10px;
      margin: 5px;
      font-size: 0.8rem;
    }
        .buttons button:first-child{
      margin-right: 10px;
    }
.cart-footer{
  flex-direction: column;
}
    #cartTotal{
padding-bottom: 7px;
    }
    .cart-item{
      flex-direction: column;
    }
    .cart-item-options{
      padding-top: 20px;
      justify-content: center;
    }
    .modal h2{
      text-align: center;
    }
    .info-row{
  text-align: left;
}
.cart-footer.buttons button{
  margin: 10px;
}
input.cart-item-qty{
  font-size: 0.9rem;
}
}



