/* Shed configurator layout */
:root {
    --bg: #f4f6f8;
    --surface: rgba(255, 255, 255, 0.9);
    --panel: #ffffff;
    --panel-strong: #f3f5f7;
    --stroke: rgba(15, 23, 42, 0.12);
    --accent: #f7b733;
    --accent-2: #2bb8a0;
    --muted: #5b6472;
    --text: #0f172a;
    --glow: none;
    --radius: 20px;
    --font: 'Space Grotesk', 'Roboto', sans-serif;
}

.warehouse-page {
    background: #ffffff;
    color: var(--text);
    font-family: var(--font);
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.warehouse-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px auto;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.warehouse-lang .lang-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.warehouse-lang .lang-separator {
    color: rgba(15, 23, 42, 0.3);
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-top .warehouse-lang {
    margin: 0 0 0 auto;
}

.hero-top .eyebrow {
    margin: 0;
}

.warehouse-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(247, 183, 51, 0.18);
    border: 1px solid rgba(247, 183, 51, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
    color: #8a5a00;
}

.warehouse-page .eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(247, 183, 51, 0.22);
}

.warehouse-page h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.warehouse-page.is-embedded h1 {
    display: none;
}

.warehouse-page p {
    color: var(--muted);
    margin: 4px 0 16px 0;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    box-shadow: var(--glow);
}

.warehouse-thanks .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 28px;
}

.warehouse-thanks .warehouse-lang {
    margin: 0 auto 16px auto;
}

.warehouse-thanks .thanks-note {
    max-width: 560px;
    margin: 8px auto 0 auto;
    font-size: 16px;
    color: var(--muted);
}

.warehouse-thanks .thanks-package {
    margin: 20px auto 0 auto;
    max-width: 720px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--glow);
    padding: 12px;
}

.warehouse-thanks .thanks-package img {
    display: block;
    width: 100%;
    height: auto;
}

.warehouse-thanks .thanks-package-note {
    margin: 10px auto 0 auto;
    max-width: 720px;
    font-size: 15px;
    color: var(--muted);
}

.warehouse-thanks .thanks-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}


.stat-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.stat-chip {
    background: var(--panel-strong);
    border: 1px solid var(--stroke);
    padding: 10px 12px;
    border-radius: 14px;
    min-width: 120px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cta {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cta.primary {
    background: linear-gradient(120deg, #ffc542, #ff9d00);
    color: #1f1400;
    box-shadow: 0 10px 24px rgba(247, 183, 51, 0.28);
}

.cta.secondary {
    background: transparent;
    border: 1px solid var(--stroke);
    color: #334155;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.15);
}

.section {
    margin-top: 28px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--glow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(43, 184, 160, 0.12);
    border: 1px solid rgba(43, 184, 160, 0.35);
    border-radius: 10px;
    color: #158e7b;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.type-card,
.option-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.9));
    border: 1px solid var(--stroke);
    border-radius: 0;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.type-card,
.option-card,
.chip {
    position: relative;
}

.type-card:hover,
.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 180, 0, 0.5);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.15);
}

.type-card.active,
.option-card.active {
    border-color: rgba(245, 180, 0, 0.7);
    box-shadow: 0 10px 24px rgba(247, 183, 51, 0.18);
}

