/* LATELA authenticated commerce and authentication surfaces */
.commerce-page,
.latela-auth {
    --commerce-ink: #241a1e;
    --commerce-muted: #776b70;
    --commerce-line: #eadfe3;
    --commerce-blush: #f1a7c1;
    --commerce-blush-deep: #8c3851;
    --commerce-petal: #fff3f7;
    --commerce-cream: #fbf8f4;
    --commerce-white: #ffffff;
    --commerce-success: #357a63;
    --commerce-warning: #ad7519;
    --commerce-danger: #b64a59;
    --commerce-shadow: 0 22px 60px rgba(76, 48, 58, .09);
    --commerce-radius: 24px;
    color: var(--commerce-ink);
}

.commerce-page {
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    padding: 136px 0 80px;
    background:
        radial-gradient(circle at 8% 8%, rgba(241, 167, 193, .18), transparent 27rem),
        linear-gradient(180deg, #fff 0, var(--commerce-cream) 34rem, #fff 100%);
}

.commerce-page::before {
    content: "";
    position: absolute;
    top: 82px;
    right: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(241, 167, 193, .28);
    border-radius: 50%;
    pointer-events: none;
}

.commerce-container {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.commerce-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.commerce-eyebrow,
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--commerce-blush-deep);
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.commerce-eyebrow::before,
.auth-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.commerce-title,
.auth-title {
    margin: 0;
    color: var(--commerce-ink);
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: -.035em;
}

.commerce-title {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.commerce-subtitle,
.auth-copy {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--commerce-muted);
    font-size: 15px;
    line-height: 1.75;
}

.commerce-back-link,
.commerce-inline-link,
.auth-link {
    color: var(--commerce-ink);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.commerce-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--commerce-ink);
    font-size: 13px;
}

.commerce-back-link:hover,
.commerce-inline-link:hover,
.auth-link:hover {
    color: var(--commerce-blush-deep);
}

.commerce-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

.commerce-progress li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #a99ea2;
    font-size: 12px;
    font-weight: 700;
}

.commerce-progress li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 43px;
    right: 14px;
    height: 1px;
    background: var(--commerce-line);
}

.commerce-progress__number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    border: 1px solid var(--commerce-line);
    border-radius: 50%;
    background: #fff;
    font-size: 11px;
}

.commerce-progress li.is-active,
.commerce-progress li.is-complete {
    color: var(--commerce-ink);
}

.commerce-progress li.is-active .commerce-progress__number {
    border-color: var(--commerce-ink);
    background: var(--commerce-ink);
    color: #fff;
    box-shadow: 0 8px 22px rgba(36, 26, 30, .18);
}

.commerce-progress li.is-complete .commerce-progress__number {
    border-color: var(--commerce-blush);
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
}

.commerce-progress li.is-complete:not(:last-child)::after {
    background: var(--commerce-blush);
}

.commerce-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
    gap: 28px;
    align-items: start;
}

.commerce-layout--account {
    grid-template-columns: 250px minmax(0, 1fr);
}

.commerce-stack {
    display: grid;
    gap: 22px;
}

.commerce-card {
    border: 1px solid rgba(234, 223, 227, .9);
    border-radius: var(--commerce-radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--commerce-shadow);
}

.commerce-card--soft {
    background: rgba(255, 251, 249, .96);
    box-shadow: none;
}

.commerce-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid var(--commerce-line);
}

.commerce-card__header h2,
.commerce-card__header h3,
.commerce-section-title {
    margin: 0;
    color: var(--commerce-ink);
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 700;
}

.commerce-card__header p,
.commerce-section-copy {
    margin: 6px 0 0;
    color: var(--commerce-muted);
    font-size: 13px;
    line-height: 1.65;
}

.commerce-card__body {
    padding: 28px;
}

.commerce-card__body--flush {
    padding: 0;
}

.commerce-aside {
    position: sticky;
    top: 112px;
}

.commerce-summary {
    padding: 28px;
}

.commerce-summary__title {
    margin: 0 0 22px;
    font-family: "Playfair Display", serif;
    font-size: 25px;
}

