.ecommerce-demo-body {
    background: #eef4f8;
}

.ecommerce-demo {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0;
}

.shop-hero,
.shop-grid > article {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.shop-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-bottom: 18px;
}

.shop-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 38px);
}

.shop-hero p,
.shop-grid p,
.event-panel li,
.checkout-panel dt {
    color: #64748b;
}

.shop-hero-actions,
.shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 14px;
}

.shop-grid > article {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.product-panel {
    grid-row: span 2;
}

.product-media {
    display: grid;
    place-items: end start;
    min-height: 220px;
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(135deg, #082f49, #0f766e 54%, #f8fafc);
    color: #fff;
}

.product-media span {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.product-panel h2,
.checkout-panel h2,
.widget-panel h2,
.event-panel h2 {
    margin: 0;
}

.product-panel strong {
    font-size: 22px;
}

.checkout-panel dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.checkout-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.checkout-panel dd,
.checkout-panel dt {
    margin: 0;
}

.widget-panel iframe {
    width: 100%;
    min-height: 150px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
}

.event-panel ol {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding-left: 20px;
}

.event-panel li {
    line-height: 1.45;
}

@media (max-width: 900px) {
    .shop-hero,
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .product-panel {
        grid-row: auto;
    }
}

/* eCommerce demo compact polish 2026-09-02 */
.shop-hero {
    align-items: start;
}
.shop-hero .demo-nav {
    justify-content: flex-end;
    max-width: 560px;
}
.shop-grid > article {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}
.product-panel p,
.checkout-panel p,
.widget-panel p,
.event-panel li {
    font-size: 13px;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .shop-hero .demo-nav {
        justify-content: flex-start;
    }
}


/* eCommerce demo premium clarity 2026-09-02 */
.ecommerce-demo { width: min(1500px, calc(100% - 28px)); padding: 16px 0 30px; }
.shop-hero { min-height: 118px; padding: 16px; gap: 12px; }
.shop-hero h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; margin-bottom: 6px; }
.shop-hero p { font-size: 12.5px; line-height: 1.5; max-width: 780px; }
.shop-hero-actions .button,
.shop-actions .button { min-height: 32px; padding: 7px 10px; font-size: 11px; }
.shop-grid { grid-template-columns: minmax(0,1fr) minmax(300px,.78fr); gap: 10px; }
.shop-grid > article { gap: 10px; padding: 14px; border-radius: 9px; }
.product-media { min-height: 176px; }
.product-panel h2,
.checkout-panel h2,
.widget-panel h2,
.event-panel h2 { font-size: 18px; line-height: 1.15; }
.product-panel p,
.checkout-panel p,
.widget-panel p,
.event-panel li { font-size: 12px; }
.product-panel strong { font-size: 19px; }
.checkout-panel dl div { font-size: 11.5px; }
.event-panel ol { max-height: 270px; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr; } }


/* Shop system demo clarity 2026-09-02 */
.shop-consent-board { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 10px; }
.shop-consent-board article { display: grid; gap: 4px; min-height: 78px; border: 1px solid #dbe5ef; border-radius: 9px; background: #fff; padding: 11px; box-shadow: 0 10px 24px rgba(15,23,42,.04); }
.shop-consent-board span { color: #64748b; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.shop-consent-board strong { color: #0f172a; font-size: 13px; line-height: 1.18; }
.shop-consent-board small { color: #526174; font-size: 10.8px; line-height: 1.35; }
.shop-system-matrix { display: grid; grid-template-columns: minmax(260px,.42fr) minmax(0,1fr); gap: 12px; align-items: start; margin-top: 10px; border: 1px solid #dbe5ef; border-radius: 10px; background: #fff; padding: 14px; box-shadow: 0 12px 30px rgba(15,23,42,.045); }
.shop-system-matrix h2 { margin: 0 0 6px; color: #0f172a; font-size: 19px; line-height: 1.12; }
.shop-system-matrix p:not(.eyebrow) { margin: 0; color: #526174; font-size: 12px; line-height: 1.45; }
.shop-system-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.shop-system-grid article { display: grid; gap: 4px; min-height: 92px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfdff; padding: 10px; }
.shop-system-grid strong { color: #0f172a; font-size: 12.5px; line-height: 1.18; }
.shop-system-grid small { color: #526174; font-size: 10.8px; line-height: 1.35; }
.event-panel ol { scrollbar-width: thin; }
@media(max-width:1100px){ .shop-consent-board, .shop-system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .shop-system-matrix { grid-template-columns: 1fr; } }
@media(max-width:640px){ .shop-consent-board, .shop-system-grid { grid-template-columns: 1fr; } }

/* eCommerce flow studio polish 2026-09-04 */
.ecommerce-demo {
    display: grid !important;
    gap: 12px !important;
}
.shop-grid {
    display: grid !important;
    grid-template-columns: minmax(280px, .85fr) minmax(300px, .9fr) minmax(280px, .8fr) minmax(320px, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
}
.product-panel,
.checkout-panel,
.widget-panel,
.event-panel {
    display: grid !important;
    align-content: start !important;
    gap: 10px !important;
    padding: 16px !important;
    border: 1px solid #e0e6dc !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(17,17,17,.045) !important;
}
.product-media {
    min-height: 170px !important;
    border-radius: 16px !important;
    background: radial-gradient(circle at 25% 18%, #a9ff53 0 10%, transparent 28%), linear-gradient(135deg, #f8faf5, #eaf1ec) !important;
    border: 1px solid #e0e6dc !important;
}
.product-media span {
    display: inline-flex !important;
    width: max-content !important;
    margin: 12px !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 850 !important;
}
.product-panel h2,
.checkout-panel h2,
.widget-panel h2,
.event-panel h2,
.shop-system-matrix h2 {
    color: #111 !important;
    font-size: 22px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}
.product-panel p,
.checkout-panel p,
.widget-panel p {
    color: #626b61 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.product-panel > strong {
    color: #111 !important;
    font-size: 24px !important;
    line-height: 1 !important;
}
.shop-actions,
.shop-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}
.shop-actions .button,
.shop-hero-actions .button {
    min-height: 34px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
}
.checkout-panel dl {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
}
.checkout-panel dl div {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 9px 10px !important;
    border: 1px solid #edf0e9 !important;
    border-radius: 12px !important;
    background: #fbfcf8 !important;
}
.checkout-panel dt,
.checkout-panel dd {
    margin: 0 !important;
    color: #111 !important;
    font-size: 11.5px !important;
    font-weight: 760 !important;
}
.checkout-panel dt { color: #667064 !important; }
.widget-panel iframe {
    width: 100% !important;
    min-height: 138px !important;
    border: 1px dashed #cfd8cb !important;
    border-radius: 14px !important;
    background: #f7f8f3 !important;
}
#event-log {
    display: grid !important;
    gap: 6px !important;
    max-height: 310px !important;
    overflow: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
#event-log li {
    padding: 8px 9px !important;
    border: 1px solid #edf0e9 !important;
    border-radius: 11px !important;
    background: #fbfcf8 !important;
    color: #363d35 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}
.shop-system-matrix {
    display: grid !important;
    grid-template-columns: minmax(260px,.38fr) minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
    border: 1px solid #e0e6dc !important;
    border-radius: 18px !important;
    background: #fff !important;
}
.shop-system-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
@media(max-width:1280px){
    .shop-grid,
    .shop-system-matrix { grid-template-columns: 1fr !important; }
    .shop-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media(max-width:680px){
    .shop-system-grid { grid-template-columns: 1fr !important; }
}