/* =========================================================
   Linora — storefront pieces driven by the admin panel
   (announcement bar, toasts, shop filters, reviews, account,
   orders, policy pages). Loaded on every storefront page.
   ========================================================= */

:root {
    --st-navy: #012f7b;
    --st-navy-deep: #00174a;
    --st-gold: #c9a46a;
    --st-ink: #14161f;
    --st-muted: #6b7080;
    --st-line: #e8ebf3;
    --st-soft: #f6f7fb;
    --st-danger: #c0392b;
    --st-ok: #1e8e5a;
    --st-ann-h: 36px;
}

/* ---------- announcement bar ---------- */
.announcement-bar {
    position: relative;
    z-index: 1031;
    height: var(--st-ann-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: linear-gradient(90deg, var(--st-navy-deep), var(--st-navy));
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.has-announcement.lx .navbar-custom:not(.sticky-scroll) {
    top: var(--st-ann-h);
}

/* ---------- header extras ---------- */
.cart-count[hidden],
.bottom-nav-cart-count[hidden] {
    display: none !important;
}

.nav-categories .dropdown-menu {
    border: 1px solid var(--st-line);
    border-radius: 14px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 18px 40px rgba(1, 47, 123, .12);
}

.nav-categories .dropdown-item {
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--st-ink);
}

.nav-categories .dropdown-item:hover,
.nav-categories .dropdown-item:focus {
    background: var(--st-soft);
    color: var(--st-navy);
}

.lx .navbar-nav .nav-categories .nav-link.dropdown-toggle::after {
    /* the theme's underline replaces Bootstrap's caret */
    border: 0;
    margin: 0;
    vertical-align: 0;
}

.mobile-menu-list .nav-sub .nav-link {
    padding-left: 16px !important;
    font-size: .92em;
    opacity: .85;
}

.footer-contact-text {
    display: inline-flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

/* ---------- toasts ---------- */
.store-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--bottom-nav-height, 0px) + 18px);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(480px, calc(100% - 32px));
    padding: 12px 14px 12px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--st-ink);
    border: 1px solid var(--st-line);
    border-left: 4px solid var(--st-ok);
    box-shadow: 0 18px 40px rgba(0, 23, 74, .18);
    font-size: 14px;
    font-weight: 500;
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s;
}

@media (min-width: 992px) {
    .store-toast {
        bottom: 24px;
    }
}

.store-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.store-toast > i {
    color: var(--st-ok);
    font-size: 17px;
}

.store-toast.error {
    border-left-color: var(--st-danger);
}

.store-toast.error > i {
    color: var(--st-danger);
}

.store-toast.info {
    border-left-color: var(--st-navy);
}

.store-toast.info > i {
    color: var(--st-navy);
}

.store-toast a {
    margin-left: 4px;
    color: var(--st-navy);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.store-toast-close {
    border: 0;
    background: none;
    color: var(--st-muted);
    padding: 2px 4px;
    margin-left: 2px;
}

/* ---------- validation on storefront fields (shared validator) ---------- */
.linora-contact-input.is-invalid,
.linora-contact-textarea.is-invalid,
.linora-register-input.is-invalid,
.review-textarea.is-invalid,
.cart-coupon-form input.is-invalid,
.checkout-section .form-control.is-invalid,
.account-form .form-control.is-invalid {
    border-color: #dc3545 !important;
}

.linora-login-input.has-error {
    border-color: #dc3545 !important;
}

.linora-login-input.has-error > i {
    color: #dc3545;
}

.cart-coupon-form + .field-error,
.star-input + .field-error {
    margin-bottom: 8px;
}

/* ---------- product cards ---------- */
.product-card .product-image > a {
    display: block;
}

.product-card h5 a {
    color: inherit;
    text-decoration: none;
}

.product-card h5 a:hover {
    color: var(--st-navy);
}

.sale-badge.new {
    background: var(--st-gold);
}

.sale-badge.sold-out {
    background: #5c6070;
}

.product-card.is-sold-out .product-image img {
    filter: grayscale(.7);
    opacity: .75;
}

.product-card .cart-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ---------- quick view additions ---------- */
.qv-price del {
    margin-left: 6px;
    color: var(--st-muted);
    font-size: .7em;
    font-weight: 400;
}

.qv-price del:empty {
    display: none;
}

.qv-rating .qv-no-reviews {
    color: var(--st-muted);
    font-size: 13px;
}

.qv-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qv-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--swatch);
    box-shadow: 0 0 0 1px #d6dae6;
    transition: box-shadow .2s, transform .2s;
}

.qv-color:hover {
    transform: scale(1.08);
}

.qv-color.active {
    box-shadow: 0 0 0 2px var(--st-navy);
}

.qv-stock {
    margin: -4px 0 14px;
    color: #b7791f;
    font-size: 13px;
    font-weight: 600;
}

.qv-stock.out {
    color: var(--st-danger);
}

.qv-info .qv-cart:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.needs-choice {
    animation: stShake .4s;
}

.needs-choice h5,
.needs-choice .qv-option-head > span {
    color: var(--st-danger) !important;
}

@keyframes stShake {
    0%, 100% { transform: none; }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ---------- shop listing ---------- */
.page-product .shop-section {
    padding-top: 120px;
}

.shop-head {
    margin-bottom: 18px;
}

.shop-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--st-ink);
    margin: 0;
}

.shop-count {
    color: var(--st-muted);
    margin: 4px 0 0;
    font-size: 14px;
}

.shop-chips {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: -8px 0 26px;
    scrollbar-width: none;
}

.shop-chips::-webkit-scrollbar {
    display: none;
}

.shop-chips a {
    flex: none;
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid var(--st-line);
    background: #fff;
    color: var(--st-ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}

.shop-chips a:hover {
    border-color: var(--st-navy);
    color: var(--st-navy);
}

.shop-chips a.active {
    background: var(--st-navy);
    border-color: var(--st-navy);
    color: #fff;
}

.shop-chips a.chip-collection {
    border-style: dashed;
}

.shop-chips a.chip-collection.active {
    border-style: solid;
    background: var(--st-gold);
    border-color: var(--st-gold);
}

.shop-empty,
.review-empty {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed #d8dce8;
    border-radius: 18px;
    color: var(--st-muted);
}

.shop-empty i,
.review-empty i {
    font-size: 38px;
    color: var(--st-navy);
    opacity: .5;
    margin-bottom: 12px;
}

.shop-empty h4 {
    color: var(--st-ink);
    font-weight: 600;
}

.shop-empty a {
    display: inline-block;
    margin-top: 8px;
    color: var(--st-navy);
    font-weight: 600;
}

.shop-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 40px;
}

.shop-pagination.small {
    margin-top: 18px;
}

.shop-pagination a,
.shop-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--st-line);
    background: #fff;
    color: var(--st-ink);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.shop-pagination a:hover {
    border-color: var(--st-navy);
    color: var(--st-navy);
}

.shop-pagination .active {
    background: var(--st-navy);
    border-color: var(--st-navy);
    color: #fff;
}

.shop-pagination .disabled {
    opacity: .4;
}

/* ---------- product page ---------- */
.detail-content a.detail-category {
    text-decoration: none;
}

.detail-content a.detail-rating {
    text-decoration: none;
    color: inherit;
}

.detail-sale-badge.sold-out {
    background: #5c6070 !important;
}

.detail-info .stock-low {
    color: #b7791f;
    font-weight: 600;
}

.detail-info .stock-out {
    color: var(--st-danger);
    font-weight: 600;
}

.detail-error {
    color: var(--st-danger);
    font-size: 14px;
    margin: 0 0 14px;
}

.detail-buttons .detail-buy-btn {
    border: 0;
    cursor: pointer;
}

.detail-cart-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.detail-more {
    margin-top: 56px;
    display: grid;
    gap: 24px;
}

.detail-panel {
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
}

.detail-panel h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--st-ink);
    margin-bottom: 16px;
}

.detail-richtext {
    color: #4a4f5e;
    line-height: 1.75;
    font-size: 15px;
}

.detail-richtext h2,
.detail-richtext h3,
.detail-richtext h4 {
    color: var(--st-ink);
    font-size: 18px;
    font-weight: 600;
    margin: 22px 0 8px;
}

.detail-richtext > :first-child {
    margin-top: 0;
}

.detail-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.detail-delivery,
.checkout-delivery {
    margin: 14px 0 0;
    color: var(--st-navy);
    font-size: 14px;
    font-weight: 500;
}

.detail-delivery i,
.checkout-delivery i {
    margin-right: 6px;
}

.detail-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    margin: 0;
    font-size: 14px;
}

.detail-specs dt,
.detail-specs dd {
    padding: 11px 0;
    border-bottom: 1px solid var(--st-line);
    margin: 0;
}

.detail-specs dt {
    color: var(--st-muted);
    font-weight: 500;
    padding-right: 24px;
}

.detail-specs dd {
    color: var(--st-ink);
}

/* reviews */
.review-score {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-score strong {
    font-size: 46px;
    font-weight: 600;
    line-height: 1;
    color: var(--st-ink);
}

.review-score small {
    display: block;
    color: var(--st-muted);
    font-size: 13px;
}

.review-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-bars {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--st-muted);
}

