/* aml-pdp-css-v20260517d — follows store editor theme tokens */
body.pdp-tpl-apple_minimal_luxury {
    margin: 0;
    font-family: var(--aml-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif);
    background: 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-muted: color-mix(in srgb, var(--store-text, #1d1d1f) 56%, var(--store-bg, #ffffff) 44%);
    --aml-radius: max(14px, min(22px, calc(var(--store-btn-radius, 12px) + 8px)));
    --aml-btn-radius: max(10px, min(999px, var(--store-btn-radius, 12px)));
    --aml-pill: 999px;
    --aml-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 32px rgba(0, 0, 0, 0.06);
    --aml-glass: color-mix(in srgb, var(--store-card-bg, #ffffff) 90%, transparent);
    padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom)));
}

body.pdp-tpl-apple_minimal_luxury .aml-pdp-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 16px;
}

body.pdp-tpl-apple_minimal_luxury .aml-topbar {
    position: sticky;
    top: 12px;
    z-index: 200;
    margin-bottom: 28px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--aml-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--aml-border);
    border-radius: var(--aml-pill);
    box-shadow: var(--aml-shadow);
}
body.pdp-tpl-apple_minimal_luxury .aml-topbar a,
body.pdp-tpl-apple_minimal_luxury .aml-topbar button {
    color: var(--aml-black);
    text-decoration: none;
}
body.pdp-tpl-apple_minimal_luxury .aml-topbar-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--aml-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.pdp-tpl-apple_minimal_luxury .aml-topbar-brand {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--store-primary, var(--aml-black));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pdp-tpl-apple_minimal_luxury .aml-topbar-actions {
    display: flex;
    gap: 8px;
}
body.pdp-tpl-apple_minimal_luxury .aml-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--aml-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
body.pdp-tpl-apple_minimal_luxury .aml-icon-btn .aml-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    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: none;
    align-items: center;
    justify-content: center;
}
body.pdp-tpl-apple_minimal_luxury .aml-icon-btn .aml-badge.is-on { display: flex; }

body.pdp-tpl-apple_minimal_luxury .aml-pdp-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}
@media (min-width: 900px) {
    body.pdp-tpl-apple_minimal_luxury .aml-pdp-main {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 56px;
    }
}

