:root {
    --dark: #111111;
    --muted: #6c757d;
    --border: #e9ecef;
    --bg: #f7f7f8;
    --soft: #fbfbfc;
}

main {
    flex: 1;
}

.product-thumbs { display: flex; align-items: center; gap: 8px; }
.thumb-strip{
    display: flex;
    gap: 8px;
    overflow: hidden;
    max-width: 360px; /* подгоните под макет */
    padding: 2px 0;
    scroll-behavior: smooth;
}
.thumb-btn{
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
}
.thumb-btn img{
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
}
.thumb-btn.active{
    border-color: #dc3545; /* как “обводка”/акцент на скрине */
}
.thumb-arrow{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}
.main-product-image img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--dark);
    background: #ffffff;
    min-height: 100vh;      /* высота минимум = высота экрана */
    display: flex;
    flex-direction: column; 
}

a { text-decoration: none; }

.navbar-brand {
    font-size: 24px;
    letter-spacing: -0.05em;
}

.hero-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 700;
}

.hero-section h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-card,
.category-card,
.feature-card,
.content-card,
.product-card,
.filter-box,
.form-card,
.success-box,
.empty-box,
.auth-card,
.blog-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #ffffff;
    padding: 28px;
}

.hero-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 80% 20%, rgba(0,0,0,.08), transparent 30%),
        var(--bg);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}

.section-head h2,
.section-title,
.page-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-title { margin-bottom: 24px; }

.category-card,
.feature-card {
    height: 100%;
    color: var(--dark);
    transition: .2s ease;
}

.category-card:hover,
.product-card:hover,
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}

.category-card p,
.feature-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.product-card {
    padding: 0;
    overflow: hidden;
    transition: .2s ease;
}

.product-image {
    display: block;
    background: var(--bg);
    aspect-ratio: 1 / 1;
}

.product-image img,
.product-detail-image img,
.article-image,
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body { padding: 18px; }

.product-body h5 a { color: var(--dark); }

.product-brand,
.product-sku,
.stock-status {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.placeholder-image.big { min-height: 480px; }

.product-detail-image {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.price-box strong {
    font-size: 32px;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
}

.filter-link,
.footer-link {
    display: block;
    color: var(--dark);
    padding: 6px 0;
}

.search-panel {
    display: flex;
    gap: 10px;
    max-width: 720px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.form-card input,
.form-card select,
.form-card textarea,
.auth-card input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
}

.form-card label,
.auth-card label {
    font-weight: 600;
    margin-bottom: 6px;
}

.success-box,
.empty-box {
    text-align: center;
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.clean-list {
    padding-left: 18px;
}

.clean-list li {
    margin-bottom: 8px;
}

.blog-card {
    padding: 0;
    color: var(--dark);
    overflow: hidden;
    height: 100%;
    transition: .2s ease;
}

.blog-card img,
.blog-placeholder {
    width: 100%;
    height: 210px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 800;
}

.blog-card div:last-child {
    padding: 22px;
}

.blog-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.article {
    max-width: 860px;
}

.article-image {
    max-height: 420px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.article-content {
    font-size: 18px;
    line-height: 1.7;
}

.btn {
    border-radius: 999px;
}

@media (max-width: 768px) {
    .section-head,
    .cart-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-panel {
        flex-direction: column;
    }
}

.markdown table {
    width: 100%;
    border-collapse: collapse;
}

.markdown th,
.markdown td {
    border: 1px solid #ccc;
    padding: 8px;
}

.markdown th {
    font-weight: bold;
}

.order-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap; /* если на узких экранах будет плохо — поставь wrap */
}

.customer-line, .total-line{
  white-space: nowrap;
}

.order-card{
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.04);
    margin-bottom: .75rem;
  }
  .order-row{
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    flex-wrap: nowrap;
  }
  .order-row .order-id,
  .order-row .order-date{
    white-space: nowrap;
    font-weight: 600;
  }
  .customer-line, .total-line{
    white-space: nowrap;
  }
  .order-row .spacer{
    flex: 1;
  }

  .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    position: relative;

    padding: 14px 14px 14px 42px;

    border: 1px solid #dee2e6;
    border-radius: 8px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.payment-method:hover {
    border-color: #212529;
}

.payment-method input {
    position: absolute;

    left: 15px;
    top: 18px;
}

.payment-method span {
    font-weight: 600;
}

.payment-method small {
    color: #6c757d;
    margin-top: 2px;
}

.payment-method:has(input:checked) {
    border-color: #212529;
    background: #f8f9fa;
}
/* Product quantity selector */
.product .product-buy-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.product .quantity-picker {
    display: inline-flex;
    align-items: center;
    height: 52px;
    border: 2px solid #212529;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.product .quantity-picker .qty-minus,
.product .quantity-picker .qty-plus {
    width: 48px;
    height: 100%;
    flex: 0 0 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f8f9fa;
    color: #111111;
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.product .quantity-picker .qty-minus:hover,
.product .quantity-picker .qty-plus:hover {
    background: #212529;
    color: #ffffff;
}

.product .quantity-picker .qty-minus:active,
.product .quantity-picker .qty-plus:active {
    background: #000000;
}

.product .quantity-picker .qty-input {
    width: 70px !important;
    height: 100%;
    min-width: 70px;
    margin: 0;
    padding: 0 8px;
    border: 0 !important;
    border-left: 1px solid #d8dadd !important;
    border-right: 1px solid #d8dadd !important;
    border-radius: 0 !important;
    background: #ffffff;
    color: #111111;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 52px;
    outline: none !important;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.product .quantity-picker .qty-input:focus {
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(33, 37, 41, .12) !important;
}

.product .quantity-picker .qty-input::-webkit-outer-spin-button,
.product .quantity-picker .qty-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product .cart-feedback {
    min-height: 24px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.product .cart-feedback.is-success { color: #198754; }
.product .cart-feedback.is-error { color: #dc3545; }
.catalog-stock { color: var(--muted); font-size: 13px; }

@media (max-width: 575.98px) {
    .product .product-buy-row {
        align-items: stretch;
    }

    .product .quantity-picker {
        width: 100%;
        justify-content: space-between;
    }

    .product .quantity-picker .qty-input {
        flex: 1 1 auto;
        width: auto !important;
    }

    .product .product-buy-row > .btn {
        width: 100%;
    }
}


/* Header alignment */
.forwork-navbar .forwork-navbar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    flex-wrap: nowrap;
}

.forwork-navbar-brand {
    flex: 0 0 118px;
    width: 118px;
    margin-right: 0;
}

.forwork-navbar-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.forwork-navbar-search {
    flex: 1 1 420px;
    min-width: 180px;
    max-width: 550px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.forwork-navbar-search .search-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.forwork-navbar-search .form-control,
.forwork-navbar-search .search-submit {
    height: 38px;
    margin: 0;
}

.forwork-navbar-search .search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.forwork-navbar #mainMenu {
    flex: 0 1 auto;
}

.forwork-navbar .navbar-nav {
    flex-wrap: nowrap;
}

.forwork-navbar .navbar-nav .nav-item,
.forwork-navbar .navbar-nav .nav-link,
.forwork-navbar .navbar-nav .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* "Про нас" and every other menu item must not squeeze/wrap when space is tight. */
.forwork-navbar .navbar-nav .nav-link {
    min-width: max-content;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .forwork-navbar .forwork-navbar-row { gap: 8px; }
    .forwork-navbar-brand { flex-basis: 100px; width: 100px; }
    .forwork-navbar-search { flex-basis: 260px; min-width: 210px; }
    .forwork-navbar .navbar-nav { gap: 0 !important; }
    .forwork-navbar .navbar-nav .nav-link { padding-left: .45rem; padding-right: .45rem; }
}

@media (max-width: 991.98px) {
    .forwork-navbar .forwork-navbar-row {
        flex-wrap: wrap;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .forwork-navbar-brand { order: 1; }
    .forwork-navbar .navbar-toggler { order: 2; margin-left: auto; }
    .forwork-navbar-search { order: 3; flex: 1 0 100%; max-width: none; }
    .forwork-navbar #mainMenu { order: 4; flex-basis: 100%; }
    .forwork-navbar .navbar-nav { flex-wrap: wrap; padding-top: 8px; }
}

.dashboard-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
}

.dashboard-category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 150px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.dashboard-category-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 8px 24px rgba(33, 37, 41, .07);
    transform: translateY(-2px);
}

.dashboard-category-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dashboard-category-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: #212529;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-category-content {
    min-width: 0;
}

.dashboard-category-content h4 {
    margin: 1px 0 4px;
    font-size: 17px;
    font-weight: 700;
    word-break: break-word;
}

.dashboard-category-slug {
    color: #6c757d;
    font-size: 13px;
    word-break: break-all;
}

.dashboard-category-id {
    margin-top: 8px;
    color: #adb5bd;
    font-size: 12px;
}

.dashboard-category-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

@media (max-width: 576px) {
    .dashboard-category-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
}

.dashboard-post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.dashboard-post-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 8px 24px rgba(33, 37, 41, .07);
    transform: translateY(-2px);
}

.dashboard-post-cover {
    width: 100%;
    height: 175px;
    background: #f1f3f5;
    overflow: hidden;
}

.dashboard-post-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-post-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}

.dashboard-post-content {
    padding: 18px;
    flex: 1;
}

.dashboard-post-date {
    color: #868e96;
    font-size: 12px;
    margin-bottom: 8px;
}

.dashboard-post-content h4 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 5px;
    font-weight: 700;
}

.dashboard-post-slug {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 13px;
    word-break: break-all;
}

.dashboard-post-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.dashboard-post-actions {
    border-top: 1px solid var(--border);
    padding: 13px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 576px) {
    .dashboard-post-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PUBLIC BLOG
   ========================= */

.blog-list-page {
    width: 100%;
}

.blog-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-list-card {
    min-width: 0;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.blog-list-card:hover {
    transform: translateY(-4px);
    border-color: #d1d5db;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .07);
}

.blog-list-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--dark);
}

.blog-list-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
}

.blog-list-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;

    transition: transform .3s ease;
}

