/*
 * Aura CMS — public frontend (sync_data/assets/cms-public.css)
 * Scope: [data-aura-cms-root] + prefix .acms-* (layout) + .aura-cms-* (JS runtime)
 */

[data-aura-cms-root] {
    --acms-bg: #f4f5f7;
    --acms-surface: #ffffff;
    --acms-surface-2: #f9fafb;
    --acms-border: #e5e7eb;
    --acms-border-soft: #eef0f3;
    --acms-text: #111827;
    --acms-text-secondary: #4b5563;
    --acms-muted: #9ca3af;
    --acms-accent: #111827;
    --acms-accent-hover: #374151;
    --acms-radius: 12px;
    --acms-radius-sm: 8px;
    --acms-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
    --acms-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: var(--acms-font);
    color: var(--acms-text);
    background: var(--acms-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[data-aura-cms-root] *,
[data-aura-cms-root] *::before,
[data-aura-cms-root] *::after {
    box-sizing: border-box;
}

[data-aura-cms-root] .acms-page {
    min-height: 60vh;
    padding: 2rem 1rem 3rem;
}

[data-aura-cms-root] .acms-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

[data-aura-cms-root] .acms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--acms-border-soft);
}

[data-aura-cms-root] .acms-taxonomy-header {
    margin-bottom: 1.5rem;
}

[data-aura-cms-root] .acms-taxonomy-header .acms-title {
    margin-bottom: 0.35rem;
}

[data-aura-cms-root] .acms-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--acms-text);
}

[data-aura-cms-root] .acms-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
    color: var(--acms-muted);
}

[data-aura-cms-root] .acms-link {
    color: var(--acms-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

[data-aura-cms-root] .acms-link:hover {
    color: var(--acms-accent);
}

[data-aura-cms-root] .acms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--acms-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

[data-aura-cms-root] .acms-btn--primary {
    background: var(--acms-accent);
    color: #fff;
    border-color: var(--acms-accent);
}

[data-aura-cms-root] .acms-btn--primary:hover {
    background: var(--acms-accent-hover);
    border-color: var(--acms-accent-hover);
    color: #fff;
}

[data-aura-cms-root] .acms-btn--ghost {
    background: var(--acms-surface);
    color: var(--acms-text);
    border-color: var(--acms-border);
}

[data-aura-cms-root] .acms-btn--ghost:hover {
    background: var(--acms-surface-2);
    border-color: #d1d5db;
}

[data-aura-cms-root] .acms-btn--sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
}

[data-aura-cms-root] .acms-btn--danger {
    background: #fff;
    color: #b91c1c;
    border-color: #fecaca;
}

[data-aura-cms-root] .acms-btn--danger:hover {
    background: #fef2f2;
}

[data-aura-cms-root] .acms-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--acms-muted);
    background: var(--acms-surface);
    border: 1px dashed var(--acms-border);
    border-radius: var(--acms-radius);
}

[data-aura-cms-root] .acms-loading {
    color: var(--acms-muted);
    padding: 2rem 0;
}

/* --- Blog list (#post-list) --- */
[data-aura-cms-root] #post-list.acms-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

[data-aura-cms-root] .acms-post-card {
    display: flex;
    flex-direction: column;
    background: var(--acms-surface);
    border: 1px solid var(--acms-border-soft);
    border-radius: var(--acms-radius);
    overflow: hidden;
    box-shadow: var(--acms-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-aura-cms-root] .acms-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(17, 24, 39, 0.04), 0 12px 28px rgba(17, 24, 39, 0.08);
}

[data-aura-cms-root] .acms-post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--acms-surface-2);
}

[data-aura-cms-root] .acms-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-aura-cms-root] .acms-post-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

[data-aura-cms-root] .acms-post-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.35;
}

[data-aura-cms-root] .acms-post-card__title a {
    color: inherit;
    text-decoration: none;
}

[data-aura-cms-root] .acms-post-card__title a:hover {
    color: var(--acms-accent-hover);
}

[data-aura-cms-root] .acms-post-card__date {
    font-size: 0.8125rem;
    color: var(--acms-muted);
}

[data-aura-cms-root] .acms-post-card__excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--acms-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Blog detail (#article) --- */
[data-aura-cms-root] #article.acms-article {
    background: var(--acms-surface);
    border: 1px solid var(--acms-border-soft);
    border-radius: var(--acms-radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--acms-shadow);
}

[data-aura-cms-root] .acms-article__cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--acms-radius-sm);
    margin-bottom: 1.5rem;
}

[data-aura-cms-root] .acms-article__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

[data-aura-cms-root] .acms-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--acms-muted);
    margin-bottom: 1rem;
}

[data-aura-cms-root] .acms-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

[data-aura-cms-root] .acms-article__category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--acms-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

[data-aura-cms-root] .acms-article__category:hover {
    color: var(--acms-accent);
}

[data-aura-cms-root] .acms-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

[data-aura-cms-root] .acms-article__tags-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--acms-muted);
    margin-right: 0.25rem;
}

[data-aura-cms-root] .acms-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--acms-text-secondary);
    background: var(--acms-surface-2);
    border: 1px solid var(--acms-border);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

[data-aura-cms-root] a.acms-tag:hover {
    color: var(--acms-accent);
    border-color: #d1d5db;
    background: #fff;
}

[data-aura-cms-root] .acms-article__lead {
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    color: var(--acms-text-secondary);
    line-height: 1.7;
}

[data-aura-cms-root] .acms-article__content {
    font-size: 1rem;
    color: var(--acms-text);
}

[data-aura-cms-root] .acms-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--acms-radius-sm);
    margin: 1rem 0;
}

[data-aura-cms-root] .acms-article__content h2,
[data-aura-cms-root] .acms-article__content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 650;
}

[data-aura-cms-root] .acms-article__content p {
    margin-bottom: 1rem;
}