.commerce-summary__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    color: var(--commerce-muted);
    font-size: 14px;
}

.commerce-summary__row strong {
    color: var(--commerce-ink);
    text-align: right;
}

.commerce-summary__row--total {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--commerce-line);
    color: var(--commerce-ink);
    font-size: 16px;
    font-weight: 800;
}

.commerce-summary__row--total strong {
    font-family: "Playfair Display", serif;
    font-size: 25px;
}

.commerce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.commerce-btn:hover,
.commerce-btn:focus-visible {
    transform: translateY(-2px);
    text-decoration: none;
}

.commerce-btn--primary {
    background: var(--commerce-ink);
    color: #fff;
    box-shadow: 0 14px 32px rgba(36, 26, 30, .18);
}

.commerce-btn--primary:hover,
.commerce-btn--primary:focus-visible {
    background: var(--commerce-blush-deep);
    color: #fff;
}

.commerce-btn--secondary {
    border-color: var(--commerce-line);
    background: #fff;
    color: var(--commerce-ink);
}

.commerce-btn--secondary:hover,
.commerce-btn--secondary:focus-visible {
    border-color: var(--commerce-blush);
    color: var(--commerce-blush-deep);
}

.commerce-btn--danger {
    border-color: rgba(182, 74, 89, .22);
    background: #fff5f6;
    color: var(--commerce-danger);
}

.commerce-btn--success {
    background: var(--commerce-success);
    color: #fff;
}

.commerce-btn--block {
    width: 100%;
}

.commerce-btn[disabled],
.commerce-btn.is-disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.commerce-trust {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--commerce-line);
}

.commerce-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--commerce-muted);
    font-size: 12px;
    line-height: 1.55;
}

.commerce-trust__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
}

.commerce-support {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--commerce-petal);
    color: var(--commerce-muted);
    font-size: 12px;
    line-height: 1.6;
}

.commerce-support strong {
    display: block;
    margin-bottom: 3px;
    color: var(--commerce-ink);
    font-size: 13px;
}

.commerce-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
}

.commerce-alert--success {
    border-color: rgba(53, 122, 99, .2);
    background: #f2fbf7;
    color: var(--commerce-success);
}

.commerce-alert--danger {
    border-color: rgba(182, 74, 89, .2);
    background: #fff4f5;
    color: var(--commerce-danger);
}

.commerce-alert strong { color: inherit; }
.commerce-alert ul { margin: 6px 0 0; padding-left: 18px; }

.commerce-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.commerce-fieldset:disabled { opacity: .62; }

.commerce-empty {
    padding: clamp(46px, 8vw, 90px) 28px;
    text-align: center;
}

.commerce-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
    font-size: 28px;
}

.commerce-empty h2 {
    margin: 0 0 9px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.commerce-empty p {
    max-width: 510px;
    margin: 0 auto 25px;
    color: var(--commerce-muted);
    line-height: 1.7;
}

.commerce-empty--compact {
    padding: 28px 18px;
}

.commerce-empty--compact .commerce-empty__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    font-size: 21px;
}

.commerce-empty--compact h2 {
    font-size: 23px;
}

.commerce-empty--compact p {
    margin-bottom: 0;
}

.commerce-local-wishlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.commerce-local-wishlist > .commerce-empty {
    grid-column: 1 / -1;
}

/* Cart */
.commerce-cart-list {
    display: grid;
}

.commerce-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, .45fr) 150px minmax(120px, .48fr) 38px;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--commerce-line);
}

.commerce-cart-item:last-child {
    border-bottom: 0;
}