.blog-list-card:hover .blog-list-card-cover img {
    transform: scale(1.025);
}

.blog-list-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: var(--bg);
    color: #adb5bd;

    font-size: 23px;
    font-weight: 800;
}

.blog-list-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 22px;
}

.blog-list-card-date {
    margin-bottom: 8px;

    color: #868e96;

    font-size: 12px;
    font-weight: 500;
}

.blog-list-card-title {
    margin: 0 0 10px;

    color: #111111;

    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.blog-list-card-description {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}

.blog-list-card-more {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;

    color: #111111;

    font-size: 14px;
    font-weight: 650;
}

.blog-list-card-more span {
    transition: transform .2s ease;
}

.blog-list-card:hover .blog-list-card-more span {
    transform: translateX(3px);
}


/* =========================
   DASHBOARD POSTS
   ========================= */

.dashboard-post-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.dashboard-post-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.dashboard-post-card:hover {
    transform: translateY(-2px);

    border-color: #ced4da;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, .06);
}

.dashboard-post-cover {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f4f5f6;
}

.dashboard-post-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.dashboard-post-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #adb5bd;

    font-size: 21px;
    font-weight: 750;
}

.dashboard-post-content {
    flex: 1;

    padding: 18px;
}

.dashboard-post-date {
    margin-bottom: 7px;

    color: #868e96;

    font-size: 12px;
}

.dashboard-post-content h4 {
    margin: 0 0 5px;

    color: #212529;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.dashboard-post-slug {
    margin-bottom: 12px;

    color: #adb5bd;

    font-size: 12px;

    overflow-wrap: anywhere;
}

.dashboard-post-content p {
    margin: 0;

    color: #6c757d;

    font-size: 14px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.dashboard-post-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 13px 18px;

    border-top: 1px solid #e9ecef;
}


/* =========================
   CONTACT BUTTONS
   ========================= */

.contact-actions {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 24px;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #ffffff;
    color: #111111;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        transform .15s ease;
}

.contact-action:hover {
    color: #111111;

    border-color: #adb5bd;

    background: #f8f9fa;

    transform: translateY(-1px);
}

.contact-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    min-width: 38px;

    border-radius: 10px;

    background: #f1f3f5;

    font-weight: 750;
}

.contact-action-content {
    min-width: 0;
}

.contact-action-title {
    display: block;

    font-size: 14px;
    font-weight: 700;
}

