/* ==================== SHOP CATALOG + PRODUCT PAGE ====================
   Builds on support.css (.dt-sp shell), shop-pages.css (search/sort inputs)
   and product-card.css (.dt-product). */

/* ---------- Compact page head ---------- */
.dt-cat-head {
    padding: 30px 0 26px;
    background:
        radial-gradient(60% 140% at 100% 0%, rgba(255, 122, 0, 0.25) 0%, rgba(255, 122, 0, 0) 60%),
        linear-gradient(150deg, #151515 0%, #070605 100%);
    color: #fff;
}

.dt-cat-head__crumbs {
    margin: 0 0 8px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
}

.dt-cat-head__crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.dt-cat-head__crumbs a:hover {
    color: var(--dt-orange);
}

.dt-cat-head__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
}

.dt-cat-head__sub {
    margin: 6px 0 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Layout ---------- */
.dt-catalog-section {
    padding-top: 32px;
}

.dt-catalog {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ---------- Filters ---------- */
.dt-filters {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 18px;
    scrollbar-width: thin;
}

.dt-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dt-filters__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.dt-filters__close,
.dt-filters__foot {
    display: none;
}

.dt-filter {
    margin: 0;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid var(--dt-line);
    min-width: 0;
}

.dt-filter:first-child {
    border-top: 0;
    padding-top: 6px;
}

.dt-filter__title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dt-muted);
}

legend.dt-filter__title {
    width: auto;
    padding: 0;
    line-height: 1.4;
    float: left;          /* keeps legend spacing like a normal block */
}

legend.dt-filter__title + * {
    clear: both;
}

.dt-filters .dt-toolbar__search input {
    height: 42px;
}

.dt-checks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dt-checkline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dt-checkline:hover {
    background: var(--dt-soft);
}

.dt-checkline input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dt-checkline__box {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cfcfcf;
    border-radius: 5px;
    color: #fff;
    font-size: 0.55rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dt-checkline__box i {
    opacity: 0;
}

.dt-checkline input:checked + .dt-checkline__box {
    background: var(--dt-orange);
    border-color: var(--dt-orange);
}

.dt-checkline input:checked + .dt-checkline__box i {
    opacity: 1;
}

.dt-checkline input:focus-visible + .dt-checkline__box {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
}

.dt-checkline__label {
    flex: 1;
    min-width: 0;
}

.dt-checkline small {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--dt-soft);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dt-muted);
}

/* Toggle switches */
.dt-filter--switches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dt-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.dt-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dt-switch__track {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #d9d9d9;
    transition: background 0.2s ease;
}

.dt-switch__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--dt-ease);
}

.dt-switch input:checked + .dt-switch__track {
    background: var(--dt-orange);
}

.dt-switch input:checked + .dt-switch__track::after {
    transform: translateX(16px);
}

.dt-switch input:focus-visible + .dt-switch__track {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
}

.dt-switch i {
    width: 16px;
    color: var(--dt-orange);
}

.dt-switch small {
    color: var(--dt-muted);
}

/* Price */
.dt-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dt-muted);
}

.dt-price-range label {
    flex: 1;
    margin: 0;
}

.dt-price-range input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid var(--dt-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.86rem;
}

.dt-price-range input:focus {
    outline: none;
    border-color: var(--dt-orange);
}

.dt-price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.dt-price-chips button {
    padding: 5px 10px;
    border: 1px solid var(--dt-line);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.dt-price-chips button:hover {
    border-color: var(--dt-orange);
    color: var(--dt-orange-dark);
}

/* ---------- Results ---------- */
.dt-results {
    min-width: 0;
}

.dt-results__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 14px;
}

.dt-results__filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--dt-line);
    border-radius: 11px;
    background: #fff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.dt-results__filter-count {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dt-orange);
    color: #fff;
    font-size: 0.7rem;
}

.dt-results__filter-count[hidden] {
    display: none;
}

.dt-results__sort {
    margin: 0;              /* Bootstrap gives labels a bottom margin */
}

.dt-results__count {
    flex: 1;
    margin: 0;
    font-size: 0.86rem;
    color: var(--dt-muted);
}

.dt-results__count strong {
    color: var(--dt-ink);
}

.dt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dt-chips:empty {
    display: none;
}