.commerce-product {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.commerce-product__image {
    flex: 0 0 86px;
    width: 86px;
    height: 104px;
    border-radius: 17px;
    object-fit: cover;
    background: var(--commerce-cream);
}

.commerce-product__name {
    margin: 0 0 7px;
    color: var(--commerce-ink);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.commerce-product__meta {
    margin: 0;
    color: var(--commerce-muted);
    font-size: 12px;
}

.commerce-data-label {
    display: none;
    color: var(--commerce-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.commerce-price,
.commerce-line-total {
    color: var(--commerce-ink);
    font-size: 14px;
    font-weight: 700;
}

.quantity-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 138px;
    height: 46px;
    overflow: hidden;
    border: 1px solid var(--commerce-line);
    border-radius: 999px;
    background: #fff;
}

.quantity-box .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--commerce-ink);
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.quantity-box .qty-btn:hover,
.quantity-box .qty-btn:focus-visible {
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
}

.quantity-box .qty-btn:disabled {
    color: var(--commerce-muted);
    cursor: wait;
    opacity: .55;
}

.quantity-box input {
    width: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--commerce-ink);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.commerce-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a7989d;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.commerce-remove:hover,
.commerce-remove:focus-visible {
    background: #fff1f2;
    color: var(--commerce-danger);
}

/* Forms */
.commerce-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.commerce-field {
    min-width: 0;
}

.commerce-field--full {
    grid-column: 1 / -1;
}

.commerce-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    color: var(--commerce-ink);
    font-size: 12px;
    font-weight: 800;
}

.commerce-field label span,
.commerce-required {
    color: var(--commerce-blush-deep);
}

.commerce-field input,
.commerce-field select,
.commerce-field textarea,
.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--commerce-line);
    border-radius: 14px;
    outline: 0;
    background: #fff;
    color: var(--commerce-ink);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.commerce-field textarea {
    min-height: 118px;
    resize: vertical;
}

.commerce-field input:focus,
.commerce-field select:focus,
.commerce-field textarea:focus,
.auth-field input:focus {
    border-color: var(--commerce-blush);
    box-shadow: 0 0 0 4px rgba(241, 167, 193, .14);
}

.commerce-field input:disabled,
.commerce-field select:disabled,
.commerce-field textarea:disabled,
.auth-field input:disabled {
    background: #f5f1f2;
    color: #9b9094;
    cursor: not-allowed;
}

.commerce-field__hint {
    display: block;
    margin-top: 7px;
    color: var(--commerce-muted);
    font-size: 11px;
}

.commerce-field__error,
.auth-field__error {
    margin: 7px 0 0;
    color: var(--commerce-danger);
    font-size: 12px;
}

.commerce-page .select2-container {
    width: 100% !important;
}

.commerce-page .select2-container .select2-selection--single {
    height: 52px;
    border-color: var(--commerce-line);
    border-radius: 14px;
}

.commerce-page .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 11px 42px 11px 15px;
    color: var(--commerce-ink);
    line-height: 28px;
}

.commerce-page .select2-container .select2-selection--single .select2-selection__arrow {
    top: 12px;
    right: 10px;
}

.commerce-checkout-products {
    display: grid;
    gap: 13px;
    margin-bottom: 18px;
}

.commerce-checkout-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px dashed var(--commerce-line);
    font-size: 12px;
}

.commerce-checkout-product span:first-child {
    color: var(--commerce-muted);
    line-height: 1.5;
}

.commerce-checkout-product strong {
    white-space: nowrap;
}

/* Account */
.commerce-account-nav {
    position: sticky;
    top: 112px;
    padding: 16px;
}

.commerce-account-identity {
    padding: 10px 10px 18px;
    border-bottom: 1px solid var(--commerce-line);
}

.commerce-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
    font-family: "Playfair Display", serif;
    font-size: 21px;
    font-weight: 700;
}

.commerce-account-identity strong,
.commerce-account-identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commerce-account-identity span {
    margin-top: 3px;
    color: var(--commerce-muted);
    font-size: 11px;
}

.commerce-account-links {
    display: grid;
    gap: 5px;
    margin: 13px 0 0;
}

