/*
 * Zoodrug shop UI: cart, checkout, order page and the personal cabinet.
 * Loaded after demo9/wt.css (layouts/site.blade.php). Everything is prefixed "zd-" so the Wolmart theme stays untouched.
 * Colours follow the site: dark green brand (#04251c), green for cashback/success, orange for discounts.
 */
:root {
    --zd-brand: #04251c;
    --zd-brand-2: #0e513b;
    --zd-brand-soft: #e9f2ee;
    --zd-green: #2f8f1f;
    --zd-green-soft: #edf7ea;
    --zd-sale: #fa4500;
    --zd-sale-soft: #fff1ea;
    --zd-danger: #d92d20;
    --zd-danger-soft: #fdeeee;
    --zd-warn: #b45309;
    --zd-warn-soft: #fff6e5;
    --zd-info: #1d5fa8;
    --zd-info-soft: #eaf2fb;
    --zd-text: #1d2623;
    --zd-text-2: #4a5551;
    --zd-muted: #7b8682;
    --zd-border: #e4e8e6;
    --zd-border-2: #d3d9d6;
    --zd-bg: #f3f5f2;
    --zd-white: #fff;
    --zd-cta: #1f7a4c;
    --zd-cta-2: #186640;
    --zd-cta-soft: #e8f3ec;
    --zd-field: #f4f6f5;
    --zd-radius: 16px;
    --zd-radius-md: 12px;
    --zd-radius-sm: 10px;
    --zd-shadow: 0 1px 2px rgba(4, 37, 28, .04), 0 6px 20px rgba(4, 37, 28, .06);
    --zd-focus: 0 0 0 3px rgba(31, 122, 76, .16);
}

/* ---------- Page frame ---------- */
.zd-page {
    padding: 8px 0 56px;
    color: var(--zd-text);
    font-size: 14px;
    line-height: 1.5;
}
.zd-page *,
.zd-page *::before,
.zd-page *::after {
    box-sizing: border-box;
}
.zd-page a {
    color: inherit;
}
.zd-page [hidden] {
    display: none !important;
}
.zd-sum-cta + .zd-collapse {
    margin-top: 18px;
}
.zd-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 0 22px;
}
.zd-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--zd-muted);
}
.zd-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.zd-crumbs li + li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .6;
}
.zd-page .zd-crumbs a {
    color: var(--zd-muted);
    text-decoration: none;
}
.zd-page .zd-crumbs a:hover {
    color: var(--zd-brand);
}
.zd-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--zd-brand);
}
.zd-title small {
    margin-left: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--zd-muted);
}
.zd-subtitle {
    margin: 4px 0 0;
    color: var(--zd-muted);
    font-size: 14px;
}

/* ---------- Checkout steps ---------- */
.zd-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: zd-step;
}
.zd-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zd-muted);
    white-space: nowrap;
    counter-increment: zd-step;
}
.zd-steps li::before {
    content: counter(zd-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--zd-border-2);
    background: var(--zd-white);
    font-size: 12px;
    color: var(--zd-muted);
}
.zd-steps li + li {
    padding-left: 0;
}
.zd-steps li + li::after {
    content: none;
}
.zd-steps .zd-steps__line {
    width: 36px;
    height: 1.5px;
    background: var(--zd-border-2);
    counter-increment: none;
}
.zd-steps .zd-steps__line::before {
    content: none;
}
.zd-steps li.is-active {
    color: var(--zd-brand);
}
.zd-steps li.is-active::before {
    border-color: var(--zd-brand);
    background: var(--zd-brand);
    color: #fff;
}
.zd-steps li.is-done {
    color: var(--zd-brand);
}
.zd-steps li.is-done::before {
    content: '✓';
    border-color: var(--zd-green);
    background: var(--zd-green);
    color: #fff;
}
.zd-steps .zd-steps__line.is-filled {
    background: var(--zd-green);
}
.zd-page .zd-steps a {
    text-decoration: none;
}

/* ---------- Layout ---------- */
.zd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}
.zd-layout > * {
    min-width: 0;
}
.zd-aside-sticky {
    position: sticky;
    top: 90px;
}
.zd-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.zd-stack > *,
.zd-orders > *,
.zd-account__main {
    min-width: 0;
}
.zd-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.zd-row--between {
    justify-content: space-between;
}
.zd-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.zd-muted {
    color: var(--zd-muted);
}
.zd-hidden {
    display: none !important;
}

