/* JPCASIO — blog skin (article + category). Scoped under .jp. Дополняет skin.css. */

/* ============ ARTICLE PAGE (#product-product) ============ */

/* hero: крупная обложка сверху, доп.миниатюры прячем */
.jp #product-product .thumbnails { list-style: none; margin: 0 0 26px; padding: 0; }
.jp #product-product .thumbnails > li { display: block; margin: 0; width: 100%; }
.jp #product-product .thumbnails .image-additional { display: none; }
.jp #product-product .thumbnails .thumbnail {
  display: block; border: 0; padding: 0; margin: 0; box-shadow: none;
  border-radius: var(--r-l); overflow: hidden;
}
.jp #product-product .thumbnails .thumbnail img {
  width: 100%; height: clamp(220px, 36vw, 420px); object-fit: cover; display: block;
}

/* заголовок статьи */
.jp #product-product > .row #content > h1,
.jp #product-product h1 {
  font-size: clamp(28px, 4vw, 46px); font-weight: 900; text-transform: uppercase;
  line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 18px; color: var(--ink);
}

/* тело статьи — читаемая колонка */
.jp #product-product #tab-description {
  max-width: 760px; font-size: 16.5px; line-height: 1.72; color: var(--ink-2);
}
.jp #product-product #tab-description h2 {
  font-size: 23px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  margin: 34px 0 12px; color: var(--ink);
}
.jp #product-product #tab-description h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; color: var(--ink); }
.jp #product-product #tab-description p { margin: 0 0 16px; }
.jp #product-product #tab-description ul,
.jp #product-product #tab-description ol { margin: 0 0 18px; padding-left: 22px; }
.jp #product-product #tab-description li { margin: 0 0 9px; }
.jp #product-product #tab-description li::marker { color: var(--acc); font-weight: 700; }
.jp #product-product #tab-description blockquote {
  border: 0; border-left: 3px solid var(--acc); margin: 26px 0; padding: 4px 0 4px 22px;
  font-size: 21px; line-height: 1.4; font-style: italic; color: var(--ink); background: transparent;
}
.jp #product-product #tab-description img { max-width: 100%; height: auto; border-radius: var(--r-m); margin: 10px 0; }
.jp #product-product #tab-description a { color: var(--acc-ink); }
.jp #product-product #tab-description strong { color: var(--ink); }

/* убираем продуктовые табы/рейтинг-мусор на статье */
.jp #product-product .nav-tabs { display: none; }
.jp #product-product #content > .row + .row h2 { /* заголовки «Похожие»/«Отзывы» */
  font-size: 20px; font-weight: 800; text-transform: uppercase; margin: 30px 0 14px;
}

/* ============ CATEGORY / LIST (.showcase-list) ============ */

.jp .showcase-list > h1 {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; text-transform: uppercase; margin: 0 0 6px;
}
.jp .showcase-list > .row > .col-sm-10 { color: var(--ink-3); }

/* тулбар сортировки/вида */
.jp .showcase-list .btn-group .btn { border-radius: var(--r-s); }
.jp .showcase-list select.form-control { border-radius: var(--r-s); }

