/*
Theme Name: BUR Catalog Child
Template: bur-catalog
Version: 2.0.0
*/

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.container,
.bur-form-wrap,
.bur-product-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.bur-upload-form {
  display: grid;
  gap: 14px;
}

.bur-upload-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.bur-upload-form input,
.bur-upload-form select,
.bur-upload-form textarea {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.bur-upload-form small,
.bur-help {
  color: #666;
  font-size: 14px;
}

.bur-submit,
.bur-inline-form button {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.bur-error {
  background: #ffe5e5;
  border: 1px solid #cc0000;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.bur-main-image img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

.bur-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.bur-gallery img {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

.bur-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.bur-product-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.bur-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.bur-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.bur-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.bur-status.available {
  background: #fff;
  color: #111;
}

.bur-status.sold {
  background: #111;
  color: #fff;
}

.bur-card-body {
  padding: 10px;
}

.bur-card-body h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.bur-card-body p {
  margin: 0;
  color: #666;
}

.bur-inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.bur-inline-form button,
.bur-inline-form a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 700px) {
  .bur-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}