:root {
  --color-bg: #FAF7F2;        /* основной фон (теплый, не серый) */
  --color-surface: #FFFFFF;   /* карточки */
  --color-primary: #8B5A2B;   /* основной (мясной / коричневый) */
  --color-primary-hover: #6F451F;

  --color-accent: #E8A96B;    /* вкусный акцент (лакомства) */
  --color-accent-soft: #F3D2B3;

  --color-text: #2B2B2B;
  --color-text-light: #6B6B6B;

  --color-border: #E5DED5;
}

/* product_preview */

.products__contain{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product__card {
    width: calc(100% / 3 - 20px);
    background: var(--color-surface); /* ВАЖНО */
    border-radius: 18px;
    padding: 20px;
    text-align: left;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
    z-index: 4;
}

.product__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.product__card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.product__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary);
}

.product__card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product__btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.product__btn:hover {
  background: #d89355;
}


.product__badge{
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-accent);
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.product__actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
align-items: center;
  
}

.product__btn {
  flex: 1;
  padding: 10px 30px;
  border-radius: 10px;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.product__btn:hover {
  background: #d89355;
}

.product__link {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14px;
  text-align: center;
  transition: 0.2s;
}

.product__link:hover {
  background: var(--color-accent-soft);
}




/* product_preview */

.section__title{
  margin-bottom: 40px;
}

.products-preview {
    padding: 80px 0;
}



.product__card {
    width: calc(100% / 3 - 20px);
    background: var(--color-surface); /* ВАЖНО */
    border-radius: 18px;
    padding: 20px;
    text-align: left;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
    z-index: 4;
}

.product__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.product__card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}



.product__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary);
}

.product__title{
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



.product__btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.product__btn:hover {
  background: #d89355;
}


.product__badge{
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-accent);
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.product__actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
align-items: center;
  
}

.product__btn {
  flex: 1;
  padding: 10px 30px;
  border-radius: 10px;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.product__btn:hover {
  background: #d89355;
}

.product__link {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14px;
  text-align: center;
  transition: 0.2s;
}

.product__link:hover {
  background: var(--color-accent-soft);
}


@media (max-width: 600px) {
    .products__contain{
        flex-direction: column;
        gap: 10px;
    }

    .product__card{
        width: 100%;
    }

    
}