/* ==========================================================================
   Catlog shared styles (catlog.php + catlog_details.php)
   ========================================================================== */

body {
  margin: 0;
  font-family: "Bitter", serif;
}

.primary-colors {
  color: #fff;
  background: #1F1F71;
}

.secondary-colors {
  color: #fff;
  background: #1F1F71;
}

/* ---- Header ---- */
#header {
  display: flex;
  align-items: center;
  position: relative;
}

#header .profile-summary {
  padding: 16px;
  flex: 1;
}

#header .profile-summary h1 {
  margin: 0;
}

#header .profile-pic {
  width: 100px;
  height: 100px;
  background-size: cover;
  background-position: 50% 50%;
  margin: 8px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: inset -4px -4px 16px rgba(0, 0, 0, 0.7);
}

/* ---- Contacts bar ---- */
#contacts {
  display: flex;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#contacts a {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

#contacts a:hover {
  background: rgba(255, 255, 255, 0.2);
}

i.fas {
  margin-right: 8px;
  margin-top: 8px;
}

/* ---- Shared helpers ---- */
.time {
  bottom: 20px;
  right: 20px;
  position: absolute;
  font-size: 12px;
}

.title {
  color: #000;
}

/* ---- catlog.php (listing grid) ---- */
.ct_img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.item-info {
  position: relative;
}

.itemPrice {
  color: #000;
  margin: 8px 0;
}

.itemTitle {
  color: #444;
  font-size: 14px;
  line-height: 1.7;
  display: inline-block;
}

.card a {
  color: inherit;
  text-decoration: none;
}

/* ---- catlog_details.php (single item) ---- */
.d-block {
  height: 500px;
  /* object-fit: cover; */
}

.cat_log {
  margin: 25px;
}

.call_ret {
  position: fixed;
  width: 100%;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  text-align: center;
  padding: 12px 0;
  border-radius: 0;
}

/* ---- Responsive ---- */
@media screen and (max-width: 600px) {
  #header {
    flex-direction: column;
  }

  #header .profile-summary {
    text-align: center;
    padding-top: 0;
  }

  #header .profile-pic {
    margin: 16px 16px 0;
  }

  #contacts {
    display: block;
    padding: 8px 16px;
    line-height: 2em;
  }

  #contacts a {
    padding: 0 16px 0 0;
    display: flex;
  }

  #contacts a:hover {
    background: none;
    text-shadow: 0 0 16px #fff;
  }

  .ct_img {
    height: 125px !important;
  }
}