/*
 * Dentax redesign foundation
 *
 * Loaded after the legacy stylesheets so existing markup and behavior remain
 * intact while shared visual primitives can be adopted incrementally.
 */

:root {
    --dentax-primary: #125d67;
    --dentax-primary-dark: #0a4650;
    --dentax-primary-soft: #e8f2f3;
    --dentax-peach: #e89d70;
    --dentax-peach-soft: #fbeddf;
    --dentax-surface: #ffffff;
    --dentax-surface-muted: #f6f7f4;
    --dentax-surface-warm: #fffaf5;
    --dentax-text: #1f3438;
    --dentax-text-muted: #65767a;
    --dentax-border: #d8e1e2;
    --dentax-border-strong: #b9cbcd;
    --dentax-success: #2f7d5c;
    --dentax-warning: #a96524;
    --dentax-danger: #a64444;
    --dentax-shadow-sm: 0 4px 14px rgba(10, 70, 80, 0.08);
    --dentax-shadow-md: 0 12px 32px rgba(10, 70, 80, 0.12);
    --dentax-shadow-lg: 0 22px 54px rgba(10, 70, 80, 0.16);
    --dentax-radius-sm: 8px;
    --dentax-radius: 14px;
    --dentax-radius-lg: 22px;
    --dentax-transition: 180ms ease;
    --dentax-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, Candara, sans-serif;
    --dentax-font-serif: Georgia, "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f6f7f4;
    background: var(--dentax-surface-muted);
    color: #1f3438;
    color: var(--dentax-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, Candara, sans-serif;
    font-family: var(--dentax-font-sans);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.dentax-page-title {
    color: #0a4650;
    color: var(--dentax-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-family: var(--dentax-font-serif);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: #125d67;
    color: var(--dentax-primary);
    transition: color var(--dentax-transition);
}

a:hover,
a:focus {
    color: #0a4650;
    color: var(--dentax-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: #e89d70;
    background: var(--dentax-peach);
    color: #0a4650;
    color: var(--dentax-primary-dark);
}

/* Buttons: extend Bootstrap and retained Dentax button hooks. */
.btn,
.dentax-button,
button,
input[type="button"],
input[type="submit"] {
    border-radius: 999px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, Candara, sans-serif;
    font-family: var(--dentax-font-sans);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition:
        background-color var(--dentax-transition),
        border-color var(--dentax-transition),
        box-shadow var(--dentax-transition),
        color var(--dentax-transition),
        transform var(--dentax-transition);
}

.btn-primary,
.dentax-button {
    background-color: #125d67;
    background-color: var(--dentax-primary);
    border-color: #125d67;
    border-color: var(--dentax-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.dentax-button:hover,
.dentax-button:focus {
    background-color: #0a4650;
    background-color: var(--dentax-primary-dark);
    border-color: #0a4650;
    border-color: var(--dentax-primary-dark);
    box-shadow: 0 8px 18px rgba(10, 70, 80, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-default,
.btn-secondary,
.dentax-button-secondary {
    background: #ffffff;
    background: var(--dentax-surface);
    border-color: #b9cbcd;
    border-color: var(--dentax-border-strong);
    color: #0a4650;
    color: var(--dentax-primary-dark);
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.dentax-button-secondary:hover,
.dentax-button-secondary:focus {
    background: #e8f2f3;
    background: var(--dentax-primary-soft);
    border-color: #125d67;
    border-color: var(--dentax-primary);
    color: #0a4650;
    color: var(--dentax-primary-dark);
}

.btn[disabled],
.btn.disabled,
.dentax-button[disabled] {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

/* Page-level typography and layout helpers. */
.dentax-page-title {
    margin: 0 0 32px;
    position: relative;
}

.dentax-page-title::after {
    background: #e89d70;
    background: var(--dentax-peach);
    border-radius: 999px;
    content: "";
    display: block;
    height: 4px;
    margin: 14px auto 0;
    width: 56px;
}

.dentax-section {
    padding: 64px 0;
}

.dentax-surface {
    background: #ffffff;
    background: var(--dentax-surface);
}

.dentax-surface-warm {
    background: #fffaf5;
    background: var(--dentax-surface-warm);
}

.dentax-stack > * + * {
    margin-top: 20px;
}

/* Shared cards and legacy product blocks. */
.dentax-card,
.book-block-shadow {
    background: #ffffff;
    background: var(--dentax-surface);
    border: 1px solid #d8e1e2;
    border: 1px solid var(--dentax-border);
    border-radius: 14px;
    border-radius: var(--dentax-radius);
    box-shadow: 0 4px 14px rgba(10, 70, 80, 0.08);
    box-shadow: var(--dentax-shadow-sm);
    overflow: visible;
    transition:
        border-color var(--dentax-transition),
        box-shadow var(--dentax-transition),
        transform var(--dentax-transition);
}

.dentax-card:hover,
.book-block-shadow:hover {
    border-color: #b9cbcd;
    border-color: var(--dentax-border-strong);
    box-shadow: 0 12px 32px rgba(10, 70, 80, 0.12);
    box-shadow: var(--dentax-shadow-md);
    transform: translateY(-5px) rotate(0.25deg);
}

.dentax-card__body {
    padding: 24px;
}

.dentax-card__title {
    margin: 0 0 10px;
}

.dentax-card__meta {
    color: #65767a;
    color: var(--dentax-text-muted);
    font-size: 0.925em;
}

.dentax-book-cover img,
.book-image img {
    border-radius: 8px;
    border-radius: var(--dentax-radius-sm);
    box-shadow: 0 12px 32px rgba(10, 70, 80, 0.12);
    box-shadow: var(--dentax-shadow-md);
    transform-origin: center bottom;
    transition:
        box-shadow var(--dentax-transition),
        transform var(--dentax-transition);
}

.swiper-slide-active .dentax-book-cover img {
    animation: dentax-book-float 5s ease-in-out infinite;
}

.dentax-card:hover .dentax-book-cover img {
    animation: none;
    box-shadow: 0 22px 54px rgba(10, 70, 80, 0.16);
    box-shadow: var(--dentax-shadow-lg);
    transform: translateY(-6px) rotate(-1deg);
}

.book-block-shadow:hover .book-image img {
    box-shadow: 0 22px 54px rgba(10, 70, 80, 0.16);
    box-shadow: var(--dentax-shadow-lg);
    transform: translateY(-6px) rotate(-1deg);
}

@keyframes dentax-book-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Catalog and homepage book cards share one resilient presentation layer. */
.catalog .list-view {
    display: flex;
    flex-wrap: wrap;
}

.catalog .list-view > .pagination,
.catalog .list-view > .empty {
    flex: 0 0 100%;
    width: 100%;
}

.dentax-catalog-column {
    display: flex;
    margin-bottom: 30px;
}

.dentax-catalog-column .dentax-book-card {
    display: flex;
    flex: 1 1 auto;
    min-height: 330px;
    width: 100%;
}

.dentax-catalog-column .dentax-book-cover {
    align-items: flex-start;
    display: flex;
    flex: 0 0 38%;
    float: none;
    justify-content: center;
    padding: 24px 12px 24px 24px;
    width: 38%;
}

.dentax-catalog-column .dentax-book-content {
    display: flex;
    flex: 1 1 62%;
    float: none;
    min-width: 0;
    padding: 24px 24px 24px 12px;
    width: 62%;
}

.dentax-book-card .action_part {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    position: relative;
}

.dentax-book-card .action_part .dentax-button {
    bottom: auto;
    left: auto;
    position: static;
}

.dentax-book-content .action_part,
.dentax-book-content .dentax-book-details {
    min-width: 0;
    width: 100%;
}

.dentax-book-content .dentax-book-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.dentax-book-content h2 {
    hyphens: auto;
    margin-top: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dentax-book-card__action {
    margin-top: auto;
}

.dentax-book-cover .book-image,
.dentax-book-cover a {
    display: block;
    width: 100%;
}

.dentax-book-cover img {
    display: block;
    height: 260px;
    margin: 0 auto;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.dentax-book-slide .dentax-book-card,
.dentax-home-book-column .dentax-book-card {
    height: 100%;
}

.dentax-book-slide .row {
    display: flex;
    flex-wrap: wrap;
}

.dentax-book-slide .dentax-book-card {
    display: flex;
}

.dentax-book-slide--new,
.dentax-book-slide--new > .dentax-book-row {
    height: 100%;
}

.dentax-book-slide--new > .dentax-book-row {
    align-items: stretch;
    display: flex;
}

.dentax-book-slide--new .dentax-home-book-column {
    display: flex;
    flex-direction: column;
    float: none;
}

.dentax-book-slide--new .dentax-book-link-row {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
}

.dentax-book-slide--new .dentax-book-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

.dentax-book-slide--new .dentax-book-card-shell {
    display: flex;
    flex: 1 1 auto;
    float: none;
    width: 100%;
}

.dentax-book-card--stacked {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.dentax-book-slide--new .dentax-book-card--stacked {
    flex: 1 1 auto;
    min-height: 100%;
    width: 100%;
}

.dentax-book-card--stacked .dentax-book-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-end;
}

.dentax-book-card--stacked .dentax-book-cover img {
    height: 280px;
}

.dentax-catalog-column,
.dentax-book-slide .dentax-book-card {
    animation: dentax-card-enter 480ms ease both;
}

.dentax-catalog-column:nth-child(2n),
.dentax-book-slide .dentax-book-card:nth-child(2) {
    animation-delay: 70ms;
}

.dentax-book-slide .dentax-book-card:nth-child(3) {
    animation-delay: 140ms;
}

@keyframes dentax-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panels and wells keep their Bootstrap behavior with calmer surfaces. */
.panel,
.well,
.dentax-panel {
    background: #ffffff;
    background: var(--dentax-surface);
    border: 1px solid #d8e1e2;
    border: 1px solid var(--dentax-border);
    border-radius: 14px;
    border-radius: var(--dentax-radius);
    box-shadow: 0 4px 14px rgba(10, 70, 80, 0.08);
    box-shadow: var(--dentax-shadow-sm);
}

.panel-heading,
.dentax-panel__heading {
    background: #e8f2f3;
    background: var(--dentax-primary-soft);
    border-bottom: 1px solid #d8e1e2;
    border-bottom: 1px solid var(--dentax-border);
    border-radius: 14px 14px 0 0;
    color: #0a4650;
    color: var(--dentax-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-family: var(--dentax-font-serif);
    font-weight: 700;
}

/* Forms retain Yii and Bootstrap validation hooks. */
.form-control,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"] {
    background-color: #ffffff;
    background-color: var(--dentax-surface);
    border: 1px solid #b9cbcd;
    border: 1px solid var(--dentax-border-strong);
    border-radius: 8px;
    border-radius: var(--dentax-radius-sm);
    box-shadow: none;
    color: #1f3438;
    color: var(--dentax-text);
    min-height: 44px;
    transition:
        border-color var(--dentax-transition),
        box-shadow var(--dentax-transition);
}

/* Preserve the compact legacy search control after the shared form sizing. */
.search-box .form-control {
    height: 23px;
    min-height: 23px;
}

textarea.form-control,
textarea {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus {
    border-color: #125d67;
    border-color: var(--dentax-primary);
    box-shadow: 0 0 0 3px rgba(18, 93, 103, 0.14);
    outline: 0;
}

.control-label,
label {
    color: #1f3438;
    color: var(--dentax-text);
    font-weight: 700;
}

.help-block,
.hint-block {
    color: #65767a;
    color: var(--dentax-text-muted);
}

.has-error .form-control {
    border-color: #a64444;
    border-color: var(--dentax-danger);
}

.has-error .help-block,
.has-error .control-label {
    color: #a64444;
    color: var(--dentax-danger);
}

/* Modals keep Bootstrap's event and accessibility behavior. */
.dentax-modal .modal-content {
    background: #ffffff;
    background: var(--dentax-surface);
    border: 0;
    border-radius: 22px;
    border-radius: var(--dentax-radius-lg);
    box-shadow: 0 22px 54px rgba(10, 70, 80, 0.16);
    box-shadow: var(--dentax-shadow-lg);
    overflow: hidden;
}

.dentax-modal .modal-header {
    border-bottom-color: #d8e1e2;
    border-bottom-color: var(--dentax-border);
    padding: 22px 24px;
}

.dentax-modal .modal-title {
    color: #0a4650;
    color: var(--dentax-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-family: var(--dentax-font-serif);
}

.dentax-modal .modal-body {
    padding: 24px;
}

.dentax-modal .modal-footer {
    border-top-color: #d8e1e2;
    border-top-color: var(--dentax-border);
    padding: 18px 24px;
}

.modal-backdrop.in {
    opacity: 0.62;
}

/* Tables remain horizontally scrollable when wrapped responsively. */
.dentax-table-scope .table,
.dentax-panel .table,
.dentax-scroll-x .table {
    background: #ffffff;
    background: var(--dentax-surface);
    border-color: #d8e1e2;
    border-color: var(--dentax-border);
}

.dentax-table-scope .table > thead > tr > th,
.dentax-panel .table > thead > tr > th,
.dentax-scroll-x .table > thead > tr > th {
    background: #e8f2f3;
    background: var(--dentax-primary-soft);
    border-bottom-color: #b9cbcd;
    border-bottom-color: var(--dentax-border-strong);
    color: #0a4650;
    color: var(--dentax-primary-dark);
    font-weight: 700;
}

.dentax-table-scope .table > tbody > tr > td,
.dentax-table-scope .table > tbody > tr > th,
.dentax-panel .table > tbody > tr > td,
.dentax-panel .table > tbody > tr > th,
.dentax-scroll-x .table > tbody > tr > td,
.dentax-scroll-x .table > tbody > tr > th {
    border-top-color: #d8e1e2;
    border-top-color: var(--dentax-border);
    vertical-align: middle;
}

.dentax-table-scope .table-striped > tbody > tr:nth-of-type(odd),
.dentax-panel .table-striped > tbody > tr:nth-of-type(odd),
.dentax-scroll-x .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f6f7f4;
    background-color: var(--dentax-surface-muted);
}

/* Alerts preserve Bootstrap state classes. */
.dentax-alert-scope .alert,
.dentax-panel .alert {
    border: 1px solid transparent;
    border-radius: 14px;
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-sm);
}

.dentax-alert-scope .alert-info,
.dentax-panel .alert-info {
    background: #e8f2f3;
    background: var(--dentax-primary-soft);
    border-color: #b9cbcd;
    border-color: var(--dentax-border-strong);
    color: #0a4650;
    color: var(--dentax-primary-dark);
}

.dentax-alert-scope .alert-success,
.dentax-panel .alert-success {
    background: #eaf5ef;
    border-color: #b9dac9;
    color: #2f6d51;
}

.dentax-alert-scope .alert-warning,
.dentax-panel .alert-warning {
    background: #fff4df;
    border-color: #efd29f;
    color: #8a571e;
}

.dentax-alert-scope .alert-danger,
.dentax-panel .alert-danger {
    background: #fbecec;
    border-color: #e6bcbc;
    color: #8d3636;
}

/* Shared site shell: all overrides stay below explicit Dentax hooks. */
.dentax-site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--dentax-border);
    box-shadow: none;
    overflow: visible;
    padding-bottom: 0;
    position: relative;
}

.dentax-header-shell,
.dentax-header-navigation-row,
.dentax-header-actions,
.dentax-header-action-block,
.dentax-header-action-list,
.dentax-header-action-list > li {
    overflow: visible;
}

.dentax-header-topline {
    background: var(--dentax-primary-dark);
    color: #ffffff;
}

.dentax-header-topline__inner {
    align-items: center;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    line-height: 1.2;
    min-height: 38px;
}

.dentax-header-tagline {
    color: rgba(255, 255, 255, 0.86);
    flex: 1 1 50%;
    font-weight: 600;
    text-align: left;
}

.dentax-header-contact-links {
    align-items: center;
    display: flex;
    flex: 1 1 50%;
    gap: 24px;
    justify-content: flex-end;
    text-align: right;
}

.dentax-header-contact-links a,
.dentax-header-contact-links a:visited {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.dentax-header-contact-links a:hover,
.dentax-header-contact-links a:focus {
    color: var(--dentax-peach);
}

.dentax-header-shell {
    position: relative;
}

.dentax-header-navigation-row {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 72px;
    position: relative;
}

.dentax-header-menu-toggle {
    align-items: center;
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border);
    border-radius: 10px;
    color: var(--dentax-primary-dark);
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: 0;
    transition:
        background-color var(--dentax-transition),
        border-color var(--dentax-transition),
        box-shadow var(--dentax-transition);
    width: 42px;
}

.dentax-header-menu-toggle__bar {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 18px;
}

.dentax-header-menu-toggle:hover,
.dentax-header-menu-toggle:focus {
    background: var(--dentax-primary-soft);
    border-color: var(--dentax-primary);
    box-shadow: 0 5px 14px rgba(10, 70, 80, 0.12);
    outline: 0;
}

.dentax-site-header--nav-open .dentax-header-menu-toggle {
    background: var(--dentax-primary-soft);
    border-color: var(--dentax-primary);
}

.dentax-header-brand-cluster {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.dentax-header-brand-link {
    align-items: center;
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
}

.dentax-header-brand {
    align-items: center;
    display: flex;
    min-width: 0;
}

.dentax-header-logo {
    display: block;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    width: 150px;
}

.dentax-site-header .dentax-header-brand-link.logo > .dentax-header-logo {
    max-width: 190px;
    width: 150px;
}

.dentax-header-cart-action {
    display: inline-flex;
    position: relative;
}

.dentax-site-header #total_item_count_data {
    left: auto;
    margin: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 2;
}

.dentax-site-header .dentax-header-cart-badge.cart-item-count {
    align-items: center;
    background: var(--dentax-primary);
    border: 2px solid var(--dentax-surface);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(10, 70, 80, 0.18);
    color: #ffffff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    left: auto;
    line-height: 1;
    min-width: 20px;
    padding: 0 5px;
    position: absolute;
    right: -4px;
    top: -4px;
    width: auto;
}

.dentax-site-header .dentax-header-cart-badge.cart-item-count span {
    display: block;
    line-height: 1;
}

.dentax-header-actions {
    min-width: 152px;
    position: relative;
}

.dentax-header-action-block {
    margin-top: 0;
    position: static;
}

.dentax-header-action-block.row,
.dentax-header-action-block .row {
    margin-left: 0;
    margin-right: 0;
}

.dentax-header-action-block > [class*="col-"] {
    float: none;
    padding-left: 0;
    padding-right: 0;
    width: auto;
}

.dentax-header-action-list {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dentax-site-header .dentax-header-action-list > li {
    align-items: center;
    display: flex;
    margin: 0;
    padding: 0;
}

.dentax-site-header .dentax-header-action-list > li::after {
    display: none;
}

.dentax-header-action {
    align-items: center;
    background-image: none !important;
    background-color: var(--dentax-surface);
    background-position: center;
    border: 1px solid var(--dentax-border);
    border-radius: 50%;
    box-shadow: none;
    color: var(--dentax-primary);
    cursor: pointer;
    display: inline-flex !important;
    height: 42px !important;
    justify-content: center;
    min-height: 40px;
    min-width: 42px;
    padding: 8px;
    transition:
        background-color var(--dentax-transition),
        border-color var(--dentax-transition),
        box-shadow var(--dentax-transition),
        transform var(--dentax-transition);
    width: 42px !important;
}

.dentax-header-action i {
    color: currentColor;
    font-size: 16px;
    line-height: 1;
}

.dentax-header-action:hover,
.dentax-header-action:focus {
    background-color: var(--dentax-primary-soft);
    border-color: var(--dentax-primary);
    box-shadow: 0 5px 14px rgba(10, 70, 80, 0.12);
    color: var(--dentax-primary-dark);
    outline: 0;
    transform: translateY(-1px);
}

.dentax-primary-nav {
    min-width: 0;
}

.dentax-primary-nav-list {
    align-items: center;
    display: flex;
    float: none;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.dentax-primary-nav-list.navbar-nav > li {
    float: none;
    margin: 0;
}

.dentax-primary-nav-list > li > a {
    align-items: center;
    background: transparent !important;
    border-radius: 0;
    color: var(--dentax-text);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    letter-spacing: 0.04em;
    padding: 34px 13px;
    position: relative;
    text-transform: uppercase;
}

.dentax-primary-nav-list > li > a::after {
    background: var(--dentax-peach);
    border-radius: 999px;
    bottom: 23px;
    content: "";
    height: 3px;
    left: 13px;
    opacity: 0;
    position: absolute;
    right: 13px;
    transform: scaleX(0.35);
    transform-origin: center;
    transition:
        opacity var(--dentax-transition),
        transform var(--dentax-transition);
}

.dentax-primary-nav-list > li > a:hover,
.dentax-primary-nav-list > li > a:focus {
    color: var(--dentax-primary-dark);
}

.dentax-primary-nav-list.navbar-nav > li.active > a,
.dentax-primary-nav-list.navbar-nav > li.active > a:hover,
.dentax-primary-nav-list.navbar-nav > li.active > a:focus {
    background: transparent !important;
    color: var(--dentax-primary-dark);
}

.dentax-primary-nav-list > li > a:hover::after,
.dentax-primary-nav-list > li > a:focus::after,
.dentax-primary-nav-list.navbar-nav > li.active > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.dentax-header-actions .search-place,
.dentax-header-actions .cart-block,
.dentax-header-actions .login_actions {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border);
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-md);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--dentax-transition),
        transform var(--dentax-transition),
        visibility var(--dentax-transition);
    visibility: hidden;
    z-index: 1060;
}

.dentax-header-actions .dentax-shell-dropdown::before {
    border: 8px solid transparent;
    border-bottom-color: var(--dentax-surface);
    content: "";
    height: 0;
    position: absolute;
    right: 54px;
    top: -16px;
    width: 0;
}

.dentax-header-actions .search-place {
    margin: 0;
    min-width: 360px;
    padding: 18px;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    transform: translateY(-6px);
}

.dentax-header-actions .search-place > [class*="col-"] {
    float: none;
    padding: 0;
    width: 100%;
}

.dentax-header-actions .search-place .search-box {
    margin: 0;
}

.dentax-header-actions .search-place .form-group {
    margin: 0;
}

.dentax-header-actions .search-place .search-box .form-control {
    border-color: var(--dentax-border-strong);
    border-radius: var(--dentax-radius-sm) 0 0 var(--dentax-radius-sm);
    font-size: 15px;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
}

.dentax-header-actions .search-place .search-box .btn-search {
    background: var(--dentax-primary);
    border: 1px solid var(--dentax-border-strong);
    border-left: 0;
    border-radius: 0 var(--dentax-radius-sm) var(--dentax-radius-sm) 0;
    color: #ffffff;
    font-size: 13px;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    width: auto;
}

.dentax-header-actions .search-place .search-box .btn-search:hover,
.dentax-header-actions .search-place .search-box .btn-search:focus {
    background: var(--dentax-primary-dark);
    color: #ffffff;
}

.dentax-header-actions .cart-block {
    max-height: min(70vh, 410px);
    overflow-y: auto;
    padding: 0;
    right: 0;
    top: calc(100% + 14px);
    transform: translateY(-6px);
    width: min(380px, 94vw);
}

.dentax-cart-preview > .container-fluid {
    color: var(--dentax-text);
    padding: 0 20px 18px;
}

.dentax-cart-preview__header {
    align-items: center;
    border-bottom: 1px solid var(--dentax-border);
    display: flex;
    margin-bottom: 14px;
    min-height: 62px;
}

.dentax-cart-preview__header > [class*="col-"] {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.dentax-cart-preview__title {
    color: var(--dentax-primary-dark);
    font-family: var(--dentax-font-serif);
    font-size: 22px;
    margin: 0;
}

.dentax-cart-preview .close-cart {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--dentax-text-muted);
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    position: relative;
    width: 36px;
}

.dentax-cart-preview .close-cart::before {
    content: "\00d7";
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.dentax-cart-preview .close-cart:hover,
.dentax-cart-preview .close-cart:focus {
    background: var(--dentax-primary-soft);
    color: var(--dentax-primary-dark);
}

.dentax-cart-preview-list {
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
}

.dentax-cart-preview-item {
    align-items: center;
    border-bottom: 1px solid var(--dentax-border);
    display: flex;
    margin-bottom: 0 !important;
    padding: 12px 0;
}

.dentax-cart-preview-item img {
    border-radius: var(--dentax-radius-sm);
    max-height: 84px;
    object-fit: contain;
}

.dentax-cart-preview-item h3 {
    color: var(--dentax-text);
    font-family: var(--dentax-font-sans);
    font-size: 14px;
    line-height: 1.35;
    margin: 6px 0 0;
}

.dentax-cart-preview__footer {
    padding: 16px 0 0;
}

.dentax-cart-preview__footer .action-button {
    background: var(--dentax-primary);
    color: #ffffff;
    min-height: 42px;
    padding: 10px 20px;
}

.dentax-header-actions .login_actions {
    min-width: 240px;
    padding: 12px;
    right: 0;
    top: calc(100% + 14px);
    transform: translateY(-6px);
    width: 250px;
}

.dentax-header-actions .login_section {
    margin: 0;
}

.dentax-header-actions .login_section li {
    padding: 3px 0;
}

.dentax-header-actions .login_section .account-nav-action,
.dentax-header-actions .login_section a {
    align-items: center;
    border-radius: var(--dentax-radius-sm);
    color: var(--dentax-primary-dark);
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    text-decoration: none;
    width: 100%;
}

.dentax-header-actions .login_section .account-nav-action:hover,
.dentax-header-actions .login_section .account-nav-action:focus,
.dentax-header-actions .login_section a:hover,
.dentax-header-actions .login_section a:focus {
    background: var(--dentax-primary-soft);
    color: var(--dentax-primary-dark);
}

.dentax-header-actions .login_section li:first-child .account-nav-action {
    background: var(--dentax-primary);
    color: #ffffff;
}

.dentax-header-actions .login_section li:first-child .account-nav-action:hover,
.dentax-header-actions .login_section li:first-child .account-nav-action:focus {
    background: var(--dentax-primary-dark);
    color: #ffffff;
}

.dentax-header-actions .search-place[style*="visibility: visible"],
.dentax-header-actions .cart-block[style*="visibility: visible"],
.dentax-header-actions .login_actions[style*="visibility: visible"] {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible !important;
}

.dentax-auth-modal .modal-dialog {
    margin: 48px auto;
    max-width: 540px;
    width: calc(100% - 30px);
}

.dentax-auth-modal .modal-content {
    border: 1px solid var(--dentax-border);
    border-radius: 18px;
}

.dentax-auth-modal--login .dentax-auth-modal__dialog {
    max-width: 560px;
}

.dentax-auth-modal--registration .dentax-auth-modal__dialog {
    margin-bottom: 28px;
    margin-top: 28px;
    max-width: 640px;
}

.dentax-auth-modal--reset .dentax-auth-modal__dialog,
.dentax-auth-modal--resend .dentax-auth-modal__dialog {
    max-width: 560px;
}

.dentax-auth-modal .modal-header {
    border: 0;
    min-height: 54px;
    padding: 14px 18px 0;
}

.dentax-auth-modal .modal-header .close {
    background-size: 18px;
    border-radius: 50%;
    height: 40px;
    padding: 0;
    width: 40px;
}

.dentax-auth-modal .modal-body {
    padding: 0 34px 34px;
}

.dentax-auth-modal__header {
    background:
        radial-gradient(circle at 85% 15%, rgba(232, 157, 112, 0.18), transparent 32%),
        linear-gradient(135deg, var(--dentax-primary-soft), #ffffff);
    border-bottom: 1px solid var(--dentax-border) !important;
    min-height: 0 !important;
    padding: 28px 58px 24px !important;
    position: relative;
    text-align: center;
}

.dentax-auth-modal .dentax-auth-modal__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.84) !important;
    background-image: none !important;
    border: 1px solid var(--dentax-border);
    box-shadow: none;
    color: var(--dentax-primary-dark);
    display: flex;
    font-size: 25px;
    justify-content: center;
    line-height: 1;
    opacity: 1;
    position: absolute;
    right: 16px;
    top: 16px;
}

.dentax-auth-modal .dentax-auth-modal__close:hover,
.dentax-auth-modal .dentax-auth-modal__close:focus {
    background: var(--dentax-surface) !important;
    border-color: var(--dentax-primary);
}

.dentax-auth-modal__icon {
    align-items: center;
    background: var(--dentax-primary);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(18, 93, 103, 0.2);
    color: #ffffff;
    display: inline-flex;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    margin-bottom: 14px;
    width: 48px;
}

.dentax-auth-modal .dentax-auth-modal__title {
    color: var(--dentax-primary-dark);
    font-family: var(--dentax-font-serif);
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.dentax-auth-modal__subtitle {
    color: var(--dentax-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 8px auto 0;
    max-width: 420px;
}

.dentax-auth-modal .dentax-auth-modal__body {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding: 28px 36px 34px;
}

.dentax-auth-modal .dentax-auth-form {
    padding: 0;
}

.dentax-auth-form__title {
    letter-spacing: -0.02em;
}

.dentax-auth-modal .dentax-auth-form__form {
    border: 0;
    margin: 0;
    padding: 0;
    position: static;
    text-align: left;
}

.dentax-auth-form__fields {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.dentax-auth-modal .dentax-auth-field {
    margin-bottom: 0;
}

.dentax-auth-modal .dentax-auth-field__label {
    color: var(--dentax-text);
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    position: static;
    text-align: left;
    top: auto;
    width: auto;
}

.dentax-auth-modal .dentax-auth-field__input {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border-strong);
    border-radius: var(--dentax-radius-sm);
    box-shadow: none;
    display: block;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    width: 100%;
}

.dentax-auth-modal .dentax-auth-field__input:focus {
    background: var(--dentax-surface);
    border-color: var(--dentax-primary);
    box-shadow: 0 0 0 3px rgba(18, 93, 103, 0.14);
    outline: 0;
}

.dentax-auth-modal .dentax-auth-field__error {
    color: #b42318;
    font-size: 12px;
    margin: 6px 0 0;
}

.dentax-auth-modal .dentax-auth-field--checkbox {
    margin-top: 2px;
}

.dentax-auth-modal .dentax-auth-field__checkbox {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.dentax-auth-modal .dentax-auth-field__checkbox input[type="checkbox"] {
    accent-color: var(--dentax-primary);
    height: 16px;
    margin: 0;
    position: static;
    width: 16px;
}

.dentax-auth-modal .dentax-auth-field__checkbox-label {
    color: var(--dentax-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.dentax-auth-form__links {
    background: var(--dentax-primary-soft);
    border-radius: var(--dentax-radius-sm);
    margin: 0 0 22px;
    padding: 14px 16px;
}

.dentax-auth-form__link-line {
    color: var(--dentax-text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.dentax-auth-form__link-line + .dentax-auth-form__link-line {
    margin-top: 8px;
}

.dentax-auth-form__link-text {
    margin-right: 4px;
}

.dentax-auth-modal .dentax-auth-form__link {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--dentax-primary);
    display: inline;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    min-height: 0;
    padding: 0;
    text-decoration: underline;
    vertical-align: baseline;
}

.dentax-auth-modal .dentax-auth-form__link:hover,
.dentax-auth-modal .dentax-auth-form__link:focus {
    background: transparent;
    box-shadow: none;
    color: var(--dentax-primary-dark);
    outline: 0;
    text-decoration: underline;
    transform: none;
}

.dentax-auth-form__submit {
    margin: 0;
}

.dentax-auth-modal .dentax-auth-form__submit-btn {
    background-color: var(--dentax-primary);
    border: 1px solid var(--dentax-primary);
    border-radius: var(--dentax-radius-sm);
    box-shadow: 0 9px 24px rgba(18, 93, 103, 0.2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    min-height: 46px;
    padding: 11px 18px;
    width: 100%;
}

.dentax-auth-modal .dentax-auth-form__submit-btn:hover,
.dentax-auth-modal .dentax-auth-form__submit-btn:focus {
    background-color: var(--dentax-primary-dark);
    border-color: var(--dentax-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.dentax-header-social {
    display: none;
}

.dentax-shell-notifications {
    background: var(--dentax-surface);
}

.dentax-site-footer {
    background: var(--dentax-primary-dark);
    border-top: 5px solid var(--dentax-peach);
    color: rgba(255, 255, 255, 0.88);
    margin-top: 56px;
}

.dentax-site-footer-inner {
    padding: 42px 0 30px;
}

.dentax-site-footer .dentax-footer-logo {
    align-items: center;
    background: #ffffff;
    border-radius: var(--dentax-radius);
    display: inline-flex;
    justify-content: center;
    margin-bottom: 24px;
    min-height: 44px;
    padding: 10px 18px;
}

.dentax-site-footer .dentax-footer-logo .dentax-header-logo {
    max-height: 62px;
    width: 175px;
}

.dentax-site-footer .dentax-footer-nav .footer-menu {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 26px;
    padding-bottom: 22px;
}

.dentax-site-footer .dentax-footer-nav .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: center;
}

.dentax-site-footer .dentax-footer-nav .navbar-nav > li {
    float: none;
    padding: 0;
}

.dentax-site-footer .dentax-footer-nav .navbar-nav > li > a {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    min-height: 40px;
    padding: 10px 13px;
}

.dentax-site-footer .dentax-footer-nav .navbar-nav > li > a:hover,
.dentax-site-footer .dentax-footer-nav .navbar-nav > li > a:focus,
.dentax-site-footer .dentax-footer-nav .navbar-nav > .active > a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dentax-footer-details {
    align-items: center;
    display: flex;
}

.dentax-site-footer .footer-contact {
    padding-top: 8px;
}

.dentax-site-footer .footer-contact li {
    line-height: 1.55;
    min-height: 28px;
}

.dentax-site-footer .dentax-color,
.dentax-site-footer .dentax-color:visited {
    color: rgba(255, 255, 255, 0.88);
}

.dentax-site-footer a.dentax-color:hover,
.dentax-site-footer a.dentax-color:focus {
    color: #ffffff;
}

.dentax-footer-social-row {
    margin-top: 18px;
}

.dentax-site-footer .footer-social {
    padding-bottom: 0;
    padding-top: 0;
}

/* Homepage editorial stages. All selectors are scoped to the page hook. */
.dentax-home {
    background: var(--dentax-surface-muted);
    overflow: hidden;
}

.dentax-home__section {
    position: relative;
}

.dentax-home__section--featured {
    background: var(--dentax-primary-dark);
}

.dentax-home__backdrop {
    background-position: center;
    background-size: cover;
    position: relative;
}

.dentax-home__backdrop::before {
    background: linear-gradient(110deg, rgba(5, 42, 48, 0.92), rgba(10, 70, 80, 0.58));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.dentax-home__backdrop > * {
    position: relative;
}

.dentax-home-stage {
    padding: 76px 0 82px;
}

.dentax-home-stage--new {
    background:
        radial-gradient(circle at 90% 5%, rgba(232, 157, 112, 0.2), transparent 30%),
        var(--dentax-surface-warm);
}

.dentax-home-stage__heading-row {
    margin-bottom: 30px;
}

.dentax-home-stage__title {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.025em;
    margin: 0;
}

.dentax-home-stage--featured .dentax-home-stage__title {
    color: #ffffff;
}

.dentax-home-stage__content {
    position: relative;
}

.dentax-home-stage__content > .col-sm-12 {
    position: relative;
}

.dentax-home-stage__slider {
    min-height: 360px;
    overflow: visible;
    padding: 0 56px;
}

.dentax-home-stage__slider:not(.swiper-container-horizontal) {
    overflow-x: auto;
}

.dentax-home-stage__slider:not(.swiper-container-horizontal) .swiper-wrapper {
    display: flex;
}

.dentax-home-stage__slider:not(.swiper-container-horizontal) .swiper-slide {
    flex: 0 0 100%;
}

.dentax-home-stage__control {
    align-items: center;
    appearance: none;
    background-color: var(--dentax-surface);
    border: 1px solid var(--dentax-border);
    border-radius: 50%;
    box-shadow: var(--dentax-shadow-md);
    color: transparent;
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    position: absolute;
    top: calc(50% - 28px);
    width: 48px;
    z-index: 3;
}

.dentax-home-stage__control.book-prev,
.dentax-home-stage__control.new_prev {
    left: 0;
}

.dentax-home-stage__control.book-next,
.dentax-home-stage__control.new_next {
    right: 0;
}

.dentax-home-stage__pagination {
    margin-top: 24px;
}

/* Product detail, reviews, and review modal. */
.dentax-product {
    background: var(--dentax-surface-muted);
}

.dentax-product__hero,
.dentax-product__description,
.dentax-product-reviews {
    padding: 64px 0;
}

.dentax-product__hero {
    background:
        radial-gradient(circle at 8% 12%, rgba(232, 157, 112, 0.16), transparent 28%),
        var(--dentax-surface-warm);
}

.dentax-product__layout {
    align-items: start;
}

.dentax-product__media {
    text-align: center;
}

.dentax-product__cover {
    background: #ffffff;
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-lg);
    margin: 0 auto;
    max-height: 680px;
    object-fit: contain;
}

.dentax-product__preview {
    margin-top: 24px;
}

.dentax-product__preview-button {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-primary);
    color: var(--dentax-primary-dark);
    min-height: 44px;
    padding: 10px 24px;
}

.dentax-product__details {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border);
    border-radius: var(--dentax-radius-lg);
    box-shadow: var(--dentax-shadow-md);
    padding: 38px;
}

.dentax-product__title {
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    overflow-wrap: anywhere;
}

.dentax-product__price {
    align-items: baseline;
    color: var(--dentax-text-muted);
    display: flex;
    font-size: 17px;
    gap: 10px;
}

.dentax-product__price .black_rub_icon {
    color: var(--dentax-primary-dark);
    font-family: var(--dentax-font-serif);
    font-size: 34px;
    font-weight: 700;
}

.dentax-product__metadata ul {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dentax-product__metadata li {
    align-items: baseline;
    border-bottom: 1px solid var(--dentax-border);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    padding: 12px 0;
}

.dentax-product__metadata li:last-child {
    border-bottom: 0;
}

.dentax-product__actions {
    align-items: center;
    display: flex;
    margin-top: 20px;
}

.dentax-product__actions .product-page-button {
    min-height: 48px;
    width: 100%;
}

.dentax-quantity {
    align-items: center;
    background: var(--dentax-primary-soft);
    border: 1px solid var(--dentax-border-strong);
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    overflow: hidden;
}

.dentax-quantity__button {
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--dentax-primary-dark);
    font-size: 22px;
    height: 44px;
    min-width: 44px;
}

.dentax-quantity__value {
    font-size: 17px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.dentax-product__stock {
    margin-top: 24px;
}

.dentax-product__stock .dentax-button {
    display: inline-flex;
    margin: 0;
    min-height: 44px;
    padding: 11px 22px;
}

.dentax-product__social {
    align-items: center;
    border-top: 1px solid var(--dentax-border);
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
}

.dentax-product__social a {
    border-radius: 50%;
    display: block;
    min-height: 44px;
    min-width: 44px;
}

.dentax-product__description {
    background: var(--dentax-surface);
}

.dentax-product__section-title {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 28px;
}

.dentax-product__description-copy {
    color: var(--dentax-text);
    font-size: 17px;
    line-height: 1.8;
}

.dentax-product__description-copy img,
.dentax-product__description-copy iframe,
.dentax-product__description-copy table {
    max-width: 100%;
}

.dentax-product__description-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.dentax-product-reviews {
    background: var(--dentax-primary-soft);
}

.dentax-product-reviews__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
}

.dentax-product-reviews__header .dentax-product__section-title {
    margin-bottom: 0;
}

.dentax-review-card {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border);
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-sm);
    margin-bottom: 18px;
    padding: 24px;
}

.dentax-review-card__content {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dentax-review-card__author {
    color: var(--dentax-primary-dark);
    font-family: var(--dentax-font-serif);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dentax-review-card__body p {
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.dentax-review-card__rating {
    color: var(--dentax-peach);
    display: flex;
    gap: 5px;
}

.dentax-review-form {
    max-width: 640px;
    padding: 4px 8px 8px;
}

.dentax-review-form__title {
    margin: 0 0 24px;
}

.dentax-review-form__rating {
    margin-bottom: 24px;
}

.dentax-review-form__rating .review-stars {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.dentax-review-form__rating .form-group {
    margin: 0;
}

.dentax-review-form__submit {
    min-height: 44px;
    padding-left: 24px;
    padding-right: 24px;
}

/* Local PDF page-flip viewer. */
.dentax-pdf-reader {
    background: var(--dentax-surface-muted);
    border-radius: var(--dentax-radius);
    padding: 16px;
}

.dentax-pdf-reader .book-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dentax-pdf-reader .book-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.dentax-pdf-reader .book-reader-button {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border-strong);
    color: var(--dentax-primary-dark);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 14px;
}

.dentax-pdf-reader .book-reader-button:hover,
.dentax-pdf-reader .book-reader-button:focus {
    background: var(--dentax-primary-soft);
    border-color: var(--dentax-primary);
}

.dentax-pdf-reader .book-status {
    color: var(--dentax-text-muted);
    font-size: 14px;
}

.dentax-pdf-reader .book-reader-stage {
    background: #17282b;
    border-radius: var(--dentax-radius);
    height: min(760px, 72vh);
    overflow: auto;
    position: relative;
}

.dentax-pdf-reader .book-reader-stage-inner {
    margin: 0 auto;
    transform-origin: top center;
    transition: transform 0.2s ease;
    width: fit-content;
}

.dentax-pdf-reader .book-loading {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 16px;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.dentax-pdf-reader .book-error {
    color: var(--dentax-danger);
    font-size: 14px;
    margin-top: 10px;
}

.dentax-pdf-reader .book-page {
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.dentax-pdf-reader .book-page canvas {
    display: block;
    height: 100%;
    width: 100%;
}

.dentax-pdf-reader .book-page-number {
    bottom: 10px;
    color: var(--dentax-text-muted);
    font-size: 12px;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
}

.dentax-pdf-reader__original {
    margin-top: 12px;
}

.dentax-search-results {
    padding: 58px 0;
}

.dentax-search-results .dentax-page-title {
    overflow-wrap: anywhere;
}

/* Keyboard focus is conspicuous without changing mouse interaction. */
:focus-visible {
    outline: 3px solid #0a4650;
    outline: 3px solid var(--dentax-primary-dark);
    outline-offset: 3px;
}

.btn:focus-visible,
.dentax-button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 4px rgba(10, 70, 80, 0.3);
}

/* Existing floating scroll control gets the shared palette. */
#scroll-to-top {
    align-items: center;
    background: #125d67;
    background: var(--dentax-primary);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(10, 70, 80, 0.2);
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    transition:
        background-color var(--dentax-transition),
        transform var(--dentax-transition);
    width: 48px;
}

#scroll-to-top:hover,
#scroll-to-top:focus {
    background: #0a4650;
    background: var(--dentax-primary-dark);
    transform: translateY(-2px);
}

/* Responsive helpers for gradual adoption in existing views. */
.dentax-responsive-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dentax-scroll-x {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    overflow-x: auto;
}

.dentax-only-mobile {
    display: none !important;
}

/* Cart, checkout, and account restyle stage. */
.dentax-cart-shell .dentax-cart-list-panel,
.dentax-checkout-shell .dentax-panel,
.dentax-account-shell .dentax-panel,
.dentax-account-auth-shell {
    padding: 20px;
}

.dentax-cart-shell .dentax-cart-table {
    border-bottom: 1px solid var(--dentax-border);
    color: var(--dentax-primary-dark);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.dentax-cart-shell .dentax-cart-row {
    align-items: center;
    border-bottom: 1px solid var(--dentax-border);
    margin: 0;
    padding: 16px 0;
}

.dentax-cart-shell .dentax-cart-actions {
    margin-top: 20px;
    text-align: right;
}

.dentax-checkout-shell .dentax-checkout-item {
    margin-bottom: 16px;
    min-height: 100%;
}

.dentax-checkout-shell .dentax-checkout-item h2 {
    font-size: 18px;
    margin-top: 0;
    overflow-wrap: anywhere;
}

.dentax-checkout-shell .dentax-checkout-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dentax-checkout-shell .dentax-checkout-list > li + li {
    border-top: 1px solid var(--dentax-border);
    margin-top: 10px;
    padding-top: 10px;
}

.dentax-checkout-shell .dentax-checkout-summary .order-buttom {
    margin-bottom: 18px;
}

.dentax-checkout-shell .dentax-checkout-summary .shipment_notes {
    min-height: 120px;
}

.dentax-account-shell .dentax-account-nav {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.dentax-account-shell .dentax-account-nav > li + li {
    border-top: 1px solid var(--dentax-border);
}

.dentax-account-shell .dentax-account-nav a,
.dentax-account-shell .dentax-account-nav span,
.dentax-account-shell .dentax-account-nav .account-nav-action {
    display: block;
    min-height: 44px;
    padding: 12px 8px;
}

.dentax-account-orders .dentax-account-orders-table {
    margin-bottom: 0;
}

.dentax-account-addresses .address-item {
    margin-bottom: 18px;
    min-height: 100%;
}

.dentax-account-info-form .form-group {
    margin-bottom: 16px;
}

/* Informational page and contact/partners restyle stage. */
.dentax-info-page,
.dentax-content-page {
    padding: 48px 0;
}

.dentax-info-page__grid {
    row-gap: 20px;
}

.dentax-info-page__media,
.dentax-info-page__content {
    width: 100%;
}

.dentax-info-page__image {
    border-radius: var(--dentax-radius-sm);
    display: block;
    width: 100%;
}

.dentax-info-page__rich-content {
    background: var(--dentax-surface);
    border: 1px solid var(--dentax-border);
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-sm);
    margin: 0;
    padding: 22px;
}

.dentax-prose > :last-child {
    margin-bottom: 0;
}

.dentax-contact-page__top-row {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
}

.dentax-contact-grid {
    display: flex;
    flex-wrap: wrap;
}

.dentax-contact-page__details-column,
.dentax-contact-page__map-column {
    display: flex;
}

.dentax-contact-page__details-grid,
.dentax-contact-page__map-row {
    width: 100%;
}

.dentax-contact-page__contact-list {
    margin-bottom: 14px;
    padding-left: 0;
}

.dentax-contact-page__map-frame {
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-sm);
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.dentax-contact-page__map-embed {
    border: 0;
    height: 100%;
    left: 0;
    min-height: 320px;
    position: absolute;
    top: 0;
    width: 100%;
}

.dentax-contact-page__forms-grid {
    display: flex;
    flex-wrap: wrap;
}

.dentax-contact-page__form-column {
    display: flex;
}

.dentax-contact-page__form-shell {
    border-radius: var(--dentax-radius);
    box-shadow: var(--dentax-shadow-sm);
    margin-top: 0;
    width: 100%;
}

.dentax-contact-page__forms-mobile .dentax-contact-page__form-shell {
    margin-bottom: 14px;
}

.dentax-partners-page__grid {
    display: flex;
    flex-wrap: wrap;
}

.dentax-partner-grid {
    display: flex;
    flex-wrap: wrap;
}

.dentax-partners-page__item {
    display: flex;
}

.dentax-partners-page__logo {
    align-items: center;
    border-radius: var(--dentax-radius-sm);
    display: flex;
    justify-content: center;
    min-height: 170px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.dentax-partners-page__logo-image {
    height: 100%;
    max-height: 170px;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

@media (min-width: 992px) {
    .dentax-header-navigation-row {
        gap: 28px;
        grid-template-columns: 190px minmax(0, 1fr) auto;
        min-height: 92px;
    }

    .dentax-header-brand-cluster {
        gap: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .dentax-header-topline__inner {
        font-size: 12px;
        gap: 12px;
        min-height: 34px;
    }

    .dentax-header-contact-links {
        gap: 16px;
    }

    .dentax-header-navigation-row {
        gap: 14px;
        min-height: 76px;
    }

    .dentax-site-header .dentax-header-brand-link.logo > .dentax-header-logo {
        max-height: 64px;
        max-width: 150px;
        width: 140px;
    }
}

@media (max-width: 991px) {
    .dentax-header-navigation-row {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dentax-header-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .dentax-header-brand-cluster {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .dentax-site-header .logo img.dentax-header-logo,
    .dentax-site-header .dentax-header-brand-link.logo > .dentax-header-logo {
        max-height: 64px;
        max-width: 150px;
        width: 140px;
    }

    .dentax-header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .dentax-primary-nav {
        background: var(--dentax-surface);
        border-bottom: 1px solid var(--dentax-border);
        box-shadow: var(--dentax-shadow-md);
        grid-column: 1 / -1;
        grid-row: 2;
        left: 0;
        margin: 0 -15px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0 15px;
        position: relative;
        transition:
            max-height var(--dentax-transition),
            opacity var(--dentax-transition),
            padding var(--dentax-transition),
            visibility var(--dentax-transition);
        visibility: hidden;
        width: calc(100% + 30px);
        z-index: 1040;
    }

    .dentax-site-header--nav-open .dentax-primary-nav {
        max-height: min(70vh, 520px);
        opacity: 1;
        overflow-y: auto;
        padding-bottom: 12px;
        padding-top: 8px;
        visibility: visible;
    }

    .dentax-primary-nav-list {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
    }

    .dentax-primary-nav-list > li {
        width: 100%;
    }

    .dentax-primary-nav-list > li > a {
        justify-content: flex-start;
        min-height: 48px;
        padding: 12px 10px;
        text-align: left;
        white-space: normal;
    }

    .dentax-primary-nav-list > li > a::after {
        bottom: 8px;
        left: 10px;
        right: 10px;
    }

    .dentax-header-actions .search-place,
    .dentax-header-actions .cart-block,
    .dentax-header-actions .login_actions {
        left: 12px;
        margin: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        position: fixed;
        right: 12px;
        top: 108px;
        transform: none;
        width: auto;
    }

    .dentax-header-actions .dentax-shell-dropdown::before {
        display: none;
    }

    .dentax-header-actions .search-place {
        min-width: 0;
    }
}

@media (min-width: 768px) {
    /* Sticky positioning remains in normal flow, so page content is not covered. */
    .dentax-site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .dentax-product__layout {
        display: grid;
        gap: clamp(36px, 6vw, 84px);
        grid-template-columns: minmax(280px, 0.8fr) minmax(400px, 1.2fr);
    }

    .dentax-product__layout > .col-sm-1 {
        display: none;
    }

    .dentax-product__layout > .dentax-product__media,
    .dentax-product__layout > .dentax-product__details {
        float: none;
        width: auto;
    }

    .dentax-checkout-shell .dentax-checkout-summary-wrap {
        position: -webkit-sticky;
        position: sticky;
        top: 108px;
    }
}

@media (max-width: 991px) {
    .dentax-section {
        padding: 48px 0;
    }

    .dentax-responsive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dentax-site-header {
        box-shadow: 0 4px 16px rgba(10, 70, 80, 0.12);
    }

    .dentax-header-topline__inner {
        font-size: 11px;
        justify-content: center;
        min-height: 32px;
        padding: 6px 0;
    }

    .dentax-header-tagline {
        display: none;
    }

    .dentax-header-contact-links {
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 10px 14px;
        justify-content: center;
        text-align: center;
    }

    .dentax-header-brand-cluster {
        gap: 8px;
    }

    .dentax-header-navigation-row {
        gap: 8px;
        min-height: 60px;
        padding: 4px 0;
    }

    .dentax-site-header .logo img.dentax-header-logo,
    .dentax-site-header .dentax-header-brand-link.logo > .dentax-header-logo {
        max-height: 52px;
        max-width: 112px;
        width: 108px;
    }

    .dentax-header-brand {
        min-width: 0;
    }

    .dentax-site-header .dentax-header-cart-badge.cart-item-count {
        font-size: 10px;
        height: 18px;
        min-width: 18px;
        padding: 0 4px;
        right: -3px;
        top: -3px;
    }

    .dentax-header-action {
        height: 38px !important;
        min-height: 38px;
        min-width: 38px;
        width: 38px !important;
    }

    .dentax-header-action i {
        font-size: 15px;
    }

    .dentax-header-actions .search-place,
    .dentax-header-actions .cart-block,
    .dentax-header-actions .login_actions {
        left: 12px;
        max-height: calc(100vh - 120px);
        right: 12px;
        top: 104px;
    }

    .dentax-header-actions .search-place .search-box .form-control {
        font-size: 16px;
        height: 44px;
        min-height: 44px;
    }

    .dentax-header-actions .search-place .search-box .btn-search {
        height: 44px;
        min-height: 44px;
        min-width: 44px;
    }

    .dentax-header-actions .login_actions {
        padding: 12px;
    }

    .dentax-header-actions .login_section .account-nav-action,
    .dentax-header-actions .login_section a {
        align-items: center;
        display: flex;
        justify-content: center;
        min-height: 44px;
        width: 100%;
    }

    .dentax-auth-modal .modal-dialog {
        margin: 20px auto;
    }

    .dentax-auth-modal .modal-body {
        padding: 0 20px 24px;
    }

    .dentax-auth-form__fields {
        gap: 14px;
        margin-bottom: 18px;
    }

    .dentax-site-footer {
        margin-top: 36px;
    }

    .dentax-site-footer-inner {
        padding: 32px 0 24px;
    }

    .dentax-site-footer .dentax-footer-nav .navbar-nav {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .dentax-site-footer .dentax-footer-nav .navbar-nav > li > a {
        align-items: center;
        display: flex;
        justify-content: center;
        min-height: 44px;
    }

    .dentax-footer-details-mobile {
        display: flex;
        flex-direction: column;
    }

    .dentax-footer-details-mobile > [class*="col-"] {
        width: 100%;
    }

    .dentax-catalog-column {
        width: 100%;
    }

    .dentax-catalog-column .dentax-book-card {
        min-height: 0;
    }

    .dentax-catalog-column .dentax-book-cover {
        flex-basis: 36%;
        padding: 20px 10px 20px 20px;
        width: 36%;
    }

    .dentax-catalog-column .dentax-book-content {
        flex-basis: 64%;
        padding: 20px 20px 20px 10px;
        width: 64%;
    }

    .dentax-catalog-column .dentax-book-cover img {
        height: 220px;
    }

    .dentax-book-slide .dentax-book-card {
        margin-bottom: 24px;
    }

    .dentax-page-title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .dentax-section {
        padding: 36px 0;
    }

    .dentax-responsive-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dentax-card__body,
    .dentax-modal .modal-body {
        padding: 20px;
    }

    .dentax-only-desktop {
        display: none !important;
    }

    .dentax-only-mobile {
        display: block !important;
    }

    .table-responsive {
        border: 0;
        border-radius: 8px;
        border-radius: var(--dentax-radius-sm);
    }

    .dentax-cart-shell .dentax-cart-list-panel {
        padding: 14px;
    }

    .dentax-cart-shell .dentax-cart-row {
        border: 1px solid var(--dentax-border);
        border-radius: var(--dentax-radius-sm);
        margin-bottom: 12px;
        padding: 12px;
    }

    .dentax-cart-shell .dentax-cart-row > [class*="col-"] {
        margin-bottom: 8px;
        width: 100%;
    }

    .dentax-cart-shell .dentax-cart-actions {
        text-align: center;
    }

    .dentax-checkout-shell .dentax-checkout-layout > [class*="col-"],
    .dentax-checkout-shell .dentax-checkout-item-column {
        margin-bottom: 14px;
        width: 100%;
    }

    .dentax-checkout-shell .dentax-checkout-main .col-sm-4,
    .dentax-checkout-shell .dentax-checkout-summary-wrap {
        width: 100%;
    }

    .dentax-account-shell .dentax-account-content,
    .dentax-account-shell .col-sm-3 {
        width: 100%;
    }

    .dentax-account-orders .table > thead {
        display: none;
    }

    .dentax-account-orders .table > tbody > tr {
        border: 1px solid var(--dentax-border);
        display: block;
        margin-bottom: 12px;
        padding: 6px 8px;
    }

    .dentax-account-orders .table > tbody > tr > td {
        border: 0;
        display: block;
        padding-left: 46%;
        position: relative;
        text-align: right;
        white-space: normal;
    }

    .dentax-account-orders .table > tbody > tr > td::before {
        color: var(--dentax-text-muted);
        content: attr(data-label);
        font-weight: 700;
        left: 0;
        padding: 6px 0;
        position: absolute;
        text-align: left;
        top: 6px;
        width: 42%;
    }

    .dentax-account-addresses .col-sm-3 {
        width: 100%;
    }

    .dentax-info-page,
    .dentax-content-page {
        padding: 30px 0;
    }

    .dentax-info-page__rich-content {
        padding: 16px;
    }

    .dentax-contact-page__details-column,
    .dentax-contact-page__map-column,
    .dentax-contact-page__form-column {
        width: 100%;
    }

    .dentax-contact-page__map-frame,
    .dentax-contact-page__map-embed {
        min-height: 250px;
    }

    .dentax-partners-page__item {
        width: 50%;
    }

    .dentax-partners-page__logo {
        min-height: 130px;
    }

    .dentax-partners-page__logo-image {
        max-height: 130px;
    }

    .dentax-home-stage {
        padding: 44px 0 50px;
    }

    .dentax-home-stage__heading-row {
        margin-bottom: 20px;
    }

    .dentax-home-stage__title {
        font-size: 36px;
    }

    .dentax-home-stage__slider {
        min-height: 320px;
        padding: 0 48px;
    }

    .dentax-home-stage__control {
        height: 44px;
        width: 44px;
    }

    .dentax-product__hero,
    .dentax-product__description,
    .dentax-product-reviews {
        padding: 40px 0;
    }

    .dentax-product__media {
        margin-bottom: 28px;
    }

    .dentax-product__cover {
        max-height: 520px;
    }

    .dentax-product__details {
        border-radius: var(--dentax-radius);
        padding: 24px 20px;
    }

    .dentax-product__title {
        font-size: 34px;
    }

    .dentax-product__metadata li {
        gap: 4px;
        grid-template-columns: minmax(0, 1fr);
    }

    .dentax-product__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .dentax-product__actions > [class*="col-"] {
        width: 100%;
    }

    .dentax-product-reviews__header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .dentax-product-reviews__new {
        float: none !important;
        width: 100%;
    }

    .dentax-review-card {
        padding: 20px;
    }

    .dentax-pdf-reader {
        padding: 10px;
    }

    .dentax-pdf-reader .book-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dentax-pdf-reader .book-actions {
        justify-content: space-between;
    }

    .dentax-pdf-reader .book-reader-stage {
        height: min(520px, 66vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .dentax-book-cover img {
        animation: none;
    }

    .dentax-card:hover,
    .book-block-shadow:hover,
    .dentax-card:hover .dentax-book-cover img,
    .book-block-shadow:hover .book-image img {
        transform: none;
    }
}