/* ---------- Card ---------- */
.zd-card {
    background: var(--zd-white);
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    box-shadow: var(--zd-shadow);
}
.zd-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 0;
}
.zd-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--zd-brand);
}
.zd-card__body {
    padding: 18px 22px 22px;
}
.zd-card__foot {
    padding: 14px 22px;
    border-top: 1px solid var(--zd-border);
}
.zd-num {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--zd-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.zd-section-hint {
    margin: 4px 0 0 36px;
    font-size: 13px;
    color: var(--zd-muted);
}

/* ---------- Buttons ---------- */
.zd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1.5px solid transparent;
    border-radius: var(--zd-radius-sm);
    background: var(--zd-bg);
    color: var(--zd-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
}
.zd-btn:focus-visible {
    outline: 0;
    box-shadow: var(--zd-focus);
}
.zd-page a.zd-btn,
a.zd-btn {
    text-decoration: none;
}
.zd-btn--primary,
.zd-page a.zd-btn--primary {
    background: var(--zd-cta);
    border-color: var(--zd-cta);
    color: #fff;
}
.zd-btn--primary:hover,
.zd-page a.zd-btn--primary:hover {
    background: var(--zd-cta-2);
    border-color: var(--zd-cta-2);
    color: #fff;
}
.zd-btn--lg.zd-btn--primary {
    box-shadow: 0 8px 18px rgba(31, 122, 76, .25);
}
.zd-btn--dark,
.zd-page a.zd-btn--dark {
    background: var(--zd-brand);
    border-color: var(--zd-brand);
    color: #fff;
}
.zd-btn--dark:hover,
.zd-page a.zd-btn--dark:hover {
    background: var(--zd-brand-2);
    border-color: var(--zd-brand-2);
    color: #fff;
}
.zd-btn--outline,
.zd-page a.zd-btn--outline {
    background: var(--zd-white);
    border-color: var(--zd-border-2);
    color: var(--zd-brand);
}
.zd-btn--outline:hover,
.zd-page a.zd-btn--outline:hover {
    border-color: var(--zd-brand);
    color: var(--zd-brand);
}
.zd-btn--sale,
.zd-page a.zd-btn--sale {
    background: var(--zd-sale);
    border-color: var(--zd-sale);
    color: #fff;
}
.zd-btn--sale:hover,
.zd-page a.zd-btn--sale:hover {
    background: #e23e00;
    border-color: #e23e00;
    color: #fff;
}
.zd-btn--ghost,
.zd-page a.zd-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--zd-text-2);
    padding-left: 10px;
    padding-right: 10px;
}
.zd-btn--ghost:hover,
.zd-page a.zd-btn--ghost:hover {
    background: var(--zd-bg);
    color: var(--zd-brand);
}
.zd-btn--danger-ghost {
    background: transparent;
    color: var(--zd-muted);
}
.zd-btn--danger-ghost:hover {
    background: var(--zd-danger-soft);
    color: var(--zd-danger);
}
.zd-btn--block {
    display: flex;
    width: 100%;
}
.zd-btn--lg {
    min-height: 52px;
    font-size: 15px;
    padding: 12px 24px;
}
.zd-btn--sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}
.zd-btn[disabled],
.zd-btn.is-loading {
    opacity: .65;
    pointer-events: none;
}
.zd-btn .zd-spin {
    display: none;
}
.zd-btn.is-loading .zd-spin {
    display: inline-block;
}
.zd-spin {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: zd-spin .7s linear infinite;
}
@keyframes zd-spin {
    to { transform: rotate(360deg); }
}
.zd-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--zd-muted);
    cursor: pointer;
    transition: background-color .18s, color .18s;
}
.zd-icon-btn:hover {
    background: var(--zd-danger-soft);
    color: var(--zd-danger);
}
.zd-textlink {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--zd-cta);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(31, 122, 76, .35);
}
.zd-textlink:hover {
    text-decoration-color: currentColor;
}