[data-aura-cms-root] .acms-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.1rem;
    background: var(--acms-surface, #fff);
    border: 1px solid var(--acms-border-soft, #e8e8ef);
    border-radius: var(--acms-radius, 12px);
}

[data-aura-cms-root] .acms-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[data-aura-cms-root] .acms-author__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acms-border-soft, #eef0f6);
    color: var(--acms-muted, #6b7280);
    font-size: 1.25rem;
}

[data-aura-cms-root] .acms-author__name {
    font-weight: 650;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

[data-aura-cms-root] .acms-author__bio {
    margin: 0 0 0.5rem;
    color: var(--acms-muted, #5b6472);
    font-size: 0.92rem;
    line-height: 1.55;
}

[data-aura-cms-root] .acms-author__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

[data-aura-cms-root] .acms-author__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--acms-border-soft, #e8e8ef);
    color: var(--acms-text, #1f2937);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

[data-aura-cms-root] .acms-author__social-link:hover {
    background: var(--acms-primary-soft, #f3e8ff);
    color: var(--acms-primary, #7c3aed);
}

[data-aura-cms-root] .acms-author-byline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--acms-muted, #5b6472);
}

[data-aura-cms-root] .acms-author-byline__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[data-aura-cms-root] .acms-author-byline__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--acms-border-soft, #eef0f6);
    color: var(--acms-text, #374151);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1;
}

[data-aura-cms-root] .acms-author-byline__name {
    font-weight: 600;
    color: var(--acms-text, #1f2937);
}

[data-aura-cms-root] .acms-post-card__author {
    margin: 0.35rem 0 0.15rem;
}

[data-aura-cms-root] .acms-article__meta .acms-author-byline {
    margin-right: 0.25rem;
}

[data-aura-cms-root] .acms-author--footer {
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--acms-border-soft, #e8e8ef);
}

/* --- Shop list (#product-list) --- */
[data-aura-cms-root] #product-list.acms-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

[data-aura-cms-root] .acms-product-card {
    display: flex;
    flex-direction: column;
    background: var(--acms-surface);
    border: 1px solid var(--acms-border-soft);
    border-radius: var(--acms-radius);
    overflow: hidden;
    box-shadow: var(--acms-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-aura-cms-root] .acms-product-card:hover {
    transform: translateY(-2px);
}

[data-aura-cms-root] .acms-product-card__media {
    display: block;
    aspect-ratio: 1;
    background: var(--acms-surface-2);
    overflow: hidden;
}

[data-aura-cms-root] .acms-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-aura-cms-root] .acms-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--acms-muted);
    font-size: 0.875rem;
}

[data-aura-cms-root] .acms-product-card__body {
    padding: 1rem 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

[data-aura-cms-root] .acms-product-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
}

[data-aura-cms-root] .acms-product-card__name a {
    color: inherit;
    text-decoration: none;
}

[data-aura-cms-root] .acms-product-card__name a:hover {
    color: var(--acms-accent-hover);
}

[data-aura-cms-root] .acms-product-card__sku {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    color: var(--acms-muted);
    letter-spacing: 0.02em;
}

[data-aura-cms-root] .acms-product-card__excerpt {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--acms-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-aura-cms-root] .acms-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--acms-text);
    letter-spacing: -0.01em;
}

[data-aura-cms-root] .acms-price--lg {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Product detail (#product-detail) --- */
[data-aura-cms-root] #product-detail.acms-product-detail {
    background: var(--acms-surface);
    border: 1px solid var(--acms-border-soft);
    border-radius: var(--acms-radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--acms-shadow);
}

[data-aura-cms-root] .acms-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    [data-aura-cms-root] .acms-product-layout {
        grid-template-columns: 1fr;
    }
}

[data-aura-cms-root] .acms-gallery__main {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: var(--acms-surface-2);
    border-radius: var(--acms-radius-sm);
    border: 1px solid var(--acms-border-soft);
}

[data-aura-cms-root] .acms-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

[data-aura-cms-root] .acms-gallery__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--acms-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.85;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

[data-aura-cms-root] .acms-gallery__thumb:hover,
[data-aura-cms-root] .acms-gallery__thumb.is-active {
    border-color: var(--acms-accent);
    opacity: 1;
}

[data-aura-cms-root] .acms-gallery__empty {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--acms-muted);
    background: var(--acms-surface-2);
    border-radius: var(--acms-radius-sm);
    border: 1px dashed var(--acms-border);
}

[data-aura-cms-root] .acms-product-info__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

[data-aura-cms-root] .acms-product-info__meta {
    font-size: 0.8125rem;
    color: var(--acms-muted);
    margin-bottom: 0.5rem;
}

[data-aura-cms-root] .acms-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--acms-surface-2);
    color: var(--acms-text-secondary);
    border: 1px solid var(--acms-border);
    margin-bottom: 0.75rem;
}

[data-aura-cms-root] .acms-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

[data-aura-cms-root] .acms-buy-row .acms-btn,
[data-aura-cms-root] #btn-add-cart {
    min-width: 8.5rem;
    min-height: 2.5rem;
    padding: 0.625rem 1.25rem;
    white-space: nowrap;
}

[data-aura-cms-root] .acms-buy-row .acms-btn:empty::before,
[data-aura-cms-root] #btn-add-cart:empty::before {
    content: "Add to cart";
}

[data-aura-cms-root] .acms-qty {
    width: 80px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--acms-border);
    border-radius: var(--acms-radius-sm);
    background: var(--acms-surface);
    color: var(--acms-text);
}

[data-aura-cms-root] .acms-qty:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

[data-aura-cms-root] .acms-msg-success {
    font-size: 0.875rem;
    color: #047857;
    margin-top: 0.5rem;
}

[data-aura-cms-root] .acms-msg-success.is-hidden {
    display: none;
}

[data-aura-cms-root] .acms-product-desc {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--acms-border-soft);
    color: var(--acms-text-secondary);
    font-size: 0.9375rem;
}

[data-aura-cms-root] .acms-product-desc img {
    max-width: 100%;
    height: auto;
    border-radius: var(--acms-radius-sm);
}

/* --- Cart (#cart-*) --- */
[data-aura-cms-root] #cart-empty.acms-cart-empty {
    padding: 2.5rem;
    text-align: center;
    background: var(--acms-surface);
    border: 1px dashed var(--acms-border);
    border-radius: var(--acms-radius);
    color: var(--acms-muted);
}

[data-aura-cms-root] #cart-empty.acms-cart-empty.is-hidden,
[data-aura-cms-root] #cart-wrap.acms-cart-layout.is-hidden {
    display: none;
}

[data-aura-cms-root] #cart-wrap.acms-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    [data-aura-cms-root] #cart-wrap.acms-cart-layout {
        grid-template-columns: 1fr;
    }
}

[data-aura-cms-root] #cart-lines.acms-cart-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[data-aura-cms-root] .acms-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: var(--acms-surface);
    border: 1px solid var(--acms-border-soft);
    border-radius: var(--acms-radius-sm);
}

[data-aura-cms-root] .acms-cart-line__name {
    font-weight: 650;
    margin-bottom: 0.25rem;
}

[data-aura-cms-root] .acms-cart-line__variant {
    font-size: 0.8125rem;
    color: var(--acms-muted);
}

[data-aura-cms-root] .acms-cart-line__price {
    font-size: 0.875rem;
    color: var(--acms-text-secondary);
    margin-top: 0.25rem;
}

[data-aura-cms-root] .acms-checkout {
    background: var(--acms-surface);
    border: 1px solid var(--acms-border-soft);
    border-radius: var(--acms-radius);
    padding: 1.5rem;
    box-shadow: var(--acms-shadow);
    position: sticky;
    top: 1rem;
}

[data-aura-cms-root] .acms-checkout__title {
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    font-weight: 650;
}

[data-aura-cms-root] #checkout-form.acms-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[data-aura-cms-root] .acms-field {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--acms-border);
    border-radius: var(--acms-radius-sm);
    background: var(--acms-surface);
    color: var(--acms-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-aura-cms-root] .acms-field:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

[data-aura-cms-root] .acms-field--area {
    min-height: 72px;
    resize: vertical;
}

[data-aura-cms-root] .acms-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin: 0.5rem 0;
    border-top: 1px solid var(--acms-border-soft);
    font-weight: 700;
    font-size: 1.0625rem;
}

[data-aura-cms-root] #order-success.acms-order-success {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--acms-radius-sm);
}

[data-aura-cms-root] #order-success.acms-order-success.is-hidden {
    display: none;
}

/* --- JS runtime: engagement (.aura-cms-*) --- */
[data-aura-cms-root] .aura-cms-engagement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}

[data-aura-cms-root] .aura-cms-eng-views {
    font-size: 0.875rem;
    color: var(--acms-muted);
}

[data-aura-cms-root] .aura-cms-eng-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--acms-text-secondary);
    background: var(--acms-surface-2);
    border: 1px solid var(--acms-border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-aura-cms-root] .aura-cms-eng-like-btn:hover:not(:disabled) {
    border-color: #d1d5db;
    background: #fff;
}

[data-aura-cms-root] .aura-cms-eng-like-btn.active,
[data-aura-cms-root] .aura-cms-eng-like-btn:disabled {
    color: var(--acms-accent);
    border-color: var(--acms-accent);
    background: var(--acms-surface-2);
    cursor: default;
}

/* --- JS runtime: variation picker --- */
[data-aura-cms-root] .aura-cms-variation-picker {
    margin: 1rem 0;
}

[data-aura-cms-root] .aura-cms-var-group {
    margin-bottom: 1rem;
}

[data-aura-cms-root] .aura-cms-var-group > label,
[data-aura-cms-root] .acms-var-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--acms-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-aura-cms-root] .acms-var-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

