.martivi-product-shell {
  display: grid;
  grid-template-columns: minmax(255px, 292px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.martivi-product-content { min-width: 0; }
.martivi-product-sidebar { position: sticky; top: 18px; z-index: 30; min-width: 0; }
.martivi-product-sidebar .martivi-filter-heading { margin: 0 0 10px; color: #1c2733; font-size: 18px; font-weight: 800; }
.martivi-product-sidebar .martivi-filter-panel { margin: 0; padding: 16px; border: 1px solid #e5eaf0; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(20,35,55,.07); }
.martivi-product-sidebar .martivi-filter-form { display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
.martivi-product-sidebar .martivi-filter-label { display: block; min-height: 15px; margin-bottom: 7px; color: #5b6876; font-size: 12px; font-weight: 700; line-height: 1.2; }
.martivi-product-sidebar .martivi-filter-control { width: 100%; }
.martivi-product-sidebar .martivi-filter-search-control { width: 100%; }
.martivi-product-sidebar .martivi-filter-search-box { display: flex; width: 100%; overflow: hidden; border: 1px solid #d8e0e9; border-radius: 9px; background: #fff; }
.martivi-product-sidebar .martivi-filter-search-box input { min-width: 0; flex: 1 1 auto; border: 0; outline: 0; padding: 11px 10px; color: #263342; }
.martivi-product-sidebar .martivi-filter-search-box button { width: 42px; border: 0; background: var(--gs-brand,#006b8f); color: #fff; cursor: pointer; }
.martivi-product-sidebar .martivi-select-toggle { width: 100%; min-height: 46px; }
.martivi-product-sidebar .martivi-search-dropdown { position: relative; z-index: 1; width: 100%; }
.martivi-product-sidebar .martivi-search-dropdown.is-open { z-index: 100; }
.martivi-product-sidebar .martivi-select-toggle { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 13px; border: 1px solid #d8dee8; border-radius: 9px; background: #fff; color: #111; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.martivi-product-sidebar .martivi-select-toggle:hover, .martivi-product-sidebar .martivi-search-dropdown.is-open .martivi-select-toggle { border-color: var(--gs-brand,#006b8f); box-shadow: 0 0 0 2px rgba(0,107,143,.12); }
.martivi-product-sidebar .martivi-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.martivi-product-sidebar .martivi-select-chevron { flex: 0 0 auto; margin-left: 10px; color: #687482; font-size: 18px; line-height: 1; }
.martivi-product-sidebar .martivi-select-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; left: 0; max-height: 290px; padding: 10px; overflow-y: auto; border: 1px solid #d8dee8; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(20,35,55,.18); }
.martivi-product-sidebar .martivi-search-dropdown.is-open .martivi-select-menu { display: block; }
.martivi-product-sidebar .martivi-select-search { width: 100%; height: 38px; margin: 0 0 8px; padding: 0 10px; border: 1px solid #d8dee8; border-radius: 7px; outline: 0; background: #fff; color: #111; font: inherit; font-size: 13px; }
.martivi-product-sidebar .martivi-select-options { display: grid; gap: 2px; }
.martivi-product-sidebar .martivi-filter-option, .martivi-product-sidebar .martivi-filter-check-option { display: flex; align-items: center; box-sizing: border-box; width: 100%; min-height: 36px; gap: 9px; padding: 7px 8px; border: 0; border-radius: 7px; background: #fff; color: #111; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.martivi-product-sidebar .martivi-filter-option { display: block; }
.martivi-product-sidebar .martivi-filter-option:hover, .martivi-product-sidebar .martivi-filter-option.is-selected, .martivi-product-sidebar .martivi-filter-check-option:hover, .martivi-product-sidebar .martivi-filter-check-option:has(input:checked) { background: #f1f6f8; color: #00405d; }
.martivi-product-sidebar .martivi-filter-check-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--gs-brand,#006b8f); }
.martivi-product-sidebar .martivi-filter-check-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.martivi-product-sidebar .martivi-select-menu { z-index: 150; }
.martivi-product-sidebar .martivi-price-inputs { display: grid; grid-template-columns: minmax(0,1fr) 9px minmax(0,1fr); align-items: center; gap: 3px; min-width: 0; }
.martivi-product-sidebar .martivi-price-inputs input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 45px; padding: 9px 7px; border: 1px solid #d8e0e9; border-radius: 9px; outline: 0; font-size: 12px; }
.martivi-product-sidebar .find2 { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--gs-brand,#006b8f); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.martivi-product-sidebar-section { margin-top: 18px; padding: 15px; border: 1px solid #e7ebf0; border-radius: 13px; background: #f8fafc; }
.martivi-product-sidebar-section h2 { margin: 0 0 10px; color: #243241; font-size: 16px; }
.martivi-sidebar-link-list { display: flex; flex-wrap: wrap; gap: 7px; }
.martivi-sidebar-link-list a { padding: 7px 9px; border: 1px solid #dbe2e9; border-radius: 999px; background: #fff; color: #384858; font-size: 12px; text-decoration: none; }
.martivi-sidebar-link-list a:hover { border-color: var(--gs-brand,#006b8f); color: var(--gs-brand,#006b8f); }
.martivi-sidebar-faq details { border-top: 1px solid #e4e9ef; padding: 9px 0; }
.martivi-sidebar-faq details:first-of-type { border-top: 0; padding-top: 0; }
.martivi-sidebar-faq summary { color: #344454; cursor: pointer; font-size: 12px; font-weight: 700; }
.martivi-sidebar-faq p { margin: 7px 0 0; color: #6b7885; font-size: 11px; line-height: 1.55; }

/* The related section is a real catalogue grid, including the same hover
 * actions, media switch and cart metadata as the main catalogue. */
.product-page .martivi-related-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-page .martivi-related-card { min-width: 0; overflow: hidden; border: 1px solid #e6eaf0; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(20,35,55,.09); transition: transform .2s ease, box-shadow .2s ease; }
.product-page .martivi-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,35,55,.15); }
.product-page .martivi-related-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.product-page .martivi-related-card .inner_content { height: 100%; padding: 0 0 14px; }
.product-page .martivi-related-card .product_image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f7f7f7; }
.product-page .martivi-related-card .martivi-card-media { position: absolute; inset: 0; overflow: hidden; }
.product-page .martivi-related-card .martivi-card-media .martivi-card-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transition: opacity .25s ease, transform .3s ease; }
.product-page .martivi-related-card .martivi-card-image--alternate { opacity: 0; }
.product-page .martivi-related-card:hover .martivi-card-image--primary { transform: scale(1.05); }
.product-page .martivi-related-card:hover .martivi-card-media.has-alternate .martivi-card-image--primary { opacity: 0; }
.product-page .martivi-related-card:hover .martivi-card-media.has-alternate .martivi-card-image--alternate { opacity: 1; }
.product-page .martivi-related-card .martivi-card-media-empty { display: grid; height: 100%; place-items: center; color: #778491; }
.product-page .martivi-related-card .martivi-card-media > .numbertext { position: absolute; left: 10px !important; bottom: 8px !important; z-index: 4; padding: 5px 8px; border-radius: 0 8px 0 0; background: rgba(255,255,255,.86); font-size: 11px; }
.product-page .martivi-related-card .martivi-card-actions { position: absolute; top: 10px; right: 10px; z-index: 7; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateX(7px); transition: opacity .2s ease, transform .2s ease; }
.product-page .martivi-related-card:hover .martivi-card-actions,
.product-page .martivi-related-card:focus-within .martivi-card-actions { opacity: 1; transform: none; }
.product-page .martivi-related-card .martivi-card-action { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d8dee8; border-radius: 50%; background: #fff; color: #243241; cursor: pointer; box-shadow: 0 5px 14px rgba(20,35,55,.16); }
.product-page .martivi-related-card .martivi-card-action:hover { background: var(--gs-brand,#006b8f); color: #fff; }
.product-page .martivi-related-card .martivi-card-action-icon svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.product-page .martivi-related-card .martivi-card-details { display: flex; min-height: 180px; padding: 13px 14px 15px; box-sizing: border-box; }
.product-page .martivi-related-card .cart-left { display: flex; width: 100%; flex-direction: column; align-items: flex-start; }
.product-page .martivi-related-card .martivi-card-title { width: 100%; min-height: 38px; margin: 0 0 8px; color: #1c2733; font-size: 15px; font-weight: 800; line-height: 1.3; }
.product-page .martivi-related-card .martivi-card-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; margin-bottom: 7px; }
.product-page .martivi-related-card .martivi-card-current-price { color: var(--gs-brand,#006b8f); font-size: 18px; font-weight: 900; }
.product-page .martivi-related-card .martivi-card-old-price { color: #8a949e; font-size: 12px; font-weight: 700; text-decoration: line-through; }
.product-page .martivi-related-card .martivi-card-discount { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #fff0f0; color: #d62929; font-size: 10px; font-weight: 800; }
.product-page .martivi-related-card .martivi-card-sizes { width: 100%; min-height: 34px; margin-bottom: 9px; color: #e53935; font-size: 12px; font-weight: 700; line-height: 1.4; }
.product-page .martivi-related-card .martivi-add-to-cart { width: 100%; min-height: 39px; margin-top: auto; padding: 8px 10px; border: 0; border-radius: 20px; background: var(--gs-brand,#006b8f); color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.product-page .martivi-related-card .martivi-add-to-cart:hover { background: var(--gs-brand-dark,#004d68); }
.product-page .martivi-related-card .martivi-card-media-switch { position: absolute; left: 9px; top: 9px; bottom: auto; z-index: 8; display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.92); }
.product-page .martivi-related-card .martivi-card-media-switch-button { border: 0; border-radius: 999px; background: transparent; color: #273746; padding: 4px 7px; font-size: 10px; cursor: pointer; }
.product-page .martivi-related-card .martivi-card-media-switch-button.is-active { background: var(--gs-brand,#006b8f); color: #fff; }
.product-page .martivi-related-card .martivi-card-video { position: absolute; inset: 0; z-index: 6; display: none; background: #111; }
.product-page .martivi-related-card .martivi-card-media.is-video .martivi-card-video { display: block; }
.product-page .martivi-related-card .martivi-card-video iframe, .product-page .martivi-related-card .martivi-card-video video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }

.martivi-reviews { margin-top: 42px; padding-top: 28px; border-top: 1px solid #eee; }
.martivi-reviews-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.martivi-reviews-heading h2 { margin: 0 0 5px; font-size: 21px; }
.martivi-review-average { color: #f1a900; font-size: 18px; font-weight: 800; }
.martivi-review-average span { margin-right: 7px; color: #243241; }
.martivi-review-average small { color: #7d8993; font-size: 12px; }
.martivi-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.martivi-review-card { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 13px; min-width: 0; padding: 13px; border: 1px solid #e6eaf0; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20,35,55,.06); }
.martivi-review-photo-link { display: block; }
.martivi-review-photo-link img { display: block; width: 80px; height: 100px; border-radius: 8px; object-fit: cover; }
.martivi-review-name { color: #263442; font-size: 14px; font-weight: 800; }
.martivi-review-stars { margin-top: 3px; color: #f1a900; letter-spacing: 1px; font-size: 15px; }
.martivi-review-content p { margin: 7px 0; color: #566473; font-size: 12px; line-height: 1.65; white-space: normal; }
.martivi-review-content time { color: #98a2ab; font-size: 10px; }
.martivi-review-empty { margin: 0 0 18px; color: #73808d; font-size: 13px; }
.martivi-review-flash { margin: 0 0 16px; padding: 11px 13px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.martivi-review-flash.is-success { background: #edf9f1; color: #18733a; }
.martivi-review-flash.is-error { background: #fff0f0; color: #b32626; }
.martivi-review-submit { max-width: 650px; margin-top: 24px; padding: 18px; border: 1px solid #e5eaf0; border-radius: 13px; background: #f8fafc; }
.martivi-review-submit h3 { margin: 0 0 5px; color: #243241; font-size: 17px; }
.martivi-review-submit > p { margin: 0 0 14px; color: #73808d; font-size: 12px; }
.martivi-review-form { display: grid; gap: 12px; }
.martivi-review-form label { display: grid; gap: 6px; color: #4f5e6c; font-size: 12px; font-weight: 700; }
.martivi-review-form label small { color: #87929d; font-size: 11px; font-weight: 500; }
.martivi-review-form input[type="text"], .martivi-review-form select, .martivi-review-form textarea { box-sizing: border-box; width: 100%; padding: 10px 11px; border: 1px solid #d8e0e9; border-radius: 8px; outline: 0; background: #fff; color: #263442; font: inherit; font-size: 13px; }
.martivi-review-form textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.martivi-review-form input[type="file"] { box-sizing: border-box; width: 100%; padding: 8px; border: 1px dashed #cbd6e0; border-radius: 8px; background: #fff; color: #5f6e7c; font-size: 12px; }
.martivi-review-form input:focus, .martivi-review-form select:focus, .martivi-review-form textarea:focus { border-color: var(--gs-brand,#006b8f); box-shadow: 0 0 0 2px rgba(0,107,143,.12); }
.martivi-review-submit-button { min-height: 43px; padding: 9px 15px; border: 0; border-radius: 10px; background: var(--gs-brand,#006b8f); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.martivi-review-submit-button:hover { background: var(--gs-brand-dark,#004d68); }

@media screen and (max-width: 1024px) {
  .martivi-product-shell { display: block; }
  .martivi-product-sidebar { position: relative; top: auto; margin-bottom: 24px; }
  .martivi-product-sidebar-section { display: none; }
  .product-page .martivi-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media screen and (max-width: 600px) {
  .martivi-product-sidebar .martivi-filter-panel { padding: 13px; }
  .product-page .martivi-related-grid, .martivi-review-list { grid-template-columns: 1fr; }
  .product-page .martivi-related-card .martivi-card-actions { opacity: 1; transform: none; }
  .martivi-review-submit { padding: 14px; }
}