/* ---------- Form fields ---------- */
.zd-field {
    margin-bottom: 16px;
}
.zd-field:last-child {
    margin-bottom: 0;
}
.zd-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zd-text-2);
}
.zd-label .zd-req {
    color: var(--zd-sale);
}
.zd-input,
.zd-page .zd-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius-sm);
    background-color: var(--zd-field);
    color: var(--zd-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
textarea.zd-input {
    height: auto;
    min-height: 96px;
    resize: vertical;
}
select.zd-input {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237b8682' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    appearance: none;
}
.zd-input::placeholder {
    color: #a3aca8;
}
.zd-input:hover {
    border-color: var(--zd-border-2);
}
.zd-input:focus {
    outline: 0;
    border-color: var(--zd-cta);
    background-color: var(--zd-white);
    box-shadow: var(--zd-focus);
}
.zd-input.is-invalid,
.zd-input.error {
    border-color: var(--zd-danger);
}
.zd-input[disabled] {
    background: var(--zd-bg);
    color: var(--zd-muted);
}
.zd-error,
.zd-page label.error {
    display: block;
    margin: 6px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--zd-danger);
}
.zd-error:empty {
    display: none;
}
.zd-hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--zd-muted);
}
.zd-inline {
    display: flex;
    gap: 8px;
}
.zd-inline .zd-input {
    flex: 1 1 auto;
    min-width: 0;
}
.zd-inline .zd-btn {
    flex: 0 0 auto;
}
.zd-pass {
    position: relative;
}
.zd-pass .zd-input {
    padding-right: 46px;
}
.zd-pass__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--zd-muted);
    cursor: pointer;
}
.zd-pass__toggle:hover {
    color: var(--zd-brand);
}

/* Choice cards (radio / checkbox) */
.zd-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.zd-choices--1 {
    grid-template-columns: minmax(0, 1fr);
}
.zd-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}
.zd-choice > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.zd-choice__box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    min-height: 60px;
    padding: 12px 46px 12px 14px;
    border: 1.5px solid var(--zd-border);
    border-radius: var(--zd-radius-md);
    background: var(--zd-white);
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.zd-choice__box::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #b3bcb8;
    background: var(--zd-white);
    transition: box-shadow .18s;
}
.zd-choice--check .zd-choice__box::before {
    border-radius: 5px;
}
.zd-choice:hover .zd-choice__box {
    border-color: var(--zd-border-2);
}
.zd-choice > input:checked + .zd-choice__box {
    border-color: var(--zd-cta);
    background: var(--zd-cta-soft);
}
.zd-choice > input:checked + .zd-choice__box::before {
    box-shadow: inset 0 0 0 6px var(--zd-cta);
}
.zd-choice > input:checked + .zd-choice__box .zd-choice__icon {
    background: var(--zd-white);
}
.zd-choice--check > input:checked + .zd-choice__box::before {
    box-shadow: none;
    background: var(--zd-cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E") center no-repeat;
}
.zd-choice > input:focus-visible + .zd-choice__box {
    box-shadow: var(--zd-focus);
}
.zd-choice > input:disabled + .zd-choice__box {
    opacity: .55;
    cursor: not-allowed;
}
.zd-choice__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--zd-bg);
    color: var(--zd-brand);
    font-size: 15px;
    transition: background-color .18s;
}
.zd-choice__text {
    flex: 1 1 auto;
    min-width: 0;
}
.zd-choice__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--zd-text);
}
.zd-choice__desc {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--zd-muted);
}
.zd-choice__meta {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--zd-brand);
    white-space: nowrap;
}
.zd-choice__extra {
    margin-top: 10px;
}

/* Notes / alerts */
.zd-note {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: var(--zd-radius-sm);
    background: var(--zd-info-soft);
    color: #1b4a7d;
    font-size: 13px;
    line-height: 1.5;
}
.zd-note::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    flex: 0 0 auto;
    opacity: .8;
}
.zd-note:empty {
    display: none;
}
.zd-note p {
    margin: 0;
}
.zd-note--green {
    background: var(--zd-green-soft);
    color: #1f6514;
}
.zd-note--green::before {
    content: '\f06b';
}
.zd-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--zd-radius-sm);
    font-size: 14px;
    line-height: 1.5;
}
.zd-alert i {
    margin-top: 3px;
}
.zd-alert p {
    margin: 0;
}
.zd-alert ul {
    margin: 0;
    padding-left: 18px;
}
.zd-alert--success {
    background: var(--zd-green-soft);
    color: #1f6514;
}
.zd-alert--error {
    background: var(--zd-danger-soft);
    color: #9b1c13;
}
.zd-alert--info {
    background: var(--zd-info-soft);
    color: #1b4a7d;
}
.zd-alert--warn {
    background: var(--zd-warn-soft);
    color: #8a4b0b;
}