.dt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border: 1px solid #ffd2a8;
    border-radius: 999px;
    background: #fff8f1;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dt-ink);
    cursor: pointer;
}

.dt-chip i {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: var(--dt-muted);
    font-size: 0.6rem;
}

.dt-chip:hover i {
    background: var(--dt-bad);
    color: #fff;
}

.dt-chip--clear {
    background: transparent;
    border-color: transparent;
    color: var(--dt-muted);
    text-decoration: underline;
}

.dt-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity 0.2s ease;
}

.dt-product-grid[aria-busy="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.dt-product-grid > li {
    display: flex;
    animation: dt-cat-in 0.4s var(--dt-ease) both;
    animation-delay: calc(var(--i, 0) * 40ms);
}

.dt-product-grid.is-restored > li {
    animation: none;
}

/* The card the customer came back from */
.dt-product-grid > li.is-returned .dt-product {
    animation: dt-returned 1.6s ease;
}

@keyframes dt-returned {
    0%, 60% { box-shadow: 0 0 0 3px var(--dt-orange), 0 18px 36px -18px rgba(255, 122, 0, 0.6); }
    100%    { box-shadow: 0 0 0 0 transparent; }
}

.dt-link-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--dt-orange);
    text-decoration: underline;
    cursor: pointer;
}

.dt-more {
    margin-top: 26px;
    text-align: center;
}

.dt-more__info {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: var(--dt-muted);
}

.dt-more__bar {
    width: 200px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #e6e6e6;
    overflow: hidden;
}

.dt-more__bar span {
    display: block;
    height: 100%;
    background: var(--dt-orange);
    transition: width 0.3s ease;
}

.dt-more .dt-btn {
    height: 46px;
    font-size: 0.76rem;
}

@keyframes dt-cat-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ==================== Product page ==================== */
.dt-pd-crumbs {
    margin: 0 0 20px;
    font-size: 0.78rem;
    color: var(--dt-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-pd-crumbs a {
    color: var(--dt-muted);
    text-decoration: none;
}

.dt-pd-crumbs a:hover {
    color: var(--dt-orange);
}

.dt-pd-crumbs span {
    color: var(--dt-ink);
    font-weight: 600;
}

.dt-variants__chip del {
    margin-left: 3px;
    color: #b0b0b0;
    font-weight: 500;
}

.dt-pd {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: start;
}

/* ---------- Gallery ---------- */
.dt-gallery {
    position: sticky;
    top: 96px;
}

.dt-gallery__main {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 42%, #fff 0%, #f1f1f2 72%);
    border: 1px solid var(--dt-line);
    overflow: hidden;
    cursor: zoom-in;
}

.dt-gallery__main img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: var(--zx, 50%) var(--zy, 50%);
}

.dt-gallery__main.is-zoomed img {
    transform: scale(1.8);
}

.dt-gallery__main img.is-placeholder {
    width: 34%;
    height: 34%;
    opacity: 0.25;
    filter: grayscale(1);
}

.dt-gallery__main.no-zoom {
    cursor: default;
}

.dt-gallery__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--dt-orange);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 8px 18px -8px rgba(255, 122, 0, 0.9);
}

.dt-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--dt-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dt-ink);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dt-gallery__nav:hover {
    background: var(--dt-orange);
    color: #fff;
}

.dt-gallery__nav--prev { left: 14px; }
.dt-gallery__nav--next { right: 14px; }

.dt-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.dt-gallery__thumbs button {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 6px;
    border: 2px solid var(--dt-line);
    border-radius: 14px;
    background: #f4f4f5;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dt-gallery__thumbs button[aria-current="true"] {
    border-color: var(--dt-orange);
}

.dt-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ---------- Info ---------- */
.dt-pd__brand {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dt-orange);
    text-decoration: none;
}

.dt-pd__title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.dt-pd__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--dt-muted);
}

.dt-pd__rating a {
    color: var(--dt-muted);
}

.dt-pd__rating .dt-stars {
    font-size: 0.95rem;
}

.dt-pricebox {
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--dt-line);
}

