/* MebelArt shop listing styles (theme-agnostic; works under bartik). */
.mshop { max-width: 1200px; margin: 0 auto; }
.mshop-grid { display: grid; gap: 20px; }
.mshop-cats { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mshop-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.mshop-preview-note {
  background: #fff7e6; border: 1px solid #ffd591; color: #8a5a00;
  padding: 10px 14px; border-radius: 6px; margin: 0 0 18px;
}

/* Category cards */
.mshop-cat-card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid #e6e6e6; border-radius: 8px; overflow: hidden;
  background: #fff; transition: box-shadow .15s, transform .15s;
}
.mshop-cat-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.mshop-cat-img {
  display: block; height: 160px; background: #f3f3f3 center/cover no-repeat;
}
.mshop-cat-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mshop-cat-name { font-weight: 600; color: #222; }
.mshop-cat-count { font-size: 13px; color: #888; }

/* Product cards */
.mshop-card {
  display: flex; flex-direction: column;
  border: 1px solid #e6e6e6; border-radius: 8px; overflow: hidden; background: #fff;
  transition: box-shadow .15s;
}
.mshop-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.mshop-card.is-unpub { opacity: .6; outline: 2px dashed #f0a; outline-offset: -2px; }
.mshop-card-imgwrap {
  display: block; height: 200px; background: #f7f7f7;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mshop-card-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mshop-card-noimg { width: 100%; height: 100%; background: repeating-linear-gradient(45deg,#f3f3f3,#f3f3f3 10px,#ececec 10px,#ececec 20px); }
.mshop-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mshop-card-title {
  font-size: 14px; line-height: 1.3; color: #1a4f8a; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mshop-card-title:hover { text-decoration: underline; }
.mshop-card-dims { font-size: 12px; color: #999; }
.mshop-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mshop-card-price { font-weight: 700; font-size: 16px; color: #222; white-space: nowrap; }
.mshop-order-btn {
  display: inline-block; background: #e8730c; color: #fff; text-decoration: none;
  padding: 6px 12px; border-radius: 5px; font-size: 13px; white-space: nowrap;
}
.mshop-order-btn:hover { background: #cf6209; color: #fff; }
.mshop-order-btn--big { padding: 12px 28px; font-size: 16px; margin-top: 14px; }

/* Order modal form */
.mshop-order-intro { margin: 0 0 6px; color: #555; }
.mshop-order-product { margin: 0 0 12px; }
#mebelart-order-form-wrapper .form-item { margin: 8px 0; }
#mebelart-order-form-wrapper input[type="text"],
#mebelart-order-form-wrapper input[type="tel"],
#mebelart-order-form-wrapper textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid #ccc; border-radius: 5px;
}
.mshop-order-submit { background: #e8730c; color: #fff; border: 0; padding: 10px 20px; border-radius: 5px; cursor: pointer; }
.mshop-order-submit:hover { background: #cf6209; }
.mebelart-orders-table td { font-size: 13px; vertical-align: top; }

/* ---- Product page ---- */
.mshop-product { max-width: 1100px; }
.mshop-product-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .mshop-product-top { grid-template-columns: 1fr; } }
.mshop-gallery-main {
  border: 1px solid #eee; border-radius: 8px; background: #fff; height: 420px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mshop-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mshop-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mshop-thumb { width: 68px; height: 68px; border: 1px solid #ddd; border-radius: 6px; background: #fff; padding: 2px; cursor: pointer; overflow: hidden; }
.mshop-thumb.is-active { border-color: #e8730c; }
.mshop-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mshop-buy { border: 1px solid #eee; border-radius: 8px; padding: 18px; background: #fafafa; }
.mshop-buy-price { font-size: 28px; font-weight: 700; color: #222; }
.mshop-buy-stock { display: inline-block; margin: 8px 0; font-size: 13px; padding: 3px 10px; border-radius: 12px; }
.mshop-buy-stock.in { background: #e7f6e7; color: #257825; }
.mshop-buy-stock.pre { background: #fff3e0; color: #9a6200; }
.mshop-buy-cat { font-size: 13px; color: #666; margin-bottom: 10px; }
.mshop-buy-keyspecs { list-style: none; padding: 0; margin: 12px 0; border-top: 1px solid #eee; }
.mshop-buy-keyspecs li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.mshop-buy-keyspecs span { color: #888; }
.mshop-section { margin-top: 28px; }
.mshop-section h2 { font-size: 20px; margin-bottom: 12px; border-bottom: 2px solid #e8730c; display: inline-block; padding-bottom: 4px; }
.mshop-specs-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.mshop-specs-table td { padding: 8px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.mshop-specs-table td.k { color: #777; width: 45%; }
.mshop-specs-table td.v { font-weight: 600; }
.mshop-specs-extra { margin-top: 12px; font-size: 13px; color: #555; }
.mshop-specs-extra ul { margin: 0; padding-left: 18px; }

/* ---- Category SEO blocks ---- */
.mshop-cat-intro { color: #444; font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 900px; }
.mshop-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mshop-tag { display: inline-block; padding: 6px 14px; border: 1px solid #ddd; border-radius: 16px; font-size: 13px; color: #1a4f8a; text-decoration: none; background: #fff; }
.mshop-tag:hover { border-color: #e8730c; color: #cf6209; }
.mshop-cat-seo { margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; color: #444; font-size: 14px; line-height: 1.7; max-width: 900px; }
.mshop-cat-seo h2, .mshop-cat-seo h3 { font-size: 18px; margin: 16px 0 8px; }
.mshop-cat-seo p { margin: 0 0 12px; }
.mshop-cat-seo a { color: #1a4f8a; }
.mshop-pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.mshop-pager-num, .mshop-pager-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; color: #333; }
.mshop-pager-num.is-current { background: #e8730c; color: #fff; border-color: #e8730c; }
.mshop-pager-num:hover, .mshop-pager-arrow:hover { border-color: #e8730c; }

/* ---- Filters ---- */
.mshop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px; background: #fafafa; border: 1px solid #eee; border-radius: 8px; margin: 0 0 18px; }
.mshop-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mshop-filter-label { font-size: 13px; color: #888; font-weight: 600; }
.mshop-filter { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid #ddd; border-radius: 14px; font-size: 13px; color: #333; text-decoration: none; background: #fff; }
.mshop-filter i { font-style: normal; color: #aaa; font-size: 11px; }
.mshop-filter:hover { border-color: #e8730c; }
.mshop-filter.is-active { background: #e8730c; border-color: #e8730c; color: #fff; }
.mshop-filter.is-active i { color: #ffe; }
.mshop-filter-reset { font-size: 13px; color: #c0392b; text-decoration: none; }
