/* frontend.css for Celik Catalogs - responsive grid & page/view styles */

/* Grid of catalog cards */
.catalogs-grid, .celik-catalogs-list-shortcode .catalogs-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr); /* default: 2 columns (mobile) */
  align-items: start;
  margin: 12px 0;
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .catalogs-grid, .celik-catalogs-list-shortcode .catalogs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card */
.catalog-card, .celik-catalogs-list-shortcode .catalog-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform .14s ease, box-shadow .14s ease;
  overflow: hidden;
}

/* image */
.catalog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display:block;
}

/* title */
.catalog-card h3 {
  margin: 10px 0 0;
  font-size: 16px;
  color: #222;
}

/* hover */
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

/* Single catalog page styles */
.selonya-catalog-single .selonya-page {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Download button (top) */
.selonya-pdf-download {
  display:inline-block;
  padding:8px 12px;
  background:#222;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
}

/* Floating PDF button for mobile */
.selonya-floating-pdf {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  background: #222;
  color: #fff;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  font-weight:700;
}

/* small screens hide top button and show floating */
@media (max-width: 600px) {
  .selonya-catalog-single .catalog-single-header .selonya-pdf-download { display:none; }
}

/* ensure fragments inside page keep their own styling */
.selonya-page img { max-width:100%; height:auto; display:block; }

/* simple wrapper */
.celik-catalogs-list .wrap, .selonya-catalog-single .wrap { padding: 18px; max-width:1180px; margin: 0 auto; }