/* Collapsible (details/summary) */
.zd-collapse {
    border-top: 1px solid var(--zd-border);
}
.zd-collapse > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--zd-brand);
    cursor: pointer;
    user-select: none;
}
.zd-collapse > summary::-webkit-details-marker {
    display: none;
}
.zd-collapse > summary i:first-child {
    width: 18px;
    color: var(--zd-sale);
    text-align: center;
}
.zd-collapse > summary::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--zd-muted);
    border-bottom: 1.6px solid var(--zd-muted);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s;
}
.zd-collapse[open] > summary::after {
    transform: rotate(-135deg) translateY(-2px);
}
.zd-collapse__body {
    padding: 0 0 16px;
}

/* ---------- Quantity stepper ---------- */
.zd-qty {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1.5px solid var(--zd-border-2);
    border-radius: var(--zd-radius-sm);
    background: var(--zd-white);
    overflow: hidden;
}
.zd-qty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--zd-brand);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s;
}
.zd-qty button:hover {
    background: var(--zd-bg);
}
.zd-qty button:disabled {
    color: #c3cbc8;
    cursor: default;
    background: transparent;
}
.zd-qty input {
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--zd-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}
.zd-qty input::-webkit-outer-spin-button,
.zd-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.zd-qty input:focus {
    outline: 0;
}

/* ---------- Cart ---------- */
.zd-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--zd-border);
}
.zd-cart-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--zd-brand);
}
.zd-cart-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.zd-cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto 120px 34px;
    grid-template-areas: "img info qty total del";
    align-items: center;
    gap: 6px 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--zd-border);
    transition: opacity .2s;
}
.zd-cart-item:last-child {
    border-bottom: 0;
}
.zd-cart-item.is-busy {
    opacity: .5;
    pointer-events: none;
}
.zd-cart-item__img {
    grid-area: img;
    display: block;
    width: 92px;
    height: 92px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius-sm);
    background: var(--zd-white);
    overflow: hidden;
}
.zd-cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.zd-cart-item__info {
    grid-area: info;
    min-width: 0;
}
.zd-cart-item__name {
    display: -webkit-box;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--zd-text);
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zd-page a.zd-cart-item__name:hover {
    color: var(--zd-brand-2);
}
.zd-cart-item__unit {
    font-size: 13px;
    color: var(--zd-muted);
}
.zd-cart-item__qty {
    grid-area: qty;
}
.zd-cart-item__total {
    grid-area: total;
    text-align: right;
    white-space: nowrap;
}
.zd-cart-item__del {
    grid-area: del;
    justify-self: end;
}
.zd-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--zd-brand);
}
.zd-price-old {
    display: block;
    font-size: 12.5px;
    color: var(--zd-muted);
    text-decoration: line-through;
}
.zd-save {
    display: inline-block;
    margin-top: 2px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--zd-sale-soft);
    color: var(--zd-sale);
    font-size: 11.5px;
    font-weight: 700;
}
.zd-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

/* ---------- Summary ---------- */
.zd-summary .zd-card__body {
    padding-top: 14px;
}
.zd-sum-items {
    margin: 0 0 14px;
    padding: 0 0 14px;
    list-style: none;
    border-bottom: 1px solid var(--zd-border);
    max-height: 290px;
    overflow-y: auto;
}
.zd-sum-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.zd-sum-item__img {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid var(--zd-border);
    border-radius: 8px;
    background: var(--zd-white);
}
.zd-sum-item__img img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
}
.zd-sum-item__qty {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--zd-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.zd-sum-item__name {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    color: var(--zd-text-2);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zd-sum-item__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--zd-text);
    white-space: nowrap;
}
.zd-sum-rows {
    display: grid;
    gap: 10px;
}
.zd-sum-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--zd-text-2);
}
.zd-sum-row strong,
.zd-sum-row b {
    font-weight: 600;
    color: var(--zd-text);
    white-space: nowrap;
}
.zd-sum-row--discount,
.zd-sum-row--discount strong {
    color: var(--zd-green);
}
.zd-sum-row--free strong {
    color: var(--zd-green);
}
.zd-sum-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--zd-border);
    font-size: 15px;
    font-weight: 700;
    color: var(--zd-text);
}
.zd-sum-total strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--zd-brand);
    white-space: nowrap;
}
.zd-sum-cta {
    margin-top: 18px;
}
.zd-sum-cta .zd-btn i {
    font-size: 14px;
    transition: transform .18s;
}
.zd-sum-cta .zd-btn:hover i {
    transform: translateX(3px);
}
/* Checkout summary: items → promo / gift card → totals → button */
.zd-summary .zd-sum-items + .zd-collapse {
    margin-top: -14px;
}
.zd-summary .zd-sum-items ~ .zd-collapse {
    border-top: 0;
    border-bottom: 1px solid var(--zd-border);
}
.zd-summary .zd-collapse + .zd-sum-rows {
    padding-top: 16px;
}
.zd-perks {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.zd-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--zd-muted);
}
.zd-perks i {
    width: 16px;
    color: var(--zd-green);
    text-align: center;
}
.zd-promo-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.zd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    background: var(--zd-green-soft);
    color: #1f6514;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Empty state ---------- */