[data-aura-cms-root] .aura-cms-var-opt,
[data-aura-cms-root] .acms-var-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--acms-text-secondary);
    background: var(--acms-surface);
    border: 1px solid var(--acms-border);
    border-radius: var(--acms-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-aura-cms-root] .aura-cms-var-opt:hover,
[data-aura-cms-root] .acms-var-btn:hover {
    border-color: #d1d5db;
    background: var(--acms-surface-2);
}

[data-aura-cms-root] .aura-cms-var-opt.active,
[data-aura-cms-root] .acms-var-btn.is-active {
    color: var(--acms-accent);
    border-color: var(--acms-accent);
    background: var(--acms-surface-2);
    font-weight: 600;
}

[data-aura-cms-root] .aura-cms-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    vertical-align: middle;
}

[data-aura-cms-root] .aura-cms-opt-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
}

[data-aura-cms-root] .aura-cms-var-price,
[data-aura-cms-root] .aura-cms-var-stock {
    font-size: 0.8125rem;
    color: var(--acms-muted);
    margin-top: 0.35rem;
}

[data-aura-cms-root] .acms-var-stock-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    margin-left: 0.25rem;
    background: var(--acms-surface-2);
    border: 1px solid var(--acms-border);
    border-radius: 4px;
    color: var(--acms-muted);
}

/* --- Cart badge on header link --- */
[data-aura-cms-root] .acms-btn--block {
    width: 100%;
}

[data-aura-cms-root] .acms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[data-aura-cms-root] #checkout-form.acms-checkout-form.is-hidden {
    display: none;
}

[data-aura-cms-root] .aura-cms-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--acms-accent);
    color: #fff;
    margin-left: 0.35rem;
}

[data-aura-cms-root] .aura-cms-cart-badge.is-hidden {
    display: none;
}

[data-aura-cms-root] .is-hidden {
    display: none !important;
}

/* --- Contact page --- */
[data-aura-cms-root] .acms-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    [data-aura-cms-root] .acms-contact-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

[data-aura-cms-root] .acms-contact-info {
    padding: 1.25rem;
    background: var(--acms-surface);
    border: 1px solid var(--acms-border);
    border-radius: var(--acms-radius);
}

[data-aura-cms-root] .acms-contact-info__heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--acms-text);
}

[data-aura-cms-root] .acms-contact-info__desc {
    margin: 0 0 1rem;
    color: var(--acms-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

[data-aura-cms-root] .acms-contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

[data-aura-cms-root] .acms-contact-info__item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9375rem;
}

[data-aura-cms-root] .acms-contact-info__icon {
    flex-shrink: 0;
    line-height: 1.4;
}

[data-aura-cms-root] .acms-contact-info__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--acms-muted);
    margin-bottom: 0.15rem;
}

[data-aura-cms-root] .acms-contact-info__item a {
    color: var(--acms-accent);
    text-decoration: none;
}

[data-aura-cms-root] .acms-contact-info__item a:hover {
    text-decoration: underline;
}

[data-aura-cms-root] .acms-contact-social {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--acms-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

[data-aura-cms-root] .acms-contact-social__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--acms-muted);
    margin-right: 0.25rem;
}

[data-aura-cms-root] .acms-contact-social__link {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--acms-border);
    background: var(--acms-surface-2);
    color: var(--acms-text);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

[data-aura-cms-root] .acms-contact-social__link:hover {
    border-color: var(--acms-accent);
    color: var(--acms-accent);
}

[data-aura-cms-root] .acms-contact-form-wrap {
    padding: 1.25rem;
    background: var(--acms-surface);
    border: 1px solid var(--acms-border);
    border-radius: var(--acms-radius);
}

[data-aura-cms-root] .acms-contact-form .acms-field {
    margin-bottom: 1rem;
}

[data-aura-cms-root] .acms-required {
    color: #dc2626;
}

[data-aura-cms-root] .acms-contact-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--acms-radius-sm);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.9375rem;
}

[data-aura-cms-root] .acms-contact-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--acms-radius-sm);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9375rem;
}

/* ——— Default theme layout (header / footer / nav) ——— */
body[data-aura-theme-wrapped] {
    --acms-theme-max: 1400px;
    --acms-theme-header-h: 64px;
}

body[data-aura-theme-wrapped] .acms-theme-container {
    width: 100%;
    max-width: var(--acms-theme-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

body[data-aura-theme-wrapped] .acms-theme-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--acms-surface, #fff);
    border-bottom: 1px solid var(--acms-border, #e5e7eb);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

body[data-aura-theme-wrapped] .acms-theme-header__bar {
    width: 100%;
}

body[data-aura-theme-wrapped] .acms-theme-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--acms-theme-header-h);
}

body[data-aura-theme-wrapped] .acms-theme-logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--acms-text, #111827);
    text-decoration: none;
    white-space: nowrap;
}

body[data-aura-theme-wrapped] .acms-theme-logo:hover {
    color: var(--acms-accent-hover, #374151);
}

body[data-aura-theme-wrapped] .acms-theme-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--acms-text, #111827);
    cursor: pointer;
    flex-shrink: 0;
}

body[data-aura-theme-wrapped] .acms-theme-nav-toggle__icon {
    display: block;
    width: 24px;
    height: 24px;
}

body[data-aura-theme-wrapped] .acms-theme-nav-toggle__line {
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
}

body[data-aura-theme-wrapped].acms-theme-nav-open .acms-theme-nav-toggle__line--1 {
    transform: translateY(5px) rotate(45deg);
}

body[data-aura-theme-wrapped].acms-theme-nav-open .acms-theme-nav-toggle__line--2 {
    opacity: 0;
}

body[data-aura-theme-wrapped].acms-theme-nav-open .acms-theme-nav-toggle__line--3 {
    transform: translateY(-5px) rotate(-45deg);
}

body[data-aura-theme-wrapped].acms-theme-nav-open .acms-theme-header {
    z-index: 400;
}

