.sdt-shell {
    --sdt-bg: linear-gradient(180deg, #f4efe6 0%, #fbf9f6 55%, #f3f6f8 100%);
    --sdt-panel: rgba(255, 255, 255, 0.88);
    --sdt-border: rgba(24, 37, 44, 0.08);
    --sdt-text: #1b2427;
    --sdt-muted: #58656b;
    --sdt-accent: #a44f2d;
    --sdt-accent-dark: #7d391f;
    --sdt-shadow: 0 24px 60px rgba(27, 36, 39, 0.12);
    color: var(--sdt-text);
}

.sdt-theme-logistics-startup-modern {
    background: var(--sdt-bg);
    border-radius: 32px;
    padding: 1.25rem;
}

.sdt-theme-logistics-confidence {
    --sdt-bg: linear-gradient(180deg, #0f172a 0%, #172033 48%, #edf1f5 48%);
    --sdt-accent: #d97706;
    --sdt-accent-dark: #92400e;
    background: var(--sdt-bg);
    border-radius: 20px;
    padding: 1.25rem;
}

/*
 * Montanica: the same high-contrast split the merchant's own domain uses, so
 * /stores/montanica and montanicamerch.com read as one storefront. Kept as its
 * own class rather than an alias of logistics-confidence so the brand can move
 * without dragging every other confidence-themed shop with it.
 */
.sdt-theme-montanica {
    /*
     * The dark band stops at a fixed distance, not the 48% the standalone
     * confidence theme uses. On montanicamerch.com the shell is the whole page,
     * so a percentage lands under the hero; inside marketplace chrome the same
     * shell runs much taller and 48% cuts the product grid in half. A length
     * keeps the band behind the hero card whatever the catalog does.
     */
    --sdt-montanica-band: 540px;
    --sdt-bg: linear-gradient(
        180deg,
        #0f172a 0%,
        #172033 var(--sdt-montanica-band),
        #edf1f5 var(--sdt-montanica-band)
    );
    --sdt-accent: #d97706;
    --sdt-accent-dark: #92400e;
    background: var(--sdt-bg);
    border-radius: 20px;
    padding: 1.25rem;
}

.sdt-theme-logistics-creative-agency {
    --sdt-bg: linear-gradient(145deg, #f7e8ff 0%, #fff7e6 44%, #eefbf7 100%);
    --sdt-accent: #7c3aed;
    --sdt-accent-dark: #5b21b6;
    background: var(--sdt-bg);
    border-radius: 36px 12px 36px 12px;
    padding: 1.25rem;
}

.sdt-theme-logistics-ultra-sparse {
    --sdt-bg: #fff;
    --sdt-panel: #fff;
    --sdt-shadow: none;
    --sdt-border: rgba(15, 23, 42, 0.12);
    --sdt-accent: #111827;
    --sdt-accent-dark: #000;
    background: var(--sdt-bg);
    padding: 0;
}

.sdt-mode-banner {
    margin-bottom: 1rem;
    border-radius: 18px;
    background: #fff4dc;
    border: 1px solid #f0d08b;
    color: #6b4a00;
    padding: 0.85rem 1rem;
}

.sdt-hero-card,
.sdt-panel {
    border: 1px solid var(--sdt-border);
    background: var(--sdt-panel);
    box-shadow: var(--sdt-shadow);
    backdrop-filter: blur(8px);
}

.sdt-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 420px;
    display: grid;
    align-items: end;
}

.sdt-hero-media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 35%),
        linear-gradient(135deg, #3d4a51 0%, #8b4a2d 50%, #d0a17a 100%);
}

.sdt-hero-media img,
.sdt-hero-avatar img,
.sdt-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sdt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 19, 22, 0.12) 0%, rgba(14, 19, 22, 0.78) 100%);
}

.sdt-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 1.5rem;
}

.sdt-hero-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.sdt-hero-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.16);
}

.sdt-eyebrow,
.sdt-panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
}

.sdt-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.sdt-hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 4rem);
    line-height: 0.95;
    font-weight: 800;
}