.zd-empty {
    padding: 56px 24px;
    text-align: center;
}
.zd-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--zd-brand-soft);
    color: var(--zd-brand);
    font-size: 34px;
}
.zd-empty h2,
.zd-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--zd-brand);
}
.zd-empty p {
    max-width: 420px;
    margin: 0 auto 22px;
    color: var(--zd-muted);
}

/* ---------- Checkout specifics ---------- */
.zd-login-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 16px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    font-size: 14px;
    color: var(--zd-text-2);
}
.zd-login-hint > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.zd-login-hint i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--zd-cta-soft);
    color: var(--zd-cta);
}
.zd-login-form {
    margin-top: 14px;
}
.zd-subchoices {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius-md);
    background: var(--zd-field);
}
.zd-subchoices .zd-choice__box {
    min-height: 50px;
    background: var(--zd-white);
}
.zd-subchoices .zd-choice > input:checked + .zd-choice__box {
    border-color: var(--zd-brand);
    background: var(--zd-brand);
}
.zd-subchoices .zd-choice > input:checked + .zd-choice__box::before {
    background: var(--zd-brand);
    box-shadow: inset 0 0 0 6px var(--zd-white);
}
.zd-subchoices .zd-choice > input:checked + .zd-choice__box .zd-choice__title,
.zd-subchoices .zd-choice > input:checked + .zd-choice__box .zd-choice__meta {
    color: #fff;
}
.zd-subchoices .zd-choice > input:checked + .zd-choice__box .zd-choice__desc {
    color: rgba(255, 255, 255, .72);
}
.zd-subchoices .zd-choice__extra .zd-input {
    background-color: var(--zd-white);
}
.zd-subchoices .zd-label {
    margin-bottom: 10px;
}
.zd-checkout-address .zd-address-option__body {
    border-width: 1.5px;
    border-color: var(--zd-border-2);
}
.zd-choice-wrap {
    min-width: 0;
}
/* Address form fields (shared partial) look like the other zd inputs on these pages. */
.zd-page .zd-address-fields .form-control {
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius-sm);
    background-color: var(--zd-field);
    color: var(--zd-text);
    font-size: 15px;
    box-shadow: none;
}
.zd-page .zd-address-fields .form-control:focus {
    border-color: var(--zd-cta);
    background-color: var(--zd-white);
    box-shadow: var(--zd-focus);
}
.zd-page .zd-address-fields label {
    font-size: 13px;
    font-weight: 600;
    color: var(--zd-text-2);
}
.zd-page .zd-address-option__body {
    border-radius: var(--zd-radius-sm);
}
.zd-page .zd-address-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.zd-page .zd-address-card {
    padding: 18px 20px 14px;
    border-color: var(--zd-border);
    border-radius: var(--zd-radius);
    box-shadow: var(--zd-shadow);
}
.zd-page .zd-address-card.is-default {
    border-color: var(--zd-brand);
}
.zd-page .zd-address-empty {
    border-radius: var(--zd-radius);
    background: var(--zd-white);
}
.zd-address-popup .zd-address-fields .form-control {
    height: 44px;
    border: 1.5px solid #d3d9d6;
    border-radius: 8px;
    font-size: 15px;
}
.zd-mobile-total {
    display: none;
}