.dt-pricebox--sale {
    border-color: #ffd2a8;
    background: linear-gradient(135deg, #fff8f1 0%, #fff 70%);
}

.dt-pricebox__row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.dt-pricebox__now {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dt-pricebox__was {
    font-size: 1.05rem;
    color: #a8a8a8;
}

.dt-pricebox__save {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--dt-ok);
    font-size: 0.78rem;
    font-weight: 800;
}

.dt-pricebox__offer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #92400e;
}

.dt-pricebox__offer i {
    color: var(--dt-orange);
}

.dt-pricebox__offer a {
    font-weight: 800;
    color: var(--dt-orange-dark);
}

.dt-pricebox__note {
    margin: 10px 0 0;
    font-size: 0.76rem;
    color: var(--dt-muted);
}

.dt-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dt-stock::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 15%, transparent);
}

.dt-stock--in   { color: var(--dt-ok); }
.dt-stock--low  { color: var(--dt-warn); }
.dt-stock--out  { color: var(--dt-bad); }

/* Variants */
.dt-variants {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.dt-variants + .dt-variants {
    margin-top: -4px;
}

.dt-variants legend {
    margin-bottom: 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.dt-variants legend span {
    font-weight: 500;
    color: var(--dt-muted);
}

.dt-variants__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dt-variants label {
    margin: 0;
    cursor: pointer;
}

.dt-variants input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dt-variants__chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 88px;
    padding: 9px 14px;
    border: 1.5px solid var(--dt-line);
    border-radius: 12px;
    background: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dt-variants__chip small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dt-muted);
}

.dt-variants label:hover .dt-variants__chip {
    border-color: #ffb877;
}

.dt-variants input:checked + .dt-variants__chip {
    border-color: var(--dt-orange);
    background: #fff8f1;
    box-shadow: 0 8px 18px -14px rgba(255, 122, 0, 0.9);
}

.dt-variants input:checked + .dt-variants__chip small {
    color: var(--dt-orange-dark);
}

.dt-variants input:focus-visible + .dt-variants__chip {
    outline: 2px solid var(--dt-orange);
    outline-offset: 2px;
}

.dt-variants.is-invalid .dt-variants__chip {
    border-color: #fecaca;
}

.dt-variants__msg {
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dt-bad);
}

/* Buy row */
.dt-buy {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
}

.dt-buy .dt-qty {
    height: 54px;
    border-radius: 14px;
}

.dt-buy .dt-qty button {
    width: 42px;
}

.dt-buy .dt-qty input {
    width: 48px;
    font-size: 1rem;
}

.dt-buy__add {
    flex: 1;
    height: 54px;
    border-radius: 14px;
}

.dt-buy__wish {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1.5px solid var(--dt-line);
    border-radius: 14px;
    background: #fff;
    color: var(--dt-ink);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dt-buy__wish:hover {
    color: var(--dt-orange);
    border-color: var(--dt-orange);
}

.dt-buy__wish.is-active {
    background: var(--dt-orange);
    border-color: var(--dt-orange);
    color: #fff;
}

.dt-buy__now {
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--dt-ink);
    box-shadow: none;
}

.dt-buy__now:hover {
    background: #333;
}

.dt-cm-btn.is-added {
    background: var(--dt-ok);
}

/* Perks */
.dt-pd-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.dt-pd-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--dt-line);
    font-size: 0.78rem;
    line-height: 1.35;
}

.dt-pd-perks i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff4ea;
    color: var(--dt-orange);
}

.dt-pd-perks strong {
    display: block;
    font-size: 0.8rem;
}

.dt-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--dt-muted);
}

.dt-share a,
.dt-share button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--dt-line);
    border-radius: 50%;
    background: #fff;
    color: #555;
    text-decoration: none;
    cursor: pointer;
}

.dt-share a:hover,
.dt-share button:hover {
    color: var(--dt-orange);
    border-color: var(--dt-orange);
}

.dt-meta {
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--dt-line);
    font-size: 0.8rem;
    color: var(--dt-muted);
}

.dt-meta a {
    color: var(--dt-ink);
    font-weight: 600;
}

/* ---------- Tabs ---------- */
.dt-pd-tabs {
    margin-top: 48px;
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: 20px;
    overflow: hidden;
}