/* строка-статья */
.jp .showcase-list .product-list .product-thumb {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 0 0 22px; margin: 0 0 22px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0;
}
.jp .showcase-list .product-list .product-thumb .image {
  flex: 0 0 240px; max-width: 240px; border-radius: var(--r-m); overflow: hidden; margin: 0;
}
.jp .showcase-list .product-list .product-thumb .image img {
  width: 100%; height: 152px; object-fit: cover; display: block;
}
.jp .showcase-list .product-list .product-thumb .caption { flex: 1 1 auto; padding: 0; min-width: 0; }
.jp .showcase-list .product-list .product-thumb .caption h4 { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.jp .showcase-list .product-list .product-thumb .caption h4 a { color: var(--ink); }
.jp .showcase-list .product-list .product-thumb .caption h4 a:hover { color: var(--acc-ink); }
.jp .showcase-list .product-list .product-thumb .caption .description {
  color: var(--ink-3); font-size: 14.5px; line-height: 1.55; margin: 0;
}
.jp .showcase-list .product-list .product-thumb .button-group {
  display: flex; gap: 8px; margin-top: 14px; border: 0; background: transparent;
}
.jp .showcase-list .product-list .product-thumb .button-group button {
  flex: 0 0 auto; width: auto; background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 7px 13px; color: var(--ink-2); line-height: 1;
}
.jp .showcase-list .product-list .product-thumb .button-group button:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 600px) {
  .jp .showcase-list .product-list .product-thumb { flex-direction: column; gap: 14px; }
  .jp .showcase-list .product-list .product-thumb .image { flex-basis: auto; max-width: none; width: 100%; }
  .jp .showcase-list .product-list .product-thumb .image img { height: 200px; }
}

/* =====================================================================
   JOURNAL LISTING (blog/latest + blog/category) — handoff editorial grid
   ===================================================================== */
.jp .jrn { padding: 6px 0 80px; }
.jp .jrn-head { padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.jp .jrn-head .display { font-size: clamp(30px, 4.4vw, 52px); }
.jp .jrn-sub { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); margin-top: 14px; text-transform: uppercase; }

/* category intro (image + description) */
.jp .jrn-intro { display: flex; gap: 28px; align-items: flex-start; margin: 0 0 32px; }
.jp .jrn-intro-img { flex: 0 0 220px; max-width: 220px; border-radius: var(--r-l); overflow: hidden; }
.jp .jrn-intro-img img { width: 100%; height: auto; display: block; }
.jp .jrn-intro-body { flex: 1 1 auto; color: var(--ink-2); font-size: 15.5px; line-height: 1.72; max-width: 760px; }
.jp .jrn-intro-body p { margin: 0 0 12px; }

/* subcategory chips */
.jp .jrn-subcats { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.jp .jrn-chip { display: inline-flex; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .02em; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: border-color .15s, color .15s, background .15s; }
.jp .jrn-chip:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* toolbar */
.jp .jrn-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 30px; flex-wrap: wrap; }
.jp .jrn-count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .05em; color: var(--ink-3); text-transform: uppercase; }
.jp .jrn-sorts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jp .jrn-field { display: flex; align-items: center; gap: 9px; }
.jp .jrn-field label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.jp .jrn-field select {
  height: 40px; padding: 0 34px 0 13px; background: #fff; border: 1.5px solid var(--line-2);
  border-radius: var(--r-m); font-size: 13px; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%235d544a' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.jp .jrn-field select:focus { outline: none; border-color: var(--ink); }

/* article grid */
.jp .jrn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 32px; }
.jp .jcard { display: flex; flex-direction: column; text-align: left; }
.jp .jcard-thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.jp .jcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.jp .jcard:hover .jcard-thumb img { transform: scale(1.045); }
.jp .jcard-meta { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.jp .jcard-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-3); }
.jp .jcard-meta .fa { color: var(--acc-ink); margin-right: 3px; }
.jp .jcard-title { font-size: 19px; font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: var(--ink); margin-bottom: 9px; transition: color .15s; }
.jp .jcard:hover .jcard-title { color: var(--acc-ink); }
.jp .jcard-excerpt { font-size: 14px; line-height: 1.62; color: var(--ink-2); }
.jp .jcard-more { margin-top: 13px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; align-self: flex-start; text-transform: uppercase; transition: color .15s, border-color .15s; }
.jp .jcard:hover .jcard-more { color: var(--acc-ink); border-color: var(--acc); }