/* ---------- Order page ---------- */
.zd-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--zd-radius);
    background: linear-gradient(135deg, #04251c 0%, #0e513b 100%);
    color: #fff;
}
.zd-hero__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 24px;
}
.zd-hero h1,
.zd-hero h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.zd-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
}
.zd-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    margin: 0;
    border-radius: var(--zd-radius);
    background: var(--zd-border);
    overflow: hidden;
}
.zd-info-grid > div {
    padding: 14px 18px;
    background: var(--zd-white);
}
.zd-info-grid dt {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--zd-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.zd-info-grid dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--zd-text);
    word-break: break-word;
}
.zd-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}
.zd-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--zd-border);
}
.zd-line:first-child {
    padding-top: 0;
}
.zd-line__name {
    font-weight: 600;
    color: var(--zd-text);
    text-decoration: none;
}
.zd-page a.zd-line__name:hover {
    color: var(--zd-brand-2);
}
.zd-line__qty {
    font-size: 13px;
    color: var(--zd-muted);
    white-space: nowrap;
}
.zd-line__sum {
    min-width: 90px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.zd-kv {
    display: grid;
    gap: 12px;
    margin: 0;
}
.zd-kv > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
}
.zd-kv dt {
    font-size: 13px;
    font-weight: 500;
    color: var(--zd-muted);
}
.zd-kv dd {
    margin: 0;
    font-size: 14px;
    color: var(--zd-text);
    word-break: break-word;
}
.zd-apps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.zd-apps p {
    margin: 0;
    font-weight: 600;
    color: var(--zd-brand);
}
.zd-apps__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.zd-apps__links img {
    display: block;
    width: 150px;
    height: auto;
    border-radius: 8px;
    background: #32373b;
}

/* ---------- Status pill ---------- */
.zd-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    background: var(--zd-bg);
    color: var(--zd-text-2);
}
.zd-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.zd-status--new { background: var(--zd-info-soft); color: var(--zd-info); }
.zd-status--progress { background: var(--zd-warn-soft); color: var(--zd-warn); }
.zd-status--shipped { background: #f1ecfd; color: #6234c8; }
.zd-status--done { background: var(--zd-green-soft); color: var(--zd-green); }
.zd-status--cancel { background: var(--zd-danger-soft); color: var(--zd-danger); }

/* ---------- Account (cabinet) ---------- */
.zd-account {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.zd-account > * {
    min-width: 0;
}
.zd-account__side {
    position: sticky;
    top: 90px;
}
.zd-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}
.zd-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--zd-brand);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
}
.zd-user__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--zd-text);
    word-break: break-word;
}
.zd-user__meta {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--zd-muted);
    word-break: break-all;
}
.zd-cashback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 18px 16px;
    padding: 12px 14px;
    border-radius: var(--zd-radius-sm);
    background: var(--zd-green-soft);
    color: #1f6514;
    text-decoration: none;
}
.zd-page a.zd-cashback:hover {
    color: #1f6514;
    background: #e2f1dd;
}
.zd-cashback small {
    display: block;
    font-size: 12px;
    opacity: .85;
}
.zd-cashback strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
}
.zd-cashback i {
    font-size: 20px;
    opacity: .7;
}
.zd-nav {
    padding: 6px 10px 12px;
    border-top: 1px solid var(--zd-border);
}
.zd-nav__group {
    margin: 12px 10px 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--zd-muted);
}
.zd-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.zd-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--zd-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--zd-text-2);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.zd-nav__link i {
    width: 18px;
    font-size: 15px;
    text-align: center;
    color: var(--zd-muted);
    transition: color .15s;
}
.zd-page a.zd-nav__link:hover {
    background: var(--zd-bg);
    color: var(--zd-brand);
}
.zd-page a.zd-nav__link.is-active {
    background: var(--zd-brand-soft);
    color: var(--zd-brand);
    font-weight: 600;
}
.zd-nav__link.is-active i,
.zd-nav__link:hover i {
    color: var(--zd-brand);
}
.zd-nav__count {
    margin-left: auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--zd-sale);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
}
.zd-page a.zd-nav__link--logout {
    color: var(--zd-muted);
}
.zd-page a.zd-nav__link--logout:hover {
    background: var(--zd-danger-soft);
    color: var(--zd-danger);
}
.zd-help {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    font-size: 13px;
    color: var(--zd-text-2);
    text-decoration: none;
}
.zd-help i {
    font-size: 22px;
    color: #25d366;
}
.zd-help strong {
    display: block;
    color: var(--zd-text);
}
.zd-page a.zd-help:hover {
    border-color: var(--zd-border-2);
    color: var(--zd-text-2);
}
.zd-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
}
.zd-section-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--zd-brand);
}
.zd-section-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--zd-brand);
}

