/* Bitrix integration layer for the Tex-Mart Pebble visual system. */
html { overflow-x: hidden; }
body.pebble-site { min-height: 100vh; display: flex; flex-direction: column; }
body.pebble-overlay-open { overflow: hidden; }
#panel { flex: 0 0 auto; }
.pebble-main { flex: 1 0 auto; min-width: 0; }
.pebble-content { padding-top: 28px; padding-bottom: 100px; }
.pebble-main--home { padding: 0; }
.pebble-desktop-nav { gap: 18px; }
.pebble-content > .tm-breadcrumbs { margin-bottom: 42px; }

.pebble-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  visibility: hidden;
  opacity: 0;
  background: rgba(8,8,8,.42);
  backdrop-filter: blur(5px);
  transition: opacity .22s ease, visibility .22s ease;
}
.pebble-overlay.is-open { visibility: visible; opacity: 1; }
.pebble-overlay .menu-panel { width: min(430px, 94vw); min-height: 100%; padding: 26px; background: #fff; transform: translateX(-100%); transition: transform .25s ease; }
.pebble-overlay.is-open .menu-panel { transform: translateX(0); }
.pebble-overlay .search-panel { width: 100%; min-height: 220px; padding: 44px max(20px, calc((100vw - 1100px) / 2)); background: #fff; transform: translateY(-100%); transition: transform .25s ease; }
.pebble-overlay.is-open .search-panel { transform: translateY(0); }
.pebble-overlay .search-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.pebble-overlay .search-row input { width: 100%; height: 62px; padding: 0 18px; border: 0; border-bottom: 2px solid #080808; border-radius: 0; background: transparent; font-size: clamp(22px,4vw,40px); outline: none; }
.search-hint { margin: 18px 0 0; color: var(--muted); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.close-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 27px; line-height: 1; }
.mobile-nav { display: grid; }
.mobile-nav a { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 700; }

.pebble-basket-count { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; color: #080808; background: var(--yellow); font-size: 10px; font-weight: 700; }
.cart-trigger .bx-basket { position: static !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

.tm-breadcrumbs .breadcrumb { gap: 8px; margin: 0; padding: 0; background: transparent; font-size: 12px; text-transform: uppercase; letter-spacing: .035em; }
.tm-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: '→'; padding-right: 8px; color: #999; }
.tm-breadcrumbs a { color: #555; }
.tm-breadcrumbs .active { color: #080808; }

.pebble-content > h1,
.pebble-content > header h1,
.pebble-content .title { margin: 0 0 28px; font-size: clamp(45px, 6vw, 82px); }
.pebble-content > p { max-width: 850px; }
.pebble-content a:not(.button):not(.btn):not(.page-link) { text-underline-offset: 3px; }

.pebble-site .btn,
.pebble-site input[type='submit'] {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #080808;
  border-radius: 999px;
  color: #fff;
  background: #080808;
  font-weight: 700;
  box-shadow: none;
}
.pebble-site .btn:hover,
.pebble-site .btn:focus { color: #080808; background: #fff; border-color: #080808; }
.pebble-site .btn-outline-secondary,
.pebble-site .btn-outline-primary { color: #080808; background: transparent; }
.pebble-site .form-control,
.pebble-site input[type='text'],
.pebble-site input[type='email'],
.pebble-site input[type='tel'],
.pebble-site input[type='number'],
.pebble-site select,
.pebble-site textarea { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.pebble-site .form-control:focus,
.pebble-site input:focus,
.pebble-site select:focus,
.pebble-site textarea:focus { border-color: #080808; box-shadow: 0 0 0 3px rgba(8,8,8,.08); outline: none; }

/* Catalog sections and product cards */
.pebble-catalog-hero { margin: 0 0 32px; padding: clamp(28px,5vw,64px); border-radius: 28px; background: var(--lilac); }
.pebble-catalog-hero h1 { max-width: 900px; margin: 0 0 16px; font-size: clamp(48px,7vw,92px); }
.pebble-catalog-hero > p:last-child { max-width: 740px; margin-bottom: 0; font-size: 17px; }
.catalog-section-tags { position: static !important; border-color: var(--line) !important; }
.catalog-section-link.chip { border-radius: 999px; }
.catalog-section-links-more { color: #080808 !important; font-weight: 700 !important; }
.catalog-block-header { margin: 0 0 26px; font-size: clamp(38px,5vw,72px); }
.pebble-content .row.g-4 { --bs-gutter-x: 14px; --bs-gutter-y: 36px; }
.pebble-content .card.h-100 { border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent; }
.pebble-content .card.h-100 .catalog-product-image-box,
.pebble-content .card.h-100 > a:first-child { position: relative; overflow: hidden; border-radius: 18px; background: var(--off-white); }
.pebble-content .catalog-product-image { width: 100%; aspect-ratio: 4/5; object-fit: cover !important; transition: transform .45s ease; }
.pebble-content .card:hover .catalog-product-image { transform: scale(1.025); }
.pebble-content .card-body { padding: 14px 0 0 !important; }
.pebble-content .card-title { min-height: 0 !important; margin: 0 0 8px; font-size: 15px !important; line-height: 1.35; letter-spacing: -.015em; }
.tm-catalog-price-row { display: flex; align-items: baseline; gap: 8px; }
.tm-catalog-price-new { color: #080808 !important; font-size: 15px; font-weight: 700; }
.tm-catalog-price-old { font-size: 12px; }
.tm-catalog-availability-text { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.tm-catalog-buy-btn { width: 100%; margin-top: 12px !important; }
.catalog-card-badge,
.catalog-card-discount-badge { border-radius: 999px !important; padding: 7px 10px !important; border: 0 !important; color: #080808 !important; background: var(--yellow) !important; font-size: 9px !important; letter-spacing: .04em; }
.catalog-card-badges { left: 10px !important; top: 10px !important; }
.catalog-card-discount-badge { right: 10px !important; top: 10px !important; }
.category-description { margin-top: 72px !important; padding: 36px; border-radius: 24px; background: var(--lilac); }

.bx-filter { padding: 24px !important; border: 1px solid var(--line) !important; border-radius: 18px !important; background: #fff !important; box-shadow: none !important; }
.bx-filter .bx-filter-title { font-size: 22px !important; font-weight: 700; }
.bx-filter .bx-filter-parameters-box { border-top: 1px solid var(--line); }
.bx-filter .bx-filter-parameters-box-title { color: #080808 !important; }
.pebble-content .pebble-filter-toggle { display: none !important; }

/* Product detail */
.pebble-content .container.my-4 { width: 100%; max-width: none; padding: 0; }
.pebble-content .container.my-4 > .row.g-4 { align-items: start; }
.pebble-content .container.my-4 .ratio { border-radius: 22px !important; background: var(--off-white) !important; }
.pebble-content .container.my-4 .ratio img { object-fit: contain !important; }
.pebble-content .container.my-4 h1 { margin-bottom: 20px; font-size: clamp(42px,5vw,76px); }
.pebble-content .container.my-4 .h4 { color: #080808 !important; font-size: 28px; font-weight: 700; }
.pebble-content .sku-option { min-width: 48px; border-radius: 999px !important; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pebble-content .sku-option:hover { border-color: #080808 !important; }
.pebble-content .sku-option.active,
.pebble-content .sku-option[aria-pressed='true'] { color: #fff !important; background: #080808 !important; border-color: #080808 !important; box-shadow: 0 0 0 3px var(--yellow) !important; transform: translateY(-1px); }
.pebble-content .sku-option.p-0.active,
.pebble-content .sku-option.p-0[aria-pressed='true'] { overflow: hidden; background: #fff !important; }
.pebble-content .sku-option.p-0.active img,
.pebble-content .sku-option.p-0[aria-pressed='true'] img { border: 3px solid #080808; border-radius: inherit; }
.pebble-content a.thumb { opacity: .65; transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pebble-content a.thumb:hover { opacity: 1; }
.pebble-content a.thumb.active,
.pebble-content a.thumb[aria-current='true'] { opacity: 1; border-color: #080808 !important; box-shadow: 0 0 0 3px var(--yellow); }
.pebble-content .nav-tabs { border: 0; gap: 8px; }
.pebble-content .nav-tabs .nav-link { border: 1px solid var(--line); border-radius: 999px; color: #080808; }
.pebble-content .nav-tabs .nav-link.active { color: #fff; background: #080808; border-color: #080808; }
.pebble-content .tab-content { margin-top: 14px; border: 0 !important; border-radius: 18px !important; background: var(--lilac); }
.pebble-content .container.my-4 .bg-light.border { border: 0 !important; border-radius: 18px !important; background: var(--aqua) !important; }
.related-products { width: 100%; max-width: none; margin-top: 0 !important; padding-top: 0; }
.tm-product-image-modal .modal-body { position: relative; min-height: 200px; display: grid; place-items: center; }
.tm-product-image-modal .modal-body > img { max-height: 88vh; max-width: calc(100% - 110px); object-fit: contain; background: #fff; }
.tm-modal-nav { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(8,8,8,.2); border-radius: 50%; color: #080808; background: rgba(255,255,255,.94); box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 22px; transform: translateY(-50%); }
.tm-modal-nav:hover { color: #fff; background: #080808; }
.tm-modal-nav--prev { left: 12px; }
.tm-modal-nav--next { right: 12px; }
.tm-modal-counter { position: absolute; left: 50%; bottom: 12px; z-index: 3; padding: 6px 12px; border-radius: 999px; color: #fff; background: rgba(8,8,8,.72); font-size: 12px; transform: translateX(-50%); }
.tm-size-table { padding: 26px; border-radius: 20px; background: var(--lilac); }
.tm-size-table h2 { margin: 0 0 18px; font-size: 28px; }
.tm-size-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tm-size-table h3, .tm-size-table h4 { margin: 0 0 12px; font-size: 20px; }
.tm-size-table table { width: 100%; min-width: 620px; margin: 0; border-collapse: collapse; background: #fff; }
.tm-size-table th, .tm-size-table td { padding: 13px 15px; border: 1px solid rgba(8,8,8,.14); text-align: left; vertical-align: top; }
.tm-size-table th { width: 30%; background: rgba(8,8,8,.045); font-weight: 700; }

/* Basket and checkout */
.basket-items-list { border: 1px solid var(--line) !important; border-radius: 22px; overflow: hidden; }
.basket-items-list-header { padding: 18px 24px !important; background: var(--off-white); }
.basket-checkout-container { margin-top: 24px; padding: 26px !important; border-radius: 22px; background: var(--lime) !important; }
.bx-sbb-empty-cart-container { min-height: 380px; padding: 56px; border-radius: 24px; background: var(--lilac); }
.bx-soa-wrapper { align-items: flex-start; }
.bx-soa-section { margin-bottom: 16px !important; border: 1px solid var(--line) !important; border-radius: 20px !important; overflow: hidden; }
.bx-soa-section-title-container { padding: 18px 22px !important; background: var(--off-white) !important; }
.bx-soa-section-title { color: #080808 !important; font-size: 20px !important; }
.bx-soa-section-content { padding: 22px !important; }
.bx-soa-cart-total { padding: 24px !important; border: 0 !important; border-radius: 20px !important; background: var(--lime) !important; }

/* News, search, profile and information pages */
.pebble-content .row.g-3 .card { overflow: hidden; border: 1px solid var(--line) !important; border-radius: 20px !important; box-shadow: none !important; }
.pebble-content .row.g-3 .card-body { padding: 22px !important; }
.pebble-content .pagination { gap: 7px; margin-top: 42px; }
.pebble-content .page-link { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50% !important; color: #080808; background: #fff; }
.pebble-content .page-item.active .page-link { color: #fff; background: #080808; border-color: #080808; }
.pebble-info-page { max-width: 1100px; }
.pebble-info-hero { margin-bottom: 42px; padding: clamp(32px,6vw,72px); border-radius: 28px; background: var(--lilac); }
.pebble-info-hero.is-blue { background: var(--blue); }
.pebble-info-hero.is-lime { background: var(--lime); }
.pebble-info-hero h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(45px,6vw,82px); }
.pebble-info-hero p { max-width: 720px; margin: 0; font-size: 18px; }
.pebble-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.pebble-info-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.pebble-info-card h2 { margin-bottom: 14px; font-size: 27px; }
.pebble-info-card p:last-child { margin-bottom: 0; }
.pebble-no-photo { min-height: 100%; display: grid; place-items: center; color: var(--muted); background: var(--off-white); }
.pebble-faq { display: grid; gap: 12px; }
.pebble-faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pebble-faq summary { position: relative; padding: 22px 64px 22px 24px; cursor: pointer; list-style: none; font-size: 20px; font-weight: 700; }
.pebble-faq summary::-webkit-details-marker { display: none; }
.pebble-faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 500; }
.pebble-faq details[open] summary::after { content: '−'; }
.pebble-faq details > div { padding: 0 24px 24px; max-width: 820px; color: #494949; }

.pebble-journal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.pebble-journal-card { min-height: 430px; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--blue); }
.pebble-journal-card:nth-child(3n+2) { background: var(--lilac); }
.pebble-journal-card:nth-child(3n) { background: var(--lime); }
.pebble-journal-card.is-featured { grid-column: 1/-1; display: grid; grid-template-columns: 1.25fr 1fr; min-height: 520px; }
.pebble-journal-image { min-height: 240px; overflow: hidden; }
.pebble-journal-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pebble-journal-card:hover .pebble-journal-image img { transform: scale(1.025); }
.pebble-journal-copy { padding: clamp(24px,4vw,48px); display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.pebble-journal-copy time { margin-bottom: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pebble-journal-copy h2 { margin-bottom: 18px; font-size: clamp(30px,3.5vw,52px); }
.pebble-journal-copy p { color: #484848; }
.pebble-journal-copy .text-link { margin-top: auto; }
.pebble-article { max-width: 1120px; margin-inline: auto; }
.pebble-article-header { max-width: 920px; margin: 0 auto 50px; text-align: center; }
.pebble-article-header time { display: block; margin-bottom: 18px; color: var(--muted); }
.pebble-article-header h1 { margin-bottom: 24px; font-size: clamp(48px,7vw,94px); }
.pebble-article-lead { max-width: 760px; margin-inline: auto; font-size: clamp(20px,2.4vw,30px); }
.pebble-article-cover { margin: 0 0 58px; overflow: hidden; border-radius: 28px; background: var(--off-white); }
.pebble-article-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.pebble-article-body { max-width: 760px; margin-inline: auto; font-family: Arial,sans-serif; font-size: 18px; line-height: 1.78; }
.pebble-article-body h2, .pebble-article-body h3 { margin: 1.6em 0 .65em; font-family: "Bricolage Grotesque",Arial,sans-serif; }
.pebble-article-body h2 { font-size: 38px; }
.pebble-article-body h3 { font-size: 28px; }
.pebble-article-body img { height: auto; margin: 36px auto; border-radius: 18px; }

@media (max-width: 1120px) {
  .pebble-desktop-nav { display: none; }
  .mobile-trigger { display: grid; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
}

@media (max-width: 991px) {
  .announcement { gap: 18px; }
  .pebble-desktop-nav { display: none; }
  .mobile-trigger { display: grid; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .pebble-content { padding-top: 22px; }
  .pebble-content > .tm-breadcrumbs { margin-bottom: 28px; }
  .pebble-content .container.my-4 .col-md-6 { width: 100%; }
  .pebble-content .container.my-4 .col-md-6 + .col-md-6 { margin-top: 22px; }
  .pebble-content .pebble-filter-toggle { display: inline-flex !important; margin-bottom: 16px; }
  .bx-filter { display: none; }
  .bx-filter.is-mobile-open { display: block; }
}

@media (max-width: 700px) {
  .announcement span { display: none; }
  .announcement { justify-content: space-between; padding: 0 14px; font-size: 10px; }
  .site-header { height: 68px; padding-inline: 14px; }
  .site-header .logo { font-size: 22px; }
  .header-actions { gap: 15px; }
  .user-icon { display: none; }
  .pebble-overlay .search-panel { padding: 24px 16px; }
  .pebble-overlay .search-row { grid-template-columns: 1fr auto; }
  .pebble-overlay .search-row .button { grid-column: 1/-1; }
  .pebble-overlay .search-row input { font-size: 22px; }
  .pebble-content { width: calc(100vw - 28px); padding-bottom: 70px; }
  .pebble-content > h1, .pebble-content > header h1, .pebble-content .title { font-size: 44px; }
  .pebble-catalog-hero { padding: 28px 20px; border-radius: 20px; }
  .pebble-catalog-hero h1 { font-size: 48px; }
  .pebble-content .row.g-4 > .col-6 { width: 50%; padding-left: 4px; padding-right: 4px; }
  .pebble-content .row.g-4 { margin-left: -4px; margin-right: -4px; }
  .pebble-content .card-title { font-size: 13px !important; }
  .tm-catalog-buy-btn { min-height: 40px !important; padding-inline: 10px !important; font-size: 12px !important; }
  .category-description { padding: 22px; }
  .pebble-info-grid { grid-template-columns: 1fr; }
  .pebble-journal-grid { grid-template-columns: 1fr; }
  .pebble-journal-card.is-featured { grid-column: auto; display: flex; min-height: 430px; }
  .pebble-info-hero { padding: 28px 20px; border-radius: 20px; }
  .pebble-info-hero h1 { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tm-product-image-modal .modal-body > img { max-width: 100%; max-height: 82vh; }
  .tm-modal-nav { width: 42px; height: 42px; }
  .tm-modal-nav--prev { left: 6px; }
  .tm-modal-nav--next { right: 6px; }
  .tm-size-table { padding: 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pebble-overlay, .pebble-overlay > * { transition: none !important; }
}