/* footer / pagination */
.jp .jrn-foot { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.jp .jrn-foot .pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jp .jrn-foot .pagination > li { margin: 0; }
.jp .jrn-foot .pagination > li > a,
.jp .jrn-foot .pagination > li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--r-m); font-size: 13px; color: var(--ink-2); background: #fff; text-decoration: none; transition: border-color .15s, color .15s; }
.jp .jrn-foot .pagination > li > a:hover { border-color: var(--ink); color: var(--ink); }
.jp .jrn-foot .pagination > li.active > span { background: var(--ink); color: #fff; border-color: var(--ink); }
.jp .jrn-foot .pagination > li.disabled > span { opacity: .4; }

@media (max-width: 980px) { .jp .jrn-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; } }
@media (max-width: 600px) {
  .jp .jrn-grid { grid-template-columns: 1fr; gap: 32px; }
  .jp .jrn-intro { flex-direction: column; }
  .jp .jrn-intro-img { flex-basis: auto; max-width: none; width: 100%; }
  .jp .jrn-bar { align-items: flex-start; }
}

/* =====================================================================
   CONTACT (information/contact)
   ===================================================================== */
.jp .jp-contact { padding: 6px 0 84px; }
.jp .contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 54px; align-items: start; }
.jp .contact-info { display: flex; flex-direction: column; gap: 24px; }
.jp .contact-photo { border-radius: var(--r-l); overflow: hidden; }
.jp .contact-photo img { width: 100%; height: auto; display: block; }
.jp .cinfo-block { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.jp .cinfo-block:last-child { border-bottom: 0; padding-bottom: 0; }
.jp .cinfo-block address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink); }
.jp .cinfo-block .big { font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.jp .cinfo-block .big a:hover { color: var(--acc-ink); }
.jp .cinfo-block .lines { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.jp .cinfo-block .btn { margin-top: 6px; align-self: flex-start; }

.jp .contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px; box-shadow: var(--sh-1); }
.jp .contact-form h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 6px; }
.jp .contact-form .form-sub { font-size: 14px; color: var(--ink-2); margin: 0 0 26px; }
.jp .contact-form .field { margin-bottom: 18px; }
.jp .contact-form .input { width: 100%; }
.jp .contact-form textarea.input { height: auto; min-height: 156px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.jp .contact-form .text-danger { color: var(--acc-ink); font-size: 12.5px; margin-top: 5px; }
.jp .contact-form .form-actions { margin-top: 8px; }
.jp .contact-form .captcha-wrap { margin: 4px 0 18px; }

.jp .stores { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.jp .stores-h { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 22px; }
.jp .stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.jp .store-card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; background: var(--paper-2); display: flex; flex-direction: column; gap: 6px; }
.jp .store-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.jp .store-card address { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.jp .store-card .smeta { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.jp .store-card .smeta b { color: var(--ink); font-weight: 700; }
.jp .store-card .btn { margin-top: 10px; align-self: flex-start; }

@media (max-width: 860px) {
  .jp .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .jp .contact-form { padding: 26px; }
}

/* =====================================================================
   SITEMAP (information/sitemap)
   ===================================================================== */
.jp .jp-sitemap { padding: 6px 0 84px; }
.jp .smap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.jp .smap-h { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.jp .smap-tree, .jp .smap-tree ul { list-style: none; margin: 0; padding: 0; }
.jp .smap-tree > li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.jp .smap-tree > li > a { font-size: 16px; font-weight: 700; color: var(--ink); }
.jp .smap-tree > li > a:hover { color: var(--acc-ink); }
.jp .smap-tree ul { margin: 9px 0 2px; padding-left: 16px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.jp .smap-tree ul li { padding: 2px 0; }
.jp .smap-tree ul a { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.jp .smap-tree ul a:hover { color: var(--acc-ink); }
.jp .smap-tree ul ul { padding-left: 14px; margin: 5px 0 3px; }
.jp .smap-tree ul ul a { font-size: 13px; color: var(--ink-3); }

@media (max-width: 720px) { .jp .smap-cols { grid-template-columns: 1fr; gap: 32px; } }