/* Dashboard */
.zd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.zd-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s;
}
.zd-page a.zd-stat:hover {
    border-color: var(--zd-border-2);
    box-shadow: var(--zd-shadow);
}
.zd-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--zd-brand-soft);
    color: var(--zd-brand);
    font-size: 15px;
}
.zd-stat--green .zd-stat__icon { background: var(--zd-green-soft); color: var(--zd-green); }
.zd-stat--sale .zd-stat__icon { background: var(--zd-sale-soft); color: var(--zd-sale); }
.zd-stat--info .zd-stat__icon { background: var(--zd-info-soft); color: var(--zd-info); }
.zd-stat__value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--zd-text);
}
.zd-stat__label {
    font-size: 13px;
    color: var(--zd-muted);
}
.zd-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.zd-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.zd-page a.zd-tile:hover {
    border-color: var(--zd-brand);
    box-shadow: var(--zd-shadow);
    transform: translateY(-1px);
}
.zd-tile__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--zd-bg);
    color: var(--zd-brand);
    font-size: 18px;
}
.zd-tile__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--zd-text);
}
.zd-tile__desc {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--zd-muted);
}
.zd-welcome {
    margin: 0 0 18px;
}
.zd-welcome h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--zd-brand);
}
.zd-welcome p {
    margin: 0;
    color: var(--zd-muted);
}

/* Orders */
.zd-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 16px;
    padding: 4px;
    border-radius: var(--zd-radius-sm);
    background: var(--zd-bg);
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
}
.zd-tabs a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--zd-text-2);
    text-decoration: none;
    white-space: nowrap;
}
.zd-page .zd-tabs a.is-active {
    background: var(--zd-white);
    color: var(--zd-brand);
    box-shadow: 0 1px 3px rgba(4, 37, 28, .12);
}
.zd-orders {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.zd-order {
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    transition: box-shadow .18s, border-color .18s;
}
.zd-order:hover {
    border-color: var(--zd-border-2);
    box-shadow: var(--zd-shadow);
}
.zd-order__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--zd-border);
}
.zd-order__no {
    font-size: 15px;
    font-weight: 700;
    color: var(--zd-text);
}
.zd-order__date {
    font-size: 13px;
    color: var(--zd-muted);
}
.zd-order__head .zd-status {
    margin-left: auto;
}
.zd-order__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    padding: 14px 18px;
}
.zd-order__items {
    flex: 1 1 260px;
    min-width: 0;
    font-size: 13.5px;
    color: var(--zd-text-2);
}
.zd-order__items span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.zd-order__items small {
    color: var(--zd-muted);
}
.zd-order__total {
    text-align: right;
}
.zd-order__total small {
    display: block;
    font-size: 12px;
    color: var(--zd-muted);
}
.zd-order__total strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--zd-brand);
    white-space: nowrap;
}
.zd-order__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 16px;
}
.zd-pagination {
    margin-top: 20px;
}
.zd-pagination nav > div.zd-never {
    display: none;
}
.zd-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.zd-pagination .page-link,
.zd-pagination .page-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--zd-border);
    border-radius: 8px;
    background: var(--zd-white);
    color: var(--zd-text-2);
    font-weight: 600;
    text-decoration: none;
}
.zd-pagination .page-item.active .page-link,
.zd-pagination .page-item.active > span {
    border-color: var(--zd-brand);
    background: var(--zd-brand);
    color: #fff;
}
.zd-pagination .page-item.disabled .page-link,
.zd-pagination .page-item.disabled > span {
    opacity: .45;
}

/* Cashback page */
.zd-balance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-radius: var(--zd-radius);
    background: linear-gradient(135deg, #04251c 0%, #0e513b 100%);
    color: #fff;
}
.zd-balance small {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}
.zd-balance strong {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}
.zd-balance i {
    font-size: 44px;
    opacity: .25;
}
.zd-howto {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.zd-howto li {
    padding: 16px 18px;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    font-size: 13.5px;
    color: var(--zd-text-2);
}
.zd-howto li i {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--zd-green);
}