.sdt-subtitle {
    margin: 0.7rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.sdt-description {
    max-width: 48rem;
    margin: 0.8rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.sdt-hero-actions,
.sdt-badges,
.sdt-tags,
.sdt-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sdt-hero-actions {
    margin-top: 1.2rem;
}

.sdt-btn,
.sdt-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sdt-btn {
    padding: 0.85rem 1.2rem;
}

.sdt-btn:hover,
.sdt-product-link:hover {
    transform: translateY(-1px);
}

.sdt-btn-primary,
.sdt-product-link {
    background: var(--sdt-accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(164, 79, 45, 0.24);
}

.sdt-btn-primary:hover,
.sdt-product-link:hover {
    background: var(--sdt-accent-dark);
    color: #fff;
}

.sdt-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.sdt-btn-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.sdt-badge,
.sdt-template-chip,
.sdt-tags span {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.sdt-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sdt-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.95fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.sdt-main,
.sdt-sidebar {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 1.25rem;
}

.sdt-panel {
    border-radius: 24px;
    padding: 1.25rem;
}

.sdt-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sdt-panel-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.sdt-panel-kicker {
    color: var(--sdt-accent);
}

.sdt-template-chip,
.sdt-tags span {
    background: rgba(164, 79, 45, 0.1);
    border: 1px solid rgba(164, 79, 45, 0.18);
    color: var(--sdt-accent-dark);
}

.sdt-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sdt-theme-montanica .sdt-product-media {
    aspect-ratio: 1;
}

.sdt-theme-montanica .sdt-product-media img {
    object-fit: contain;
}

.sdt-theme-montanica .sdt-hero-overlay {
    background: linear-gradient(90deg, rgba(14, 19, 22, .82), rgba(14, 19, 22, .18));
}

.sdt-theme-montanica .sdt-description {
    max-width: 34rem;
    color: #fff;
}

.sdt-shell a:focus-visible {
    outline: 3px solid var(--sdt-accent);
    outline-offset: 4px;
}

.sdt-facts a {
    overflow-wrap: anywhere;
}

.sdt-product-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(24, 37, 44, 0.08);
}

.sdt-product-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #edf1f3;
}

.sdt-product-body {
    padding: 1rem;
}

.sdt-product-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.25;
}

.sdt-product-body h3 a,
.sdt-socials a,
.sdt-facts a {
    color: inherit;
    text-decoration: none;
}

.sdt-product-price {
    margin: 0 0 0.9rem;
    color: var(--sdt-accent-dark);
    font-weight: 800;
}

.sdt-product-link {
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
}

.sdt-richtext,
.sdt-policy-card,
.sdt-empty-state,
.sdt-facts li {
    color: var(--sdt-muted);
}

.sdt-richtext {
    line-height: 1.7;
}

.sdt-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.sdt-facts li {
    display: grid;
    gap: 0.15rem;
}

.sdt-facts span {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: #7a878d;
}

.sdt-facts strong,
.sdt-facts a {
    color: var(--sdt-text);
    font-size: 0.98rem;
}

.sdt-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(24, 37, 44, 0.08);
}

.sdt-policy-stack {
    display: grid;
    gap: 0.9rem;
}

.sdt-policy-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 37, 44, 0.08);
    padding: 0.95rem 1rem;
    line-height: 1.65;
}

.sdt-policy-card h3 {
    margin: 0 0 0.45rem;
    color: var(--sdt-text);
    font-size: 1rem;
}

.sdt-pagination {
    margin-top: 1rem;
}

.sdt-pagination .pagination {
    margin-bottom: 0;
}

.sdt-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdt-pagination li a,
.sdt-pagination li span {
    display: inline-flex;
    min-width: 2.25rem;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(24, 37, 44, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.sdt-pagination li.active span {
    border-color: var(--sdt-accent);
    background: var(--sdt-accent);
    color: #fff;
}

.sdt-pagination li.disabled span {
    opacity: 0.5;
}

.sdt-empty-state {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px dashed rgba(24, 37, 44, 0.16);
    padding: 1.2rem;
}

@media (max-width: 991px) {
    .sdt-layout {
        grid-template-columns: 1fr;
    }

    .sdt-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .sdt-theme-logistics-startup-modern {
        border-radius: 24px;
        padding: 0.85rem;
    }

    /* The hero stacks to one column on narrow screens, so the band grows with it. */
    .sdt-theme-montanica {
        --sdt-montanica-band: 660px;
        border-radius: 24px;
        padding: 0.85rem;
    }

    .sdt-hero-card {
        min-height: 360px;
    }

    .sdt-hero-brand {
        grid-template-columns: 1fr;
    }

    .sdt-hero-avatar {
        width: 72px;
        height: 72px;
    }

    .sdt-panel {
        padding: 1rem;
    }
}
