:root{
    --bg: #FBF7E8;
    --card-border: #e6edd8;
    --muted: #6b6b64;
    --accent: #d7e6c9;    /* кнопки + фон */
    --accent-2:#e9f0df;   /* бледный фон элементов */
    --text:#22221f;
    --green-shadow: rgba(49,83,19,0.06);
  }

  *{box-sizing:border-box}
  body{
    margin:0;
    padding:0px;
    background:var(--bg);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color:var(--text);
  }

  /* Внешняя обёртка по ширине макета (в макете ~1080) */
  .wrap{
    padding: 0px !important;
    max-width:1080px;
    margin:0 auto;
    position:relative;
  }

  /* Верхний маленький текст и кнопка очистки (правее) */
  .top-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:6px;
  }
  .top-row .small-note{
    color:var(--muted);
    font-size:24px;
  }

  .clear-btn{
    background: none !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:10px !important;
    padding:10px 16px !important;
    border-radius:8px !important;
    border:1px solid #dbe8cf !important;
    background:transparent !important;
    color: #9aa589 !important;
    font-weight:600 !important;
    cursor:pointer !important;
    font-size:14px !important;
  }
  .clear-btn svg{width:18px;height:18px;opacity:0.9}

  h1{
    font-family: "cinzel(RU)", Sans-serif !important;
    font-weight:400;
    font-size:42px;
    margin:8px 0 26px 0;
    letter-spacing:0.5px;
    text-transform:uppercase;
    color:#2e2e2b;
  }

  /* Список карточек */
  .cart-list{
    /* margin-left: 100px; */
    display:block;
    gap:24px;
  }

  .qty-display {
    display: inline-block;
    min-width: 2ch;
    text-align: center;
    font-weight: bold;
    margin: 0 8px;
  }

  .cart-item{
    display:flex;
    align-items: stretch;
    gap:20px;
    border-radius:12px;
    background:transparent;
    position:relative;
  }

  .product-thumb{
    position:relative;
    flex:0 0 280px;
  }

  .product-thumb img{
    width:280px;
    height:280px;
    object-fit:cover;
    border-radius:14px;
    display:block;
  }

  /* чекбокс в углу картинки */
  .checkbox{
    position:absolute;
    top:12px;
    left:12px;
    width:40px;
    height:40px;
    border-radius:8px;
    display:none;
    align-items:center;
    justify-content:center;
    background:var(--accent-2);
    border:1px solid #e0e8d6;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
  }
  .checkbox.checked{
    background:linear-gradient(180deg,#cfe7b9,#bfe3a9);
    border-color:#c3d9a4;
  }

  /* Основная информация по товару (слева от правого блока) */
  .product-info{
    flex:1;
    padding-top:2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .product-title{
    font-size:20px;
    font-weight:700;
    margin:2px 0 12px 0;
    color:#2d2d2a !important;

  }

  .product-title > a {
    color:#2d2d2a !important;
    font-size: 28px;
  }

  a {
    text-decoration: none !important; /* убираем подчеркивание */
  }

  .product-meta{
    margin:6px 0;
    font-size:22px;
    color:var(--muted);
    line-height:1.6;
  }
  .product-meta b{color:var(--text); font-weight:600; margin-right:6px;}

  /* Правая колонка карточки: мусорка сверху (по центру по высоте) и внизу - контролы */
  .item-right{
    min-width:260px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:space-between;
    gap:6px;
  }

  .count-and-price {
    display: flex;
    align-items: center;
    flex-direction: row;
  }

  .trash-btn{
    background:var(--accent-2);
    border:1px solid #e0e8d6;
    width:46px;
    height:46px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  .trash-btn svg{width:20px;height:20px;opacity:0.85}

  /* нижняя правая панель: qty и итог по товару */
  .item-controls{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:6px;
  }

  .qty{
    display:flex;
    align-items:center;
    gap:8px;
    background:transparent;
  }

  .qty button{
    width:36px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    border:none;
    background:var(--e-global-color-primary);
    font-weight:700;
    cursor:pointer;
    box-shadow: 0 2px 0 var(--green-shadow);
    font-size:26px;
  }

  .qty .count{
    width:40px;
    border: none;
    background: transparent;
    text-align:center;
    font-weight:600;
    font-size:15px;
    padding: 0px !important;
  }

  .qty > button:hover, .qty > button:focus {
    background-color: var(--e-global-color-primary) !important;
  }

  .item-total{
    font-weight:700;
    font-size:16px;
    color:var(--text);
    white-space:nowrap;
    margin-left:6px;
  }

  /* разделитель между карточками */
  .divider{
    height:1px;
    background:transparent;
    margin:22px 0;
    border-top:1px solid #e8eed9;
  }

  /* Итоговая строка и кнопка справа */
  .order-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:26px;
  }

  .order-left{
    font-size:16px;
    color:var(--muted);
  }
  .order-left .sum{
    font-weight:700;
    color:var(--text);
    margin-left:8px;
    font-size:18px;
  }
  .order-left .note{
    display:block;
    margin-top:8px;
    color:#7b7b70;
    font-size:13px;
  }

  .order-btn{
    background:var(--e-global-color-primary) !important;
    padding:14px 30px !important;
    border-radius:10px !important;
    box-shadow: 3px 6px 0 rgba(0,0,0,0.06) !important;
    font-weight:700 !important;
    font-size:18px !important;
    color:#29401b !important;
    cursor:pointer !important;
    border: 0px !important;
    box-shadow: 0px 6px 0px 0px #A3BCA2 !important;  }

  /* небольшой отклик */
  button:active{transform:translateY(1px)}

  /* В info-top корзина уходит вправо */
.info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Мусорка справа */
.trash-btn {
  background: var(--e-global-color-primary);
  border: 1px solid #e0e8d6;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.trash-btn svg { width: 20px; height: 20px; opacity: 0.85; }

/* Контролы снизу, справа */
.item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ← чтобы всё было справа */
  gap: 14px;
  width: 100%;
}

.none-image-div img {
  display: none;
}


/* Базовый адаптив */
@media (max-width: 1080px) {
  .wrap {
    padding: 16px;
  }
}

@media (max-width: 980px) {
  .cart-list {
    margin-left: 0px; 
  }
  .item-right {
    width: 100%;
  }
  .product-thumb img {
    width: 280px;
    height: 280px;
  }
}
@media (max-width: 767px) {
  .top-row, .order-row {
    flex-direction: column;
  }

  .top-row {
    align-items: start;
    align-self: start;
  }

  .product-thumb {
    flex: 0 0 100px;
  }

  .product-thumb {
    display: none;
  }

  .none-image-div img{
    border-radius: 10px;
    display: block;
    width: 100px;
    height: 100px;
  }

  .none-image-div {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .meta-data {
    align-self: center;
  }

  h1 {
    font-size: 20px !important;
  }

  .product-title > a {
    font-size: 18px;
  }

  .product-meta {
    font-size: 18px;
  }

  .qty button {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .qty .count {
    width: 32px;
    font-size: 14px;
  }

g .item-total {
    font-size: 14px;
  }

  .trash-btn {
    width: 30px;
    height: 30px;
  }
  .clear-btn {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .clear-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .order-left {
    font-size: 14px;
  }

  .order-left .sum {
    font-size: 16px;
  }

  .order-left .note {
    font-size: 12px;
  }
}

