/* =========================================================================
   Components
   ========================================================================= */

/* ---------------------------------------------------------------- buttons */
.btn {
    --btn-bg: var(--hk-ink); --btn-fg: #fff; --btn-border: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 48px; padding: 0 var(--sp-6);
    border-radius: var(--r-pill); border: 1.5px solid var(--btn-border);
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: var(--fs-base); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
    transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), color var(--dur-2);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--primary { --btn-bg: var(--hk-ink); }
.btn--primary:hover { --btn-bg: #1b161f; }
.btn--accent { --btn-bg: var(--hk-pink-deep); }
.btn--accent:hover { --btn-bg: #b02f6c; }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--hk-ink); --btn-border: var(--hk-ink); }
.btn--secondary:hover { --btn-bg: var(--hk-ink); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--hk-ink); }
.btn--light:hover { --btn-bg: var(--hk-pink-tint); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--hk-ink); --btn-border: var(--hk-line-strong); }
.btn--ghost:hover { --btn-bg: var(--hk-bg-soft); box-shadow: none; }
.btn--whatsapp { --btn-bg: var(--hk-whatsapp); --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: var(--hk-whatsapp-hover); }
.btn--whatsapp-text { color: var(--hk-whatsapp); }
.btn--lg { min-height: 56px; font-size: var(--fs-md); padding: 0 var(--sp-8); }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }
.btn .mud-icon-root { font-size: 1.15rem; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-btn { background: none; border: 0; padding: 4px 0; color: var(--hk-muted); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--hk-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--hk-ink); white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--hk-ink);
    text-decoration: none; transition: background-color var(--dur-1);
}
.icon-btn:hover { background: var(--hk-bg-soft); }
.icon-btn--outline { border: 1px solid var(--hk-line-strong); background: #fff; }
.icon-btn__badge {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--r-pill); background: var(--hk-pink-deep); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.icon-btn__badge--soft { background: var(--hk-ink); }
.icon-btn__badge.is-bumping { animation: bump var(--dur-3) var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- chips & badges */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border: 1px solid var(--hk-line-strong); border-radius: var(--r-pill); background: #fff;
    font-size: var(--fs-sm); font-weight: 500; color: var(--hk-ink); text-decoration: none; white-space: nowrap;
    transition: border-color var(--dur-1), background-color var(--dur-1);
}
.chip:hover { border-color: var(--hk-ink); }
.chip.is-active { background: var(--hk-ink); color: #fff; border-color: var(--hk-ink); }
.chip__remove { border: 0; background: transparent; padding: 0; margin-left: 2px; color: inherit; line-height: 1; font-size: 16px; }

.badge {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--hk-ink);
}
.badge--new { background: var(--hk-green-soft); color: var(--hk-green-deep); }
.badge--sale { background: var(--hk-pink-deep); color: #fff; }
.badge--neutral { background: rgba(255,255,255,.92); color: var(--hk-muted); }
.badge--blue { background: var(--hk-blue-soft); color: var(--hk-blue-deep); }
.badge--orange { background: var(--hk-orange-soft); color: var(--hk-orange-deep); }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
    font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge--success { background: var(--hk-success-soft); color: var(--hk-success); }
.status-badge--info { background: var(--hk-blue-soft); color: var(--hk-blue-deep); }
.status-badge--progress { background: var(--hk-green-soft); color: var(--hk-green-deep); }
.status-badge--warning { background: var(--hk-warning-soft); color: var(--hk-warning); }
.status-badge--danger { background: var(--hk-danger-soft); color: var(--hk-danger); }
.status-badge--neutral { background: #F1EEEB; color: var(--hk-muted); }

/* ---------------------------------------------------------------- price & rating */
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; }
.price__from { font-size: var(--fs-xs); color: var(--hk-muted); }
.price__current { font-weight: 700; color: var(--hk-ink); }
.price--sale .price__current { color: var(--hk-pink-deep); }
.price__was { font-size: .85em; color: var(--hk-subtle); }
.price__off { font-size: var(--fs-xs); font-weight: 700; color: var(--hk-pink-deep); background: var(--hk-pink-soft); padding: 1px 8px; border-radius: var(--r-pill); }
.price--small { font-size: var(--fs-sm); }
.price--large { font-size: 1.5rem; }
.price--large .price__was { font-size: 1rem; }

.rating { display: inline-flex; align-items: center; gap: 1px; font-size: 1rem; line-height: 1; }
.rating--small { font-size: .8rem; }
.rating__star {
    background: linear-gradient(90deg, var(--hk-orange) var(--fill), #E3DDD7 var(--fill));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating__count { margin-left: 6px; font-size: var(--fs-xs); color: var(--hk-muted); }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: var(--sp-4); }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--hk-ink); }
.field__label .optional { font-weight: 400; color: var(--hk-muted); }
.field__hint { font-size: var(--fs-xs); color: var(--hk-muted); }
.input, .select, .textarea {
    width: 100%; min-height: 50px; padding: 12px 16px;
    border: 1.5px solid var(--hk-line-strong); border-radius: var(--r-md); background: #fff;
    font-size: 16px; /* prevents iOS zoom */
    transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232B2530' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--hk-subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--hk-ink); box-shadow: 0 0 0 3px var(--hk-pink-soft); }
.input.invalid, .select.invalid, .textarea.invalid, .input[aria-invalid="true"] { border-color: var(--hk-danger); }
.validation-message, .form-error { color: var(--hk-danger); font-size: var(--fs-sm); margin: 4px 0 0; }
.form-error { display: flex; gap: 8px; align-items: flex-start; }
.alert {
    display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--r-md);
    background: var(--hk-bg-soft); border: 1px solid var(--hk-line); font-size: var(--fs-sm); margin-bottom: var(--sp-4);
}
.alert ul { margin: 4px 0 0; padding-left: 1.1em; }
.alert--error { background: var(--hk-danger-soft); border-color: #F3C5BF; color: #7A1B12; }
.alert--success { background: var(--hk-success-soft); border-color: #C8E3C3; color: #1E5221; }
.alert--info { background: var(--hk-blue-tint); border-color: var(--hk-blue-soft); color: #0C4E64; }
.alert--warning { background: var(--hk-warning-soft); border-color: #F2D9B0; color: #6B3F00; }
.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hk-ink); flex-shrink: 0; }

/* Option cards (delivery / payment selectors) */
.option-card {
    position: relative; display: flex; gap: var(--sp-3); align-items: flex-start; width: 100%;
    padding: var(--sp-4); border: 1.5px solid var(--hk-line-strong); border-radius: var(--r-md); background: #fff;
    text-align: left; cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.option-card + .option-card { margin-top: var(--sp-3); }
.option-card:hover { border-color: var(--hk-subtle); }
.option-card.is-selected { border-color: var(--hk-ink); background: var(--hk-bg-soft); box-shadow: inset 0 0 0 1px var(--hk-ink); }
.option-card.is-disabled { opacity: .55; cursor: not-allowed; background: var(--hk-bg-soft); }
.option-card__radio { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; border: 2px solid var(--hk-line-strong); display: grid; place-items: center; }
.option-card.is-selected .option-card__radio { border-color: var(--hk-ink); }
.option-card.is-selected .option-card__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hk-ink); }
.option-card__body { flex: 1; display: grid; gap: 2px; }
.option-card__title { font-weight: 600; }
.option-card__desc { font-size: var(--fs-sm); color: var(--hk-muted); }
.option-card__aside { font-weight: 700; white-space: nowrap; }
.option-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- quantity */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--hk-line-strong); border-radius: var(--r-pill); background: #fff; height: 48px; }
.qty__btn { width: 44px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--hk-ink); }
.qty__btn:hover:not(:disabled) { background: var(--hk-bg-soft); }
.qty__btn:disabled { color: #C9C2BC; cursor: not-allowed; }
.qty__value { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty--small { height: 36px; }
.qty--small .qty__btn { width: 34px; }

/* ---------------------------------------------------------------- wishlist button */
.wish-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 40px; height: 40px; border-radius: var(--r-pill); border: 0; background: rgba(255,255,255,.94); color: var(--hk-ink);
    box-shadow: var(--sh-1); transition: transform var(--dur-1), color var(--dur-1), background-color var(--dur-1);
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.is-saved { color: var(--hk-pink-deep); }
.wish-btn.is-popping { animation: pop var(--dur-3) var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.wish-btn--large { width: auto; height: 56px; padding: 0 var(--sp-5); border: 1.5px solid var(--hk-line-strong); box-shadow: none; background: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- product card */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6) var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-5); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-grid--dense { }
@media (min-width: 1200px) { .product-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.product-card__media {
    position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: var(--r-lg); background: var(--hk-bg-soft);
}
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-3) var(--ease), transform 700ms var(--ease); }
.product-card__img--hover { opacity: 0; }
@media (hover: hover) {
    .product-card:hover .product-card__img { transform: scale(1.035); }
    .product-card:hover .product-card__img--hover { opacity: 1; }
}
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.product-card__wish { position: absolute; top: 10px; right: 10px; z-index: 2; }
.product-card__body { display: grid; gap: 4px; padding: var(--sp-3) 2px 0; }
.product-card__name { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600; line-height: 1.35; margin: 0; }
.product-card__name a { text-decoration: none; }
.product-card__name a:hover { text-decoration: underline; }
.product-card__visual { position: relative; }
.product-card__quick {
    display: none; align-items: center; justify-content: center; gap: 6px;
    position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 42px; border-radius: var(--r-pill); border: 0;
    background: rgba(255,255,255,.96); color: var(--hk-ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
    box-shadow: var(--sh-2); opacity: 0; transform: translateY(8px);
    transition: opacity var(--dur-2), transform var(--dur-2) var(--ease), background-color var(--dur-2), color var(--dur-2);
}
.product-card__quick:hover { background: var(--hk-ink); color: #fff; }
@media (hover: hover) and (min-width: 1024px) {
    .product-card__quick { display: flex; }
    .product-card:hover .product-card__quick, .product-card__quick:focus-visible { opacity: 1; transform: translateY(0); }
}
.swatch-dots { display: inline-flex; align-items: center; gap: 4px; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,37,48,.18); }
.swatch-more { font-size: var(--fs-xs); color: var(--hk-muted); }
.stock-note { font-size: var(--fs-xs); font-weight: 600; color: var(--hk-orange-deep); }

/* rails (horizontal product carousels) */
.rail { position: relative; }
.rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: var(--sp-3);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--sp-2);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; }
@media (min-width: 768px) { .rail__track { grid-auto-columns: calc((100% - 2 * var(--sp-5)) / 3.2); gap: var(--sp-5); } }
@media (min-width: 1200px) { .rail__track { grid-auto-columns: calc((100% - 3 * var(--sp-5)) / 4); margin-inline: 0; padding-inline: 0; } }
.rail__nav { position: absolute; top: -72px; right: 0; display: flex; gap: var(--sp-2); }

/* ---------------------------------------------------------------- section header */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.section-header--center { justify-content: center; text-align: center; }
.section-subtitle { margin: var(--sp-2) 0 0; color: var(--hk-muted); max-width: 56ch; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ---------------------------------------------------------------- states */
.empty-state { display: grid; justify-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-12) var(--sp-4); }
.empty-state--compact { padding: var(--sp-8) var(--sp-2); }
.empty-state__icon {
    width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
    background: var(--hk-pink-tint); color: var(--hk-pink-deep); box-shadow: inset 0 0 0 8px #fff, 0 0 0 1px var(--hk-pink-soft);
}
.empty-state__icon .mud-icon-root { font-size: 2rem; }
.empty-state--error .empty-state__icon { background: var(--hk-orange-tint); color: var(--hk-orange-deep); box-shadow: inset 0 0 0 8px #fff, 0 0 0 1px var(--hk-orange-soft); }
.empty-state__title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: var(--fs-xl); font-weight: 600; margin: var(--sp-2) 0 0; }
.empty-state__message { color: var(--hk-muted); max-width: 46ch; margin: 0 0 var(--sp-2); }

.skeleton { display: block; border-radius: var(--r-sm); background: linear-gradient(90deg, #F4EFEA 0%, #FBF8F5 50%, #F4EFEA 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton--media { aspect-ratio: 4/5; border-radius: var(--r-lg); }
.skeleton--line { height: 14px; margin-top: 10px; }
.skeleton--line.short { width: 55%; }
.skeleton--title { height: 32px; width: 70%; margin-bottom: 16px; }
.skeleton--hero { aspect-ratio: 4/5; border-radius: var(--r-lg); }
.skeleton--block { height: 160px; margin-top: 24px; }
.skeleton-card { list-style: none; }

/* ---------------------------------------------------------------- breadcrumbs & pager */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--hk-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hk-line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--hk-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--hk-ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-10); flex-wrap: wrap; }
.pager__btn { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--hk-line); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); background: #fff; }
.pager__btn:hover { border-color: var(--hk-ink); }
.pager__btn.is-current { background: var(--hk-ink); color: #fff; border-color: var(--hk-ink); }
.pager__btn.is-disabled { opacity: .35; pointer-events: none; }
.pager__gap { align-self: center; color: var(--hk-muted); }

/* ---------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0; z-index: 1300; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(32, 26, 36, .42); opacity: 0; transition: opacity var(--dur-2) var(--ease); backdrop-filter: blur(2px); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; width: min(440px, 92vw); background: #fff; display: flex; flex-direction: column;
    box-shadow: var(--sh-3); transition: transform var(--dur-3) var(--ease); outline: none;
}
.drawer--right .drawer__panel { right: 0; transform: translateX(105%); border-radius: var(--r-xl) 0 0 var(--r-xl); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-105%); border-radius: 0 var(--r-xl) var(--r-xl) 0; width: min(380px, 88vw); }
.drawer--bottom .drawer__panel { left: 0; right: 0; top: auto; width: 100%; max-height: 88vh; transform: translateY(105%); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--hk-line); }
.drawer__heading { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: var(--fs-lg); font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-6); overscroll-behavior: contain; }
.drawer__footer { padding: var(--sp-4) var(--sp-6) calc(var(--sp-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--hk-line); background: #fff; display: grid; gap: var(--sp-3); }
.drawer--bottom .drawer__header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--hk-line-strong); }

/* ---------------------------------------------------------------- cart lines */
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--hk-line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__image { display: block; width: 88px; aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; background: var(--hk-bg-soft); }
.cart-line__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.cart-line__name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__options { font-size: var(--fs-sm); color: var(--hk-muted); }
.cart-line__controls { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-2); }
.cart-line__total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line__problem { display: flex; gap: 4px; align-items: center; color: var(--hk-danger); font-size: var(--fs-xs); font-weight: 600; }
.cart-line.has-problem .cart-line__image { outline: 2px solid var(--hk-danger-soft); }
.cart-line--compact { grid-template-columns: 76px 1fr; }
.cart-line--compact .cart-line__image { width: 76px; }
.cart-line--compact .cart-line__total { display: none; }
.cart-drawer__totals { display: grid; gap: 4px; }
.cart-drawer__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.cart-drawer__secondary .btn { padding: 0 var(--sp-2); font-size: var(--fs-sm); }

.summary-row { display: flex; justify-content: space-between; gap: var(--sp-4); font-variant-numeric: tabular-nums; padding: 6px 0; }
.summary-row--strong { font-weight: 700; font-size: var(--fs-md); }
.summary-row--total { font-weight: 700; font-size: var(--fs-lg); border-top: 1px solid var(--hk-line); padding-top: var(--sp-3); margin-top: var(--sp-2); }
.summary-row--discount { color: var(--hk-green-deep); }

.promo-note { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.promo-note--pink { background: var(--hk-pink-tint); color: #7B1E4B; }
.promo-note--green { background: var(--hk-green-tint); color: #2F5310; }
.promo-note--blue { background: var(--hk-blue-tint); color: #0C4E64; }
.promo-note--orange { background: var(--hk-orange-tint); color: #6B3B05; }
.promo-note .code { background: #fff; padding: 1px 6px; border-radius: 4px; }

/* ---------------------------------------------------------------- trust bar */
.trust-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (min-width: 1024px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-bar li { display: flex; gap: var(--sp-3); align-items: center; }
.trust-bar strong { display: block; font-size: var(--fs-sm); }
.trust-bar small { display: block; color: var(--hk-muted); font-size: var(--fs-xs); line-height: 1.4; }
.trust-bar__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.trust-bar__icon--pink { background: var(--hk-pink-soft); color: var(--hk-pink-deep); }
.trust-bar__icon--green { background: var(--hk-green-soft); color: var(--hk-green-deep); }
.trust-bar__icon--blue { background: var(--hk-blue-soft); color: var(--hk-blue-deep); }
.trust-bar__icon--orange { background: var(--hk-orange-soft); color: var(--hk-orange-deep); }
.trust-bar--compact strong { font-size: var(--fs-xs); }
.trust-bar--compact small { display: none; }
.trust-bar--compact .trust-bar__icon { width: 36px; height: 36px; }

/* ---------------------------------------------------------------- whatsapp help */
.wa-help { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4); border-radius: var(--r-md); background: #EEF8F2; border: 1px solid #D3EEDF; }
.wa-help__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--hk-whatsapp); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.wa-help__text { flex: 1; display: grid; gap: 2px; font-size: var(--fs-sm); }
.wa-help__text span { color: var(--hk-muted); }
@media (max-width: 479.98px) { .wa-help { flex-wrap: wrap; } .wa-help .btn { width: 100%; } }

/* ---------------------------------------------------------------- order timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline__step { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: var(--sp-3); padding-bottom: var(--sp-5); }
.timeline__step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--hk-line); }
.timeline__step:last-child::before { display: none; }
.timeline__step.is-done::before { background: var(--hk-green); }
.timeline__dot { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--hk-line-strong); background: #fff; display: grid; place-items: center; color: #fff; }
.timeline__step.is-done .timeline__dot { background: var(--hk-green-deep); border-color: var(--hk-green-deep); }
.timeline__step.is-current .timeline__dot { border-color: var(--hk-pink-deep); box-shadow: 0 0 0 5px var(--hk-pink-soft); }
.timeline__step.is-current .timeline__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hk-pink-deep); }
.timeline__label { font-weight: 600; padding-top: 3px; }
.timeline__step.is-upcoming .timeline__label { color: var(--hk-subtle); font-weight: 500; }
.timeline__date { font-size: var(--fs-xs); color: var(--hk-muted); }
@media (min-width: 900px) {
    .timeline--horizontal { grid-template-columns: repeat(6, 1fr); }
    .timeline--horizontal .timeline__step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0; }
    .timeline--horizontal .timeline__step::before { left: calc(50% + 14px); right: calc(-50% + 14px); top: 13px; bottom: auto; width: auto; height: 2px; }
    .timeline--horizontal .timeline__dot { grid-row: auto; margin-bottom: var(--sp-2); }
}
.timeline-closed { display: flex; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--hk-bg-soft); }
.timeline-closed p { margin: 4px 0 0; color: var(--hk-muted); font-size: var(--fs-sm); }
.timeline-closed--danger { background: var(--hk-danger-soft); }

/* ---------------------------------------------------------------- cards & panels */
.card { background: #fff; border: 1px solid var(--hk-line); border-radius: var(--r-lg); padding: var(--sp-6); }
.card--soft { background: var(--hk-bg-soft); border-color: transparent; }
.card__title { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-4); display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; }
.card__title a { font-size: var(--fs-sm); font-weight: 600; }

/* ---------------------------------------------------------------- dialogs (MudBlazor) */
.mud-dialog { border-radius: var(--r-lg) !important; }
.dialog-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: var(--fs-lg); }
.mud-snackbar { border-radius: var(--r-md) !important; font-family: var(--font-sans) !important; }
.mud-snackbar.mud-alert-filled-normal { background: var(--hk-ink) !important; }

/* Rich content (policies, product descriptions) */
.prose { color: var(--hk-ink-2); max-width: 72ch; }
.prose h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: var(--fs-lg); color: var(--hk-ink); margin: var(--sp-8) 0 var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--hk-pink); }
.prose a { color: var(--hk-pink-deep); font-weight: 600; }