body[data-aura-theme-wrapped] .acms-theme-nav--desktop .acms-theme-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body[data-aura-theme-wrapped] .acms-theme-nav__link {
    color: var(--acms-text-secondary, #4b5563);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.35rem 0;
    transition: color 0.15s ease;
}

body[data-aura-theme-wrapped] .acms-theme-nav__link:hover {
    color: var(--acms-text, #111827);
}

body[data-aura-theme-wrapped] .acms-theme-nav--drawer {
    display: none;
}

body[data-aura-theme-wrapped] .acms-theme-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 390;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

body[data-aura-theme-wrapped].acms-theme-nav-open .acms-theme-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body[data-aura-theme-wrapped] .acms-theme-main {
    min-height: 50vh;
    width: 100%;
}

body[data-aura-theme-wrapped] .acms-theme-main .acms-container,
body[data-aura-theme-wrapped] .acms-theme-main .acms-theme-container {
    max-width: var(--acms-theme-max);
}

body[data-aura-theme-wrapped] .acms-theme-footer {
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid var(--acms-border, #e5e7eb);
    background: var(--acms-surface-2, #f9fafb);
}

body[data-aura-theme-wrapped] .acms-theme-footer__inner {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

body[data-aura-theme-wrapped] .acms-theme-footer .acms-theme-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    body[data-aura-theme-wrapped] .acms-theme-footer .acms-theme-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

body[data-aura-theme-wrapped] .acms-theme-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    body[data-aura-theme-wrapped] .acms-theme-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
    }
}

body[data-aura-theme-wrapped] .is-hidden {
    display: none !important;
}

body[data-aura-theme-wrapped] .acms-theme-footer__brand {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--acms-text, #111827);
}

body[data-aura-theme-wrapped] .acms-theme-footer__org-desc {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--acms-text-secondary, #6b7280);
}

body[data-aura-theme-wrapped] .acms-theme-footer__contact {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9375rem;
    color: var(--acms-text-secondary, #4b5563);
}

body[data-aura-theme-wrapped] .acms-theme-footer__contact a {
    color: inherit;
    text-decoration: none;
}

body[data-aura-theme-wrapped] .acms-theme-footer__contact a:hover {
    text-decoration: underline;
}

body[data-aura-theme-wrapped] .acms-theme-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body[data-aura-theme-wrapped] .acms-theme-footer__social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--acms-border, #e5e7eb);
    border-radius: 999px;
    color: var(--acms-text, #111827);
    text-decoration: none;
    background: var(--acms-surface, #fff);
}

body[data-aura-theme-wrapped] .acms-theme-footer__social-link:hover {
    border-color: var(--acms-text-secondary, #6b7280);
}

body[data-aura-theme-wrapped] .acms-product-card__body .acms-btn:empty {
    display: none;
}

body[data-aura-theme-wrapped] .acms-theme-footer__lead {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--acms-text-secondary, #6b7280);
    max-width: 36rem;
}

body[data-aura-theme-wrapped] .acms-theme-footer__heading {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--acms-text-secondary, #6b7280);
}

body[data-aura-theme-wrapped] .acms-theme-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body[data-aura-theme-wrapped] .acms-theme-footer__link {
    color: var(--acms-text, #111827);
    text-decoration: none;
    font-size: 0.9375rem;
}

body[data-aura-theme-wrapped] .acms-theme-footer__link:hover {
    color: var(--acms-accent-hover, #374151);
    text-decoration: underline;
}

body[data-aura-theme-wrapped] .acms-theme-footer__bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--acms-border, #e5e7eb);
}

body[data-aura-theme-wrapped] .acms-theme-footer__copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--acms-text-secondary, #6b7280);
    text-align: center;
}

body[data-aura-theme-wrapped] .acms-theme-nav--desktop {
    position: absolute;
    top: 0;
    right: max(1.25rem, calc((100% - var(--acms-theme-max)) / 2));
    height: 100%;
    display: flex;
    align-items: center;
}

body[data-aura-theme-wrapped] .acms-theme-header__bar {
    position: relative;
}

@media (max-width: 991px) {
    body[data-aura-theme-wrapped] .acms-theme-nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    body[data-aura-theme-wrapped] .acms-theme-nav--desktop {
        display: none !important;
    }

    body[data-aura-theme-wrapped] .acms-theme-nav--drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        z-index: 420;
        background: var(--acms-surface, #fff);
        border-left: 1px solid var(--acms-border, #e5e7eb);
        box-shadow: -8px 0 32px rgba(17, 24, 39, 0.12);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }

    body[data-aura-theme-wrapped].acms-theme-nav-open .acms-theme-nav--drawer {
        transform: translateX(0);
    }

    body[data-aura-theme-wrapped] .acms-theme-nav-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--acms-border, #e5e7eb);
    }

    body[data-aura-theme-wrapped] .acms-theme-nav-drawer__title {
        font-weight: 700;
        font-size: 1rem;
        color: var(--acms-text, #111827);
    }

    body[data-aura-theme-wrapped] .acms-theme-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: var(--acms-text, #111827);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    body[data-aura-theme-wrapped] .acms-theme-nav-close:hover {
        background: var(--acms-surface-2, #f3f4f6);
    }

    body[data-aura-theme-wrapped] .acms-theme-nav__list--stack {
        list-style: none;
        margin: 0;
        padding: 0.75rem 0;
        overflow-y: auto;
        flex: 1;
    }

    body[data-aura-theme-wrapped] .acms-theme-nav__link--stack {
        display: block;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid var(--acms-border-soft, #f3f4f6);
    }
}

@media (max-width: 640px) {
    body[data-aura-theme-wrapped] .acms-theme-header__inner {
        min-height: 56px;
    }
}

/* ——— Theme home hero (7-color subtle motion) ——— */
.acms-theme-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--acms-border, #e5e7eb);
    background: linear-gradient(165deg, #fafbfc 0%, #f4f6f8 50%, #f8f9fb 100%);
    isolation: isolate;
}

.acms-theme-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.5rem 1.25rem 1.25rem;
    text-align: center;
}

.acms-theme-hero__art {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 0.25rem;
    overflow: hidden;
    pointer-events: none;
}

.acms-theme-hero__wash {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 1rem;
    background:
        radial-gradient(ellipse 70% 55% at 20% 50%, rgba(248, 113, 113, 0.06), transparent 55%),
        radial-gradient(ellipse 65% 50% at 80% 40%, rgba(96, 165, 250, 0.07), transparent 50%),
        radial-gradient(ellipse 55% 45% at 50% 90%, rgba(192, 132, 252, 0.05), transparent 55%);
    animation: acms-hero-wash 26s ease-in-out infinite alternate;
}

.acms-theme-hero__svg {
    position: relative;
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
    z-index: 1;
    opacity: 0.92;
}

.acms-theme-hero__shape {
    transform-origin: center;
    transform-box: fill-box;
    will-change: transform;
}

.acms-theme-hero__shape--1 {
    animation: acms-hero-float-a 24s ease-in-out infinite;
}

.acms-theme-hero__shape--2 {
    animation: acms-hero-float-b 28s ease-in-out infinite;
}

.acms-theme-hero__shape--3 {
    animation: acms-hero-float-c 22s ease-in-out infinite;
}

.acms-theme-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--acms-text, #111827);
}

.acms-theme-hero__lead {
    margin: 0.65rem auto 0;
    max-width: 32rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.55;
    color: var(--acms-text-secondary, #4b5563);
}

.acms-theme-hero__lead.is-hidden {
    display: none;
}

.acms-theme-hero__tagline {
    margin: 1rem auto 0;
    max-width: 36rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--acms-muted, #6b7280);
}

.acms-theme-hero__actions {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.25rem 1.25rem 2.5rem;
    text-align: center;
}

.acms-theme-hero__actions.is-hidden {
    display: none;
}

.acms-theme-hero__ai-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 999px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.acms-theme-hero__ai-btn-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #fca5a5,
        #86efac,
        #93c5fd,
        #a5b4fc,
        #fde047,
        #f9a8d4,
        #fca5a5
    );
    background-size: 300% 100%;
    animation: acms-hero-ai-shimmer 7s linear infinite;
    opacity: 0.95;
}

.acms-theme-hero__ai-btn-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.acms-theme-hero__ai-btn-icon {
    flex-shrink: 0;
    color: #6366f1;
}

.acms-theme-hero__ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(248, 113, 113, 0.12);
}

.acms-theme-hero__ai-btn:hover .acms-theme-hero__ai-btn-glow {
    animation-duration: 3.5s;
}

.acms-theme-hero__ai-btn:active {
    transform: translateY(0);
}

.acms-page--theme-home {
    display: none;
}

@keyframes acms-hero-wash {
    0% { opacity: 0.88; }
    100% { opacity: 1; }
}

@keyframes acms-hero-float-a {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(14px, -10px) rotate(2deg); }
}

@keyframes acms-hero-float-b {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-16px, 12px) rotate(-2.5deg); }
}

@keyframes acms-hero-float-c {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, 8px) rotate(1.5deg); }
}

@keyframes acms-hero-ai-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .acms-theme-hero__wash,
    .acms-theme-hero__shape,
    .acms-theme-hero__ai-btn-glow {
        animation: none;
    }
}

.cms-await-settings:not([data-cms-ready]) {
    visibility: hidden;
}

/* --- pack: shopmist --- */
﻿/* Shop Mist 4.4.0 - product category rail (no sellers); stories/services last */
html {
  overflow-x: hidden;
}
body[data-aura-theme-wrapped="shopmist"],
body[data-aura-theme-pack="shopmist"] {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: block;
}

body[data-aura-theme-wrapped="shopmist"] *,
body[data-aura-theme-pack="shopmist"] *,
body[data-aura-theme-wrapped="shopmist"] *::before,
body[data-aura-theme-pack="shopmist"] *::after {
  box-sizing: border-box;
}