.commerce-account-links a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border-radius: 12px;
    color: var(--commerce-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.commerce-account-links a:hover,
.commerce-account-links a:focus-visible {
    background: var(--commerce-petal);
    color: var(--commerce-ink);
}

.commerce-anchor-section {
    scroll-margin-top: 120px;
}

/* Orders and invoice */
.commerce-orders-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.commerce-orders-table th {
    padding: 15px 20px;
    border-bottom: 1px solid var(--commerce-line);
    color: var(--commerce-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.commerce-orders-table td {
    padding: 20px;
    border-bottom: 1px solid var(--commerce-line);
    color: var(--commerce-ink);
    font-size: 13px;
    vertical-align: middle;
}

.commerce-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.commerce-orders-table .badge,
.commerce-status .badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.commerce-order-id {
    display: block;
    color: var(--commerce-ink);
    font-weight: 800;
}

.commerce-order-date {
    color: var(--commerce-muted);
    font-size: 11px;
}

.commerce-order-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid var(--commerce-line);
    border-radius: 20px;
    background: #fff;
}

.commerce-order-progress__step {
    position: relative;
    text-align: center;
    color: #a99ea2;
    font-size: 11px;
    font-weight: 700;
}

.commerce-order-progress__step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 14px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: var(--commerce-line);
}

.commerce-order-progress__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    border: 2px solid var(--commerce-line);
    border-radius: 50%;
    background: #fff;
    font-size: 10px;
}

.commerce-order-progress__step.is-complete,
.commerce-order-progress__step.is-active {
    color: var(--commerce-ink);
}

.commerce-order-progress__step.is-complete .commerce-order-progress__dot,
.commerce-order-progress__step.is-active .commerce-order-progress__dot {
    border-color: var(--commerce-blush);
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
}

.commerce-order-progress__step.is-complete:not(:last-child)::after {
    background: var(--commerce-blush);
}

.commerce-order-progress--terminal {
    display: block;
    padding: 17px 22px;
    text-align: left;
}

.commerce-order-progress--terminal i {
    margin-right: 8px;
}

.commerce-invoice-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-bottom: 1px solid var(--commerce-line);
}

.commerce-invoice-number {
    display: inline-flex;
    margin-top: 9px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
    font-size: 11px;
    font-weight: 800;
}

.commerce-invoice-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--commerce-line);
}

.commerce-invoice-address {
    padding: 17px;
    border-radius: 16px;
    background: var(--commerce-cream);
    color: var(--commerce-muted);
    font-size: 13px;
    line-height: 1.7;
}

.commerce-invoice-address strong {
    display: block;
    margin-bottom: 5px;
    color: var(--commerce-ink);
}

.commerce-invoice-table-wrap {
    overflow-x: auto;
}

.commerce-invoice-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.commerce-invoice-table th,
.commerce-invoice-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--commerce-line);
    font-size: 12px;
    text-align: left;
}

.commerce-invoice-table th {
    color: var(--commerce-muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.commerce-invoice-table a {
    color: var(--commerce-ink);
    font-weight: 700;
}

.commerce-invoice-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr);
    gap: 24px;
    padding: 24px 28px 28px;
}

.commerce-invoice-meta {
    display: grid;
    gap: 15px;
    color: var(--commerce-muted);
    font-size: 12px;
}

.commerce-invoice-meta strong {
    display: block;
    margin-bottom: 3px;
    color: var(--commerce-ink);
}

.commerce-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.commerce-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.commerce-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 15px;
    padding-bottom: 22px;
}

.commerce-timeline__item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 19px;
    width: 1px;
    background: var(--commerce-line);
}

.commerce-timeline__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
}

.commerce-timeline__content {
    padding: 2px 0;
}

.commerce-timeline__content time {
    display: block;
    margin-bottom: 4px;
    color: var(--commerce-muted);
    font-size: 10px;
}

.commerce-timeline__content p {
    margin: 0;
    color: var(--commerce-ink);
    font-size: 13px;
    line-height: 1.6;
}

/* Reviews */
.commerce-review-list {
    display: grid;
    gap: 18px;
}

.commerce-review-product {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.commerce-review-product img {
    flex: 0 0 72px;
    width: 72px;
    height: 82px;
    border-radius: 15px;
    object-fit: cover;
    background: var(--commerce-cream);
}

.commerce-review-product h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
}

.commerce-review-product p {
    margin: 0;
    color: var(--commerce-muted);
    font-size: 12px;
}

