/* aml-cart-css-v20260517 — Apple Minimal Luxury cart (theme tokens from :root) */
body.shop-tpl-apple_minimal_luxury,
body.shop-tpl-apple_minimal {
    margin: 0;
    font-family: var(--aml-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif);
    background: var(--aml-page-bg, var(--store-bg, #ffffff));
    color: var(--store-text, #1d1d1f);
    -webkit-font-smoothing: antialiased;
    --aml-bg: var(--store-bg, #ffffff);
    --aml-black: var(--store-text, #1d1d1f);
    --aml-primary: var(--store-primary, #1d1d1f);
    --aml-cta: var(--store-button, #1d1d1f);
    --aml-accent: var(--store-accent, #5e6b7a);
    --aml-surface: color-mix(in srgb, var(--store-bg, #ffffff) 90%, var(--store-text, #1d1d1f) 10%);
    --aml-border: color-mix(in srgb, var(--store-text, #1d1d1f) 12%, transparent);
    --aml-border-soft: color-mix(in srgb, var(--store-text, #1d1d1f) 7%, transparent);
    --aml-muted: color-mix(in srgb, var(--store-text, #1d1d1f) 56%, var(--store-bg, #ffffff) 44%);
    --aml-radius: max(12px, min(16px, calc(var(--store-btn-radius, 12px) * 0.45 + 10px)));
    --aml-btn-radius: max(8px, min(12px, var(--store-btn-radius, 12px)));
    --aml-topbar-radius: max(12px, min(16px, calc(var(--store-btn-radius, 12px) * 0.4 + 10px)));
    --aml-pill: 999px;
    --aml-page-bg: color-mix(in srgb, var(--store-bg, #ffffff) 8%, var(--store-card-bg, #ffffff) 92%);
    --aml-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 28px rgba(0, 0, 0, 0.04);
    --aml-glass: color-mix(in srgb, var(--store-card-bg, #ffffff) 92%, transparent);
    --aml-safe-top: env(safe-area-inset-top, 0px);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-page,
body.shop-tpl-apple_minimal .aml-cart-page {
    min-height: 100vh;
    padding-bottom: max(100px, calc(88px + env(safe-area-inset-bottom)));
    background: var(--aml-page-bg);
}

body.shop-tpl-apple_minimal_luxury .aml-shell,
body.shop-tpl-apple_minimal .aml-shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

body.shop-tpl-apple_minimal_luxury .aml-topbar,
body.shop-tpl-apple_minimal .aml-topbar {
    position: sticky;
    top: var(--aml-safe-top);
    z-index: 200;
    margin: 10px 0 8px;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
    background: var(--aml-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--aml-border-soft);
    border-radius: var(--aml-topbar-radius);
    box-shadow: var(--aml-shadow);
}

body.shop-tpl-apple_minimal_luxury .aml-topbar-home,
body.shop-tpl-apple_minimal .aml-topbar-home {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--aml-border);
    background: var(--store-card-bg, #fff);
    color: var(--aml-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

body.shop-tpl-apple_minimal_luxury .aml-topbar-brand,
body.shop-tpl-apple_minimal .aml-topbar-brand {
    text-align: center;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--aml-black);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.shop-tpl-apple_minimal_luxury .aml-topbar-cart,
body.shop-tpl-apple_minimal .aml-topbar-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--aml-border);
    background: var(--store-card-bg, #fff);
    color: var(--aml-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

body.shop-tpl-apple_minimal_luxury .aml-topbar-cart .aml-badge,
body.shop-tpl-apple_minimal .aml-topbar-cart .aml-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--aml-pill);
    background: var(--aml-cta);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-hero,
body.shop-tpl-apple_minimal .aml-cart-hero {
    text-align: center;
    padding: clamp(36px, 6vw, 56px) 12px clamp(24px, 4vw, 36px);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-hero h1,
body.shop-tpl-apple_minimal .aml-cart-hero h1 {
    margin: 0;
    font-family: var(--aml-font, -apple-system, BlinkMacSystemFont, system-ui, sans-serif);
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-hero p,
body.shop-tpl-apple_minimal .aml-cart-hero p {
    margin: 14px auto 0;
    max-width: 42ch;
    font-size: 16px;
    line-height: 1.65;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-layout,
body.shop-tpl-apple_minimal .aml-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (min-width: 960px) {
    body.shop-tpl-apple_minimal_luxury .aml-cart-layout,
    body.shop-tpl-apple_minimal .aml-cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: 40px;
    }
}

body.shop-tpl-apple_minimal_luxury .aml-cart-ship,
body.shop-tpl-apple_minimal .aml-cart-ship {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--aml-radius);
    border: 1px solid var(--aml-border-soft);
    background: var(--store-card-bg, #fff);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-ship p,
body.shop-tpl-apple_minimal .aml-cart-ship p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-ship strong,
body.shop-tpl-apple_minimal .aml-cart-ship strong {
    color: var(--aml-black);
    font-weight: 600;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-ship-track,
body.shop-tpl-apple_minimal .aml-cart-ship-track {
    height: 4px;
    border-radius: var(--aml-pill);
    background: color-mix(in srgb, var(--store-text, #1d1d1f) 8%, transparent);
    overflow: hidden;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-ship-fill,
body.shop-tpl-apple_minimal .aml-cart-ship-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--aml-cta);
    transition: width 0.5s ease;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-list,
body.shop-tpl-apple_minimal .aml-cart-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item,
body.shop-tpl-apple_minimal .aml-cart-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    background: var(--store-card-bg, #fff);
    border: 1px solid var(--aml-border-soft);
    border-radius: var(--aml-radius);
    box-shadow: var(--aml-shadow);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-media,
body.shop-tpl-apple_minimal .aml-cart-item-media {
    border-radius: calc(var(--aml-radius) - 4px);
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--store-bg, #fff) 80%, var(--store-text, #1d1d1f) 20%),
        var(--store-card-bg, #fff)
    );
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-media img,
body.shop-tpl-apple_minimal .aml-cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-body,
body.shop-tpl-apple_minimal .aml-cart-item-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-title,
body.shop-tpl-apple_minimal .aml-cart-item-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-title a,
body.shop-tpl-apple_minimal .aml-cart-item-title a {
    color: inherit;
    text-decoration: none;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-meta,
body.shop-tpl-apple_minimal .aml-cart-item-meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-price,
body.shop-tpl-apple_minimal .aml-cart-item-price {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-line,
body.shop-tpl-apple_minimal .aml-cart-item-line {
    font-size: 13px;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-item-actions,
body.shop-tpl-apple_minimal .aml-cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--aml-border-soft);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-qty,
body.shop-tpl-apple_minimal .aml-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--aml-btn-radius);
    border: 1px solid var(--aml-border);
    background: var(--store-card-bg, #fff);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-qty button,
body.shop-tpl-apple_minimal .aml-cart-qty button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--aml-surface);
    color: var(--aml-black);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-qty button:active,
body.shop-tpl-apple_minimal .aml-cart-qty button:active {
    transform: scale(0.94);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-qty input,
body.shop-tpl-apple_minimal .aml-cart-qty input {
    width: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--aml-black);
    -moz-appearance: textfield;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-qty input::-webkit-outer-spin-button,
body.shop-tpl-apple_minimal_luxury .aml-cart-qty input::-webkit-inner-spin-button,
body.shop-tpl-apple_minimal .aml-cart-qty input::-webkit-outer-spin-button,
body.shop-tpl-apple_minimal .aml-cart-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-remove,
body.shop-tpl-apple_minimal .aml-cart-remove {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--aml-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 4px;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-remove:hover,
body.shop-tpl-apple_minimal .aml-cart-remove:hover {
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-aside,
body.shop-tpl-apple_minimal .aml-cart-aside {
    position: relative;
}

@media (min-width: 960px) {
    body.shop-tpl-apple_minimal_luxury .aml-cart-summary-card,
    body.shop-tpl-apple_minimal .aml-cart-summary-card {
        position: sticky;
        top: calc(var(--aml-safe-top) + 72px);
    }
}

body.shop-tpl-apple_minimal_luxury .aml-cart-summary-card,
body.shop-tpl-apple_minimal .aml-cart-summary-card {
    padding: 24px;
    background: var(--store-card-bg, #fff);
    border: 1px solid var(--aml-border-soft);
    border-radius: var(--aml-radius);
    box-shadow: var(--aml-shadow);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-summary-card h2,
body.shop-tpl-apple_minimal .aml-cart-summary-card h2 {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sum-row,
body.shop-tpl-apple_minimal .aml-cart-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--aml-border-soft);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sum-row:last-of-type,
body.shop-tpl-apple_minimal .aml-cart-sum-row:last-of-type {
    border-bottom: none;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sum-row span:first-child,
body.shop-tpl-apple_minimal .aml-cart-sum-row span:first-child {
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sum-row--total,
body.shop-tpl-apple_minimal .aml-cart-sum-row--total {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--aml-border);
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sum-row--total span:first-child,
body.shop-tpl-apple_minimal .aml-cart-sum-row--total span:first-child {
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-btn,
body.shop-tpl-apple_minimal .aml-btn {
    appearance: none;
    border: none;
    border-radius: var(--aml-btn-radius, var(--aml-pill));
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

body.shop-tpl-apple_minimal_luxury .aml-btn--primary,
body.shop-tpl-apple_minimal .aml-btn--primary {
    margin-top: 20px;
    background: var(--aml-cta);
    color: #fff;
}

body.shop-tpl-apple_minimal_luxury .aml-btn--primary:hover,
body.shop-tpl-apple_minimal .aml-btn--primary:hover {
    opacity: 0.92;
}

body.shop-tpl-apple_minimal_luxury .aml-btn--secondary,
body.shop-tpl-apple_minimal .aml-btn--secondary {
    margin-top: 10px;
    background: transparent;
    color: var(--aml-black);
    border: 1px solid var(--aml-border);
}

body.shop-tpl-apple_minimal_luxury .aml-btn:active,
body.shop-tpl-apple_minimal .aml-btn:active {
    transform: scale(0.98);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-empty,
body.shop-tpl-apple_minimal .aml-cart-empty {
    text-align: center;
    padding: clamp(48px, 10vw, 80px) 24px;
    background: var(--store-card-bg, #fff);
    border: 1px solid var(--aml-border-soft);
    border-radius: var(--aml-radius);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-empty-icon,
body.shop-tpl-apple_minimal .aml-cart-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 1px solid var(--aml-border);
    background: var(--aml-surface);
    color: var(--aml-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-empty h2,
body.shop-tpl-apple_minimal .aml-cart-empty h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-empty p,
body.shop-tpl-apple_minimal .aml-cart-empty p {
    margin: 12px auto 24px;
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.6;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sticky,
body.shop-tpl-apple_minimal .aml-cart-sticky {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 180;
    width: min(440px, calc(100% - 24px));
    transform: translateX(-50%);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: var(--aml-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--aml-border-soft);
    border-radius: var(--aml-pill);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.shop-tpl-apple_minimal_luxury[data-cart-has-items="1"] .aml-cart-sticky,
body.shop-tpl-apple_minimal[data-cart-has-items="1"] .aml-cart-sticky {
    display: flex;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sticky-total,
body.shop-tpl-apple_minimal .aml-cart-sticky-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sticky-total span:first-child,
body.shop-tpl-apple_minimal .aml-cart-sticky-total span:first-child {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aml-muted);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sticky-total strong,
body.shop-tpl-apple_minimal .aml-cart-sticky-total strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--aml-black);
}

body.shop-tpl-apple_minimal_luxury .aml-cart-sticky .aml-btn--primary,
body.shop-tpl-apple_minimal .aml-cart-sticky .aml-btn--primary {
    margin: 0;
    width: auto;
    min-height: 44px;
    padding: 0 20px;
    white-space: nowrap;
}

@media (min-width: 960px) {
    body.shop-tpl-apple_minimal_luxury .aml-cart-sticky,
    body.shop-tpl-apple_minimal .aml-cart-sticky {
        display: none !important;
    }
    body.shop-tpl-apple_minimal_luxury .aml-cart-aside .aml-btn--primary,
    body.shop-tpl-apple_minimal .aml-cart-aside .aml-btn--primary {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    body.shop-tpl-apple_minimal_luxury .aml-shell,
    body.shop-tpl-apple_minimal .aml-shell {
        width: calc(100% - 28px);
    }
    body.shop-tpl-apple_minimal_luxury .aml-cart-item,
    body.shop-tpl-apple_minimal .aml-cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }
    body.shop-tpl-apple_minimal_luxury .aml-cart-aside .aml-btn--primary,
    body.shop-tpl-apple_minimal .aml-cart-aside .aml-btn--primary {
        display: none;
    }
}