.contact-action-value {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: #6c757d;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================
   MEDIA
   ========================= */

@media (max-width: 991.98px) {
    .blog-list-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {

    .blog-list-grid,
    .dashboard-post-grid,
    .contact-actions {
        grid-template-columns: 1fr;
    }

    .blog-list-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Contact page */
.contact-method-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contact-method-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.contact-method-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contact-method-value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--dark);
    font-weight: 700;
}

.filter-link.active {
    font-weight: 700;
    color: #111;
    background: #f1f3f5;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Dashboard post thumbnails: keep original files from stretching admin cards. */
.dashboard-post-cover {
    width: 120px;
    height: 80px;
    max-width: 120px;
    max-height: 80px;
    margin: 16px 16px 0;
    border-radius: 10px;
    flex: 0 0 120px;
}

.dashboard-post-cover img {
    width: 120px;
    height: 80px;
    max-width: 120px;
    max-height: 80px;
    object-fit: cover;
}

/* Dashboard orders: compact, readable cards without dropping order details. */
.admin-orders-grid {
    display: grid;
    gap: 14px;
}

.admin-order-card {
    overflow: hidden;
    padding: 0;
}

.admin-order-card-header,
.admin-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.admin-order-card-header {
    border-bottom: 1px solid var(--bs-border-color);
    background: rgba(0, 0, 0, .015);
}

.admin-order-card-body {
    padding: 16px;
}

.admin-order-card-footer {
    border-top: 1px solid var(--bs-border-color);
    background: rgba(0, 0, 0, .015);
}

.admin-order-number {
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-order-date {
    color: var(--bs-secondary-color);
    font-size: .875rem;
    white-space: nowrap;
}

.admin-order-info-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(110px, .7fr) minmax(150px, .9fr) minmax(230px, 1.4fr);
    gap: 12px;
}

.admin-order-info-block,
.admin-order-legal {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.admin-order-info-block {
    padding: 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--bs-body-bg);
}

.admin-order-delivery-block strong,
.admin-order-delivery-block span,
.admin-order-info-block strong,
.admin-order-info-block span {
    overflow-wrap: anywhere;
}

.admin-order-label {
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.admin-order-legal {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--bs-tertiary-bg);
}

.admin-order-ttn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
}

@media (max-width: 1100px) {
    .admin-order-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-order-card-header,
    .admin-order-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-order-info-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-card-footer > div:last-child {
        width: 100%;
        justify-content: flex-start !important;
    }
}


/* Product detail: gallery and variant selection are intentionally separate blocks. */
.product-media-block,.variant-picker-block{border:1px solid var(--border);border-radius:14px;padding:18px;background:#fff}
.variant-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.thumb-btn.variant-choice{width:100%;height:auto;min-height:82px;padding:8px;display:flex;align-items:center;gap:8px;text-align:left;border:1px solid var(--border);background:#fff}
.thumb-btn.variant-choice img{width:52px;height:52px;object-fit:contain;flex:0 0 auto}
.thumb-btn.variant-choice span{font-size:.85rem;font-weight:600;overflow-wrap:anywhere}
.thumb-btn.variant-choice.active{border-color:#212529;box-shadow:0 0 0 1px #212529}
.product-detail-image .main-product-image__img{width:100%;max-height:520px;object-fit:contain;display:block}


/* Blog images: display the complete source image without cropping its edges. */
.blog-list-card-cover {
    background: #f8f9fa;
}
.blog-list-card-cover img {
    object-fit: contain;
    object-position: center;
}
.article-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}
.contact-method-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-method-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #adb5bd;
    box-shadow: 0 10px 24px rgba(33,37,41,.08);
}


/* ForWork V10 frontend refinements */
.why-forwork-row > [class*="col-"] {
    display: flex;
}
.why-forwork-row .feature-card {
    width: 100%;
}

/* Keep cabinet/cart/login actions visually separated on every breakpoint. */
.forwork-navbar .navbar-nav .nav-action-item {
    margin-left: 6px;
}
@media (max-width: 991.98px) {
    .forwork-navbar .navbar-nav .nav-action-item {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    .forwork-navbar .navbar-nav .nav-action-item .btn {
        display: inline-flex;
        justify-content: center;
        min-width: 112px;
    }
}

/* Product images use the same square geometry, not width-only sizing. */
.product-image,
.product-detail-image {
    aspect-ratio: 1 / 1;
    width: 100%;
}
.product-image img,
.product-detail-image img,
.main-product-image__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quieter quantity control so it does not compete with purchase actions. */
.product .quantity-picker {
    height: 48px;
    border: 1px solid #d9dde1;
    border-radius: 999px;
    box-shadow: none;
    background: #fff;
}
.product .quantity-picker .qty-minus,
.product .quantity-picker .qty-plus {
    width: 42px;
    flex-basis: 42px;
    background: #fff;
    color: #495057;
    font-size: 20px;
    font-weight: 500;
}
.product .quantity-picker .qty-minus:hover,
.product .quantity-picker .qty-plus:hover {
    background: #f1f3f5;
    color: #111;
}
.product .quantity-picker .qty-minus:active,
.product .quantity-picker .qty-plus:active {
    background: #e9ecef;
}
.product .quantity-picker .qty-input {
    width: 58px !important;
    min-width: 58px;
    font-size: 16px;
    font-weight: 600;
    line-height: 48px;
    border-left: 1px solid #e9ecef !important;
    border-right: 1px solid #e9ecef !important;
}

.footer-schedule {
    font-size: 14px;
}

/* V11: cart counter, cart quantity controls and payment marks */
.cart-nav-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.cart-count-badge {
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 .35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #212529;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

.cart-nav-button:hover .cart-count-badge {
    background: #fff;
    color: #212529;
}

.cart-sku {
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
}

.cart-quantity-form {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: nowrap;
}

.cart-qty-input {
    width: 4.25rem;
    text-align: center;
}

.cart-qty-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #fff;
    color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.cart-qty-btn:hover {
    background: #f8f9fa;
}

.payment-marks {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.payment-marks img {
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.footer-schedule {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .cart-quantity-form {
        flex-wrap: wrap;
    }
    .cart-qty-save {
        width: 100%;
    }
}

/* V12: sticky information cards keep clear of the sticky site header. */
.side-info-card {
    position: sticky;
    top: 96px;
    z-index: 1;
}

/* V12: catalog characteristic filters. */
.catalog-characteristic-filters {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}
.catalog-filter-group {
    padding: .85rem 0;
    border-bottom: 1px solid #f0f1f2;
}
.catalog-filter-name {
    font-weight: 700;
    margin-bottom: .55rem;
}
.catalog-filter-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .35rem 0;
    cursor: pointer;
    font-size: .92rem;
}
.catalog-filter-option input {
    width: 1rem;
    height: 1rem;
}
.product-attribute-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #adb5bd;
    text-underline-offset: 3px;
}
.product-attribute-link:hover {
    color: #000;
    text-decoration-color: #000;
}
.product-sku-detail {
    margin-bottom: .65rem;
    color: #6c757d;
    font-size: .92rem;
}

/* V12: live search suggestions. */
.forwork-navbar-search {
    position: relative;
}
.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1080;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2rem rgba(0,0,0,.12);
    overflow: hidden;
}
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f0f1f2;
}
.search-suggestion-item:last-child { border-bottom: 0; }
.search-suggestion-item:hover { background: #f8f9fa; }
.search-suggestion-item img,
.search-suggestion-placeholder {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    border-radius: .4rem;
    background: #f8f9fa;
}
.search-suggestion-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.search-suggestion-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggestion-copy small { color: #6c757d; }

/* V12: hover catalog menu with second-level products. */
.catalog-mega-item { position: relative; }
.catalog-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 560px;
    min-height: 250px;
    padding: .65rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    box-shadow: 0 1rem 2.5rem rgba(0,0,0,.14);
    z-index: 1070;
}
.catalog-mega-item:hover .catalog-mega-menu,
.catalog-mega-item:focus-within .catalog-mega-menu { display: block; }
.catalog-mega-loading,
.catalog-mega-fallback { padding: 1rem; color: #6c757d; }
.catalog-mega-categories {
    width: 100%;
    min-height: 230px;
    border-right: 0;
}
.catalog-mega-category {
    width: 42%;
}
.catalog-mega-category > a {
    display: block;
    padding: .65rem .8rem;
    border-radius: .45rem;
    color: #212529;
    text-decoration: none;
    font-weight: 600;
}
.catalog-mega-category.is-active > a,
.catalog-mega-category:hover > a { background: #f1f3f5; }
.catalog-mega-products {
    display: none;
    position: absolute;
    top: .65rem;
    right: .65rem;
    bottom: .65rem;
    width: 54%;
    padding: .25rem .5rem .25rem 1rem;
    overflow-y: auto;
    border-left: 1px solid #e9ecef;
}
.catalog-mega-category.is-active .catalog-mega-products,
.catalog-mega-category:hover .catalog-mega-products { display: block; }
.catalog-mega-products a {
    display: block;
    padding: .5rem .4rem;
    color: #343a40;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f5;
}
.catalog-mega-products a:hover { color: #000; background: #f8f9fa; }

.cart-quantity-form.is-saving {
    opacity: .6;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .side-info-card { position: static; }
    .catalog-mega-menu { display: none !important; }
}

.product-detail-image{position:relative}.product-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:42px;border-radius:50%;border:1px solid rgba(0,0,0,.14);background:rgba(255,255,255,.92);display:grid;place-items:center;font-size:28px;line-height:1;box-shadow:0 4px 18px rgba(0,0,0,.10)}.product-gallery-prev{left:12px}.product-gallery-next{right:12px}.product-gallery-arrow:hover{background:#fff}.product-thumbs{justify-content:center}.thumb-strip{max-width:100%;overflow-x:auto}
.legal-content{max-width:980px;margin:0 auto}.legal-content h2{margin-top:2rem;font-size:1.35rem}.legal-content p{line-height:1.7}
.product-gallery-arrow{background:rgba(255,255,255,.28)!important;border-color:rgba(0,0,0,.10)!important;box-shadow:none!important;color:#222!important;font-size:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;backdrop-filter:blur(2px)}
.product-gallery-arrow::before{font-size:26px;line-height:1;display:block;transform:translateY(-1px)}
.product-gallery-prev::before{content:'‹'}.product-gallery-next::before{content:'›'}
.product-gallery-arrow:hover{background:rgba(255,255,255,.62)!important}

.delivery-autocomplete{position:relative}.delivery-suggestions{position:absolute;z-index:1080;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid #d8dde5;border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.12);max-height:340px;overflow:auto;padding:5px}.delivery-suggestion-item{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:7px;color:#1d2733}.delivery-suggestion-item:hover,.delivery-suggestion-item:focus{background:#f1f4f7;outline:none}.shipping-fields-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}.shipping-field{min-width:0}.shipping-field input{width:100%}.shipping-action{display:flex;align-items:flex-end}@media(max-width:900px){.shipping-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-action{grid-column:1/-1}}@media(max-width:540px){.shipping-fields-grid{grid-template-columns:1fr}}

/* V16 catalog mega-menu product previews */
.catalog-mega-product{display:flex!important;align-items:center;gap:.65rem!important;min-height:52px;padding:.45rem!important}
.catalog-mega-product img,.catalog-mega-product-placeholder{width:44px;height:44px;flex:0 0 44px;border-radius:8px;object-fit:contain;background:#f5f6f7;border:1px solid #eef0f2}
.catalog-mega-product-placeholder{display:block}
.catalog-mega-product span{display:block;line-height:1.25}

/* V16 product gallery controls */
.product-gallery-arrow{width:38px!important;height:38px!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(0,0,0,.08)!important;box-shadow:none!important;backdrop-filter:none!important;display:grid!important;place-items:center!important;padding:0!important;line-height:0!important}
.product-gallery-arrow::before{font-size:25px!important;line-height:1!important;width:100%;height:100%;display:grid!important;place-items:center!important;transform:none!important;padding-bottom:3px}
.product-gallery-arrow:hover{background:rgba(255,255,255,.38)!important;border-color:rgba(0,0,0,.12)!important}
.thumb-btn[data-gallery-src].active{border-color:#111!important;box-shadow:0 0 0 1px #111 inset!important}
.product-gallery-arrow::before{content:none!important}.product-gallery-arrow span{display:grid;place-items:center;width:100%;height:100%;font-size:27px;line-height:1;padding-bottom:3px}

/* V17 category -> subcategory -> product mega menu */
.catalog-mega-menu{width:min(920px,calc(100vw - 32px));min-height:300px}
.catalog-mega-categories{position:relative;width:240px;min-height:300px;border-right:1px solid #eceff1}
.catalog-mega-category{position:static}
.catalog-mega-category>.catalog-mega-subcategories{display:none;position:absolute;left:240px;top:0;width:250px;min-height:300px;border-right:1px solid #eceff1;background:#fff;padding:.5rem}
.catalog-mega-category.is-active>.catalog-mega-subcategories,.catalog-mega-category:hover>.catalog-mega-subcategories{display:block}
.catalog-mega-subcategory{position:static}
.catalog-mega-subcategory>a{display:block;padding:.65rem .75rem;border-radius:8px;text-decoration:none;color:#212529;line-height:1.25}
.catalog-mega-subcategory.is-active>a,.catalog-mega-subcategory:hover>a{background:#f1f3f5}
.catalog-mega-subcategory>.catalog-mega-products{display:none;position:absolute;left:250px;top:0;width:430px;min-height:300px;max-height:430px;overflow:auto;background:#fff;padding:.65rem}
.catalog-mega-subcategory.is-active>.catalog-mega-products,.catalog-mega-subcategory:hover>.catalog-mega-products{display:block}
.catalog-mega-empty{display:block;padding:.75rem}
@media(max-width:991.98px){.catalog-mega-subcategories,.catalog-mega-products{display:none!important}}
.legal-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.legal-contact-grid>div{padding:1rem;border:1px solid #e9ecef;border-radius:10px;background:#fafafa}.legal-contact-grid span{display:block;color:#6c757d;font-size:.84rem;margin-bottom:.25rem}.legal-contact-grid strong{display:block;word-break:break-word}@media(max-width:767.98px){.legal-contact-grid{grid-template-columns:1fr}}
.cart-product-cell{display:flex;align-items:center;gap:.75rem;min-width:210px;color:inherit;text-decoration:none}.cart-product-image{width:58px;height:58px;object-fit:contain;border:1px solid #e9ecef;border-radius:9px;background:#fff;flex:0 0 58px}

/* V18 footer and simplified catalog menu */
.footer-brand{display:inline-flex;align-items:center;max-width:170px}.footer-brand img{width:100%;height:auto;object-fit:contain}.payment-marks-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.payment-mark-card{display:flex;align-items:center;justify-content:center;min-width:82px;height:46px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:#fff}.payment-mark-card img{max-width:100%;max-height:30px;object-fit:contain}.catalog-mega-categories-simple .catalog-mega-category{grid-template-columns:minmax(180px,240px) minmax(220px,1fr)}.catalog-mega-subcategories-simple{display:none!important;padding:10px 14px}.catalog-mega-category.is-active .catalog-mega-subcategories-simple{display:flex!important;flex-direction:column;gap:4px}.catalog-mega-subcategory-link{display:block;padding:9px 12px;border-radius:10px;color:var(--dark)}.catalog-mega-subcategory-link:hover{background:#f5f5f5}

.catalog-mega-menu{width:min(540px,calc(100vw - 32px));min-height:260px}.catalog-mega-categories-simple{position:relative;width:220px;min-height:260px;border-right:1px solid #eceff1}.catalog-mega-categories-simple .catalog-mega-category>.catalog-mega-subcategories-simple{position:absolute!important;left:220px!important;top:0!important;width:300px!important;min-height:260px!important;border-right:0!important;background:#fff!important}.catalog-mega-categories-simple .catalog-mega-category.is-active>.catalog-mega-subcategories-simple{display:flex!important}

/* V19: catalog hover alignment */
.catalog-mega-menu {
  width: min(560px, calc(100vw - 32px));
  min-height: 260px;
  overflow: visible;
}
.catalog-mega-categories-simple {
  position: relative;
  display: block;
  width: 240px;
  min-height: 260px;
  border-right: 1px solid #eceff1;
}
.catalog-mega-categories-simple .catalog-mega-category {
  position: static;
  display: block;
  width: 100%;
}
.catalog-mega-categories-simple .catalog-mega-category > a {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: .65rem .8rem;
  white-space: normal;
  overflow: visible;
}
.catalog-mega-categories-simple .catalog-mega-category > .catalog-mega-subcategories-simple {
  display: none !important;
  position: absolute !important;
  left: 240px !important;
  top: 0 !important;
  width: 300px !important;
  min-height: 260px !important;
  padding: .55rem !important;
  background: #fff !important;
  border: 0 !important;
}
.catalog-mega-categories-simple .catalog-mega-category.is-active > .catalog-mega-subcategories-simple,
.catalog-mega-categories-simple .catalog-mega-category:hover > .catalog-mega-subcategories-simple,
.catalog-mega-categories-simple .catalog-mega-category:focus-within > .catalog-mega-subcategories-simple {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

/* V19: compact payment marks without cards/borders */
.footer-payment-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-payment-column > h6 {
  width: 100%;
  text-align: center;
  margin-bottom: .55rem;
}
.payment-marks-footer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  width: 100%;
  padding-top: 4px;
}
.payment-marks-footer .payment-mark-card {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.payment-marks-footer .payment-mark-card:first-child { transform: translateY(5px); }
.payment-marks-footer .payment-mark-card:last-child { transform: translateY(5px); }
.payment-marks-footer img { display: block; max-height: 30px; width: auto; }

/* V19 catalog hover geometry: the full category name remains the hover target. */
.catalog-mega-categories-simple{position:relative!important;width:220px!important;min-height:260px!important;border-right:1px solid #eceff1!important;display:block!important}
.catalog-mega-categories-simple .catalog-mega-category{position:static!important;display:block!important;width:220px!important;grid-template-columns:none!important}
.catalog-mega-categories-simple .catalog-mega-category>a{display:block!important;width:220px!important;box-sizing:border-box!important;padding:10px 14px!important;white-space:normal!important;line-height:1.3!important}
.catalog-mega-categories-simple .catalog-mega-category>.catalog-mega-subcategories-simple{position:absolute!important;left:220px!important;top:0!important;width:300px!important;min-height:260px!important;box-sizing:border-box!important;background:#fff!important;padding:10px 14px!important}

/* V19 footer payment marks: heading as the apex, marks below without cards/borders. */
.footer-payment-column{text-align:center}
.footer-payment-column>h6{text-align:center;margin-bottom:14px}
.footer-payment-column .payment-marks-footer{justify-content:center;gap:22px;flex-wrap:nowrap}
.footer-payment-column .payment-mark-card{display:flex;align-items:center;justify-content:center;min-width:0;width:auto;height:auto;padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.footer-payment-column .payment-mark-card img{display:block;width:auto;max-height:31px;object-fit:contain}
.footer-payment-column .payment-mark-card:first-child{transform:translateX(-4px)}
.footer-payment-column .payment-mark-card:last-child{transform:translateX(4px)}

/* V19.3 catalog menu: one full-width hover target per category. */
.catalog-mega-menu{width:min(560px,calc(100vw - 32px))!important;overflow:visible!important}
.catalog-mega-categories-simple{position:relative!important;display:block!important;width:240px!important;min-height:260px!important;border-right:1px solid #eceff1!important}
.catalog-mega-categories-simple .catalog-mega-category{position:static!important;display:block!important;width:240px!important;max-width:none!important}
.catalog-mega-categories-simple .catalog-mega-category>a{display:block!important;width:240px!important;min-height:42px!important;box-sizing:border-box!important;padding:10px 14px!important;white-space:normal!important;overflow:visible!important}
.catalog-mega-categories-simple .catalog-mega-category>.catalog-mega-subcategories-simple{position:absolute!important;left:240px!important;top:0!important;width:300px!important;min-height:260px!important;box-sizing:border-box!important}

/* V20: quantity is controlled only by the custom +/- controls. */
.cart-qty-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.cart-qty-input[type="number"]::-webkit-outer-spin-button,
.cart-qty-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Numeric catalog filter: one visual range with two handles for min/max. */
.catalog-range-filter { padding-top: .15rem; }
.catalog-range-value {
    margin-bottom: .45rem;
    font-size: .88rem;
    font-weight: 600;
}
.catalog-dual-range {
    position: relative;
    height: 30px;
    margin: 0 2px .2rem;
}
.catalog-dual-range-track {
    position: absolute;
    left: 0; right: 0; top: 13px;
    height: 4px;
    border-radius: 999px;
    background: #d9dde1;
    overflow: hidden;
}
.catalog-dual-range-fill {
    position: absolute;
    top: 0; bottom: 0;
    background: #212529;
    border-radius: 999px;
}
.catalog-dual-range-input {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
.catalog-dual-range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}
.catalog-dual-range-input::-webkit-slider-thumb {
    width: 18px; height: 18px;
    margin-top: -7px;
    border: 2px solid #212529;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
}
.catalog-dual-range-input::-moz-range-track {
    height: 4px;
    background: transparent;
    border: 0;
}
.catalog-dual-range-input::-moz-range-progress { background: transparent; }
.catalog-dual-range-input::-moz-range-thumb {
    width: 18px; height: 18px;
    border: 2px solid #212529;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
}
.catalog-dual-range-min { z-index: 3; }
.catalog-dual-range-max { z-index: 4; }

/* V22.2: one-click order confirmation after redirect to catalog. */
.forwork-order-toast {
    position: fixed;
    right: 24px;
    top: 92px;
    z-index: 1085;
    min-width: 220px;
    padding: 14px 18px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
}
.forwork-order-toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 575.98px) {
    .forwork-order-toast { left: 16px; right: 16px; top: 76px; min-width: 0; }
}


/* Blog layout: full-width article text and square, edge-to-edge list covers. */
.article { max-width: none; width: 100%; }
.article-content { width: 100%; }
.article-content p { text-align: justify; text-justify: inter-word; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 { text-align: left; }
.blog-list-card-cover { aspect-ratio: 1 / 1; background: transparent; }
.blog-list-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-brand-image { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; margin: 0 0 20px; }

/* Markdown editor in the dashboard. */
.markdown-editor-toolbar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.markdown-editor-toolbar .btn { border-radius:8px; min-width:38px; }
.markdown-editor-area { min-height:420px; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; line-height:1.55; }
.markdown-preview { margin-top:12px; padding:18px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.markdown-preview[hidden] { display:none; }


/* Recommended products carousel on the home page */
.recommended-carousel {
    overflow: hidden;
    width: 100%;
}
.recommended-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 18px;
}
.recommended-track::-webkit-scrollbar { display: none; }
.recommended-card {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 0;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.recommended-card:hover {
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.recommended-image {
    aspect-ratio: 1 / 1;
    background: var(--bg);
    overflow: hidden;
}
.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommended-body { padding: 13px 14px 15px; }
.recommended-body h5 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.recommended-body .product-sku { font-size: 12px; margin-bottom: 5px; }
.recommended-body strong { font-size: 15px; }
@media (max-width: 1199px) { .recommended-card { flex-basis: calc((100% - 48px) / 4); } }
@media (max-width: 991px) { .recommended-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 767px) { .recommended-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 420px) { .recommended-card { flex-basis: 78%; } }

/* Header: client information dropdown */
.client-menu-item {
    position: relative;
}

.client-menu-trigger {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: default;
}

.client-menu-trigger::after {
    content: "";
    display: inline-block;
    width: .45em;
    height: .45em;
    margin-left: .45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.client-menu-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    top: calc(100% - 2px);
    left: 50%;
    min-width: 235px;
    padding: 8px;
    border: 1px solid #e4e6e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(33, 37, 41, .12);
    transform: translateX(-50%);
}

.client-menu-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #212529;
    text-decoration: none;
    line-height: 1.3;
}

.client-menu-dropdown a:hover,
.client-menu-dropdown a:focus {
    background: #f4f5f6;
    color: #000;
}

.client-menu-item:hover .client-menu-dropdown,
.client-menu-item:focus-within .client-menu-dropdown {
    display: block;
}

@media (max-width: 991.98px) {
    .client-menu-item {
        width: 100%;
    }
    .client-menu-trigger {
        width: 100%;
        text-align: left;
    }
    .client-menu-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        margin: 2px 0 6px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }
}

/* Keep the blog hero image secondary to the article content. */
.article > .article-image {
    display: block;
    width: auto;
    max-width: min(520px, 100%);
    max-height: 320px;
    margin: 20px auto 28px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}
@media (max-width: 640px) {
    .article > .article-image { max-height: 260px; }
}


/* V31: compact layout, mobile header/footer, product zoom and interval dual-range UI. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main > section.container.py-5,
main > .container.py-5 {
    padding-top: 2rem !important;
}

.product-detail-image[data-product-zoom] {
    overflow: hidden;
    cursor: zoom-in;
}
.product-detail-image[data-product-zoom] .main-product-image__img {
    transition: transform .18s ease-out;
    will-change: transform;
}
.product-detail-image[data-product-zoom].is-zooming .main-product-image__img {
    transform: scale(2.15);
}
.product-image-lightbox-open { overflow: hidden; }
.product-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.92);
}
.product-image-lightbox img {
    display: block;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-image-lightbox-close {
    position: fixed;
    right: 20px;
    top: 18px;
    z-index: 2001;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 9px;
    background: rgba(20,20,20,.72);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Interval characteristics now use the same dual-handle control as scalar numeric filters. */
.catalog-range-filter .catalog-dual-range { width: 100%; }

@media (max-width: 575.98px) {
    main > section.container.py-5,
    main > .container.py-5 {
        padding-top: 1rem !important;
    }

    .forwork-navbar .forwork-navbar-row {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
        min-height: 48px;
        padding-top: 4px;
        padding-bottom: 4px;
        flex-wrap: unset;
    }
    .forwork-navbar-brand {
        order: unset;
        width: 72px;
        max-width: 72px;
        flex-basis: auto;
    }
    .forwork-navbar-search {
        order: unset;
        min-width: 0;
        width: 100%;
        max-width: none;
        flex: none;
    }
    .forwork-navbar-search .search-panel { gap: 0; }
    .forwork-navbar-search .form-control {
        height: 34px;
        min-width: 0;
        padding: .35rem .55rem;
        font-size: .9rem;
    }
    .forwork-navbar-search .search-submit { display: none !important; }
    .forwork-navbar .navbar-toggler {
        order: unset;
        margin-left: 0;
        padding: .25rem .42rem;
    }
    .forwork-navbar #mainMenu {
        order: unset;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }
    .forwork-navbar .navbar-nav { padding-top: 4px; }

    .footer .container { padding-top: 1.8rem !important; padding-bottom: 1.8rem !important; }
    .footer-columns {
        display: flex;
        flex-direction: column;
        gap: 1.15rem !important;
    }
    .footer-columns > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        text-align: left !important;
    }
    .footer-brand { display: none !important; }
    .footer-columns h6,
    .footer-payment-column > h6 { text-align: left !important; margin-bottom: .45rem; }
    .footer-link { display: block; width: fit-content; }
    .footer-payment-column .payment-marks-footer { justify-content: flex-start; }
    .footer-payment-column .payment-mark-card:first-child,
    .footer-payment-column .payment-mark-card:last-child { transform: none; }

    .product-image-lightbox { padding: 12px; }
    .product-image-lightbox img {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }
}

/* Prevent wide content from forcing horizontal page scrolling. */
main,
main > *,
.row > *,
.article,
.article-content,
.product-card,
.content-card {
    min-width: 0;
}
.article-content img,
.article-content video,
.article-content iframe,
.product-card img {
    max-width: 100%;
}
.article-content pre,
.article-content table {
    max-width: 100%;
    overflow-x: auto;
}

/* Catalog filters: independent desktop scroll area. */
@media (min-width: 992px) {
    .catalog-filter-sidebar {
        position: sticky;
        top: 88px;
        align-self: flex-start;
    }

    .catalog-filter-sidebar .filter-box {
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-right: 20px;
    }

    .catalog-filter-sidebar .filter-box::-webkit-scrollbar {
        width: 8px;
    }

    .catalog-filter-sidebar .filter-box::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .2);
        border-radius: 999px;
    }
}


/* V33: product media uses a neutral canvas without grey letterboxing. */
.product-detail-image,
.product-media-block { background:#fff; }
.product-detail-image .main-product-image__img {
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
}


/* 404 */
.forwork-404 { max-width: 620px; padding: 2rem 1rem; }
.forwork-404-code { font-size: clamp(4rem, 15vw, 8rem); line-height: .9; font-weight: 800; letter-spacing: -.06em; }

/* V37: floating customer chat. */
.forwork-chat { position: fixed; right: 20px; bottom: 20px; z-index: 1085; font-size: 14px; }
.forwork-chat-toggle { border: 0; border-radius: 999px; background: #111; color: #fff; min-width: 64px; height: 52px; padding: 0 18px; font-weight: 700; box-shadow: 0 10px 32px rgba(0,0,0,.2); position: relative; }
.forwork-chat-unread { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: #111; border: 2px solid #111; font-size: 11px; line-height: 16px; }
.forwork-chat-panel { position: absolute; right: 0; bottom: 64px; width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 110px)); background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 18px; box-shadow: 0 18px 55px rgba(0,0,0,.22); overflow: hidden; display: flex; flex-direction: column; }
.forwork-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,.08); }
.forwork-chat-header strong, .forwork-chat-header small { display:block; }
.forwork-chat-header small { color:#6c757d; margin-top:2px; }
.forwork-chat-close { border:0; background:transparent; font-size:26px; line-height:1; padding:3px 6px; }
.forwork-chat-messages { flex:1; overflow-y:auto; overscroll-behavior:contain; padding:14px; background:#f7f7f7; display:flex; flex-direction:column; gap:9px; }
.forwork-chat-message { max-width:82%; padding:9px 11px; border-radius:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.forwork-chat-message.is-user { margin-left:auto; background:#111; color:#fff; border-bottom-right-radius:4px; }
.forwork-chat-message.is-admin, .forwork-chat-message.is-system { margin-right:auto; background:#fff; color:#111; border:1px solid rgba(0,0,0,.08); border-bottom-left-radius:4px; }
.forwork-chat-message-time { display:block; margin-top:4px; font-size:10px; opacity:.6; }
.forwork-chat-form { border-top:1px solid rgba(0,0,0,.08); padding:10px; display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; background:#fff; }
.forwork-chat-form textarea { resize:none; min-height:42px; max-height:90px; }
.forwork-chat-form .btn { height:42px; }
.forwork-chat-status { min-height:0; color:#b42318; font-size:12px; padding:0 10px 8px; background:#fff; }
@media (max-width: 575.98px) {
  .forwork-chat { right:12px; bottom:12px; }
  .forwork-chat-panel { position:fixed; left:10px; right:10px; bottom:74px; width:auto; height:min(70vh,520px); }
  .forwork-chat-toggle { height:48px; min-width:58px; padding:0 15px; }
}

/* V38: local catalog CRUD and compact chat controls. */
.forwork-chat-panel[hidden]{display:none!important}
.forwork-chat-send{width:42px;height:42px;min-width:42px;border:0;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;padding:0}
.forwork-chat-send svg{width:20px;height:20px;fill:currentColor}
.forwork-chat-send:hover{background:#2a2a2a}
.category-admin-actions-spaced{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap}.category-admin-actions-spaced form{margin:0}
.admin-editor-card{background:#fff;border:1px solid rgba(0,0,0,.09);border-radius:14px;padding:20px}
.subcategory-edit-row{padding:14px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fafafa}
.product-editor-form .admin-markdown-textarea{min-height:300px}
.variant-editor-row{padding:16px;border:1px solid rgba(0,0,0,.1);border-radius:12px;background:#fafafa;margin-bottom:12px}
.admin-edit-main-image{display:block;max-width:220px;max-height:180px;object-fit:contain;border:1px solid rgba(0,0,0,.1);border-radius:10px;background:#fff}
.admin-edit-gallery{display:flex;gap:12px;flex-wrap:wrap}.admin-edit-gallery>div{display:flex;flex-direction:column;gap:6px}.admin-edit-gallery img{width:110px;height:90px;object-fit:contain;border:1px solid rgba(0,0,0,.08);border-radius:8px;background:#fff}
.shipping-readonly-grid{display:flex;gap:16px;flex-wrap:wrap;color:#444}


/* V49 product media: palette ambience with exact edge-color bridges for a seamless photo-to-background transition. */
.product-media-block{
    --palette-left:238,241,245;
    --palette-right:238,241,245;
    --palette-top:245,246,248;
    --palette-bottom:245,246,248;
    --palette-center:242,244,247;
    --edge-left:255,255,255;
    --edge-right:255,255,255;
    --edge-top:255,255,255;
    --edge-bottom:255,255,255;
    --image-left:18%;
    --image-right:82%;
    --image-top:8%;
    --image-bottom:72%;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:
        linear-gradient(90deg,
            rgba(var(--palette-left),.62) 0%,
            rgba(var(--edge-left),1) var(--image-left),
            rgba(255,255,255,0) var(--image-left)),
        linear-gradient(90deg,
            rgba(255,255,255,0) var(--image-right),
            rgba(var(--edge-right),1) var(--image-right),
            rgba(var(--palette-right),.62) 100%),
        linear-gradient(180deg,
            rgba(var(--palette-top),.50) 0%,
            rgba(var(--edge-top),1) var(--image-top),
            rgba(255,255,255,0) var(--image-top)),
        linear-gradient(180deg,
            rgba(255,255,255,0) var(--image-bottom),
            rgba(var(--edge-bottom),1) var(--image-bottom),
            rgba(var(--palette-bottom),.60) 100%),
        linear-gradient(90deg,
            rgba(var(--palette-left),.40) 0%,
            rgba(var(--palette-center),.32) 45%,
            rgba(var(--palette-center),.32) 55%,
            rgba(var(--palette-right),.40) 100%),
        #fff !important;
    transition:background .28s ease,border-color .22s ease;
}
.product-media-block::before{
    content:""!important;
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,0) 30%,rgba(255,255,255,0) 80%,rgba(255,255,255,.06) 100%);
}
.product-media-block::after{content:none!important}
.product-media-block>*{position:relative;z-index:1}
.product-detail-image{border-radius:16px;overflow:hidden;background:transparent!important}
.product-detail-image .main-product-image__img{border-radius:16px;background:transparent!important}
.product-media-block .product-thumbs{margin-left:-18px;margin-right:-18px;margin-bottom:-18px;padding:14px 18px 18px;background:transparent!important}
.product-media-block .thumb-strip{position:relative;z-index:2;background:transparent!important}
.product-media-block .product-gallery-arrow{z-index:4}





/* Google Consent Mode v2 / privacy preferences */
.footer-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  width: fit-content;
}
.forwork-consent[hidden] { display: none !important; }
.forwork-consent {
  position: fixed;
  inset: 0;
  z-index: 1085;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .28);
}
.forwork-consent-card {
  width: min(920px, 100%);
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  padding: 22px;
}
.forwork-consent-copy h2 { margin: 0 0 8px; font-size: 1.2rem; }
.forwork-consent-copy p { margin: 0 0 8px; color: #525252; }
.forwork-consent-copy a { color: inherit; text-decoration: underline; }
.forwork-consent-settings { margin-top: 18px; border-top: 1px solid #e8e8e8; }
.forwork-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}
.forwork-consent-option span { display: grid; gap: 3px; }
.forwork-consent-option small { color: #6c757d; }
.forwork-consent-option input { width: 20px; height: 20px; flex: 0 0 auto; }
.forwork-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 575.98px) {
  .forwork-consent { padding: 10px; }
  .forwork-consent-card { padding: 16px; border-radius: 14px; }
  .forwork-consent-actions { display: grid; grid-template-columns: 1fr; }
  .forwork-consent-actions .btn { width: 100%; }
}

/* V51: mobile header/footer alignment and tighter home hero spacing. */
.hero-section {
    padding-top: 48px;
    padding-bottom: 64px;
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 22px;
        padding-bottom: 42px;
    }

    /* Center all navigation controls inside the expanded mobile header. */
    .forwork-navbar #mainMenu,
    .forwork-navbar .navbar-nav,
    .forwork-navbar .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    .forwork-navbar .navbar-nav {
        align-items: center;
    }
    .forwork-navbar .navbar-nav .nav-link,
    .forwork-navbar .navbar-nav .client-menu-trigger {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .forwork-navbar .navbar-nav .nav-action-item {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .forwork-navbar .navbar-nav .nav-action-item .btn {
        margin-left: auto;
        margin-right: auto;
    }
    .forwork-navbar .client-menu-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }

    /* Center footer navigation/actions on phones. */
    .footer-columns > [class*="col-"] {
        text-align: center !important;
        align-items: center;
    }
    .footer-columns h6,
    .footer-payment-column > h6 {
        text-align: center !important;
    }
    .footer-link,
    .footer-link-button {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .footer-payment-column .payment-marks-footer {
        justify-content: center;
    }
    .footer-columns p,
    .footer-schedule,
    .footer-columns .text-muted {
        text-align: center !important;
    }
}


/* V52: persistent unread chat marker and non-overlapping seamless product ambience. */
.forwork-chat-unread{
  display:block;position:absolute;top:-7px;right:7px;width:12px;min-width:12px;height:12px;padding:0;
  border-radius:50%;background:#dc3545;border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.28);
  font-size:0;line-height:0;z-index:3;pointer-events:none;
}
.forwork-chat-unread[hidden]{display:none!important}

.product-media-block{
  --edge-tl:255,255,255;--edge-tr:255,255,255;--edge-bl:255,255,255;--edge-br:255,255,255;
  background:rgb(var(--palette-center))!important;
}
.product-media-block::before{content:none!important}
.product-seam-layer{position:absolute!important;inset:0;z-index:0!important;pointer-events:none;overflow:hidden;border-radius:inherit}
.product-seam-layer>i{position:absolute;display:block;pointer-events:none}
.product-seam-layer .seam-under{
  left:var(--image-left);right:calc(100% - var(--image-right));top:var(--image-top);bottom:calc(100% - var(--image-bottom));
  background:
    linear-gradient(90deg,rgb(var(--edge-left)) 0%,rgba(var(--edge-left),0) 30%),
    linear-gradient(270deg,rgb(var(--edge-right)) 0%,rgba(var(--edge-right),0) 30%),
    linear-gradient(180deg,rgb(var(--edge-top)) 0%,rgba(var(--edge-top),0) 30%),
    linear-gradient(0deg,rgb(var(--edge-bottom)) 0%,rgba(var(--edge-bottom),0) 30%),
    rgb(var(--palette-center));
}
.product-seam-layer .seam-left{left:0;width:var(--image-left);top:var(--image-top);bottom:calc(100% - var(--image-bottom));background:linear-gradient(90deg,rgba(var(--palette-left),.72),rgb(var(--edge-left)))}
.product-seam-layer .seam-right{left:var(--image-right);right:0;top:var(--image-top);bottom:calc(100% - var(--image-bottom));background:linear-gradient(90deg,rgb(var(--edge-right)),rgba(var(--palette-right),.72))}
.product-seam-layer .seam-top{left:var(--image-left);right:calc(100% - var(--image-right));top:0;height:var(--image-top);background:linear-gradient(180deg,rgba(var(--palette-top),.68),rgb(var(--edge-top)))}
.product-seam-layer .seam-bottom{left:var(--image-left);right:calc(100% - var(--image-right));top:var(--image-bottom);bottom:0;background:linear-gradient(180deg,rgb(var(--edge-bottom)),rgba(var(--palette-bottom),.72))}
.product-seam-layer .seam-tl{left:0;top:0;width:var(--image-left);height:var(--image-top);background:radial-gradient(circle at 100% 100%,rgb(var(--edge-tl)) 0%,rgba(var(--palette-left),.74) 58%,rgba(var(--palette-top),.62) 100%)}
.product-seam-layer .seam-tr{left:var(--image-right);right:0;top:0;height:var(--image-top);background:radial-gradient(circle at 0% 100%,rgb(var(--edge-tr)) 0%,rgba(var(--palette-right),.74) 58%,rgba(var(--palette-top),.62) 100%)}
.product-seam-layer .seam-bl{left:0;top:var(--image-bottom);bottom:0;width:var(--image-left);background:radial-gradient(circle at 100% 0%,rgb(var(--edge-bl)) 0%,rgba(var(--palette-left),.72) 56%,rgba(var(--palette-bottom),.68) 100%)}
.product-seam-layer .seam-br{left:var(--image-right);right:0;top:var(--image-bottom);bottom:0;background:radial-gradient(circle at 0% 0%,rgb(var(--edge-br)) 0%,rgba(var(--palette-right),.72) 56%,rgba(var(--palette-bottom),.68) 100%)}
.product-media-block>.product-detail-image,.product-media-block>.product-thumbs{position:relative;z-index:2}
.product-detail-image{background:transparent!important}
.product-detail-image .main-product-image__img{background:transparent!important;position:relative;z-index:2}



/* V54: robust palette ambience. CSS fallback is always visible; JS may add a sampled seamless field on top. */
.product-media-block{
  --palette-left:238,241,245;
  --palette-right:238,241,245;
  --palette-top:245,246,248;
  --palette-bottom:245,246,248;
  --palette-center:242,244,247;
  --palette-accent-a:236,240,245;
  --palette-accent-b:242,244,247;
  position:relative;
  overflow:hidden;
  background-color:#fff!important;
  background-image:
    var(--adaptive-product-bg, none),
    radial-gradient(ellipse 72% 62% at 14% 24%, rgba(var(--palette-left),.68) 0%, rgba(var(--palette-left),.30) 48%, transparent 76%),
    radial-gradient(ellipse 72% 62% at 86% 28%, rgba(var(--palette-right),.66) 0%, rgba(var(--palette-right),.28) 48%, transparent 76%),
    radial-gradient(ellipse 82% 56% at 50% 4%, rgba(var(--palette-top),.52) 0%, transparent 72%),
    radial-gradient(ellipse 88% 60% at 50% 96%, rgba(var(--palette-bottom),.58) 0%, transparent 74%),
    radial-gradient(ellipse 64% 56% at 50% 52%, rgba(var(--palette-center),.46) 0%, transparent 82%)!important;
  background-size:100% 100%!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}
.product-media-block::before,.product-media-block::after{content:none!important}
.product-seam-layer{display:none!important}
.product-media-block>.product-detail-image,.product-media-block>.product-thumbs{position:relative;z-index:2}
.product-detail-image,.product-detail-image .main-product-image__img{background:transparent!important}
.variant-choice{display:flex!important;align-items:center;gap:.55rem;width:auto!important;min-width:112px;padding:.42rem .55rem!important}
.variant-choice .variant-choice-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;white-space:nowrap}
.variant-choice .variant-choice-text strong{font-size:.88rem;font-weight:600}
.variant-choice .variant-choice-text small{font-size:.7rem;color:#6c757d;margin-top:.15rem}
.variant-choice.active .variant-choice-text small{color:inherit;opacity:.72}


/* V58: product variant layout, gallery arrows, non-dimming consent */
.variant-picker-block{padding:18px 20px}
.variant-picker-title{margin:0 0 14px;font-size:1rem;font-weight:700}
.variant-choice-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:14px!important}
.thumb-btn.variant-choice{min-height:104px!important;padding:12px 14px!important;gap:12px!important;border-radius:14px!important}
.thumb-btn.variant-choice img{width:72px!important;height:72px!important;flex:0 0 72px!important}
.variant-choice .variant-choice-text{min-width:0!important;white-space:normal!important;line-height:1.25!important}
.variant-choice .variant-choice-text strong{font-size:.98rem!important;overflow-wrap:anywhere}
.variant-choice .variant-choice-text small{font-size:.76rem!important;margin-top:.25rem!important;overflow-wrap:anywhere}
.product-gallery-arrow{background:#fff!important;border:1px solid rgba(0,0,0,.12)!important;box-shadow:0 4px 16px rgba(0,0,0,.14)!important;opacity:.96!important}
.product-gallery-arrow:hover{background:#fff!important;box-shadow:0 6px 20px rgba(0,0,0,.18)!important}
.forwork-consent{background:transparent!important;pointer-events:none}
.forwork-consent-card{pointer-events:auto}
@media(max-width:575.98px){.variant-choice-grid{grid-template-columns:1fr!important}.thumb-btn.variant-choice{min-height:96px!important}.thumb-btn.variant-choice img{width:64px!important;height:64px!important;flex-basis:64px!important}}


/* v61: full-width two-column product characteristics */
.product-characteristics-block{width:100%}
.product-characteristics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:44px;row-gap:0;margin-top:16px}
.product-characteristics-grid-single{grid-template-columns:1fr}
.product-characteristic-item{display:grid;grid-template-columns:minmax(140px,42%) minmax(0,58%);gap:18px;align-items:start;padding:13px 0;border-bottom:1px solid rgba(0,0,0,.09)}
.product-characteristic-name{color:#6c757d;min-width:0}
.product-characteristic-value{font-weight:600;min-width:0;overflow-wrap:anywhere}
.product-characteristic-empty{grid-column:1/-1;padding:12px 0}
@media(max-width:767.98px){.product-characteristics-grid{grid-template-columns:1fr}.product-characteristic-item{grid-template-columns:minmax(120px,42%) minmax(0,58%);gap:12px}}

/* v63: independent product configuration choices */
.product-options-block{border:1px solid rgba(0,0,0,.08)}.product-option-group+.product-option-group{margin-top:18px}.product-option-label{font-weight:700;margin-bottom:8px}.product-option-values{display:flex;flex-wrap:wrap;gap:9px}.product-option-choice{border:1px solid #cfd5dc;background:#fff;border-radius:10px;padding:10px 16px;min-height:44px;font-weight:600;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.product-option-choice:hover{border-color:#666}.product-option-choice.active{border-color:#111;background:#f4f5f6;box-shadow:0 0 0 2px rgba(0,0,0,.07)}.cart-selected-options{display:block;color:#6c757d;font-size:12px;line-height:1.35;margin-top:3px;font-weight:400}@media(max-width:600px){.product-option-choice{flex:1 1 calc(50% - 9px);text-align:center}}

/* v66: unavailable variants and configuration-specific product images */
.thumb-btn.variant-choice.is-unavailable,
.thumb-btn.variant-choice:disabled{
  background:#f1f3f5!important;
  border-color:#d9dde2!important;
  color:#8a929a!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
  opacity:.62!important;
}
.thumb-btn.variant-choice.is-unavailable img,
.thumb-btn.variant-choice:disabled img{filter:grayscale(1);opacity:.62}
.thumb-btn.variant-choice.is-unavailable .variant-choice-text small,
.thumb-btn.variant-choice:disabled .variant-choice-text small{color:#8a929a!important}

/* v67: unavailable variant tooltip */
.variant-choice-wrap{position:relative;display:block;min-width:0}
.variant-choice-wrap .variant-choice{height:100%}
.variant-choice-wrap.is-unavailable:hover::after,
.variant-choice-wrap.is-unavailable:focus-within::after{
  content:attr(data-unavailable-message);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%);
  z-index:30;
  white-space:nowrap;
  padding:7px 10px;
  border-radius:8px;
  background:#212529;
  color:#fff;
  font-size:.78rem;
  line-height:1.2;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
  pointer-events:none;
}
.variant-choice-wrap.is-unavailable:hover::before,
.variant-choice-wrap.is-unavailable:focus-within::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:100%;
  transform:translateX(-50%);
  z-index:31;
  border:6px solid transparent;
  border-top-color:#212529;
  pointer-events:none;
}
.catalog-config-modal{position:fixed;inset:0;z-index:1080;background:rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;padding:20px}.catalog-config-modal-card{width:min(440px,100%);background:#fff;border-radius:16px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.catalog-config-modal-title{font-weight:700;font-size:1.05rem;margin-bottom:14px}.catalog-config-modal-options{display:flex;flex-wrap:wrap;gap:10px}.catalog-config-modal-options .product-option-choice{min-width:110px}.catalog-config-modal-options .product-option-choice:disabled{opacity:.45;cursor:not-allowed}.bundle-config-row{display:grid;grid-template-columns:1fr 1fr 1fr 150px 1.2fr auto;gap:10px;align-items:end;padding:12px;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:10px}.bundle-component-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:10px;align-items:center;margin-bottom:10px}@media(max-width:900px){.bundle-config-row{grid-template-columns:1fr 1fr}.bundle-config-row>button{grid-column:1/-1}.bundle-component-row{grid-template-columns:1fr}}
.home-post-card .home-post-description{margin:.55rem 0 0;color:#6c757d;font-size:.9rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Single-variant product: one-column characteristics. */
.product-characteristics-grid-single .product-characteristic-item{grid-template-columns:minmax(160px,38%) minmax(0,62%);gap:16px;padding:12px 0}
.product-characteristics-grid-single .product-characteristic-name{font-weight:600}

/* Mobile catalog filters are collapsed into one dropdown. */
.catalog-mobile-filter-summary{display:none}
@media(max-width:991.98px){
  .catalog-mobile-filter-details{border:1px solid #e3e3e3;border-radius:12px;background:#fff;margin-bottom:14px}
  .catalog-mobile-filter-summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-weight:700;cursor:pointer;list-style:none}
  .catalog-mobile-filter-summary::-webkit-details-marker{display:none}
  .catalog-mobile-filter-summary:after{content:"⌄";font-size:20px;line-height:1}
  .catalog-mobile-filter-details[open] .catalog-mobile-filter-summary:after{transform:rotate(180deg)}
  .catalog-mobile-filter-details .filter-box{border:0;border-top:1px solid #eee;border-radius:0;padding:16px}
}


/* v70.3: stable catalog card geometry and white image canvas */
.product-card{display:flex;flex-direction:column;height:100%;}
.product-card .product-image{background:#fff;flex:0 0 auto;}
.product-card .product-image img{object-fit:contain;background:#fff;}
.product-card .product-body{display:flex;flex-direction:column;flex:1;}
.product-card .product-body h5{line-height:1.35;min-height:2.7em;max-height:2.7em;overflow:hidden;margin-bottom:.5rem;}
.product-card .product-body h5 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.product-card .product-body .catalog-add-to-cart,
.product-card .product-body > .btn:last-child{margin-top:auto;}
.why-forwork-row .feature-card:hover{transform:none;box-shadow:none;}

.hero-card > .badge:empty{display:block;width:100%;height:24px;align-self:stretch;border-radius:8px;}
.hero-brand-band{width:100%;display:block;}

.catalog-category-dropdowns{display:flex;flex-direction:column;gap:4px;margin-top:4px}.catalog-category-dropdown{border:0}.catalog-category-row{display:flex;align-items:stretch;gap:4px}.catalog-category-link{flex:1;min-width:0}.catalog-category-toggle{width:36px;flex:0 0 36px;border:0;background:transparent;border-radius:8px;font-size:1.05rem;line-height:1;transition:transform .18s ease,background .18s ease}.catalog-category-toggle:hover{background:#f3f4f6}.catalog-category-toggle[aria-expanded="true"]{transform:rotate(180deg)}.catalog-category-submenu{padding:4px 0 8px 14px;border-left:1px solid var(--border);margin-left:8px}.catalog-category-submenu .filter-link{font-size:.94rem;padding-top:7px;padding-bottom:7px}
/* v73 catalog category toggles and row-height product cards */
.catalog-category-toggle{font-size:0!important;transition:none!important;position:relative}
.catalog-category-toggle::before{content:"›";font-size:1.35rem;line-height:1;display:block}
.catalog-category-toggle[aria-expanded="true"]::before{content:"⌄"}
.catalog-category-toggle[aria-expanded="true"]{transform:none!important}
.product-card .product-body h5{min-height:0!important;max-height:none!important;overflow:visible!important}
.product-card .product-body h5 a{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important}

/* V74 catalog category dropdown: one arrow glyph, rotated between states. */
.catalog-category-toggle{font-size:0!important;position:relative;transition:background .15s ease!important}
.catalog-category-toggle::before{content:"›";font-size:1.35rem;line-height:1;display:block;transform:rotate(0deg);transition:transform .18s ease}
.catalog-category-toggle[aria-expanded="true"]::before{content:"›";transform:rotate(90deg)}
.catalog-category-toggle[aria-expanded="true"]{transform:none!important}
.catalog-category-submenu{display:block;overflow:hidden;max-height:0;opacity:0;padding-top:0;padding-bottom:0;transition:max-height .2s ease,opacity .16s ease,padding .2s ease}
.catalog-category-submenu.is-open{max-height:600px;opacity:1;padding-top:4px;padding-bottom:8px}

/* V75 catalogue arrow rotates around its own centre. */
.catalog-category-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important}
.catalog-category-toggle::before{display:inline-block!important;width:1em;height:1em;line-height:1!important;transform-origin:50% 50%!important;translate:0 0;transition:transform .18s ease!important}
.catalog-category-toggle[aria-expanded="true"]::before{transform:rotate(90deg)!important}

.admin-test-option{border:1px solid #7c3aed!important;background:#f5f3ff!important;border-radius:10px;padding:10px 12px 10px 2rem!important}.admin-test-option .form-check-label{color:#6d28d9!important;font-weight:700}.order-test-badge{background:#7c3aed!important;color:#fff!important}

/* v83: price and purchase controls share one horizontal row on product page */
.product .product-buy-row{align-items:center;flex-wrap:wrap}
.product-buy-price{margin:0!important;min-width:max-content}
.product-buy-price strong{white-space:nowrap}
@media(max-width:600px){.product-buy-price{width:100%;margin-bottom:4px!important}}

/* v87: hover is reserved for controls and links. Decorative/non-clickable cards
   stay visually stable when the pointer merely passes over them. */
.product-card:hover,
.blog-card:not(a):hover,
.category-card:not(a):hover,
.feature-card:hover,
.payment-mark-card:hover {
    transform: none !important;
    box-shadow: none !important;
}
.product-card:hover { border-color: var(--border) !important; }
button:not(:disabled), a[href], [role="button"] { cursor: pointer; }
button:not(:disabled):hover, a[href]:hover, [role="button"]:hover {
    filter: brightness(.96);
}


/* v90: keep SKU and price controls aligned at the bottom of catalog cards. */
.product-card .product-body{display:flex;flex-direction:column;flex:1}
.product-card .product-body h5{margin-bottom:.5rem}
.product-card .product-body .product-sku{margin-top:auto;margin-bottom:.35rem}
.product-card .product-body .product-sku + .d-flex{margin-bottom:.5rem!important}
.product-card .product-body .catalog-add-to-cart,
.product-card .product-body > .btn:last-child{margin-top:0!important}

/* v97.12 dashboard search/select */
.admin-search-select{position:relative}.admin-search-results{position:absolute;z-index:1080;left:0;right:0;top:calc(100% + 4px);max-height:320px;overflow:auto;background:#fff;border:1px solid #d9dde3;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.14);padding:6px}.admin-search-result{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px}.admin-search-result:hover,.admin-search-result:focus{background:#f2f4f7}.dashboard-product-search{max-width:520px;position:relative}.dashboard-product-search .admin-search-results{min-width:360px}

/* v97.16: catalog filter actions remain visible while the filter panel scrolls. */
.catalog-characteristic-filters{position:relative;padding-bottom:64px}.catalog-filter-actions{position:sticky;bottom:0;z-index:12;background:#fff;border-top:1px solid #e6e8eb;padding:10px 0 4px;margin-bottom:-60px}

.product-option-choice.is-unavailable,.variant-choice.is-unavailable{opacity:.45;filter:grayscale(1);cursor:pointer}.variant-choice-wrap.is-unavailable{cursor:pointer}