.commerce-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.commerce-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.commerce-rating label {
    margin: 0;
    color: #ddd2d6;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

.commerce-rating input:checked ~ label,
.commerce-rating label:hover,
.commerce-rating label:hover ~ label {
    color: #e4aa3e;
}

.commerce-rating input:focus-visible + label {
    outline: 3px solid var(--commerce-blush-deep);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(182, 74, 89, .18);
}

.commerce-rating label:hover {
    transform: translateY(-2px);
}

.commerce-review-readonly {
    padding: 15px;
    border-radius: 14px;
    background: var(--commerce-cream);
    color: var(--commerce-muted);
    font-size: 13px;
    line-height: 1.7;
}

.commerce-stars {
    color: #e4aa3e;
    letter-spacing: 3px;
}

/* Authentication */
.latela-auth {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 88px);
    padding: 132px 20px 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(241, 167, 193, .22), transparent 29rem),
        linear-gradient(135deg, #fff 0%, #fbf6f3 100%);
}

.latela-auth::before,
.latela-auth::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(241, 167, 193, .28);
    border-radius: 50%;
    pointer-events: none;
}

.latela-auth::before {
    top: 80px;
    right: -110px;
    width: 360px;
    height: 360px;
}

.latela-auth::after {
    bottom: -180px;
    left: -150px;
    width: 420px;
    height: 420px;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(390px, 1fr);
    width: min(980px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(234, 223, 227, .95);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(76, 48, 58, .13);
}

.auth-story {
    --auth-story-title: #fffafb;
    --auth-story-copy: #f6e8ed;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 540px;
    padding: 46px;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(36, 26, 30, .94), rgba(78, 45, 58, .9)),
        linear-gradient(135deg, #3d2931, #171114);
    color: var(--auth-story-title);
}

.auth-story::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -95px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, .03), 0 0 0 88px rgba(255, 255, 255, .025);
}

body.latela-app .auth-story__brand {
    position: relative;
    z-index: 1;
    color: var(--auth-story-title);
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .08em;
}

.auth-story__content {
    position: relative;
    z-index: 1;
}

body.latela-app .auth-story__content h2 {
    margin: 0 0 16px;
    color: var(--auth-story-title);
    font-family: "Playfair Display", serif;
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.15;
}

body.latela-app .auth-story__content p {
    max-width: 360px;
    margin: 0;
    color: var(--auth-story-copy);
    font-size: 13px;
    line-height: 1.8;
}

body.latela-app .auth-story__trust {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 34px;
    color: var(--auth-story-copy);
    font-size: 11px;
}

body.latela-app .auth-story__brand:hover,
body.latela-app .auth-story__brand:focus-visible {
    color: var(--auth-story-title);
}

.auth-story__trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 60px);
}

.auth-title {
    font-size: clamp(31px, 4vw, 42px);
    line-height: 1.12;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.auth-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--commerce-ink);
    font-size: 12px;
    font-weight: 800;
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 50px;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--commerce-muted);
    cursor: pointer;
}

.auth-password__toggle:hover,
.auth-password__toggle:focus-visible {
    background: var(--commerce-petal);
    color: var(--commerce-blush-deep);
}

.auth-form__meta,
.auth-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--commerce-muted);
    font-size: 12px;
}

.auth-form__footer {
    justify-content: center;
    margin-top: 2px;
    text-align: center;
}

.auth-otp-input {
    font-family: "Montserrat", sans-serif;
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: .35em;
    text-align: center;
}

.auth-secondary-form {
    margin-top: 12px;
}