/* Wishlist */
.zd-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.zd-product {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--zd-border);
    border-radius: var(--zd-radius);
    background: var(--zd-white);
    overflow: hidden;
    transition: box-shadow .18s, opacity .2s;
}
.zd-product:hover {
    box-shadow: var(--zd-shadow);
}
.zd-product__img {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background: var(--zd-white);
}
.zd-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.zd-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 0 14px 14px;
}
.zd-product__name {
    flex: 1;
    display: -webkit-box;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--zd-text);
    text-decoration: none;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zd-product__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--zd-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* Legacy content inside the new cabinet frame (concourse, adverts, price listening) */
.zd-legacy .tab-pane {
    display: block;
    padding: 0;
}
.zd-legacy table.dataTable,
.zd-legacy .table {
    width: 100% !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .zd-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 20px;
    }
    .zd-account {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
    }
    .zd-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .zd-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
    .zd-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .zd-aside-sticky,
    .zd-account__side {
        position: static;
    }
    .zd-account {
        grid-template-columns: minmax(0, 1fr);
    }
    .zd-account__side .zd-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
    .zd-account__side .zd-cashback {
        margin: 0 14px 0 0;
    }
    .zd-account__side .zd-nav {
        grid-column: 1 / -1;
        display: flex;
        gap: 6px;
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .zd-account__side .zd-nav::-webkit-scrollbar {
        display: none;
    }
    .zd-account__side .zd-nav__group {
        display: none;
    }
    .zd-account__side .zd-nav ul {
        display: flex;
        gap: 6px;
    }
    .zd-account__side .zd-nav__link {
        padding: 8px 14px;
        border: 1px solid var(--zd-border);
        border-radius: 20px;
        white-space: nowrap;
        font-size: 13px;
    }
    .zd-account__side .zd-nav__link i {
        width: auto;
        font-size: 13px;
    }
    .zd-account__side .zd-page a.zd-nav__link.is-active,
    .zd-page .zd-account__side a.zd-nav__link.is-active {
        border-color: var(--zd-brand);
    }
    .zd-help {
        display: none;
    }
    .zd-howto {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767px) {
    .zd-page {
        padding-bottom: 32px;
    }
    .zd-page-head {
        padding: 12px 0 16px;
    }
    .zd-title {
        font-size: 22px;
    }
    .zd-steps {
        width: 100%;
    }
    .zd-steps li span {
        display: none;
    }
    .zd-steps li.is-active span {
        display: inline;
    }
    .zd-steps .zd-steps__line {
        flex: 1;
        width: auto;
    }
    .zd-card__head {
        padding: 16px 16px 0;
    }
    .zd-card__body {
        padding: 14px 16px 18px;
    }
    .zd-cart-head {
        padding: 14px 16px;
    }
    .zd-cart-item {
        position: relative;
        grid-template-columns: 76px minmax(0, 1fr) auto;
        grid-template-areas:
            "img info info"
            "img qty total";
        gap: 10px 12px;
        padding: 16px;
    }
    .zd-cart-item__img {
        width: 76px;
        height: 76px;
    }
    .zd-cart-item__info {
        padding-right: 30px;
    }
    .zd-cart-item__qty {
        justify-self: start;
    }
    .zd-cart-item__del {
        position: absolute;
        top: 10px;
        right: 8px;
    }
    .zd-choices {
        grid-template-columns: minmax(0, 1fr);
    }
    .zd-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .zd-inline {
        flex-wrap: wrap;
    }
    .zd-inline .zd-btn {
        flex: 1 1 auto;
    }
    .zd-stats {
        gap: 10px;
    }
    .zd-stat {
        padding: 14px;
    }
    .zd-stat__value {
        font-size: 19px;
    }
    .zd-tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .zd-order__head .zd-status {
        margin-left: 0;
    }
    .zd-order__total {
        display: flex;
        flex-direction: row-reverse;
        align-items: baseline;
        justify-content: space-between;
        width: 100%;
        text-align: left;
    }
    .zd-order__actions .zd-btn {
        flex: 1 1 auto;
    }
    .zd-kv > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
    .zd-line {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .zd-line__qty {
        grid-column: 1 / 2;
        grid-row: 2;
    }
    .zd-line__sum {
        grid-row: 1 / 3;
        grid-column: 2;
    }
    .zd-hero {
        padding: 18px;
    }
    .zd-hero h1,
    .zd-hero h2 {
        font-size: 19px;
    }
    .zd-balance strong {
        font-size: 28px;
    }
    .zd-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .zd-mobile-total {
        display: flex;
    }
}