/* Gallery */
body.pdp-tpl-apple_minimal_luxury .aml-pdp-gallery {
    position: relative;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-stage {
    aspect-ratio: 1;
    border-radius: var(--aml-radius);
    border: 1px solid var(--aml-border);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--store-bg, #fff) 78%, var(--store-text, #1d1d1f) 22%),
        var(--store-card-bg, #fff)
    );
    overflow: hidden;
    touch-action: pan-y;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(24px, 5vw, 48px);
    display: block;
    transition: opacity 0.35s ease;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 1px solid var(--aml-border);
    background: var(--aml-surface);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-thumb.is-active {
    opacity: 1;
    border-color: var(--aml-cta);
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Details */
body.pdp-tpl-apple_minimal_luxury .aml-pdp-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aml-accent);
    margin: 0 0 10px;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-title {
    margin: 0;
    font-family: var(--aml-heading-font, inherit);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--store-primary, var(--aml-black));
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-lead {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--aml-muted);
    font-weight: 400;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-price {
    margin-top: 24px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--store-primary, var(--aml-black));
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-price old {
    font-size: 0.65em;
    font-weight: 500;
    color: var(--aml-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

body.pdp-tpl-apple_minimal_luxury .aml-pdp-form {
    margin-top: 28px;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aml-muted);
    margin-bottom: 10px;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-variants label {
    position: relative;
    cursor: pointer;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-variants input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-variants span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--aml-pill);
    border: 1px solid var(--aml-border);
    background: var(--aml-surface);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-variants input:checked + span {
    background: var(--aml-cta);
    border-color: var(--aml-cta);
    color: #fff;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-qty input {
    width: 72px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--aml-border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body.pdp-tpl-apple_minimal_luxury .aml-btn {
    appearance: none;
    border: none;
    border-radius: var(--aml-pill);
    min-height: 50px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
body.pdp-tpl-apple_minimal_luxury .aml-btn--primary {
    background: var(--aml-cta);
    color: #fff;
    width: 100%;
    border-radius: var(--aml-btn-radius, var(--aml-pill));
}
body.pdp-tpl-apple_minimal_luxury .aml-btn--primary:hover { opacity: 0.92; }
body.pdp-tpl-apple_minimal_luxury .aml-btn--secondary {
    background: var(--store-card-bg, #fff);
    color: var(--aml-black);
    border: 1px solid var(--aml-border);
    width: 100%;
    border-radius: var(--aml-btn-radius, var(--aml-pill));
}
body.pdp-tpl-apple_minimal_luxury .aml-btn--secondary.is-saved { color: #b42318; }

/* Accordions */
body.pdp-tpl-apple_minimal_luxury .aml-pdp-accordions {
    margin-top: 64px;
    border-top: 1px solid var(--aml-border);
}
body.pdp-tpl-apple_minimal_luxury .aml-acc {
    border-bottom: 1px solid var(--aml-border);
}
body.pdp-tpl-apple_minimal_luxury .aml-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--aml-black);
    cursor: pointer;
    text-align: left;
}
body.pdp-tpl-apple_minimal_luxury .aml-acc-btn i {
    font-size: 12px;
    color: var(--aml-muted);
    transition: transform 0.25s ease;
}
body.pdp-tpl-apple_minimal_luxury .aml-acc.is-open .aml-acc-btn i {
    transform: rotate(180deg);
}
body.pdp-tpl-apple_minimal_luxury .aml-acc-panel {
    display: none;
    padding: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--aml-muted);
}
body.pdp-tpl-apple_minimal_luxury .aml-acc.is-open .aml-acc-panel {
    display: block;
}
body.pdp-tpl-apple_minimal_luxury .aml-acc-panel ul {
    margin: 0;
    padding-left: 18px;
}
body.pdp-tpl-apple_minimal_luxury .aml-acc-panel li + li { margin-top: 8px; }

/* Related */
body.pdp-tpl-apple_minimal_luxury .aml-pdp-related {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--aml-border);
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-related h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
body.pdp-tpl-apple_minimal_luxury .aml-rel-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--aml-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.pdp-tpl-apple_minimal_luxury .aml-rel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aml-shadow);
}
body.pdp-tpl-apple_minimal_luxury .aml-rel-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 16px;
    background: var(--aml-surface);
}
body.pdp-tpl-apple_minimal_luxury .aml-rel-card span {
    display: block;
    padding: 14px 16px 16px;
    font-size: 14px;
    font-weight: 600;
}
body.pdp-tpl-apple_minimal_luxury .aml-rel-card em {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: var(--aml-muted);
    margin-top: 4px;
}

/* Sticky mobile ATC */
body.pdp-tpl-apple_minimal_luxury .aml-pdp-sticky {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 300;
    width: min(480px, calc(100% - 24px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--aml-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--aml-border);
    border-radius: var(--aml-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-sticky-info {
    flex: 1;
    min-width: 0;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-sticky-info strong {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-sticky-info span {
    font-size: 12px;
    color: var(--aml-muted);
}
body.pdp-tpl-apple_minimal_luxury .aml-pdp-sticky .aml-btn--primary {
    width: auto;
    min-height: 44px;
    padding: 0 20px;
    flex-shrink: 0;
}
@media (min-width: 900px) {
    body.pdp-tpl-apple_minimal_luxury .aml-pdp-sticky { display: none; }
}
@media (max-width: 899px) {
    body.pdp-tpl-apple_minimal_luxury .aml-pdp-form .aml-btn--primary { display: none; }
}
@media (max-width: 700px) {
    body.pdp-tpl-apple_minimal_luxury .aml-pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    body.pdp-tpl-apple_minimal_luxury .aml-pdp-shell { width: calc(100% - 32px); }
}