body[data-aura-theme-wrapped="shopmist"],
body[data-aura-theme-pack="shopmist"],
[data-aura-cms-root][data-aura-theme-pack="shopmist"] {
  --color-canvas-mist: #f2f4f5;
  --color-pure-white: #ffffff;
  --color-ink-black: #000000;
  --color-faint-border: #ebebeb;
  --color-muted-gray: #787574;
  --color-cool-stone: #cccccc;
  --color-warm-fog: #acb0aa;
  --color-shop-violet: #5a31f4;
  --color-violet-wash: #c0b5f3;
  --color-slate-ink: #332f2d;
  --color-ash-veil: #665a54;
  --font-gt-standard: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-shopify-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --text-caption: 11px;
  --text-body-sm: 12px;
  --text-body: 14px;
  --text-body-lg: 16px;
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --page-max-width: 1200px;
  --section-gap: 64px;
  --element-gap: 12px;
  --radius-cards: 28px;
  --radius-inner: 20px;
  --radius-pills: 20px;
  --radius-full: 9999px;
  --shadow-sm: rgba(0, 0, 0, 0.06) 0px 2px 8px 0px;
  --shadow-sm-2: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
  --shadow-lg: rgba(0, 0, 0, 0.12) 0px 4px 24px 0px;
  --shadow-lg-2: rgba(90, 49, 244, 0.34) 0px 4px 24px 0px;
  --rail-w: 76px;
  --shell-inset: 8px;
  --panel-w: calc(100% - var(--rail-w) - var(--shell-inset));
  --banner-h: 40px;
  --panel-radius: 28px;
  font-family: var(--font-gt-standard);
  font-weight: 400;
  color: var(--color-ink-black);
  background: #fcfcfc;
  letter-spacing: -0.031em;
  line-height: 1.33;
  -webkit-font-smoothing: antialiased;
}

body[data-aura-theme-wrapped="shopmist"] .is-hidden,
body[data-aura-theme-pack="shopmist"] .is-hidden { display: none !important; }

/* Shop.app: banner sits inside the white panel (not full-bleed viewport) */
.sm-app-banner {
  position: relative; z-index: 45;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: var(--shell-inset) var(--shell-inset) 0 var(--rail-w);
  width: var(--panel-w); max-width: var(--panel-w);
  height: var(--banner-h); background: #121212; color: #fff;
  font-family: var(--font-shopify-sans); font-size: 14px; letter-spacing: -0.023em;
  padding: 0 12px; border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  box-sizing: border-box;
}
.sm-app-banner__icon {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--color-shop-violet); flex-shrink: 0;
}
.sm-app-banner__line {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: nowrap; white-space: nowrap; justify-content: center;
}
.sm-app-banner__line strong { font-weight: 700; }
.sm-app-banner__line span { font-weight: 400; opacity: 0.92; }
.sm-app-banner__arrow { font-size: 14px; opacity: 1; }

.sm-rail {
  position: fixed;
  top: var(--shell-inset); left: 0; bottom: var(--shell-inset);
  width: var(--rail-w);
  background: transparent; z-index: 55; display: flex; flex-direction: column;
  align-items: center; padding: 16px 0 18px; gap: 0;
  border-right: 0; margin: 0;
}
.sm-rail__brand {
  width: 40px; height: 40px; display: grid; place-items: center;
  text-decoration: none; margin-bottom: 18px; flex-shrink: 0;
}
.sm-rail__brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--color-shop-violet);
  box-shadow: 0 4px 14px rgba(90, 49, 244, 0.35);
}
.sm-rail__nav {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: auto; margin-bottom: auto;
}
.sm-rail__item {
  width: 48px; height: 48px; display: grid; place-items: center;
  color: #000; border-radius: 9999px; text-decoration: none;
  transition: background 0.15s ease;
}
.sm-rail__item:hover, .sm-rail__item.is-active { background: #fff; }
.sm-rail__item .sm-icon { width: 22px; height: 22px; }
.sm-rail__account {
  margin-top: auto; display: flex; flex-direction: column; align-items: center;
  gap: 4px; text-decoration: none; color: #000; flex-shrink: 0;
  padding-top: 12px;
}
.sm-rail__account-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #ebebeb; background: #fff;
  display: grid; place-items: center; color: #000;
}
.sm-rail__account-label {
  font-size: 10px; letter-spacing: -0.02em; color: #665a54;
  max-width: 64px; text-align: center; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sm-rail__avatar { display: none; }
.sm-icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }

/* Persistent Shop.app panel frame â€” shadow stays while content scrolls */
body[data-aura-theme-wrapped="shopmist"]::after,
body[data-aura-theme-pack="shopmist"]::after {
  content: "";
  position: fixed;
  top: var(--shell-inset);
  left: var(--rail-w);
  right: var(--shell-inset);
  bottom: var(--shell-inset);
  border-radius: var(--panel-radius);
  pointer-events: none;
  z-index: 48;
  box-shadow:
    rgba(0, 0, 0, 0.06) 0px 2px 8px 0px,
    rgb(242, 244, 245) 0px -1px 30px 0px,
    rgb(252, 252, 252) 0px 0px 0px 40px;
}

.sm-chrome {
  position: sticky; top: 0; z-index: 35;
  margin-left: var(--rail-w); margin-right: var(--shell-inset);
  width: var(--panel-w); max-width: var(--panel-w);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
body.is-sm-scrolled .sm-chrome {
  border-bottom-color: var(--color-faint-border); box-shadow: var(--shadow-sm);
}
.sm-chrome__bar { padding: 10px 20px; }
.sm-chrome__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  max-width: var(--page-max-width); margin: 0 auto; width: 100%;
}
.sm-wordmark {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: #000; flex-shrink: 0; min-width: 0;
}
.sm-wordmark__text {
  font-size: 20px; letter-spacing: -0.05em; font-weight: 500; text-transform: lowercase;
  white-space: nowrap;
}
.sm-wordmark__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-shop-violet); flex-shrink: 0;
}
.acms-theme-logo__img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.sm-search {
  width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center;
  background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--radius-full);
  padding: 4px 4px 4px 20px; box-shadow: var(--shadow-sm); min-width: 0;
}
.sm-search__input {
  flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px;
  letter-spacing: -0.031em; color: #000; min-width: 0; padding: 8px 12px 8px 0;
}
.sm-search__input::placeholder { color: var(--color-muted-gray); }
.sm-search__submit {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--color-shop-violet); box-shadow: var(--shadow-lg-2);
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.sm-chrome__tools {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; justify-self: end;
}
.sm-account-pill {
  display: inline-flex; align-items: center; padding: 8px 16px;
  border-radius: var(--radius-full); background: #fff; border: 1px solid #ebebeb;
  box-shadow: var(--shadow-sm); color: #000; text-decoration: none;
  font-size: 14px; letter-spacing: -0.014em; white-space: nowrap; position: relative; z-index: 2;
}
.acms-theme-nav-toggle {
  width: 44px; height: 44px; border: 0; background: #fff; border-radius: 50%;
  box-shadow: var(--shadow-sm); cursor: pointer; display: none; place-items: center; color: #000;
}

/* Menu chips: own row, never overlap account */
.sm-chrome .acms-theme-nav--desktop,
.sm-chrome .acms-theme-nav {
  position: static !important; float: none !important;
  max-width: var(--page-max-width); margin: 0 auto; padding: 0 0 10px;
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  width: 100%;
}
.sm-chrome .acms-theme-nav__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.sm-chrome .acms-theme-nav__link {
  position: static !important;
  padding: 6px 14px; border-radius: var(--radius-full); font-size: 14px;
  color: var(--color-muted-gray); text-decoration: none; letter-spacing: -0.014em;
  background: transparent; border: 0; box-shadow: none;
}
.sm-chrome .acms-theme-nav__link::after { display: none !important; }
.sm-chrome .acms-theme-nav__link:hover,
.sm-chrome .acms-theme-nav__link.is-active {
  color: #000; background: #f2f4f5;
}