.auth-secondary-action {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--commerce-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.auth-secondary-action:hover,
.auth-secondary-action:focus-visible {
    color: var(--commerce-blush-deep);
}

@media (max-width: 991px) {
    .commerce-page {
        padding-top: 118px;
    }

    .commerce-layout,
    .commerce-layout--account {
        grid-template-columns: 1fr;
    }

    .commerce-aside,
    .commerce-account-nav {
        position: static;
    }

    .commerce-account-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .commerce-account-links a {
        justify-content: center;
        text-align: center;
    }

    .commerce-cart-item {
        grid-template-columns: minmax(0, 1fr) 138px 38px;
    }

    .commerce-cart-item .commerce-price,
    .commerce-cart-item .commerce-line-total {
        display: none;
    }

    .auth-shell {
        grid-template-columns: minmax(260px, .72fr) minmax(360px, 1fr);
    }

    .auth-story {
        padding: 38px;
    }
}

@media (max-width: 767px) {
    .commerce-page {
        padding: 108px 0 58px;
    }

    .commerce-container {
        width: min(100% - 28px, 1180px);
    }

    .commerce-hero {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 25px;
    }

    .commerce-title {
        font-size: 38px;
    }

    .commerce-progress {
        margin-bottom: 26px;
    }

    .commerce-progress li {
        display: block;
        font-size: 10px;
        text-align: center;
    }

    .commerce-progress__number {
        margin: 0 auto 7px;
    }

    .commerce-progress li:not(:last-child)::after {
        left: calc(50% + 25px);
        right: calc(-50% + 25px);
    }

    .commerce-card,
    .auth-shell {
        border-radius: 20px;
    }

    .commerce-card__header,
    .commerce-card__body,
    .commerce-summary,
    .commerce-invoice-top,
    .commerce-invoice-addresses,
    .commerce-invoice-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .commerce-form-grid,
    .commerce-invoice-addresses,
    .commerce-invoice-footer {
        grid-template-columns: 1fr;
    }

    .commerce-cart-item {
        grid-template-columns: minmax(0, 1fr) 36px;
        padding: 20px;
    }

    .commerce-cart-item .commerce-product {
        grid-column: 1;
    }

    .commerce-cart-item .commerce-remove-wrap {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .commerce-cart-item .commerce-quantity {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 15px;
        border-top: 1px solid var(--commerce-line);
    }

    .commerce-data-label {
        display: block;
    }

    .commerce-product__image {
        flex-basis: 74px;
        width: 74px;
        height: 92px;
    }

    .commerce-account-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commerce-orders-table,
    .commerce-orders-table tbody,
    .commerce-orders-table tr,
    .commerce-orders-table td {
        display: block;
        width: 100%;
    }

    .commerce-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .commerce-orders-table tr {
        padding: 18px 20px;
        border-bottom: 1px solid var(--commerce-line);
    }

    .commerce-orders-table tr:last-child {
        border-bottom: 0;
    }

    .commerce-orders-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
        padding: 7px 0;
        border: 0;
    }

    .commerce-orders-table td::before {
        content: attr(data-label);
        color: var(--commerce-muted);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .commerce-invoice-top {
        flex-direction: column;
    }

    .commerce-order-progress {
        padding: 18px 10px;
    }

    .commerce-order-progress__step {
        font-size: 9px;
    }

    .commerce-order-progress__dot {
        width: 27px;
        height: 27px;
    }

    .commerce-order-progress__step:not(:last-child)::after {
        top: 13px;
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
    }

    .commerce-action-row .commerce-btn,
    .commerce-action-row form,
    .commerce-action-row form .commerce-btn {
        width: 100%;
    }

    .latela-auth {
        min-height: auto;
        padding: 108px 14px 54px;
    }

    .auth-shell {
        display: block;
    }

    .auth-story {
        min-height: 260px;
        padding: 30px;
    }

    .auth-story__brand,
    .auth-story__trust {
        display: none;
    }

    .auth-story__content h2 {
        font-size: 32px;
    }

    .auth-panel {
        padding: 34px 24px;
    }
}

@media (max-width: 479px) {
    .commerce-account-links {
        grid-template-columns: 1fr;
    }

    .commerce-card__header {
        display: block;
    }

    .commerce-summary__row--total strong {
        font-size: 21px;
    }

    .commerce-product__name {
        font-size: 13px;
    }

    .auth-form__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .commerce-page {
        min-height: 0;
        padding: 0;
        background: #fff;
    }

    .commerce-page::before,
    .commerce-hero,
    .commerce-progress,
    .commerce-order-progress,
    .commerce-action-row,
    .commerce-support,
    .commerce-trust,
    .no-print,
    header,
    footer {
        display: none !important;
    }

    .commerce-container {
        width: 100%;
    }

    .commerce-card {
        border: 0;
        box-shadow: none;
    }

    .commerce-invoice-table {
        min-width: 0;
    }
}