.type-card.active::after,
.option-card.active::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(245, 180, 0, 0.55);
    box-shadow: 0 10px 20px rgba(247, 183, 51, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

.type-card.active::before,
.option-card.active::before {
    content: '';
    position: absolute;
    top: 22px;
    right: 20px;
    width: 9px;
    height: 5px;
    border: 2px solid rgba(15, 23, 42, 0.7);
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.type-card h3,
.option-card h4 {
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.type-size {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

.type-thumb {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
    margin-bottom: 12px;
    display: block;
}

.option-thumb {
    width: 100%;
    height: 140px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chip {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--stroke);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.chip.active {
    background: linear-gradient(120deg, #ffc542, #ff9d00);
    color: #1f1400;
    border-color: rgba(245, 180, 0, 0.6);
    box-shadow: 0 10px 24px rgba(247, 183, 51, 0.22);
    padding-right: 34px;
}

.chip.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(245, 180, 0, 0.55);
    box-shadow: 0 8px 16px rgba(247, 183, 51, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

.chip.active::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 6px;
    height: 3px;
    border: 2px solid rgba(15, 23, 42, 0.7);
    border-top: 0;
    border-right: 0;
    transform: translateY(-55%) rotate(-45deg);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.option-card .hint {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 6px;
}

.diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.diagram-card {
    background: var(--panel-strong);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px;
}

.diagram-card .title {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.diagram-card .value {
    font-size: 20px;
    font-weight: 700;
}

.summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.summary-panel {
    background: var(--panel-strong);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    max-width: none;
    margin: 0;
    width: 100%;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    width: 100%;
}

.summary-card,
.summary-card * {
    box-sizing: border-box;
}

.summary-card .section-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.order-form {
    display: grid;
    gap: 12px;
    margin: 0;
    max-width: none;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    width: 100%;
}

.order-form,
.order-form * {
    box-sizing: border-box;
}

.order-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.order-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: none;
}

.order-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.order-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.order-form:not(.is-company) .company-only {
    display: none;
}

.order-form.is-company .company-only {
    display: grid;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--muted);
    min-width: 0;
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
    outline: none;
    border-color: rgba(245, 180, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.18);
    background: #ffffff;
}

.field-wide {
    grid-column: span 1;
}

.order-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.order-note {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.order-form .cta.primary {
    width: 100%;
    justify-content: center;
}

.summary-figure {
    margin: 10px auto 14px auto;
}

.summary-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--stroke);
    margin: 0;
    display: block;
}

.warehouse-page .summary-image-note {
    margin: 8px 0 0 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-left: 4px solid #ff9d00;
}

.summary-price {
    margin: 6px 0 14px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    min-height: 24px;
}

.summary-files {
    margin: 0 0 14px 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-line;
}

.summary-weight {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.summary-fasteners {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.tech-only {
    display: none;
}

.warehouse-page.tech-mode .tech-only {
    display: block;
}

.summary-price .font08 {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.kv {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    min-height: 38px;
    line-height: 1.2;
    flex-wrap: wrap;
    word-break: break-word;
}

.pill-price {
    background: linear-gradient(120deg, rgba(255, 197, 66, 0.35), rgba(255, 157, 0, 0.2));
    border-color: rgba(245, 180, 0, 0.6);
    color: #1f1400;
    box-shadow: 0 8px 18px rgba(247, 183, 51, 0.2);
}

.pill-price .price-amount {
    display: inline-block;
    padding: 2px 6px;
    margin: 0 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    color: #0f172a;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wall-zones {
    gap: 20px;
}

.wall-zone {
    --zone-accent: #64748b;
    --zone-spot: 10% 12%;
    --zone-tint: rgba(100, 116, 139, 0.12);
    background: radial-gradient(circle at var(--zone-spot), rgba(15, 23, 42, 0.03), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), var(--zone-tint));
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0;
    padding: 16px 14px 14px 14px;
    position: relative;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.wall-zone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--zone-accent), transparent);
    z-index: 0;
}

.wall-zone::before {
    content: attr(data-side);
    position: absolute;
    right: 12px;
    bottom: 8px;
    max-width: 70%;
    text-align: right;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.05);
    pointer-events: none;
    z-index: 0;
}

.wall-zone > * {
    position: relative;
    z-index: 1;
}

.wall-zone .section-title {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.wall-zone .section-title::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--zone-accent);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.wall-left {
    --zone-accent: #3b82f6;
    --zone-spot: 0% 50%;
    --zone-tint: rgba(59, 130, 246, 0.08);
}

.wall-right {
    --zone-accent: #22c55e;
    --zone-spot: 100% 50%;
    --zone-tint: rgba(34, 197, 94, 0.08);
}

.wall-front {
    --zone-accent: #f59e0b;
    --zone-spot: 50% 0%;
    --zone-tint: rgba(245, 158, 11, 0.09);
}

.wall-back {
    --zone-accent: #ef4444;
    --zone-spot: 50% 100%;
    --zone-tint: rgba(239, 68, 68, 0.08);
}

.wall-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.wall-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wall-sections-double {
    display: none;
}

.wall-subzone {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.sub-section-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px 0;
}

.option-card .row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.option-card .row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.3);
}

.divider {
    height: 1px;
    background: var(--stroke);
    margin: 12px 0;
}


.mobile-note {
    display: none;
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

@media (max-width: 1550px) and (min-width: 901px) {
    #type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .warehouse-page {
        padding: 0;
    }

    .hero {
        padding: 18px;
    }

    .summary {
        grid-template-columns: 1fr;
    }

    .mobile-note {
        display: block;
    }
}

@media (max-width: 1400px) {
    .summary-grid {
        max-width: none;
    }
}

@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

@media (max-width: 700px) {
    .summary-grid {
        max-width: none;
    }

    .summary-image {
        height: 300px;
    }

    .order-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: span 1;
    }

    .summary-list {
        grid-template-columns: 1fr;
    }
}
