/* === LiontekBeam — Steel E-Commerce === */

:root {
    --primary: #1a1a1a;
    --primary-light: #2a2a2a;
    --accent: #ffd700;
    --accent-hover: #e6c200;
    --cta: #ffd700;
    --cta-hover: #e6c200;
    --success: #00a118;
    --warning: #f39c12;
    --danger: #b20000;
    --text: #222222;
    --text-light: #666666;
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    line-height: 1.6;
}

/* === Skip to Content (Accessibility) === */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0.5rem;
}

/* === Focus Indicators (Accessibility) === */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.form-select:focus-visible,
.form-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25);
}

/* === Header === */
.site-header {
    background: var(--primary);
    position: relative;
    z-index: 100;
}

.site-header .navbar {
    padding: 0.75rem 0;
}

/* === Logo === */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.site-header .nav-link:hover {
    color: #fff !important;
}

/* === Mobile Nav Drawer === */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3) !important;
    padding: 0.4rem 0.6rem !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4) !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-light);
        border-top: 1px solid rgba(255,255,255,0.1);
        margin: 0.5rem -12px 0;
        padding: 0.75rem 1rem 1rem;
        border-radius: 0 0 var(--radius) var(--radius);
        animation: slideDown 0.2s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .site-header .nav-link {
        padding: 0.6rem 0.5rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .navbar-nav.ms-auto {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

.basket-count {
    background: var(--accent);
    color: #1a1a1a;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 0.75rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.basket-count.bounce {
    animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* === Shop Hero === */
.shop-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2rem;
}

.shop-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shop-hero .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
}

/* === Homepage Hero (enhanced) === */
.hero-section {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* === Hero Split Layout === */
.hero-split {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 320px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@media (max-width: 991px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-logo-panel {
        order: -1;
    }
    .hero-logo-img {
        width: 260px;
    }
    .hero-ctas {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-logo-img {
        width: 200px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-section h1 span {
    color: var(--accent);
}

.hero-section .lead {
    color: rgba(255,255,255,0.82);
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    width: auto;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,215,0,0.08);
    text-decoration: none;
}

/* === Trust Signals === */
.trust-signals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .trust-signals {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-signals {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.9);
}

.trust-icon {
    flex-shrink: 0;
    color: var(--accent);
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.trust-item span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}

/* === How It Works === */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.how-it-works-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--border) 50%, var(--accent) 100%);
    pointer-events: none;
}

@media (max-width: 767px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    .how-it-works-grid::before { display: none; }
}

.how-step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.how-step-num {
    width: 72px;
    height: 72px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--accent);
}

.how-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.how-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* === Contact Strip === */
.contact-strip {
    background: var(--primary-light);
    color: #fff;
    padding: 1.5rem 0;
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-strip-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: color 0.2s;
}

.contact-strip-item:hover {
    color: #fff;
    text-decoration: none;
}

.contact-strip-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-strip-item strong {
    display: block;
    font-size: 0.95rem;
}

.contact-strip-item span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* === Section Titles === */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* === Beam Type Grid === */
.beam-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.beam-type-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.beam-type-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--text);
    text-decoration: none;
}

.beam-type-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -2rem -1.5rem 1rem;
    width: calc(100% + 3rem);
}

.beam-type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.beam-type-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.beam-type-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}

.beam-type-cta {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* === Configurator === */
.configurator-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.breadcrumb-nav {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--accent);
    text-decoration: none;
}

.configurator-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .configurator-layout {
        grid-template-columns: 1fr;
    }
}