/* Home desktop: Shop.app has no top chrome â€” branding lives in hero */
@media (min-width: 992px) {
  body[data-aura-cms-page="theme-home"] .sm-chrome {
    display: none !important;
  }
}
body[data-aura-cms-page="theme-home"] .sm-chrome .sm-search,
body[data-aura-cms-page="theme-home"] .sm-chrome .acms-theme-nav--desktop,
body[data-aura-cms-page="theme-home"] .sm-chrome .acms-theme-nav,
body[data-aura-cms-page="theme-home"] .sm-chrome .sm-wordmark,
body[data-aura-cms-page="theme-home"] .sm-chrome .sm-account-pill {
  display: none !important;
}
body[data-aura-cms-page="theme-home"] .sm-chrome__row {
  grid-template-columns: 1fr auto;
  justify-content: flex-end;
}
body[data-aura-cms-page="theme-home"] .sm-chrome {
  background: transparent; backdrop-filter: none;
}
body[data-aura-cms-page="theme-home"] .sm-chrome__bar { padding: 8px 16px; }

/* Main white panel (continues banner radius; sits on gray canvas) */
body[data-aura-theme-wrapped="shopmist"] .acms-theme-main,
body[data-aura-theme-wrapped="shopmist"] main.acms-theme-main {
  margin-left: var(--rail-w);
  margin-right: var(--shell-inset);
  width: var(--panel-w);
  max-width: var(--panel-w);
  overflow-x: hidden;
  background: #fbfbfb;
  min-height: calc(100vh - var(--banner-h) - (var(--shell-inset) * 2));
  border-radius: 0;
}
body[data-aura-theme-pack="shopmist"] .sm-shell,
body[data-aura-theme-pack="shopmist"] .sm-home {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #fbfbfb;
}

#acms-theme-nav-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); background: #fff;
  z-index: 60; transform: translateX(100%); transition: transform 0.25s ease;
  padding: 24px 20px; box-shadow: var(--shadow-lg);
}
body.acms-theme-nav-open #acms-theme-nav-drawer { transform: translateX(0); }
.acms-theme-nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 55; }
.acms-theme-nav--drawer .acms-theme-nav__link {
  display: block; padding: 14px 8px; color: #000; text-decoration: none;
  border-bottom: 1px solid #ebebeb; font-size: 16px;
}
.acms-theme-nav__link--account { margin-top: 12px; font-weight: 500; }

.sm-shell { min-height: 50vh; padding: 32px 24px 80px; }
.sm-shell__inner { max-width: var(--page-max-width); margin: 0 auto; }
.sm-band-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.sm-band-head h1, .sm-band-head h2 {
  margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.05em; line-height: 1.1;
}
.sm-band-head p { margin: 6px 0 0; color: var(--color-muted-gray); font-size: 14px; }

.sm-brand-card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2);
  overflow: hidden; text-decoration: none; color: inherit; padding: 0; border: 0;
}
.sm-brand-card__media {
  display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius-inner); margin: 0; background: #f2f4f5;
}
.sm-brand-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-brand-card__body { padding: 12px 14px 16px; }
.sm-brand-card__name, .sm-brand-card__title {
  margin: 0; font-size: 14px; font-weight: 500; letter-spacing: -0.014em;
}
.sm-brand-card__name a, .sm-brand-card__title a { color: inherit; text-decoration: none; }
.sm-brand-card__meta {
  margin-top: 4px; font-size: 9px; letter-spacing: -0.058em; color: var(--color-muted-gray);
}
.sm-brand-card__excerpt {
  margin: 8px 0 0; font-size: 12px; color: var(--color-muted-gray); letter-spacing: -0.017em;
}
.sm-brand-card__price { margin-top: 8px; font-size: 14px; font-weight: 500; }

.sm-product-rail, .sm-product-rail--4, #product-list.sm-product-rail--4 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.sm-spotlight-grid, #post-list.sm-spotlight-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}

