/* ===== Общие стили товаров ===== */

.profile-card {
  margin-bottom: 28px !important;
}

.profile-card .card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  overflow: visible !important;
  position: relative !important;
}

.profile-card .card:hover {
  transform: none !important;
}

.profile-card .card .row {
  display: flex !important;
  gap: 12px !important;
  margin: 0 !important;
  align-items: stretch !important;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
.profile-card .card .col-sm-5 {
  flex: 0 0 120px !important;
  max-width: 120px !important;
  width: 120px !important;
  padding: 0 !important;
}

.profile-card .card-image {
  width: 120px !important;
  height: 120px !important;
  min-height: 120px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #121212 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.profile-card .card:hover .card-image {
  transform: translateY(3px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

.profile-card .card .col-sm-7 {
  flex: 1 !important;
  max-width: none !important;
  padding: 14px 14px 54px 14px !important;
  background: #151515 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  text-align: center !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  position: relative !important;
}

.profile-card .card:hover .col-sm-7 {
  transform: translateY(3px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

.profile-card .card .card-header {
  display: none !important;
}

.profile-card .card .card-body {
  padding: 0 !important;
  background: transparent !important;
  text-align: center !important;
  width: 100% !important;
}

.profile-card .card .card-title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-align: center !important;
}

.profile-card .card .card-footer {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  width: 100% !important;
}

.profile-card .card .card-footer h6 {
  color: #00e676 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  text-align: center !important;
}

.profile-card .card > a[data-request="onAdd"] {
  position: absolute !important;
  left: calc(120px + 12px + (100% - 120px - 12px) / 2) !important;
  transform: translateX(-50%) !important;
  bottom: 12px !important;
  top: auto !important;
  right: auto !important;
  background: rgba(0,0,0,0.55) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(0,230,118,0.3) !important;
  z-index: 10 !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
  margin: 0 !important;
}

.profile-card .card > a[data-request="onAdd"]:hover {
  background: rgba(0,230,118,0.2) !important;
  transform: translateX(-50%) scale(1.08) !important;
}

.profile-card .card > a[data-request="onAdd"] i {
  color: #00e676 !important;
  font-size: 16px !important;
}


/* ===== ВЕРСИЯ ДЛЯ ПЛАНШЕТОВ ===== */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .profile-card {
    margin-bottom: 32px !important;
  }

  .profile-card .card .row {
    gap: 16px !important;
  }

  .profile-card .card .col-sm-5 {
    flex: 0 0 200px !important;
    max-width: 200px !important;
    width: 200px !important;
  }

  .profile-card .card-image {
    width: 200px !important;
    height: 200px !important;
    min-height: 200px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  }

  .profile-card .card .col-sm-7 {
    padding: 20px 20px 64px 20px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }

  .profile-card .card .card-title {
    font-size: 1.35rem !important;
  }

  .profile-card .card .card-footer h6 {
    font-size: 1.2rem !important;
  }

  .profile-card .card > a[data-request="onAdd"] {
    left: calc(200px + 16px + (100% - 200px - 16px) / 2) !important;
    bottom: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .profile-card .card > a[data-request="onAdd"] i {
    font-size: 22px !important;
  }
}


/* ===== ВЕРСИЯ ДЛЯ КОМПЬЮТЕРОВ (ПК) ===== */
@media (min-width: 1200px) {

  .profile-card {
    margin-bottom: 40px !important;
  }

  /* Выстраиваем элементы карточки строго вертикально: картинка сверху, плашка снизу */
  .profile-card .card .row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }

  .profile-card .card .col-sm-5 {
    flex: 0 0 420px !important;
    max-width: 420px !important;
    width: 420px !important;
  }

  .profile-card .card-image {
    width: 420px !important;
    height: 420px !important;
    min-height: 420px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.55) !important;
  }

  /* Эффект легкого подъема при наведении на всю карточку */
  .profile-card .card:hover {
    transform: translateY(-5px) !important;
  }

  .profile-card .card:hover .card-image {
    box-shadow: 0 18px 48px rgba(0,0,0,0.65) !important;
  }

  /* Нижняя рамка: теперь находится СТРОГО ПОД донатом, по центру, с одинаковыми отступами */
  .profile-card .card .col-sm-7 {
    width: 280px !important;
    max-width: 280px !important;
    padding: 16px 16px 64px 16px !important;
    background: #151515 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .profile-card .card .card-title {
    font-size: 1.45rem !important;
  }

  .profile-card .card .card-footer h6 {
    font-size: 1.25rem !important;
  }

  /* Иконка корзинки: зафиксирована строго по центру внизу плашки, под ценником */
  .profile-card .card > a[data-request="onAdd"] {
    position: absolute !important;
    left: 50% !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    right: auto !important;
    background: rgba(0,0,0,0.55) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(0,230,118,0.4) !important;
    z-index: 10 !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    margin: 0 !important;
  }

  .profile-card .card > a[data-request="onAdd"]:hover {
    background: rgba(0,230,118,0.25) !important;
    transform: translateX(-50%) scale(1.08) !important;
    box-shadow: 0 0 14px rgba(0,230,118,0.3) !important;
  }

  .profile-card .card > a[data-request="onAdd"] i {
    font-size: 18px !important;
    color: #00e676 !important;
  }
}
