/* =======================================================================
   ZOL — Polish: shop hero logo, member header logo, orders badge,
                  Shop QR card + print styles
   ======================================================================= */

/* Round shop logo above hero headline */
.shop-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--shop-on-primary);
}
.shop-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-hero-logo span {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    color: currentColor;
}

/* Member header — logo + shop name brand cluster */
.member-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.member-header-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-on-primary);
}
.member-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-header-logo span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: currentColor;
}

/* Tile badge for unfinished orders */
.home-tile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    margin-left: 6px;
    line-height: 1;
    vertical-align: middle;
}
.home-tile-badge[hidden] { display: none !important; }

/* ================================================================
   Shop QR card view
   ================================================================ */
.shop-qr-card {
    max-width: 480px;
    margin: 0 auto;
}

/* The actual visible "card" — designed to look good both on screen
   and when printed. */
.shop-qr-preview-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--paper-3);
    margin-bottom: 24px;
}

.shop-qr-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--paper-2);
    border: 2px solid var(--shop-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
}
.shop-qr-card-logo img {
    width: 100%; height: 100%; object-fit: cover;
}
.shop-qr-card-logo span {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--forest);
}

.shop-qr-card-name {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--forest);
    margin: 0 0 24px;
    line-height: 1.1;
    font-weight: 500;
}

.shop-qr-card-qr {
    background: #fff;
    padding: 12px;
    border: 1px solid var(--paper-3);
    border-radius: var(--radius-md);
    margin: 0 auto 18px;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-qr-card-qr canvas,
.shop-qr-card-qr img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shop-qr-card-instr {
    font-size: 16px;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.4;
}
.shop-qr-card-url {
    font-family: 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    color: rgba(14, 31, 20, 0.6);
    margin: 0 0 16px;
    word-break: break-all;
}
.shop-qr-card-footer {
    font-size: 11px;
    color: rgba(14, 31, 20, 0.5);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Action buttons under the card */
.shop-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.shop-qr-actions .btn {
    width: 100%;
}

/* ================================================================
   Print styles — hide everything except the print card region
   ================================================================ */
@media print {
    body * {
        visibility: hidden;
    }
    #print-card-region, #print-card-region * {
        visibility: visible;
    }
    #print-card-region {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
    }
    .print-card {
        max-width: 600px;
        margin: 40px auto;
        padding: 40px 32px;
        text-align: center;
        background: #fff;
    }
    .print-card-logo {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 0 auto 16px;
        overflow: hidden;
        border: 2px solid #143823;
    }
    .print-card-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .print-card-name {
        font-size: 32px;
        color: #143823;
        margin: 0 0 30px;
        font-weight: 500;
        font-family: 'Fraunces', Georgia, serif;
    }
    .print-card-qr {
        margin: 0 auto 20px;
        width: 320px;
        height: 320px;
    }
    .print-card-qr img,
    .print-card-qr canvas {
        width: 100%;
        height: 100%;
        display: block;
    }
    .print-card-instr {
        font-size: 18px;
        color: #000;
        margin: 0 0 8px;
        line-height: 1.4;
    }
    .print-card-url {
        font-family: monospace;
        font-size: 14px;
        color: #555;
        margin: 0 0 14px;
        word-break: break-all;
    }
    .print-card-footer {
        font-size: 12px;
        color: #888;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

/* Hide the print-card-region during normal viewing, show only when printing */
#print-card-region {
    display: none;
}
@media print {
    #print-card-region {
        display: block !important;
    }
}