.review-bars li {
    display: grid;
    grid-template-columns: 34px 1fr 26px;
    gap: 10px;
    align-items: center;
}

.review-bars li i {
    color: #f5a623;
    font-size: 11px;
}

.review-bars .bar {
    height: 7px;
    border-radius: 9px;
    background: var(--st-soft);
    overflow: hidden;
}

.review-bars .bar span {
    display: block;
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--st-navy), var(--st-gold));
}

.review-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin-bottom: 10px;
}

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

.star-input label {
    font-size: 24px;
    color: #d6dae6;
    cursor: pointer;
    transition: color .15s, transform .15s;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f5a623;
}

.star-input label:hover {
    transform: scale(1.12);
}

.star-input input:focus-visible + label {
    outline: 2px solid var(--st-navy);
    outline-offset: 2px;
    border-radius: 4px;
}

.review-textarea {
    width: 100%;
    border: 1px solid #dfe3ec;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.review-textarea:focus {
    border-color: var(--st-navy);
}

.review-submit,
.account-btn {
    margin-top: 12px;
    border: 0;
    border-radius: 30px;
    padding: 11px 22px;
    background: var(--st-navy);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: background .2s;
}

.review-submit:hover,
.account-btn:hover {
    background: var(--st-navy-deep);
}

.review-note {
    display: block;
    margin-top: 10px;
    color: var(--st-muted);
    font-size: 13px;
}

.review-note i {
    color: var(--st-ok);
}

.review-note a {
    color: var(--st-navy);
    font-weight: 600;
}

.review-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--st-line);
}

.review-item:first-child {
    padding-top: 0;
}

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

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-head strong {
    display: block;
    font-size: 15px;
}

.review-head small {
    color: var(--st-muted);
    font-size: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--st-navy), #3c63b8);
    color: #fff;
    font-weight: 600;
}

.review-item p {
    margin: 0;
    color: #4a4f5e;
    font-size: 14px;
    line-height: 1.7;
}

.related-section {
    padding-top: 10px !important;
}

/* ---------- cart ---------- */
.page-cart .cart-section {
    padding-bottom: 36px;
}

.cart-items,
.cart-sum {
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 24px;
    box-shadow: 0 24px 50px -38px rgba(1, 47, 123, .45);
}

.cart-items {
    padding: 6px 26px 0;
}

/* free delivery progress */
.cart-ship {
    margin: 18px 0 4px;
    padding: 14px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f6fd, #fbf7ef);
    border: 1px solid rgba(1, 47, 123, .08);
}

.cart-ship-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--st-ink);
}

.cart-ship-text i {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--st-navy);
    font-size: 13px;
    box-shadow: 0 6px 12px -8px rgba(1, 47, 123, .6);
}

.cart-ship-track {
    height: 8px;
    border-radius: 99px;
    background: rgba(1, 47, 123, .08);
    overflow: hidden;
}

.cart-ship-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--st-navy), #3c63b8 60%, var(--st-gold));
    transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

.cart-ship.is-free {
    background: linear-gradient(135deg, #ecf8f1, #f7fcf9);
    border-color: rgba(30, 142, 90, .18);
}

.cart-ship.is-free .cart-ship-text i {
    color: var(--st-ok);
}

.cart-ship.is-free .cart-ship-fill {
    background: linear-gradient(90deg, #1e8e5a, #43c58c);
}

/* column labels (wide screens) */
.cart-items-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px 120px;
    gap: 20px;
    padding: 16px 0 10px;
    border-bottom: 1px solid var(--st-line);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.cart-items-head span:nth-child(2) {
    text-align: center;
}

.cart-items-head span:nth-child(3) {
    text-align: right;
}

/* one cart line */
.cart-line {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 132px 120px;
    grid-template-areas: "media info qty total";
    gap: 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--st-line);
    transition: opacity .25s, transform .25s;
}

.cart-line:last-of-type {
    border-bottom: 0;
}

.cart-line.has-design {
    grid-template-areas:
        "media info qty total"
        "media design design design";
}

.cart-line.updating {
    opacity: .6;
}

.cart-line.removing {
    opacity: .25;
    transform: translateX(18px);
    pointer-events: none;
}

.cart-line-media {
    grid-area: media;
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: var(--st-soft);
}

.cart-line-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.cart-line:hover .cart-line-media img {
    transform: scale(1.05);
}

.cart-line-badge {
    position: absolute;
    left: 7px;
    bottom: 7px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--st-navy);
    color: #fff;
    font-size: 11px;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45);
}

.cart-line-info {
    grid-area: info;
    min-width: 0;
}

.cart-line-cat {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--st-gold);
}

.cart-line-name {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
}

.cart-line-name a {
    color: var(--st-ink);
    text-decoration: none;
    transition: color .2s;
}

.cart-line-name a:hover {
    color: var(--st-navy);
}

.cart-line-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--st-soft);
    font-size: 12px;
    font-weight: 600;
    color: #4a4f5c;
}

.cart-chip-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sw);
    box-shadow: 0 0 0 1px rgba(20, 22, 31, .2);
}

.cart-chip.is-low {
    background: #fff3e2;
    color: #a35a00;
}

.cart-line-each {
    font-size: 13px;
    color: var(--st-muted);
}

.cart-line-each del {
    margin-left: 6px;
    color: #a3a7b3;
}

.cart-design {
    grid-area: design;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fbf8f1;
    border: 1px solid rgba(201, 164, 106, .35);
}

.cart-design-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--st-ink);
}

.cart-design-head i {
    margin-right: 4px;
    color: var(--st-gold);
}

.cart-design-head small {
    font-size: 12px;
    font-weight: 700;
    color: var(--st-navy);
}

.cart-design .custom-design-list {
    margin: 8px 0 0;
}

.cart-line-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--st-muted);
    transition: color .2s;
}

.cart-line-remove:hover {
    color: var(--st-danger);
}

.cart-line-qty {
    grid-area: qty;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.cart-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(20, 22, 31, .14);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.cart-stepper button {
    width: 38px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--st-ink);
    font-size: 12px;
    transition: background .2s, color .2s;
}

.cart-stepper button:hover {
    background: var(--st-soft);
    color: var(--st-navy);
}

.cart-stepper input {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--st-ink);
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-stepper input::-webkit-outer-spin-button,
.cart-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-line-total {
    grid-area: total;
    margin-top: 14px;
    text-align: right;
}

.cart-line-total strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--st-navy);
}

.cart-save {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    background: #e9f7ef;
    color: var(--st-ok);
    font-size: 11.5px;
    font-weight: 700;
}

.cart-items-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 0 18px;
    border-top: 1px solid var(--st-line);
}

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
}

.cart-continue-link i {
    transition: transform .3s;
}

.cart-continue-link:hover {
    color: var(--st-navy);
}

.cart-continue-link:hover i {
    transform: translateX(-4px);
}

.cart-help-link {
    font-size: 13px;
    color: var(--st-muted);
    text-decoration: none;
}

.cart-help-link:hover {
    color: var(--st-navy);
}

/* summary */
@media (min-width: 992px) {
    .cart-aside {
        position: sticky;
        top: 90px;
    }
}

.cart-sum {
    padding: 26px;
}

.cart-sum h2 {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 700;
    color: var(--st-ink);
}

.cart-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--st-muted);
}

.cart-sum-row small {
    font-size: 12px;
}

.cart-sum-row strong {
    font-weight: 700;
    color: var(--st-ink);
}

.cart-sum-row strong.is-free,
.cart-sum-row.is-discount strong {
    color: var(--st-ok);
}

.cart-sum .cart-coupon {
    margin: 10px 0 0;
    padding: 14px 0;
    border-top: 1px dashed var(--st-line);
    border-bottom: 1px dashed var(--st-line);
}

.cart-coupon-toggle summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--st-navy);
}

.cart-coupon-toggle summary::-webkit-details-marker {
    display: none;
}

.cart-coupon-toggle summary::after {
    content: "\f078";
    margin-left: auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    transition: transform .25s;
}

.cart-coupon-toggle[open] summary::after {
    transform: rotate(180deg);
}

.cart-coupon-toggle .cart-coupon-form {
    margin-top: 12px;
}

.cart-coupon-tag {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 4px;
    border-radius: 20px;
    background: var(--st-soft);
    color: var(--st-navy);
}

.cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed var(--st-gold);
    background: #fffaf2;
    font-size: 14px;
}

.cart-coupon-applied span i {
    color: var(--st-gold);
    margin-right: 4px;
}

.cart-coupon-applied button {
    border: 0;
    background: none;
    color: var(--st-danger);
    font-size: 13px;
    font-weight: 600;
}

.cart-coupon-problem {
    margin: 8px 0 0;
    color: var(--st-danger);
    font-size: 13px;
}

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

.cart-sum-total span {
    font-size: 15px;
    font-weight: 700;
    color: var(--st-ink);
}

.cart-sum-total strong {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--st-navy);
}

.cart-sum-save {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 12px;
    background: #e9f7ef;
    color: #17734a;
    font-size: 13px;
    font-weight: 600;
}

.cart-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy) 55%, #3c63b8);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 30px -16px rgba(1, 47, 123, .8);
    transition: transform .25s, box-shadow .25s;
}