.sm-cat-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0;
}
.sm-cat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px;
  background: #fff; border: 1px solid #ebebeb; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm); font-size: 16px; letter-spacing: -0.031em;
  color: #000; text-decoration: none; cursor: pointer;
}
.sm-cat-pill__icon { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.sm-cat-pill__icon--women { background: #e8a0a0; }
.sm-cat-pill__icon--men { background: #7a8fb5; }
.sm-cat-pill__icon--beauty { background: #c0b5f3; }
.sm-cat-pill__icon--home { background: #acb0aa; }
.sm-cat-pill__icon--baby { background: #e8d5b5; }
.sm-cat-pill__icon--fit { background: #7eb8a2; }
.sm-cat-pill.is-active {
  color: #000; background: #f2f4f5; border-color: #ddd;
}

.sm-cat-band { margin-top: var(--section-gap); padding: 0 24px; max-width: var(--page-max-width); margin-left: auto; margin-right: auto; }
.sm-cat-band__head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 20px; font-weight: 600; letter-spacing: -0.05em;
  text-decoration: none; color: #000;
}
.sm-cat-band__head .sm-icon { width: 16px; height: 16px; }

.sm-mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px; border-radius: 24px; overflow: hidden;
  background: #fff; aspect-ratio: 1 / 1; max-width: 100%;
}
.sm-mosaic__cell {
  position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff;
  min-height: 0; background: #332f2d;
}
.sm-mosaic__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-mosaic__label {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-size: 13px; font-weight: 500; letter-spacing: -0.014em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.sm-mosaic__cell--a { background: #5c4a3a; }
.sm-mosaic__cell--b { background: #2c3e50; }
.sm-mosaic__cell--c { background: #3d4f3a; }
.sm-mosaic__cell--d { background: #4a2c2c; }

.sm-cat-rail-wrap { position: relative; margin-top: 28px; }
.sm-cat-rail {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; padding: 0 28px 16px;
  max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.sm-cat-rail::-webkit-scrollbar { display: none; }
.sm-cat-rail__card {
  flex: 0 0 clamp(220px, 18vw, 280px); scroll-snap-align: start; max-width: 100%;
}
.sm-cat-rail__card .sm-cat-band__head { margin-bottom: 10px; padding: 0; }
.sm-cat-rail__next {
  position: absolute; right: 18px; top: 54%;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center;
  z-index: 3; color: #000;
}

.sm-home { padding: 4px 0 80px; overflow-x: hidden; background: #fbfbfb; }
.sm-constellation {
  position: relative; max-width: 100%; margin: 0 auto;
  padding: 8px 16px 0; overflow: hidden;
  background: #fbfbfb;
}
.sm-constellation__stage {
  position: relative;
  height: clamp(280px, 30vw, 360px);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.sm-float-card {
  position: absolute;
  width: 132px;
  height: auto !important;
  max-height: none;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-sm-2);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.sm-float-card img {
  aspect-ratio: 1 / 1 !important;
  width: calc(100% - 12px) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 6px 6px 0;
  flex: 0 0 auto;
}
.sm-float-card__body {
  padding: 8px 10px 12px;
  flex: 0 0 auto;
}
.sm-float-card__body strong {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: -0.014em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-float-card__stars {
  margin-top: 2px; font-size: 9px; letter-spacing: -0.5px; color: var(--color-muted-gray);
}
.sm-float-card--sat {
  width: 100px;
  border-radius: 18px;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
  filter: saturate(0.9);
}
.sm-float-card--sat img {
  margin: 0 !important;
  width: 100% !important;
  border-radius: 18px;
  aspect-ratio: 1 / 1 !important;
}
.sm-float-card--sat .sm-float-card__body { display: none; }

.sm-float-card--4 { left: 8%; top: 14%; animation: sm-float-a 8s ease-in-out infinite; animation-delay: -1s; }
.sm-float-card--5 { right: 8%; top: 16%; left: auto; animation: sm-float-c 8s ease-in-out infinite; animation-delay: -3s; }
.sm-float-card--1 { left: 16%; top: 26%; width: 150px; z-index: 3; animation: sm-float-a 7s ease-in-out infinite; }
.sm-float-card--2 {
  left: 50%; top: 6%; z-index: 4; width: 170px;
  animation: sm-float-b 7s ease-in-out infinite; animation-delay: -2s;
}
.sm-float-card--3 { right: 16%; top: 28%; left: auto; width: 150px; z-index: 3; animation: sm-float-c 7s ease-in-out infinite; animation-delay: -4s; }
@keyframes sm-float-a {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-6px); }
}
@keyframes sm-float-b {
  0%, 100% { transform: translateX(-50%) rotate(1.5deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(0deg) translateY(-8px); }
}
@keyframes sm-float-c {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-6px); }
}
.sm-home-wordmark {
  text-align: center; margin: 10px 0 16px; position: relative !important;
  z-index: 5; inset: auto !important; top: auto !important; left: auto !important;
  right: auto !important; bottom: auto !important; transform: none !important;
  pointer-events: none;
}
.sm-home-wordmark__text {
  display: inline-block;
  font-size: clamp(48px, 9vw, 72px); font-weight: 700;
  letter-spacing: -0.06em; text-transform: lowercase; color: var(--color-shop-violet);
  line-height: 0.95; position: relative !important; transform: none !important;
}
.sm-home-wordmark__dot { display: none; }
.sm-home-search-wrap {
  display: flex; justify-content: center; padding: 0 20px;
  position: relative !important; z-index: 6;
  top: auto !important; left: auto !important; transform: none !important;
  margin-top: 0;
}
.sm-constellation__center { display: contents; }
.sm-home-search-wrap .sm-search {
  width: 100%; max-width: 600px; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-radius: 32px;
}
#set-slogan-home { display: none !important; }
.acms-theme-hero__actions { text-align: center; margin: 14px 24px 0; }
.acms-theme-hero__ai-btn {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border-radius: var(--radius-full); background: transparent; color: var(--color-muted-gray);
  text-decoration: none; font-size: 11px; border: 1px solid #ebebeb;
  letter-spacing: -0.017em;
}
.acms-theme-hero__ai-btn:hover { color: #000; border-color: #ccc; }
.sm-section {
  max-width: var(--page-max-width); margin: var(--section-gap) auto 0; padding: 0 24px;
}
.sm-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.sm-section__head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.05em; }
.sm-link {
  display: inline-flex; align-items: center; gap: 4px; color: #000;
  text-decoration: none; font-size: 14px;
}
.sm-home-feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; background: #fff;
  border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2);
  overflow: hidden; margin-bottom: 16px;
}
.sm-home-feature__media { display: block; min-height: 240px; background: #f2f4f5; }
.sm-home-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-home-feature > div { padding: 28px 24px; align-self: center; }
.sm-home-feature h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.05em; }
.sm-home-feature h3 a { color: inherit; text-decoration: none; }
.sm-home-feature p { margin: 0; color: var(--color-muted-gray); font-size: 14px; }
.sm-story-rail, #ed-home-posts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.sm-shop-rail, #ed-home-shop {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.sm-svc-tiles, #ed-home-services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.sm-svc-tile {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2);
  overflow: hidden; text-decoration: none; color: inherit;
}
.sm-svc-tile img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius-inner) var(--radius-inner) 0 0;
}
.sm-svc-tile__body { padding: 14px 16px 18px; }
.sm-svc-tile h3 { margin: 0; font-size: 14px; font-weight: 500; }
.sm-svc-tile p { margin: 6px 0 0; font-size: 12px; color: var(--color-muted-gray); }

.sm-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: #fff; border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2); padding: 32px;
}
.sm-cta h2 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.05em; }
.sm-cta p { margin: 0; color: var(--color-muted-gray); font-size: 14px; }

.sm-soft-center {
  max-width: 480px; margin: 40px auto; background: #fff;
  border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2); padding: 32px 28px;
}
.sm-soft-center--wide { max-width: 720px; }
.sm-account-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.sm-contact-split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start;
}
.sm-contact-split__photo {
  border-radius: var(--radius-cards); overflow: hidden; min-height: 420px; margin: 0;
}
.sm-contact-split__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px;
}
.sm-contact-form-card {
  background: #fff; border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2); padding: 28px;
}
.sm-contact-info { margin-bottom: 20px; }
.sm-contact-info__list { list-style: none; padding: 0; margin: 12px 0; }
.sm-contact-info__item {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14px;
}
.sm-contact-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sm-contact-social__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--radius-full); background: #f2f4f5; color: #000;
  text-decoration: none; font-size: 12px;
}

.sm-product-layout, .acms-product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff;
  border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2); padding: 24px;
}
.acms-gallery__main { width: 100%; border-radius: var(--radius-inner); display: block; }
.acms-gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.acms-gallery__thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 12px;
  cursor: pointer; opacity: 0.7; border: 2px solid transparent;
}
.acms-gallery__thumb.is-active { opacity: 1; border-color: #000; }
.acms-buy-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0;
}
.acms-qty {
  width: 72px; padding: 10px 12px; border-radius: var(--radius-full);
  border: 1px solid #ebebeb; font-size: 14px;
}

.acms-cart-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start;
}
.acms-cart-lines { display: flex; flex-direction: column; gap: 12px; }
.acms-cart-line {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: #fff; border-radius: var(--radius-pills); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.acms-checkout {
  background: #fff; border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2); padding: 24px;
}
.acms-checkout__title { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
.acms-checkout-form { display: flex; flex-direction: column; gap: 10px; }
.acms-field, input.acms-field, textarea.acms-field {
  width: 100%; box-sizing: border-box; padding: 12px 18px; border-radius: var(--radius-full);
  border: 1px solid #ebebeb; background: #fff; font-size: 14px; font-family: inherit;
}
textarea.acms-field, .acms-field--area {
  border-radius: var(--radius-inner); min-height: 88px; resize: vertical;
}
.acms-checkout-total {
  display: flex; justify-content: space-between; font-size: 14px; margin: 6px 0; font-weight: 500;
}
.acms-pay-methods { margin: 8px 0; }
.acms-pay-option { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
.acms-cart-empty {
  text-align: center; padding: 48px 24px; background: #fff;
  border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2); color: var(--color-muted-gray);
}
.acms-empty, .acms-loading {
  padding: 32px; text-align: center; color: var(--color-muted-gray);
  background: #fff; border-radius: var(--radius-cards); box-shadow: var(--shadow-sm);
}
.acms-msg-success { color: #166534; font-size: 14px; margin-top: 8px; }
.acms-article {
  background: #fff; border-radius: var(--radius-cards); box-shadow: var(--shadow-sm-2);
  padding: 28px; max-width: 760px; margin: 0 auto;
}
.acms-article__cover {
  width: 100%; border-radius: var(--radius-inner); margin-bottom: 20px; display: block;
}
.acms-article__title {
  margin: 0 0 12px; font-size: 28px; font-weight: 500; letter-spacing: -0.05em; line-height: 1.15;
}
.acms-article__meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px;
  color: var(--color-muted-gray); margin-bottom: 16px;
}
.acms-article__lead { font-size: 16px; color: var(--color-muted-gray); margin-bottom: 16px; }
.acms-article__content { font-size: 16px; letter-spacing: -0.031em; line-height: 1.5; }
.acms-article__content img { max-width: 100%; border-radius: var(--radius-inner); }
.sm-inline-figure { margin: 20px 0; }
.acms-tag {
  display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full);
  background: #f2f4f5; font-size: 12px; color: #000; text-decoration: none; margin: 2px;
}
.acms-price { font-weight: 500; font-size: 14px; }
.acms-price--lg { font-size: 20px; letter-spacing: -0.05em; }
.acms-product-info__title { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.05em; }
.acms-product-info__meta { color: var(--color-muted-gray); font-size: 12px; margin: 4px 0; }
.acms-badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-full);
  background: #f2f4f5; font-size: 11px; margin: 6px 0;
}