.dt-pd-tabs__list {
    display: flex;
    gap: 4px;
    padding: 8px 8px 0;
    border-bottom: 1px solid var(--dt-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.dt-pd-tabs__list button {
    position: relative;
    flex-shrink: 0;
    padding: 12px 18px;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dt-muted);
    cursor: pointer;
}

.dt-pd-tabs__list button[aria-selected="true"] {
    color: var(--dt-ink);
}

.dt-pd-tabs__list button[aria-selected="true"]::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--dt-orange);
}

.dt-pd-tabs__panel {
    padding: 24px 26px;
}

.dt-pd-tabs__panel[hidden] {
    display: none;
}

.dt-prose {
    max-width: 760px;
    font-size: 0.94rem;
    line-height: 1.8;
    color: #3a3a3a;
    white-space: pre-line;
}

/* Reviews */
.dt-rev-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dt-line);
}

.dt-rev-summary__score {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.dt-rev-summary__meta {
    font-size: 0.82rem;
    color: var(--dt-muted);
}

.dt-rev-summary__meta .dt-stars {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.dt-rev-summary .dt-btn {
    margin-left: auto;
    height: 44px;
    font-size: 0.74rem;
}

.dt-rev-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dt-rev {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--dt-soft);
}

.dt-rev__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dt-rev__avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a3c, var(--dt-orange));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.dt-rev__name {
    font-size: 0.86rem;
    font-weight: 700;
}

.dt-rev__date {
    font-size: 0.72rem;
    color: var(--dt-muted);
}

.dt-rev__head .dt-stars {
    margin-left: auto;
}

.dt-rev p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #3a3a3a;
}

/* Related */
.dt-related {
    margin-top: 48px;
}

.dt-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dt-related__head h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

/* Sticky buy bar (phones) */
.dt-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--dt-line);
    box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, 0.4);
    transform: translateY(110%);
    transition: transform 0.3s var(--dt-ease);
}

.dt-buybar.is-visible {
    transform: none;
}

.dt-buybar__price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.dt-buybar__price strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.dt-buybar__price del {
    font-size: 0.74rem;
    color: #a8a8a8;
}

.dt-buybar .dt-cm-btn {
    flex: 1;
    height: 48px;
}

/* ==================== Responsive ==================== */
@media (max-width: 991.98px) {
    .dt-catalog {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Filters become a slide-in drawer */
    .dt-filters {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 2100;
        width: min(340px, 88vw);
        max-height: none;
        border-radius: 0 20px 20px 0;
        display: flex;
        flex-direction: column;
        padding: 18px 18px 0;
        transform: translateX(-105%);
        transition: transform 0.3s var(--dt-ease);
    }

    .dt-filters.is-open {
        transform: none;
    }

    .dt-filters form {
        flex: 1;
        overflow-y: auto;
    }

    .dt-filters__close {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--dt-soft);
        cursor: pointer;
    }

    .dt-filters__foot {
        display: flex;
        gap: 10px;
        margin: 0 -18px;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--dt-line);
        background: #fff;
    }

    .dt-filters__foot .dt-btn {
        flex: 1;
        height: 46px;
        font-size: 0.74rem;
    }

    .dt-filters-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2090;
        background: rgba(0, 0, 0, 0.45);
    }

    .dt-results__filter-btn {
        display: inline-flex;
    }

    .dt-pd {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .dt-gallery {
        position: static;
    }

    .dt-buybar {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    /* Toolbar: [Filters] [Sort] on one row, count underneath */
    .dt-results__bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .dt-results__filter-btn {
        justify-content: center;
        width: 100%;
        height: 44px;
    }

    .dt-results__sort-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .dt-results__bar .dt-toolbar__sort select {
        width: 100%;
        min-width: 0;
    }

    .dt-results__count {
        order: 3;
        grid-column: 1 / -1;
        padding: 2px 4px 0;
        font-size: 0.8rem;
    }

    .dt-more .dt-btn {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .dt-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dt-gallery__main {
        border-radius: 18px;
    }

    .dt-gallery__thumbs button {
        width: 62px;
        height: 62px;
    }

    .dt-pricebox__now {
        font-size: 1.8rem;
    }

    .dt-pd-perks {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-pd-tabs__panel {
        padding: 20px 16px;
    }

    .dt-rev-summary .dt-btn {
        margin-left: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-product-grid > li {
        animation: none;
    }

    .dt-filters,
    .dt-buybar,
    .dt-gallery__main img {
        transition: none;
    }
}