.cart-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 34px -16px rgba(1, 47, 123, .85);
}

.cart-btn-primary .fa-arrow-right {
    transition: transform .3s;
}

.cart-btn-primary:hover .fa-arrow-right {
    transform: translateX(4px);
}

.cart-sum-btn {
    width: 100%;
    margin-top: 18px;
}

.cart-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--st-muted);
}

.cart-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid var(--st-line);
    font-weight: 600;
    color: var(--st-ink);
}

.cart-pay-chip i {
    color: var(--st-navy);
}

.cart-perks {
    list-style: none;
    margin: 14px 0 0;
    padding: 4px 18px;
    border-radius: 20px;
    background: var(--st-soft);
}

.cart-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.cart-perks li + li {
    border-top: 1px solid rgba(1, 47, 123, .07);
}

.cart-perks i {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--st-navy);
    font-size: 14px;
}

.cart-perks strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.3;
    color: var(--st-ink);
}

.cart-perks span {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--st-muted);
}

.cart-perks a {
    color: var(--st-navy);
    font-weight: 600;
}

/* empty cart */
.cart-empty-state {
    max-width: 560px;
    margin: 8px auto;
    padding: 46px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 28px;
    box-shadow: 0 24px 50px -38px rgba(1, 47, 123, .45);
}

.cart-empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px;
    color: var(--st-navy);
    background: radial-gradient(circle at 30% 30%, #fff, #eef2fb 60%, #f1e3c8);
    box-shadow: 0 18px 30px -18px rgba(1, 47, 123, .6);
}

.cart-empty-state h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--st-ink);
}

.cart-empty-state p {
    max-width: 400px;
    margin: 0 auto 22px;
    color: var(--st-muted);
}

.cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cart-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 54px;
    padding: 0 22px;
    border-radius: 16px;
    border: 1px solid rgba(1, 47, 123, .2);
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
    transition: background .2s;
}

.cart-btn-ghost:hover {
    background: var(--st-soft);
    color: var(--st-navy);
}

/* suggestions under the cart */
.cart-suggest {
    padding: 10px 0 60px;
}

/* narrower screens: quantity and total move under the product details */
@media (max-width: 1199.98px) {
    .cart-items-head {
        display: none;
    }

    .cart-line {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        grid-template-areas:
            "media info info"
            "media qty total";
        gap: 14px 18px;
    }

    .cart-line.has-design {
        grid-template-areas:
            "media info info"
            "media qty total"
            "design design design";
    }

    .cart-line-qty {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        margin-top: 0;
    }

    .cart-line-total {
        align-self: center;
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .cart-items {
        padding: 2px 14px 0;
        border-radius: 20px;
    }

    .cart-line {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        gap: 12px 14px;
        padding: 16px 0;
    }

    .cart-line-media {
        border-radius: 14px;
    }

    .cart-line-name {
        font-size: 15px;
    }

    .cart-stepper button,
    .cart-stepper input {
        width: 34px;
        height: 36px;
    }

    .cart-line-remove span {
        display: none;
    }

    .cart-line-remove {
        font-size: 15px;
    }

    .cart-sum {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .cart-items-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- checkout ---------- */
.checkout-login-note {
    margin: -6px 0 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--st-soft);
    font-size: 14px;
    color: var(--st-muted);
}

.checkout-login-note a {
    color: var(--st-navy);
    font-weight: 600;
}

.checkout-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdecea;
    color: #8a1f17;
    font-size: 14px;
}

.checkout-alert a {
    color: inherit;
    font-weight: 600;
    margin-left: 4px;
}

.checkout-bank {
    margin: 12px 0 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--st-soft);
    border: 1px solid var(--st-line);
    font-size: 14px;
}

.checkout-bank strong {
    display: block;
    margin-bottom: 6px;
    color: var(--st-navy);
}

.checkout-bank p {
    margin: 0 0 6px;
    color: var(--st-ink);
}

.checkout-bank small {
    color: var(--st-muted);
}

.checkout-card-note {
    margin: 10px 0 0;
    color: var(--st-muted);
    font-size: 13px;
}

.checkout-payment .field-error,
.checkout-terms + .field-error {
    margin-bottom: 10px;
}

.checkout-product-info h4 a {
    color: inherit;
    text-decoration: none;
}

/* ---------- order tracking (order-placed page and account order page) ---------- */
@keyframes stPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.order-progress {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.order-progress li {
    position: relative;
    text-align: center;
    font-size: 13px;
    color: var(--st-muted);
    font-weight: 500;
}

.order-progress li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--st-line);
    z-index: 0;
}

.order-progress li:first-child::before {
    display: none;
}

.order-progress li.done::before {
    background: linear-gradient(90deg, var(--st-navy), var(--st-gold));
}

.order-progress li span {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--st-line);
    color: #b5bbc9;
}

.order-progress li.done {
    color: var(--st-ink);
}

.order-progress li.done span {
    background: var(--st-navy);
    border-color: var(--st-navy);
    color: #fff;
}

.order-progress li.current span {
    box-shadow: 0 0 0 6px rgba(1, 47, 123, .12);
}

.order-cancelled {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1f2f5;
    color: #5c6070;
    font-weight: 500;
}

.order-tracking {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--st-soft);
    font-size: 14px;
}