.config-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.config-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-num {
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* === Form Elements === */
.form-select, .form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

/* Length input validation states */
.form-input.input-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.form-input.input-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-input-sm {
    width: auto;
    min-width: 100px;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
}

.length-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.length-input-group .form-input {
    flex: 1;
}

.input-suffix {
    color: var(--text-light);
    font-weight: 500;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

.form-error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

/* === Radio Cards === */
.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.radio-card:hover {
    border-color: var(--accent);
}

.radio-card.active {
    border-color: var(--accent);
    background: rgba(255, 215, 0, 0.08);
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-label {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.radio-card small {
    color: var(--text-light);
    font-size: 0.8rem;
    display: block;
}

/* === Stock Badge === */
.stock-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.stock-in-stock { background: #d4edda; color: #155724; }
.stock-low-stock { background: #fff3cd; color: #856404; }
.stock-out-of-stock { background: #f8d7da; color: #721c24; }
.stock-made-to-order { background: #d1ecf1; color: #0c5460; }

/* === Services === */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}

.service-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.service-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.service-cost {
    margin-left: auto;
    color: var(--text-light);
    font-weight: 400;
}

.service-params {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.param-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.param-row label {
    min-width: 140px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* === Price Panel === */
.price-panel-wrapper {
    position: sticky;
    top: 1rem;
}

/* Mobile: price panel sticky at bottom */
@media (max-width: 991px) {
    .price-panel-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        padding: 0.75rem 1rem;
        background: rgba(248, 249, 250, 0.97);
        border-top: 2px solid var(--primary);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        top: auto;
    }

    /* Compact price panel on mobile */
    .price-panel-wrapper .price-panel {
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .price-panel-wrapper .price-panel h3 {
        display: none;
    }

    .price-panel-wrapper .price-breakdown {
        display: none;
    }

    .price-panel-wrapper .price-vat {
        display: none;
    }

    /* Push page content above the sticky panel */
    .configurator-page {
        padding-bottom: 180px;
    }
}

.price-panel {
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.price-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Price content transition — no flash on update */
.price-content,
.price-result {
    transition: opacity 0.18s ease;
}

.price-updating {
    opacity: 0.45;
    pointer-events: none;
}

.price-placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

.price-error {
    color: var(--danger);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.price-divider {
    border-top: 1px solid var(--border);
    margin: 0.75rem 0;
}

.price-subtotal {
    font-weight: 600;
}

.price-vat {
    color: var(--text-light);
}

.price-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    padding-top: 0.5rem;
}

.price-weight {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* === Buttons === */
.btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent) !important;
    color: #1a1a1a !important;
    border: none !important;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover) !important;
    color: #1a1a1a !important;
}

.btn-primary:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Add to basket flash animation */
.btn-primary.btn-flash {
    animation: btnFlash 0.5s ease;
}

@keyframes btnFlash {
    0%   { background: var(--accent) !important; }
    30%  { background: var(--success) !important; transform: scale(1.04); }
    70%  { background: var(--success) !important; }
    100% { background: var(--accent) !important; transform: scale(1); }
}

.btn-lg {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* === Alert === */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* === Footer === */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.4rem;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

/* === Auth Pages === */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    max-width: 560px;
}

.auth-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer p {
    margin: 0.3rem 0;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* === Profile Page === */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 767px) {
    .profile-grid { grid-template-columns: 1fr; }
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.profile-detail:last-of-type {
    border-bottom: none;
}

.profile-label {
    color: var(--text-light);
    font-weight: 500;
}

.profile-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-links li {
    padding: 0.4rem 0;
}

.profile-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-outline:hover {
    border-color: var(--text);
    color: var(--primary);
}

/* === Basket Page === */
.basket-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.basket-empty h2 {
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
    color: var(--primary);
}

.basket-empty p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.basket-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.basket-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .basket-layout { grid-template-columns: 1fr; }
}

.basket-line {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile basket: stack vertically */
@media (max-width: 600px) {
    .basket-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .basket-line-controls {
        width: 100%;
        justify-content: space-between;
    }

    .basket-line-total {
        min-width: unset;
    }
}

.basket-line-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--primary);
}

.basket-line-config {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.basket-line-price {
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.basket-line-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--border);
}

.qty-value {
    padding: 0 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 2rem;
    text-align: center;
}

.basket-line-total {
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 80px;
    text-align: right;
}

.basket-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s;
}

.basket-remove:hover {
    color: var(--danger);
}

.basket-summary-panel .price-panel {
    position: sticky;
    top: 1rem;
}

/* === Checkout === */
.checkout-page {
    padding: 2rem 0 3rem;
}

/* Progress steps — polished */
.checkout-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.checkout-step {
    padding: 0.55rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-right: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    position: relative;
    flex: 1;
    text-align: center;
    letter-spacing: 0.2px;
}

.checkout-step:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.checkout-step:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.checkout-step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.checkout-step.done {
    background: #e8f8f1;
    border-color: var(--success);
    color: #155724;
}

.checkout-step.done::after {
    content: ' ✓';
}

@media (max-width: 600px) {
    .checkout-step {
        font-size: 0.72rem;
        padding: 0.45rem 0.6rem;
    }
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-form-container {
    max-width: 640px;
}

/* Checkout form inputs: ensure labels/aria properly paired */
.form-group label[for] {
    cursor: pointer;
}

.checkout-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-line:last-child {
    border-bottom: none;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.checkout-actions .btn {
    width: auto;
    min-width: 160px;
}

@media (max-width: 480px) {
    .checkout-actions .btn {
        width: 100%;
    }
}

.text-muted {
    color: var(--text-light);
    font-size: 0.85rem;
}

.text-right {
    text-align: right;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-options .radio-card {
    min-width: unset;
    text-align: left;
    padding: 1rem 1.25rem;
}

.delivery-cost {
    display: block;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* === Confirmation === */
.confirmation-box {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.confirmation-icon {
    margin-bottom: 1rem;
}

.confirmation-box h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.confirmation-order-number {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* === Focus / Accessibility === */
.btn:focus, .form-select:focus, .form-input:focus, .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* === Stripe payment element branding override === */
#payment-element iframe {
    border-radius: var(--radius);
}

/* ============================================================
   Order Tracking & Account Orders — Phase 5
   ============================================================ */

/* ----- Order card (shared container) ----- */
.order-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.order-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* ----- Status badges ----- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge--pending-payment  { background: #f0f0f0; color: #666; }
.status-badge--confirmed        { background: #dbeafe; color: #1d4ed8; }
.status-badge--in-production    { background: #fef3c7; color: #92400e; }
.status-badge--ready-for-dispatch { background: #d1fae5; color: #065f46; }
.status-badge--dispatched       { background: #d1fae5; color: #047857; }
.status-badge--delivered        { background: #bbf7d0; color: #14532d; }
.status-badge--cancelled        { background: #fee2e2; color: #991b1b; }

/* ----- Order list table ----- */
.order-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.order-list-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-list-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.order-list-row:last-child {
    border-bottom: none;
}

.order-list-row:hover {
    background: #fafafa;
}

.order-list-label {
    display: none;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.order-number {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--primary);
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
    .order-list-header {
        display: none;
    }

    .order-list-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .order-list-label {
        display: block;
    }
}

/* ----- Order items table ----- */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-items-table th {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.order-items-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.order-items-table tfoot td {
    border-bottom: none;
    font-size: 0.875rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

/* ----- Status timeline (vertical stepper) ----- */
.order-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Continuous vertical line behind the icon column */
.order-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--border);
    z-index: 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.65rem 0;
    position: relative;
    z-index: 1;
}

/* Icon circle */
.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border);
    background: var(--bg-white);
    position: relative;
    z-index: 2;
    transition: border-color 0.2s, background 0.2s;
}

.timeline-step--completed .timeline-icon {
    background: var(--cta);
    border-color: var(--cta);
    color: #fff;
}

.timeline-step--active .timeline-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.timeline-step--pending .timeline-icon {
    color: var(--border);
}

/* Text beside icon */
.timeline-content {
    display: flex;
    flex-direction: column;
    padding-top: 0.35rem;
    min-height: 32px;
}

.timeline-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.timeline-step--pending .timeline-label {
    color: var(--text-light);
    font-weight: 400;
}

.timeline-step--active .timeline-label {
    color: var(--primary);
}

.timeline-timestamp {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* ----- Empty state (shared) ----- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.empty-state svg {
    display: block;
    margin: 0 auto 1.5rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* === Dev Toolbar (Development only) === */
.dev-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    border-top: 2px solid var(--accent);
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-family: 'Poppins', monospace;
}

.dev-toolbar-label {
    background: var(--accent);
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.dev-toolbar-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.15s;
}

.dev-toolbar-btn:hover {
    background: #444;
    color: #fff;
    text-decoration: none;
}

.dev-toolbar-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.dev-toolbar-status {
    font-size: 0.78rem;
    font-weight: 600;
}

/* ============================================
   === BEAM CALCULATOR (single-page) ===
   ============================================ */

[x-cloak] { display: none !important; }

.calc-page {
    padding: 1.5rem 0 4rem;
    background: var(--bg);
}

.calc-container { max-width: 1280px; }

.calc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.calc-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem;
}

.calc-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.calc-ref {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
}

.calc-ref-label {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.7rem;
}

.calc-ref-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.calc-ref-expiry {
    color: var(--text-light);
    font-size: 0.78rem;
}

.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .calc-layout { grid-template-columns: 1fr; }
}

.calc-side {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 992px) {
    .calc-side { position: static; }
}

/* --- Cards --- */
.calc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.calc-card.is-disabled { opacity: 0.55; pointer-events: none; }

.calc-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.calc-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.calc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

/* --- Fields --- */
.calc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 540px) {
    .calc-grid-2 { grid-template-columns: 1fr; }
}

.calc-subgrid { grid-column: 1 / -1; }

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.calc-field label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

.calc-field input,
.calc-field select {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.calc-field input[type="number"] { font-variant-numeric: tabular-nums; }

.calc-hint {
    color: var(--text-light);
    font-size: 0.78rem;
}

.calc-error {
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 500;
}

/* --- Beam type chips --- */
.calc-beam-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
}

.calc-beam-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    font-family: inherit;
    color: var(--text);
}

.calc-beam-type:hover { border-color: var(--text-light); transform: translateY(-1px); }
.calc-beam-type.is-active { border-color: var(--primary); background: #fafafa; }

.calc-beam-type img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.calc-beam-type-icon { font-size: 2rem; color: var(--text-light); }

.calc-beam-type-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Collapsed step-1 summary shown when the link deep-links to a specific profile. */
.calc-beam-type-locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.calc-beam-type-locked-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.calc-beam-type-locked-info .calc-beam-type-name { text-align: left; }

.calc-beam-type-locked-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: none;
}

.calc-beam-type-change {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0.3rem 0.5rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.calc-beam-type-change::before { content: "✎"; font-size: 0.9em; }
.calc-beam-type-change:hover { background: rgba(0, 0, 0, 0.05); text-decoration: underline; }

/* --- Radio group (finishes) --- */
.calc-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
}

.calc-radio {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s;
}

.calc-radio:hover { border-color: var(--text-light); }
.calc-radio.is-active { border-color: var(--primary); background: #fafafa; }
.calc-radio input { position: absolute; opacity: 0; pointer-events: none; }

.calc-radio-label { font-weight: 600; color: var(--primary); font-size: 0.92rem; }
.calc-radio-meta { color: var(--text-light); font-size: 0.78rem; }

/* --- Accordion (accessories) --- */
.calc-accordion {
    border-top: 1px solid var(--border);
}

.calc-accordion:last-child { border-bottom: 1px solid var(--border); }

.calc-accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.25rem;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
}

.calc-accordion-count {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.82rem;
}

.calc-accordion-chev {
    margin-left: auto;
    transition: transform 0.15s;
    color: var(--text-light);
}

.calc-accordion-chev.is-open { transform: rotate(180deg); }

.calc-accordion-body { padding: 0.25rem 0 1rem; }

.calc-acc-row {
    display: grid;
    grid-template-columns: 1fr auto 80px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-top: 1px dashed var(--border);
}

.calc-acc-row:first-child { border-top: 0; }

.calc-acc-name { font-size: 0.9rem; }
.calc-acc-spec { display: block; color: var(--text-light); font-size: 0.78rem; }
.calc-acc-price { color: var(--text-light); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.calc-acc-qty {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* --- Attachments dropzone --- */
.calc-dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.calc-dropzone:hover,
.calc-dropzone.is-hover {
    border-color: var(--primary);
    background: #fff;
}

.calc-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.calc-dropzone-label { color: var(--text-light); }
.calc-dropzone-label strong { color: var(--primary); }

.calc-attachment-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.calc-attachment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.calc-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-attachment-size { color: var(--text-light); font-size: 0.78rem; }

/* --- Drawing card --- */
.calc-drawing-card { padding: 1rem; }
.calc-drawing { overflow-x: auto; }
.calc-drawing svg { width: 100%; height: auto; display: block; }
/* Inline drawing under a service section: separate it from the section's inputs. */
.calc-section-drawing { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--calc-border, #e5e7eb); }
.calc-schematic-card { padding: 1rem; }
.calc-schematic-img { width: 100%; height: auto; display: block; object-fit: contain; }

/* --- Price card --- */
.calc-price-card { padding: 1.25rem; }

.calc-price-placeholder,
.calc-price-error {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 0 1rem;
}

.calc-price-error { color: var(--danger); }

.calc-price-body { transition: opacity 0.2s; }
.calc-price-body.is-loading { opacity: 0.55; }

.calc-price-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
}

.calc-price-lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--text-light);
}

.calc-price-lines li span:last-child {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.calc-price-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.calc-price-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.calc-price-row--total { font-weight: 600; border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.25rem; }
.calc-price-row--vat { color: var(--text-light); font-size: 0.82rem; }
.calc-price-row--grand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    padding-top: 0.6rem;
    margin-top: 0.25rem;
}

.calc-weight {
    color: var(--text-light);
    font-size: 0.82rem;
    text-align: right;
    margin: 0.5rem 0 0;
}

/* --- Add-to-basket CTA --- */
.calc-cta-add {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--accent);
    color: var(--primary);
    border: 0;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.calc-cta-add:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.calc-cta-add:disabled {
    background: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}

.calc-added {
    margin: 0.75rem 0 0;
    color: var(--success);
    font-size: 0.88rem;
    text-align: center;
}

.calc-added code {
    background: #f0f0f0;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}