body[data-aura-theme-pack="shopmist"] .acms-btn,
body[data-aura-theme-wrapped="shopmist"] .acms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-full); font-size: 14px; font-weight: 500;
  letter-spacing: -0.014em; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.2;
}
body[data-aura-theme-pack="shopmist"] .acms-btn--primary,
body[data-aura-theme-wrapped="shopmist"] .acms-btn--primary {
  background: #000; color: #fff; border-color: #000;
}
body[data-aura-theme-pack="shopmist"] .acms-btn--ghost,
body[data-aura-theme-wrapped="shopmist"] .acms-btn--ghost {
  background: #fff; color: #000; border-color: #ebebeb; box-shadow: var(--shadow-sm);
}
body[data-aura-theme-pack="shopmist"] .acms-btn--danger {
  background: #fff; color: #b91c1c; border-color: #ebebeb;
}
body[data-aura-theme-pack="shopmist"] .acms-btn--sm { padding: 6px 14px; font-size: 12px; }
body[data-aura-theme-pack="shopmist"] .acms-btn--block { width: 100%; }
.sm-cart-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius-full); background: #fff; border: 1px solid #ebebeb;
  box-shadow: var(--shadow-sm); color: #000; text-decoration: none; font-size: 14px;
}
.aura-cms-cart-badge {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #000; color: #fff; font-size: 10px;
  align-items: center; justify-content: center;
}

.sm-footer {
  margin-left: var(--rail-w);
  margin-right: var(--shell-inset);
  margin-bottom: var(--shell-inset);
  width: var(--panel-w);
  max-width: var(--panel-w);
  background: #000; color: #fff; padding: 48px 24px 28px;
  box-sizing: border-box;
  border-radius: 0 0 var(--panel-radius) var(--panel-radius);
}
.sm-footer__inner { max-width: var(--page-max-width); margin: 0 auto; }
.sm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.sm-footer__brand-row { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.sm-footer__logo { border-radius: 10px; background: #fff; }
.sm-footer__brand { font-size: 16px; font-weight: 500; }
.sm-footer__lead, .sm-footer__org-desc { color: #acb0aa; font-size: 14px; margin: 0 0 12px; }
.sm-footer__contact { list-style: none; padding: 0; margin: 0 0 16px; }
.sm-footer__contact-item { margin-bottom: 6px; font-size: 14px; color: #ccc; }
.sm-footer__contact-item a { color: #fff; text-decoration: none; }
.sm-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-footer__social-link {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #332f2d;
  display: grid; place-items: center; color: #fff;
}
.sm-footer__social-link svg { width: 16px; height: 16px; }
.sm-footer__heading {
  margin: 0 0 12px; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #acb0aa; font-weight: 500;
}
.sm-footer .acms-theme-nav--footer a, .sm-footer a {
  color: #fff; text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px;
}
.sm-footer__bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid #332f2d;
  font-size: 12px; color: #acb0aa;
}
.sm-footer__copy { margin: 0; }

[data-sm-reveal], [data-ed-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-sm-reveal].is-in, [data-ed-reveal].is-in { opacity: 1; transform: none; }
/* Failsafe: async-injected cards must never stay invisible forever */
@media (prefers-reduced-motion: no-preference) {
  [data-sm-reveal]:not(.is-in), [data-ed-reveal]:not(.is-in) {
    animation: sm-reveal-fallback 0.01s linear 1.5s forwards;
  }
}
@keyframes sm-reveal-fallback {
  to { opacity: 1; transform: none; }
}
.sm-placeholder {
  display: grid; place-items: center; aspect-ratio: 1; background: #f2f4f5; color: #ccc;
}

.sm-auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; max-width: 900px; margin: 0 auto;
}
.sm-auth-layout__photo {
  border-radius: var(--radius-cards); overflow: hidden; margin: 0; min-height: 360px;
}
.sm-auth-layout__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; min-height: 360px;
}
.sm-success-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px;
}
.acms-theme-hero__actions { text-align: center; margin: 14px 24px 0; }
.acms-theme-hero__ai-btn {
  display: inline-flex; padding: 6px 12px; border-radius: var(--radius-full);
  background: transparent; color: var(--color-muted-gray); text-decoration: none;
  font-size: 11px; border: 1px solid #ebebeb; letter-spacing: -0.017em;
}

@media (max-width: 991px) {
  .sm-rail { display: none; }
  body[data-aura-theme-wrapped="shopmist"]::after,
  body[data-aura-theme-pack="shopmist"]::after { display: none; }
  body[data-aura-theme-wrapped="shopmist"],
  body[data-aura-theme-pack="shopmist"] {
    --rail-w: 0px;
    --shell-inset: 0px;
    --panel-w: 100%;
  }
  .sm-app-banner {
    margin: 0; width: 100%; max-width: 100%; border-radius: 0;
  }
  body[data-aura-theme-wrapped="shopmist"] .acms-theme-main,
  body[data-aura-theme-wrapped="shopmist"] main.acms-theme-main,
  body[data-aura-theme-pack="shopmist"] .sm-shell,
  body[data-aura-theme-pack="shopmist"] .sm-home,
  .sm-chrome, .sm-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }
  .acms-theme-nav-toggle { display: grid; }
  .sm-chrome .acms-theme-nav--desktop,
  .sm-chrome .acms-theme-nav { display: none !important; }
  body[data-aura-cms-page="theme-home"] .sm-chrome .sm-search { display: none !important; }
  .sm-chrome .sm-search { display: flex; max-width: none; }
  .sm-chrome__row { grid-template-columns: auto 1fr auto; }
  .sm-wordmark__text { font-size: 16px; }
  .sm-product-rail--4, #product-list.sm-product-rail--4,
  .sm-shop-rail, #ed-home-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-spotlight-grid, #post-list.sm-spotlight-grid,
  .sm-story-rail, #ed-home-posts,
  .sm-svc-tiles, #ed-home-services { grid-template-columns: 1fr; }
  .sm-home-feature, .sm-contact-split,
  .sm-product-layout, .acms-product-layout, .acms-cart-layout,
  .sm-auth-layout, .sm-footer__grid, .sm-cta { grid-template-columns: 1fr; }
  .sm-float-card--3, .sm-float-card--4, .sm-float-card--5 { display: none; }
  .sm-constellation__stage { height: 220px; overflow: hidden; }
  .sm-account-pill { display: none; }
  .sm-cat-rail { padding-left: 16px; padding-right: 16px; }
  .sm-cat-rail__next { display: none; }
}
@media (max-width: 640px) {
  .sm-shell { padding: 20px 16px 64px; }
  .sm-section { padding: 0 16px; }
  .sm-chrome__bar { padding: 10px 12px; }
  .sm-chrome__row { gap: 8px; }
  .sm-search { padding-left: 12px; }
  .sm-search__input { font-size: 14px; }
  .sm-search__submit { width: 40px; height: 40px; }
  .sm-product-rail--4, #product-list.sm-product-rail--4 { grid-template-columns: 1fr; }
  .sm-success-actions { flex-direction: column; }
  .sm-success-actions .acms-btn { width: 100%; }
  .sm-app-banner__line span:not(.sm-app-banner__arrow) { display: none; }
  .sm-float-card--1 { left: 6%; width: 110px; }
  .sm-float-card--2 { width: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-float-card--1, .sm-float-card--2, .sm-float-card--3 { animation: none; }
}