.order-tracking i {
    color: var(--st-navy);
    margin-right: 6px;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.order-status.warn { background: #fff4e0; color: #9a6206; }
.order-status.info { background: #e8effc; color: var(--st-navy); }
.order-status.ok { background: #e5f6ee; color: var(--st-ok); }
.order-status.muted { background: #f1f2f5; color: #5c6070; }

/* ---------- account ---------- */
.account-section,
.policy-section {
    padding: 50px 0 80px;
}

.account-card {
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.account-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.account-card-head h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.account-card-head h3 i {
    color: var(--st-navy);
    margin-right: 6px;
}

.account-card-head > span {
    color: var(--st-muted);
    font-size: 13px;
}

.account-order {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    margin: 0 -12px;
    border-radius: 12px;
    color: var(--st-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--st-line);
    transition: background .2s;
}

.account-order:last-of-type {
    border-bottom: 0;
}

.account-order:hover {
    background: var(--st-soft);
    color: var(--st-ink);
}

.account-order small {
    display: block;
    color: var(--st-muted);
    font-size: 12px;
}

.account-order > i {
    color: #b5bbc9;
    font-size: 12px;
}

.account-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0 5px;
}

.account-form label:first-of-type {
    margin-top: 0;
}

.account-form .form-control {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
}

.account-logout {
    width: 100%;
    border: 1px solid var(--st-line);
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    color: var(--st-danger);
    font-weight: 500;
}

.account-logout:hover {
    background: #fdecea;
}

@media (max-width: 575px) {
    .account-order {
        grid-template-columns: 1fr auto;
    }

    .account-order .account-order-total {
        grid-column: 1;
        font-size: 14px;
    }

    .account-order > i {
        display: none;
    }

    .order-progress li {
        font-size: 11px;
    }

    .order-progress li span {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .order-progress li::before {
        top: 16px;
    }
}

/* ---------- policy pages ---------- */
.policy-content {
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 20px;
    padding: 32px;
}

.policy-updated {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--st-line);
    color: var(--st-muted);
    font-size: 13px;
}

.policy-aside {
    position: sticky;
    top: 100px;
    background: var(--st-soft);
    border-radius: 20px;
    padding: 22px;
}

.policy-aside h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.policy-aside ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.policy-aside li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--st-ink);
    text-decoration: none;
    font-size: 14px;
}

.policy-aside li a i {
    font-size: 11px;
    color: #b5bbc9;
}

.policy-aside li a:hover,
.policy-aside li a.active {
    background: #fff;
    color: var(--st-navy);
    font-weight: 500;
}

.policy-help {
    color: var(--st-navy);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .detail-panel,
    .policy-content {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-toast,
    .needs-choice {
        transition: none;
        animation: none;
    }
}

#qvColorWrap {
    margin-bottom: 18px;
}

/* =========================================================
   Product customiser (logo / text) — see assets/js/customizer.js
   ========================================================= */
.cz-panel {
    margin: 22px 0;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbf7ef 0%, #fff 70%);
    border: 1px solid rgba(201, 164, 106, .45);
}
.cz-panel-head { display: flex; gap: 12px; align-items: flex-start; }
.cz-badge {
    flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--navy, #012f7b); color: #fff; font-size: 16px;
}
.cz-panel-head h5 { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: var(--ink, #14161f); }
.cz-panel-head h5 small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #6b7080); margin-left: 6px; }
.cz-panel-head p { margin: 0; font-size: 13px; color: var(--muted, #6b7080); }

.cz-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 12px; flex-wrap: wrap; }
.cz-steps li { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #6b7080); }
.cz-steps li + li::before { content: ""; width: 14px; height: 1px; background: rgba(20, 22, 31, .2); margin-right: 2px; }
.cz-steps span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft, #f1e3c8); color: var(--navy, #012f7b); font-size: 11px; }

.cz-positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cz-position {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 6px 8px; border-radius: 14px; background: #fff; cursor: pointer;
    border: 1px solid rgba(20, 22, 31, .12); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cz-position:hover { border-color: var(--navy-soft, #3c63b8); transform: translateY(-1px); }
.cz-position:focus-visible { outline: 2px solid var(--navy-soft, #3c63b8); outline-offset: 2px; }
.cz-position-icon { width: 44px; height: 44px; margin-bottom: 2px; }
.cz-position-icon path { fill: #eef1f7; stroke: #9aa3b8; stroke-width: 2.5; stroke-linejoin: round; }
.cz-position-icon rect { fill: var(--gold, #c9a46a); opacity: .9; }
.cz-position-icon text { font-size: 11px; font-weight: 700; fill: #9aa3b8; }
.cz-position-name { font-size: 12.5px; font-weight: 700; color: var(--ink, #14161f); line-height: 1.2; text-align: center; }
.cz-position-price { font-size: 11px; color: var(--muted, #6b7080); }
.cz-position-check { position: absolute; top: 6px; right: 6px; font-size: 14px; color: var(--navy, #012f7b); opacity: 0; transform: scale(.6); transition: .2s; }
.cz-position.is-selected { border-color: var(--navy, #012f7b); box-shadow: 0 0 0 1px var(--navy, #012f7b), 0 10px 20px -14px rgba(1, 47, 123, .7); }
.cz-position.is-selected .cz-position-check { opacity: 1; transform: scale(1); }
.cz-position.is-selected .cz-position-icon rect { fill: var(--navy, #012f7b); }
/* A selected position shows it can be removed: the tick turns into a red cross on hover. */
@media (hover: hover) {
    .cz-position.is-selected:hover { border-color: #d62828; box-shadow: 0 0 0 1px #d62828; }
    .cz-position.is-selected:hover .cz-position-check { color: #d62828; }
    .cz-position.is-selected:hover .cz-position-check::before { content: "\f057"; }
}

.cz-designs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cz-designs:empty { display: none; }
.cz-design {
    padding: 14px; border-radius: 16px; background: #fff;
    border: 1px solid rgba(20, 22, 31, .1); transition: border-color .2s, box-shadow .2s;
}
.cz-design.is-active { border-color: var(--navy, #012f7b); box-shadow: 0 12px 24px -18px rgba(1, 47, 123, .6); }
.cz-design.needs-attention { animation: cz-shake .4s; border-color: #d62828; }
@keyframes cz-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cz-design-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cz-design-title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.cz-design-title strong { font-size: 14.5px; color: var(--ink, #14161f); }
.cz-design-title small { font-size: 11.5px; color: var(--muted, #6b7080); }
.cz-design-price { font-size: 13px; font-weight: 700; color: var(--navy, #012f7b); background: var(--canvas, #f6f7fb); padding: 3px 9px; border-radius: 999px; }
.cz-remove { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--canvas, #f6f7fb); color: var(--muted, #6b7080); transition: .2s; }
.cz-remove:hover { background: #fde8e8; color: #d62828; }

.cz-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--canvas, #f6f7fb); margin-bottom: 8px; }
.cz-seg label { position: relative; flex: 1; margin: 0; cursor: pointer; }
.cz-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cz-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted, #6b7080); transition: .2s; text-align: center; }
.cz-seg span small { font-weight: 600; opacity: .8; }
.cz-seg input:checked + span { background: #fff; color: var(--navy, #012f7b); box-shadow: 0 2px 8px -3px rgba(20, 22, 31, .25); }
.cz-seg input:focus-visible + span { outline: 2px solid var(--navy-soft, #3c63b8); }

.cz-drop {
    position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px;
    border: 1.5px dashed rgba(1, 47, 123, .3); border-radius: 14px; cursor: pointer; background: #fbfcff; transition: .2s;
}
.cz-drop:hover { border-color: var(--navy, #012f7b); background: #f3f6fd; }
.cz-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cz-drop > i { font-size: 22px; color: var(--navy, #012f7b); }
.cz-drop span { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 700; color: var(--ink, #14161f); }
.cz-drop small { font-size: 11.5px; font-weight: 500; color: var(--muted, #6b7080); }
.cz-drop img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#eef0f5 0% 25%, #fff 0% 50%) 50% / 12px 12px; border: 1px solid rgba(20, 22, 31, .08); }
.cz-drop.has-logo { border-style: solid; border-color: rgba(42, 157, 143, .5); background: #f2fbf9; }
.cz-drop.is-busy { cursor: progress; opacity: .8; }

.cz-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(20, 22, 31, .15); font-size: 14px; background: #fff; }
.cz-input:focus { outline: none; border-color: var(--navy, #012f7b); box-shadow: 0 0 0 3px rgba(1, 47, 123, .12); }
.cz-text-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cz-font { flex: 0 0 140px; padding: 8px 10px; }
.cz-swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cz-swatch {
    position: relative; width: 24px; height: 24px; border-radius: 50%; padding: 0; margin: 0; cursor: pointer;
    background: var(--sw); border: 0; box-shadow: 0 0 0 1px rgba(20, 22, 31, .2);
}
.cz-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy, #012f7b); }
.cz-swatch-custom { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); overflow: hidden; }
.cz-swatch-custom input { position: absolute; inset: -6px; width: 40px; height: 40px; opacity: 0; cursor: pointer; }

.cz-notes { margin-top: 8px; }
.cz-notes summary { font-size: 12.5px; font-weight: 600; color: var(--navy, #012f7b); cursor: pointer; }
.cz-notes summary small { color: var(--muted, #6b7080); font-weight: 500; }
.cz-notes textarea { margin-top: 6px; resize: vertical; font-size: 13px; }

.cz-total { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(20, 22, 31, .08); font-size: 13.5px; }
.cz-total > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted, #6b7080); }
.cz-total strong { color: var(--ink, #14161f); }
.cz-total .cz-total-main { border-top: 1px dashed rgba(20, 22, 31, .15); margin-top: 4px; padding-top: 8px; font-weight: 700; color: var(--ink, #14161f); }
.cz-total .cz-total-main strong { font-size: 17px; color: var(--navy, #012f7b); }

/* Live preview (under the gallery) */
.cz-preview { margin-top: 18px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid rgba(1, 47, 123, .1); box-shadow: 0 20px 40px -32px rgba(1, 47, 123, .6); }
@media (min-width: 992px) { .cz-preview { position: sticky; top: 100px; } }
.cz-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.cz-preview-head h5 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink, #14161f); }
.cz-preview-head h5 i { color: var(--gold, #c9a46a); margin-right: 4px; }
.cz-view-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--canvas, #f6f7fb); }
.cz-view-toggle button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted, #6b7080); }
.cz-view-toggle button.is-active { background: var(--navy, #012f7b); color: #fff; }
.cz-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--canvas, #f6f7fb); overflow: hidden; }
.cz-garment { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cz-stage.is-back-fallback::after {
    content: "Back view"; position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; background: rgba(20, 22, 31, .7); color: #fff;
}
.cz-layer { position: absolute; inset: 0; }
.cz-box {
    position: absolute; display: flex; align-items: center; justify-content: center; padding: 2px;
    border: 1.5px dashed transparent; border-radius: 4px; background: none; cursor: pointer; overflow: hidden;
}
.cz-box:hover { border-color: rgba(1, 47, 123, .45); }
.cz-box.is-active { border-color: var(--gold, #c9a46a); background: rgba(201, 164, 106, .08); }
.cz-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cz-box-text { white-space: nowrap; font-weight: 700; line-height: 1.1; }
.cz-box-empty { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(1, 47, 123, .55); text-align: center; line-height: 1.1; }
.cz-preview-note { margin: 10px 0 0; font-size: 12px; color: var(--muted, #6b7080); }
.cz-preview-note i { color: var(--navy-soft, #3c63b8); }

/* Designs listed in the cart, checkout and order pages */
.custom-design-list { list-style: none; padding: 0; margin: 10px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.custom-design-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #555; }
.custom-design-thumb {
    flex: 0 0 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; overflow: hidden;
    background: repeating-conic-gradient(#eef0f5 0% 25%, #fff 0% 50%) 50% / 10px 10px; border: 1px solid rgba(20, 22, 31, .1);
}
.custom-design-thumb img,
.page-checkout .checkout-product-info .custom-design-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}
.custom-design-thumb.is-text { background: var(--canvas, #f6f7fb); font-weight: 700; font-size: 14px; }
.custom-design-text { flex: 1; min-width: 0; line-height: 1.35; }
.custom-design-font { color: #888; white-space: nowrap; }
.custom-design-color { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(20, 22, 31, .25); vertical-align: -1px; margin-left: 2px; }
.custom-design-text strong { color: #222; }
.custom-design-price { margin-left: auto; padding-left: 8px; white-space: nowrap; color: var(--navy, #012f7b); font-weight: 700; }
.custom-design-notes { display: block; color: #888; font-style: italic; }

/* =========================================================
   Slim page title (cart, checkout) — replaces the big banner
   The header is absolutely positioned over the top of the
   page, so these sections start just below it.
   ========================================================= */
.page-cart .cart-section,
.page-checkout .checkout-section,
.page-product-detail .detail-section,
.page-account .account-section {
    padding-top: 90px;
}

@media (max-width: 991px) {
    .page-cart .cart-section,
    .page-checkout .checkout-section,
    .page-product-detail .detail-section,
    .page-account .account-section {
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
    .page-cart .cart-section,
    .page-checkout .checkout-section,
    .page-product-detail .detail-section,
    .page-account .account-section {
        padding-top: 96px;
    }
}

/* product page: breadcrumb only, and the product name is the page's main heading */
.page-head.is-crumbs-only {
    margin-bottom: 16px;
}

.page-product-detail .detail-content .detail-title {
    margin: 12px 0;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--st-ink);
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 18px;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--st-ink);
}

.page-head h1 em {
    font-family: "Playfair Display", serif;
    font-style: italic;
    background: linear-gradient(100deg, var(--st-navy) 10%, #3c63b8 50%, var(--st-gold) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-head-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: "Quicksand", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.page-head-crumbs a {
    color: var(--st-muted);
    transition: color .3s;
}

.page-head-crumbs a:hover {
    color: var(--st-navy);
}

.page-head-crumbs i {
    font-size: 9px;
    color: var(--st-gold);
}

.page-head-crumbs span {
    color: var(--st-navy);
}

/* checkout steps and count pill in the slim page title */
.page-head-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.page-head-badge {
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid var(--st-line);
    background: var(--st-soft);
    font-family: "Quicksand", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--st-navy);
}

.page-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Quicksand", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--st-muted);
}

.page-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-steps li + li::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--st-line);
}

.page-steps li.is-done + li::before {
    background: var(--st-navy);
}

.page-steps a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--st-navy);
    text-decoration: none;
}

.page-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid var(--st-line);
    background: #fff;
    font-size: 12px;
    color: var(--st-muted);
}

.page-steps li.is-current {
    color: var(--st-ink);
}

.page-steps li.is-current .page-step-dot {
    border-color: var(--st-navy);
    background: var(--st-navy);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(1, 47, 123, .7);
}

.page-steps li.is-done .page-step-dot {
    border-color: var(--st-navy);
    background: #eaf1ff;
    color: var(--st-navy);
}

@media (max-width: 575.98px) {
    .page-steps li:not(.is-current) .page-step-label {
        display: none;
    }

    .page-steps li + li::before {
        width: 16px;
    }
}

/* =========================================================
   Customer panel (pages/account/*)
   ========================================================= */
.page-account .account-section {
    padding-bottom: 70px;
}

.account-card {
    box-shadow: 0 20px 44px -40px rgba(1, 47, 123, .5);
}

.page-account .account-card-head {
    flex-wrap: wrap;
}

.account-card-sub {
    margin: -8px 0 16px;
    font-size: 13px;
    color: var(--st-muted);
}

.account-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
    white-space: nowrap;
}

.account-link i {
    font-size: 11px;
    transition: transform .25s;
}

.account-link:hover i {
    transform: translateX(3px);
}

/* sidebar */
.account-side {
    position: sticky;
    top: 90px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 24px;
    box-shadow: 0 20px 44px -40px rgba(1, 47, 123, .5);
}

.account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--st-line);
}

.account-user > div {
    min-width: 0;
}

.account-user strong {
    display: block;
    font-size: 15px;
    color: var(--st-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user small {
    display: block;
    font-size: 12.5px;
    color: var(--st-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-avatar {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy) 55%, #3c63b8);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar.is-lg {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    font-size: 28px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--st-line);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav a,
.account-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: #4a4f5c;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.account-nav i {
    width: 18px;
    text-align: center;
    color: #9aa1b2;
    transition: color .2s;
}

.account-nav a:hover {
    background: var(--st-soft);
    color: var(--st-navy);
}

.account-nav a:hover i {
    color: var(--st-navy);
}

.account-nav a.is-active {
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy) 60%, #3c63b8);
    color: #fff;
    box-shadow: 0 12px 22px -14px rgba(1, 47, 123, .8);
}

.account-nav a.is-active i {
    color: var(--st-gold);
}

.account-nav em {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--st-soft);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    color: var(--st-navy);
}

.account-nav a.is-active em {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.account-nav form {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--st-line);
}

.account-nav button,
.account-nav button i {
    color: var(--st-danger);
}

.account-nav button:hover {
    background: #fdecea;
}

/* buttons */
.account-btn-primary,
.account-btn-outline,
.account-btn-ghost,
.account-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.account-btn-primary {
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy) 60%, #3c63b8);
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(1, 47, 123, .8);
}

.account-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -14px rgba(1, 47, 123, .85);
}

.account-btn-outline {
    background: #fff;
    border-color: rgba(1, 47, 123, .2);
    color: var(--st-navy);
}

.account-btn-outline:hover {
    background: var(--st-soft);
    color: var(--st-navy);
}

.account-btn-ghost {
    background: var(--st-soft);
    color: var(--st-ink);
}

.account-btn-ghost:hover {
    background: #eceef4;
}

.account-btn-light {
    background: #fff;
    color: var(--st-navy);
}

.account-btn-light:hover {
    color: var(--st-navy);
    transform: translateY(-1px);
}

.account-btn-sm {
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
}

/* dashboard */
.account-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 26px 28px;
    border-radius: 24px;
    background: radial-gradient(130% 160% at 100% 0%, #3c63b8 0%, var(--st-navy) 45%, var(--st-navy-deep) 100%);
    color: #fff;
}

.account-welcome::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 28px solid rgba(201, 164, 106, .18);
    pointer-events: none;
}

.account-welcome h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.account-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
}

.account-welcome > * {
    position: relative;
    z-index: 1;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.account-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

a.account-stat:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -22px rgba(1, 47, 123, .6);
}

.account-stat > i {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.account-stat > span {
    min-width: 0;
}

.account-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--st-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-stat small {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--st-muted);
}

.account-stat.is-navy > i { background: #e8effc; color: var(--st-navy); }
.account-stat.is-amber > i { background: #fff4e0; color: #9a6206; }
.account-stat.is-green > i { background: #e5f6ee; color: var(--st-ok); }
.account-stat.is-gold > i { background: #fbf3e4; color: #a07a3c; }

.account-empty {
    padding: 28px 10px;
    text-align: center;
}

.account-empty > i {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--st-soft);
    color: var(--st-navy);
    font-size: 24px;
}

.account-empty p {
    margin-bottom: 14px;
    color: var(--st-muted);
}

.account-empty.is-compact {
    padding: 10px;
}

.account-address .address-label {
    margin-bottom: 10px;
}

.account-address strong {
    display: block;
    color: var(--st-ink);
}

.account-address p {
    margin: 4px 0 0;
    color: #555b6a;
    font-size: 13.5px;
    line-height: 1.65;
}

.account-address p span {
    display: block;
    margin-top: 4px;
    color: var(--st-muted);
}

.account-address p span i {
    width: 16px;
    color: var(--st-navy);
}

.account-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-mini-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--st-line);
}

.account-mini-list li:last-child {
    border-bottom: 0;
}

.account-mini-list img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--st-soft);
}

.account-mini-list div {
    flex: 1;
    min-width: 0;
}

.account-mini-list strong {
    display: block;
    font-size: 14px;
    color: var(--st-ink);
}

.account-mini-list small {
    color: var(--st-muted);
    font-size: 12px;
}

.account-shortcuts {
    display: grid;
    gap: 2px;
    padding: 10px;
}

.account-shortcuts a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--st-ink);
    text-decoration: none;
}

.account-shortcuts a i {
    width: 18px;
    color: var(--st-navy);
}

.account-shortcuts a:hover {
    background: var(--st-soft);
    color: var(--st-navy);
}

/* order history */
.account-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.account-tabs a {
    padding: 8px 14px;
    border-radius: 99px;
    background: var(--st-soft);
    font-size: 13px;
    font-weight: 700;
    color: #4a4f5c;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.account-tabs a em {
    margin-left: 4px;
    font-style: normal;
    opacity: .7;
}

.account-tabs a:hover {
    color: var(--st-navy);
}

.account-tabs a.is-active {
    background: var(--st-navy);
    color: #fff;
}

.account-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--st-line);
    border-radius: 12px;
    background: #fff;
    color: var(--st-muted);
}

.account-search:focus-within {
    border-color: var(--st-navy);
}

.account-search input {
    width: 180px;
    border: 0;
    outline: none;
    background: none;
    font-size: 13.5px;
}

.account-order-card {
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    transition: border-color .2s, box-shadow .2s;
}

.account-order-card:hover {
    border-color: rgba(1, 47, 123, .2);
    box-shadow: 0 16px 30px -26px rgba(1, 47, 123, .7);
}

.account-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.account-order-top strong {
    font-size: 15px;
    color: var(--st-ink);
}

.account-order-top small {
    display: block;
    font-size: 12.5px;
    color: var(--st-muted);
}

.account-order-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

.account-order-thumbs {
    display: flex;
    gap: 6px;
    margin-right: auto;
}

.account-order-thumbs img,
.account-order-thumbs span {
    width: 54px;
    height: 54px;
    border: 1px solid var(--st-line);
    border-radius: 12px;
    background: var(--st-soft);
    object-fit: cover;
}

.account-order-thumbs span {
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--st-muted);
}

.account-order-sum small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.account-order-sum strong {
    font-size: 17px;
    color: var(--st-navy);
}

/* one order */
.account-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.account-order-head h2 {
    margin: 8px 0 2px;
    font-size: 22px;
    font-weight: 700;
    color: var(--st-ink);
}

.account-order-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--st-muted);
}

.account-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--st-line);
    scroll-margin-top: 100px;
}

.account-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.account-item > img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: var(--st-soft);
    object-fit: cover;
}

.account-item-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.account-item-info h4 a {
    color: var(--st-ink);
    text-decoration: none;
}

.account-item-info h4 a:hover {
    color: var(--st-navy);
}

.account-item-info p {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--st-muted);
}

.account-item-info > span {
    font-size: 13px;
    color: var(--st-muted);
}

.account-item-total {
    font-size: 15px;
    color: var(--st-navy);
}

.account-review {
    grid-column: 2 / -1;
}

.account-review-form summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #fbf3e4;
    color: #8a6420;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    transition: background .2s;
}

.account-review-form summary::-webkit-details-marker {
    display: none;
}

.account-review-form summary:hover {
    background: #f6e8cd;
}

.account-review-form[open] summary {
    margin-bottom: 10px;
}

.account-review-form form {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--st-soft);
}

.account-review-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--st-ink);
}

.account-review-form .review-textarea {
    background: #fff;
}

.account-review-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 10px;
}

.account-review-actions small {
    font-size: 12px;
    color: var(--st-muted);
}

.account-review-done {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--st-soft);
    font-size: 13px;
    color: var(--st-muted);
}

.account-review-done .review-stars {
    color: #f5a623;
}

.account-review-done em {
    font-style: normal;
    font-weight: 700;
    color: #9a6206;
}

.account-review-done em.is-live {
    color: var(--st-ok);
}

.account-field-error {
    margin: -4px 0 8px;
    font-size: 13px;
    color: var(--st-danger);
}

.account-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--st-muted);
}

.account-summary strong {
    color: var(--st-ink);
    text-align: right;
}

.account-summary .is-discount {
    color: var(--st-ok);
}

.account-summary .account-summary-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--st-line);
    font-weight: 700;
    color: var(--st-ink);
}

.account-summary-total strong {
    font-size: 20px;
    color: var(--st-navy);
}

.account-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--st-soft);
    font-size: 13.5px;
}

.account-note p {
    margin: 2px 0 0;
    color: #555b6a;
}

.account-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
}

/* addresses */
.address-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    background: #fff;
    transition: box-shadow .2s;
}

.address-card.is-default {
    border-color: var(--st-navy);
    box-shadow: 0 0 0 1px var(--st-navy), 0 16px 30px -26px rgba(1, 47, 123, .8);
}

.address-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.address-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--st-soft);
    font-size: 12px;
    font-weight: 700;
    color: var(--st-navy);
}

.address-default {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--st-ok);
}

.address-card > strong {
    font-size: 15px;
    color: var(--st-ink);
}

.address-card p {
    margin: 6px 0 14px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #555b6a;
}

.address-card p span {
    display: block;
    margin-top: 4px;
    color: var(--st-muted);
}

.address-card p span i {
    width: 16px;
    color: var(--st-navy);
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--st-line);
}

.address-actions a,
.address-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
}

.address-actions .is-danger {
    color: var(--st-danger);
}

.address-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 200px;
    border: 2px dashed rgba(1, 47, 123, .18);
    border-radius: 18px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.address-add i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--st-soft);
}

.address-add:hover {
    border-color: var(--st-navy);
    background: #fafbff;
    color: var(--st-navy);
}

.address-label-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-form .address-label-pick label {
    margin: 0;
    cursor: pointer;
}

.address-label-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.address-label-pick span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--st-line);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #4a4f5c;
    transition: .2s;
}

.address-label-pick input:checked + span {
    border-color: var(--st-navy);
    background: var(--st-navy);
    color: #fff;
}

.address-label-pick input:focus-visible + span {
    outline: 2px solid #3c63b8;
    outline-offset: 2px;
}

.account-form .account-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.account-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--st-navy);
}

.account-check-note {
    margin: 18px 0 0;
    font-size: 13.5px;
    color: var(--st-ok);
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* profile */
.profile-photo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-form .profile-photo-actions label {
    display: inline-flex;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.profile-photo small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--st-muted);
}

/* checkout: the order-updates email line, then saved addresses (pick one, or "Enter another address" for the form) */
.checkout-contact {
    margin-bottom: 18px;
}

.checkout-contact-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--st-soft);
    font-size: 14px;
    color: var(--st-muted);
}

.checkout-contact-line > i {
    color: var(--st-navy);
}

.checkout-contact-line strong {
    font-weight: 700;
    color: var(--st-ink);
    overflow-wrap: anywhere;
}

.checkout-link-btn {
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-saved {
    margin-bottom: 20px;
}

.checkout-saved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.checkout-saved-head a {
    font-size: 13px;
    font-weight: 600;
    color: var(--st-navy);
}

.checkout-saved-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.checkout-box .checkout-saved-item {
    position: relative;
    display: block;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkout-saved-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-saved-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 14px 44px 14px 14px;
    border: 1px solid var(--st-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

/* the radio dot */
.checkout-saved-card::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid #c9cedb;
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.checkout-saved-item:hover .checkout-saved-card {
    border-color: rgba(1, 47, 123, .35);
}

.checkout-saved-item input:checked + .checkout-saved-card {
    border-color: var(--st-navy);
    background: #f7f9ff;
    box-shadow: 0 0 0 1px var(--st-navy);
}

.checkout-saved-item input:checked + .checkout-saved-card::after {
    border-color: var(--st-navy);
    background: var(--st-navy);
    box-shadow: inset 0 0 0 3px #fff;
}

.checkout-saved-item input:focus-visible + .checkout-saved-card {
    outline: 2px solid var(--st-navy);
    outline-offset: 2px;
}

.checkout-saved-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 6px;
}

.checkout-saved-card strong {
    font-size: 14px;
    color: var(--st-ink);
}

.checkout-saved-card small {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--st-muted);
}

.checkout-saved-card small i {
    margin-right: 4px;
    font-size: 11px;
    color: var(--st-navy);
}

/* "Enter another address" */
.checkout-saved-item.is-new .checkout-saved-card {
    justify-content: center;
    border-style: dashed;
    border-color: #cfd5e3;
}

.checkout-saved-item.is-new:hover .checkout-saved-card {
    border-color: rgba(1, 47, 123, .45);
}

.checkout-saved-item.is-new input:checked + .checkout-saved-card {
    border-style: solid;
}

.checkout-saved-item.is-new .checkout-saved-card > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--st-soft);
    color: var(--st-navy);
}

/* the address form (hidden while a saved address is picked) and the notes under it */
.checkout-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-notes {
    margin-top: 16px;
}

@media (max-width: 991.98px) {
    .account-side {
        position: static;
        padding: 12px;
        border-radius: 20px;
    }

    .account-user {
        padding: 2px 4px 12px;
    }

    /* the menu becomes a row of scrollable tabs */
    .account-nav {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav a,
    .account-nav button {
        flex: 0 0 auto;
        width: auto;
        padding: 9px 14px;
        white-space: nowrap;
        font-size: 13.5px;
    }

    .account-nav form {
        margin: 0;
        padding: 0;
        border: 0;
    }

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

@media (max-width: 575.98px) {
    .account-welcome {
        padding: 22px 20px;
    }

    .account-welcome h2 {
        font-size: 20px;
    }

    .account-stat {
        padding: 12px;
        gap: 10px;
    }

    .account-stat > i {
        flex-basis: 36px;
        height: 36px;
    }

    .account-stat strong {
        font-size: 17px;
    }

    .account-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        scrollbar-width: none;
    }

    .account-search,
    .account-search input {
        width: 100%;
    }

    .account-order-thumbs img,
    .account-order-thumbs span {
        width: 46px;
        height: 46px;
    }

    .account-item {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .account-item > img {
        width: 60px;
        height: 60px;
    }

    .account-item-total {
        grid-column: 2;
    }

    .account-review {
        grid-column: 1 / -1;
    }

    .account-order-actions,
    .account-order-actions a {
        width: 100%;
    }
}

/* =========================================================
   Order placed (pages/order-success): slim title + steps,
   a confirmation card, then status / payment / delivery
   beside the order summary.
   ========================================================= */
.page-order-done .checkout-section {
    padding-bottom: 70px;
}

.done-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 42px 28px 34px;
    border: 1px solid rgba(1, 47, 123, .07);
    border-radius: 26px;
    background:
        radial-gradient(560px 240px at 50% -60px, rgba(60, 99, 184, .16), transparent 70%),
        linear-gradient(180deg, #fff 40%, #fafbff);
    box-shadow: 0 2px 6px rgba(1, 23, 74, .04), 0 30px 60px -32px rgba(1, 23, 74, .3);
    text-align: center;
}

/* a few confetti dots around the tick */
.done-hero::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 300px;
    height: 120px;
    background:
        radial-gradient(circle at 12% 30%, var(--st-gold) 0 4px, transparent 5px),
        radial-gradient(circle at 24% 80%, #3c63b8 0 3px, transparent 4px),
        radial-gradient(circle at 33% 6%, var(--st-ok) 0 3px, transparent 4px),
        radial-gradient(circle at 69% 10%, #3c63b8 0 3.5px, transparent 4.5px),
        radial-gradient(circle at 82% 70%, var(--st-gold) 0 3px, transparent 4px),
        radial-gradient(circle at 91% 24%, var(--st-ok) 0 2.5px, transparent 3.5px);
    opacity: .55;
    transform: translateX(-50%);
    pointer-events: none;
    animation: doneConfetti .9s .2s ease-out both;
}

.done-check {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e8e5a, #3cbf82);
    box-shadow: 0 0 0 10px rgba(30, 142, 90, .1), 0 18px 34px -14px rgba(30, 142, 90, .75);
    animation: stPop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.done-check::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(30, 142, 90, .35);
    border-radius: 50%;
    opacity: 0;
    animation: donePulse 1.8s ease-out .6s 2;
}

.done-check svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.done-check path {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    animation: doneDraw .45s .35s ease-out forwards;
}

@keyframes doneDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes donePulse {
    from { opacity: 1; transform: scale(.9); }
    to { opacity: 0; transform: scale(1.45); }
}

@keyframes doneConfetti {
    from { opacity: 0; transform: translateX(-50%) scale(.6); }
    to { opacity: .55; transform: translateX(-50%) scale(1); }
}

.done-hero h2 {
    margin: 0 0 8px;
    font-family: "Quicksand", sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--st-ink);
}

.done-hero h2 em {
    padding-right: 2px;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(100deg, var(--st-navy) 10%, #3c63b8 50%, var(--st-gold) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.done-hero > p {
    max-width: 520px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--st-muted);
}

/* order number · date · total · payment */
.done-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 840px;
    margin: 26px auto 0;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    background: #fff;
}

.done-facts > div {
    padding: 14px 16px;
}

.done-facts > div + div {
    border-left: 1px solid var(--st-line);
}

.done-facts dt {
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.done-facts dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--st-ink);
    overflow-wrap: anywhere;
}

.done-copy {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--st-soft);
    color: var(--st-navy);
    font-size: 13px;
    transition: background .2s, color .2s;
}

.done-copy:hover {
    background: #e3eaf8;
}

.done-copy.is-copied {
    background: #e5f6ee;
    color: var(--st-ok);
}

.done-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.done-actions .cart-btn-primary {
    min-width: 230px;
}

.done-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 24px;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: #fff;
    color: var(--st-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s, color .2s, transform .25s;
}

.done-btn-outline:hover {
    border-color: var(--st-navy);
    color: var(--st-navy);
    transform: translateY(-2px);
}

/* status, payment and delivery cards */
.done-card {
    padding: 24px;
    border: 1px solid rgba(1, 47, 123, .07);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(1, 23, 74, .04), 0 24px 50px -36px rgba(1, 23, 74, .3);
}

.done-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.done-card-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--st-ink);
}

.done-card-head h3 i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--st-soft);
    color: var(--st-navy);
    font-size: 14px;
}

.done-eta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    background: #eef3fd;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--st-navy);
}

.done-muted {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--st-muted);
}

.done-muted a,
.done-help a {
    font-weight: 700;
    color: var(--st-navy);
}

.done-follow {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--st-line);
}

/* delivery | payment, with the customer's note across the bottom */
.done-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
}

.done-split-col + .done-split-col {
    padding-left: 26px;
    border-left: 1px solid var(--st-line);
}

.done-split .done-note {
    grid-column: 1 / -1;
    margin-top: 18px;
}

.done-pay {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--st-ink);
}

.done-pay strong {
    font-size: 20px;
    color: var(--st-navy);
}

.done-bank {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--st-soft);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--st-ink);
}

.done-address {
    margin: 0 0 12px;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
    color: #4a4f5e;
}

.done-address strong {
    display: block;
    font-size: 15px;
    color: var(--st-ink);
}

.done-contact {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: #4a4f5e;
}

.done-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.done-contact li + li {
    margin-top: 4px;
}

.done-contact i {
    flex: none;
    width: 14px;
    font-size: 12px;
    color: var(--st-navy);
}

.done-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-left: 3px solid var(--st-gold);
    border-radius: 0 10px 10px 0;
    background: #fbf7ef;
    font-size: 13px;
}

.done-note strong {
    display: block;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a6a35;
}

.done-note p {
    margin: 2px 0 0;
    color: var(--st-ink);
}

/* order summary */
.page-order-done .checkout-summary {
    height: auto;
}

.done-count {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--st-soft);
    font-size: 12px;
    font-weight: 700;
    color: var(--st-navy);
}

.done-print {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    margin-top: 16px;
    border: 1px dashed #cfd5e3;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--st-navy);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.done-print:hover {
    border-style: solid;
    border-color: var(--st-navy);
    background: #f7f9ff;
    color: var(--st-navy);
}

.done-help {
    margin: 28px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--st-muted);
}

.done-help i {
    margin-right: 6px;
    color: var(--st-navy);
}

@media (max-width: 767.98px) {
    .done-hero {
        padding: 34px 18px 26px;
        border-radius: 22px;
    }

    .done-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .done-facts > div:nth-child(odd) {
        border-left: 0;
    }

    .done-facts > div:nth-child(n+3) {
        border-top: 1px solid var(--st-line);
    }

    .done-actions > a {
        flex: 1 1 100%;
    }

    .done-card {
        padding: 20px 18px;
        border-radius: 20px;
    }
}

/* phones: the facts become label / value rows, and delivery sits above payment */
@media (max-width: 575.98px) {
    .done-facts {
        grid-template-columns: 1fr;
    }

    .done-facts > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 14px;
    }

    .done-facts > div + div {
        border-top: 1px solid var(--st-line);
        border-left: 0;
    }

    .done-facts dt {
        margin: 0;
        text-align: left;
    }

    .done-facts dd {
        justify-content: flex-end;
        font-size: 14px;
        text-align: right;
    }

    .done-split {
        grid-template-columns: 1fr;
    }

    .done-split-col + .done-split-col {
        margin-top: 18px;
        padding: 18px 0 0;
        border-top: 1px solid var(--st-line);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .done-hero::before,
    .done-check,
    .done-check::after,
    .done-check path {
        animation: none;
    }

    .done-check path {
        stroke-dashoffset: 0;
    }
}

/* =========================================================
   Virtual try-on (Genlook): product page buttons + fitting room
   ========================================================= */
.tryon-trigger {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 7px 0 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 99px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    backdrop-filter: blur(10px) saturate(1.4);
    color: var(--st-navy-deep);
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 16px 30px -14px rgba(0, 23, 74, .6);
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s;
}

.tryon-trigger:hover,
.tryon-trigger:focus-visible {
    background: #fff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 22px 36px -16px rgba(0, 23, 74, .7);
}

.tryon-trigger > i {
    color: var(--st-gold);
}

.tryon-trigger-tag {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy));
    color: #fff;
    font-size: 11px;
    letter-spacing: .14em;
}

.tryon-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px 12px 12px;
    border: 1px dashed rgba(1, 47, 123, .3);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(1, 47, 123, .05), rgba(201, 164, 106, .12));
    color: var(--st-ink);
    font-family: "Quicksand", sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.tryon-cta:hover,
.tryon-cta:focus-visible {
    border-color: var(--st-navy);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -18px rgba(1, 47, 123, .6);
}

.tryon-cta-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy));
    color: var(--st-gold);
    font-size: 18px;
}

.tryon-cta-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tryon-cta-text strong {
    font-size: 15px;
    color: var(--st-navy-deep);
}

.tryon-cta-text small {
    font-size: 13px;
    color: var(--st-muted);
}

.tryon-cta-arrow {
    color: var(--st-navy);
    transition: transform .25s;
}

.tryon-cta:hover .tryon-cta-arrow {
    transform: translateX(4px);
}

.tryon-admin-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px dashed #dcc08a;
    border-radius: 14px;
    background: #fffaf0;
    color: #6b5420;
    font-size: 13.5px;
    line-height: 1.5;
}

.tryon-admin-note > i {
    margin-top: 3px;
    color: var(--st-gold);
}

.tryon-admin-note a {
    color: var(--st-navy);
    font-weight: 700;
    text-decoration: underline;
}

.tryon-admin-note small {
    display: block;
    color: #8f7849;
}

.tryon-flash {
    border-radius: 16px;
    animation: tryonFlash 1.8s ease;
}

@keyframes tryonFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 106, 0); }
    20%, 55% { box-shadow: 0 0 0 7px rgba(201, 164, 106, .45); }
}

/* ---------- the fitting room dialog ---------- */
html.tryon-open {
    overflow: hidden;
}

.tryon {
    width: min(940px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: var(--st-ink);
    box-shadow: 0 40px 90px -30px rgba(0, 23, 74, .6);
    overflow: hidden;
}

.tryon::backdrop {
    background: rgba(0, 16, 48, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.tryon[open] {
    animation: tryonIn .35s cubic-bezier(.2, .8, .2, 1);
}

@keyframes tryonIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
}

.tryon-panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: "Quicksand", sans-serif;
}

.tryon-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--st-line);
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.tryon-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--st-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tryon-head h2 {
    margin: 4px 0 0;
    color: var(--st-navy-deep);
    font-family: "Playfair Display", serif;
    font-size: 24px;
    line-height: 1.2;
}

.tryon-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid var(--st-line);
    border-radius: 50%;
    background: #fff;
    color: var(--st-ink);
    transition: background .2s, transform .25s;
}

.tryon-close:hover {
    background: var(--st-soft);
    transform: rotate(90deg);
}

.tryon-test {
    margin: 0;
    padding: 10px 24px;
    border-bottom: 1px solid #f1e0b8;
    background: #fff8e8;
    color: #7a5a1e;
    font-size: 13px;
    font-weight: 600;
}

.tryon-step {
    padding: 24px;
}

.tryon .cart-btn-primary {
    border: 0;
    cursor: pointer;
}

.tryon .cart-btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tryon-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 54px;
    padding: 0 22px;
    border: 1.5px solid var(--st-navy);
    border-radius: 16px;
    background: #fff;
    color: var(--st-navy);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.tryon-btn-outline:hover,
.tryon-btn-outline[aria-pressed="true"] {
    background: var(--st-navy);
    color: #fff;
}

.tryon-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--st-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tryon-link:hover {
    color: var(--st-navy-deep);
}

/* step 1: choose a photo */
.tryon-start {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.tryon-product {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--st-line);
    border-radius: 20px;
    background: var(--st-soft);
}

.tryon-product img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.tryon-product figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px 14px;
}

.tryon-product figcaption span {
    color: var(--st-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tryon-product figcaption strong {
    color: var(--st-ink);
    font-size: 16px;
}

.tryon-product figcaption em {
    color: var(--st-navy);
    font-style: normal;
    font-weight: 700;
}

.tryon-start-main h3,
.tryon-side h3 {
    margin: 0 0 6px;
    color: var(--st-navy-deep);
    font-family: "Playfair Display", serif;
    font-size: 27px;
    line-height: 1.2;
}

.tryon-lead {
    margin: 0 0 18px;
    color: var(--st-muted);
    font-size: 15px;
}

.tryon-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fdecea;
    color: #8a2a20;
    font-size: 14px;
    font-weight: 600;
}

.tryon-message > i {
    margin-top: 3px;
}

.tryon-message.is-ok {
    background: #e7f6ee;
    color: #17603f;
}

.tryon-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.tryon-saved {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px 10px 10px 12px;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    background: var(--st-soft);
}

.tryon-saved-pic {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 52px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: #e6eaf4;
    color: var(--st-navy);
}

.tryon-saved-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tryon-saved-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tryon-saved-text small {
    color: var(--st-muted);
}

.tryon-saved .cart-btn-primary {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
}

.tryon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tryon-left {
    margin: 12px 0 0;
    color: var(--st-muted);
    font-size: 13px;
    font-weight: 600;
}

.tryon-left.is-out {
    color: var(--st-danger);
}

.tryon-tips {
    display: grid;
    gap: 9px;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--st-line);
    list-style: none;
}

.tryon-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.tryon-tips i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(1, 47, 123, .07);
    color: var(--st-navy);
    font-size: 13px;
}

.tryon-privacy {
    display: flex;
    gap: 10px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--st-soft);
    color: var(--st-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tryon-privacy > i {
    margin-top: 3px;
    color: var(--st-ok);
}

/* steps 2 and 3: the picture beside the words */
.tryon-working,
.tryon-result {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.tryon-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .7), transparent 60%),
        linear-gradient(160deg, #e7ecf7, #f6f1e7);
}

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

.tryon-working .tryon-frame img {
    filter: saturate(.8) brightness(.9);
}

.tryon-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(201, 164, 106, .55) 50%, transparent 62%);
    background-size: 100% 260%;
    animation: tryonScan 2.4s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes tryonScan {
    from { background-position: 0 100%; }
    to { background-position: 0 0; }
}

.tryon-intro {
    margin: 0 0 20px;
    color: var(--st-muted);
}

.tryon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--st-line);
    border-radius: 99px;
    background: var(--st-soft);
    font-size: 14px;
}

.tryon-chip img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.tryon-status {
    min-height: 1.3em;
    margin: 20px 0 12px;
    color: var(--st-navy-deep);
    font-family: "Playfair Display", serif;
    font-size: 24px;
    line-height: 1.3;
}

.tryon-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--st-line);
}

.tryon-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--st-navy), #3c63b8, var(--st-gold));
    transition: width .3s ease;
}

.tryon-wait {
    display: block;
    margin: 12px 0 18px;
    color: var(--st-muted);
    font-size: 13px;
}

.tryon-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(0, 23, 74, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.tryon-result-actions {
    display: grid;
    gap: 10px;
}

.tryon-result-actions .cart-btn-primary {
    width: 100%;
}

.tryon-result-row {
    display: flex;
    gap: 10px;
}

.tryon-result-row > * {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 14px;
}

.tryon-result-actions .tryon-link {
    justify-self: start;
    margin-top: 6px;
}

.tryon-test-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff8e8;
    color: #7a5a1e;
    font-size: 13px;
}

.tryon-note {
    margin: 18px 0 0;
    color: var(--st-muted);
    font-size: 12.5px;
}

@media (max-width: 767.98px) {
    .tryon-start {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tryon-product {
        display: flex;
        align-items: center;
    }

    .tryon-product img {
        width: 78px;
        flex-shrink: 0;
    }

    .tryon-working,
    .tryon-result {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tryon-frame {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .tryon {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .tryon-panel {
        height: 100%;
        max-height: 100dvh;
    }

    .tryon-head {
        padding: 14px 16px 12px;
    }

    .tryon-head h2 {
        font-size: 20px;
    }

    .tryon-step {
        padding: 18px 16px 24px;
    }

    .tryon-start-main h3,
    .tryon-side h3 {
        font-size: 23px;
    }

    .tryon-actions > * {
        flex: 1 1 100%;
    }

    .tryon-frame {
        max-width: 330px;
    }

    .tryon-status {
        font-size: 21px;
    }

    .tryon-trigger {
        bottom: 14px;
        height: 42px;
        font-size: 14px;
    }

    .tryon-trigger-tag {
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tryon[open],
    .tryon-scan,
    .tryon-flash {
        animation: none;
    }
}

/* Product page: delivery / returns / payment in one row */
.page-product-detail .detail-extra {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.page-product-detail .detail-extra p {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.35;
}

@media (min-width: 576px) {
    .page-product-detail .detail-extra p {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .page-product-detail .detail-extra {
        gap: 8px;
    }

    .page-product-detail .detail-extra p {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 12px;
    }
}

/* Product page: "Customise it" card (opens the customise page) */
.cz-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 12px 18px 12px 12px;
    border: 1px solid rgba(201, 164, 106, .5);
    border-radius: 18px;
    background: linear-gradient(120deg, #fbf7ef, #fff 75%);
    color: var(--st-ink);
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.cz-cta:hover,
.cz-cta:focus-visible {
    border-color: var(--st-gold);
    color: var(--st-ink);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -18px rgba(150, 110, 40, .55);
}

.cz-cta-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--st-navy-deep), var(--st-navy));
    color: #fff;
    font-size: 17px;
}

.cz-cta-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.cz-cta-text strong {
    color: var(--st-navy-deep);
    font-size: 15px;
}

.cz-cta-text small {
    color: var(--st-muted);
    font-size: 13px;
}

.cz-cta-arrow {
    color: var(--st-navy);
    transition: transform .25s;
}

.cz-cta:hover .cz-cta-arrow {
    transform: translateX(4px);
}

/* Customise page */
.page-customize .cz-preview {
    margin-top: 0;
}

.customize-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--st-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.customize-back:hover {
    color: var(--st-navy-deep);
}

.customize-back i {
    transition: transform .2s;
}

.customize-back:hover i {
    transform: translateX(-3px);
}

.customize-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.customize-head img {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: var(--st-soft);
    object-fit: cover;
}

.page-customize .customize-head .detail-title {
    margin: 2px 0 4px;
    font-size: 30px;
}

.page-customize .customize-head .detail-price {
    margin: 0;
    font-size: 20px;
}

@media (max-width: 575.98px) {
    .customize-head img {
        width: 60px;
        height: 60px;
    }

    .page-customize .customize-head .detail-title {
        font-size: 23px;
    }
}

/* Customise page: preview with the try-on button under it, kept in view together on desktop */
@media (min-width: 992px) {
    .customize-preview-col {
        position: sticky;
        top: 100px;
    }

    .customize-preview-col .cz-preview {
        position: static;
    }
}

.tryon-design-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #8a6a2e;
    font-size: 12.5px;
    font-weight: 700;
}


/* ---------- Virtual Try-On / Customise badges on product cards (bottom-left of the photo) ---------- */
.feature-badges {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 14px rgba(1, 23, 74, .15);
    color: var(--navy, #012f7b);
    font: 700 11.5px/1 "Quicksand", sans-serif;
    white-space: nowrap;
    transition: background .3s, color .3s;
}

.feature-badge i {
    font-size: 11px;
    color: var(--gold, #c9a46a);
}

.feature-badge:hover,
.feature-badge:focus-visible {
    background: var(--navy, #012f7b);
    color: #fff;
}

@media (max-width: 575.98px) {
    /* small cards: icons only */
    .feature-badge {
        justify-content: center;
        width: 28px;
        padding: 0;
    }

    .feature-badge span {
        display: none;
    }
}
